dsh-mobile-plugin 0.5.83 → 0.5.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -100,14 +100,14 @@ Sugerimos que pergunte à sua IA para configurar uma solução de rede adequada
100
100
  ${_}px !important;
101
101
  ${v}px !important;
102
102
  }
103
- `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,W.jsx)(xw,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:g.cloneElement(e,{ref:u})})}var Cw=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=d_(ww),d=(0,g.useId)(),f=(0,g.useRef)(n),p=(0,g.useRef)(r);f_(()=>{f.current=n,p.current=r});let m=!0,h=(0,g.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!f.current&&!u.size&&p.current?.()})}),[n,u,r]);return a&&m&&(h={...h}),(0,g.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),g.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,W.jsx)(Sw,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,W.jsx)(p_.Provider,{value:h,children:e})};function ww(){return new Map}function Tw(e=!0){let t=(0,g.useContext)(p_);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,g.useId)();(0,g.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,g.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Ew=e=>e.key||``;function Dw(e){let t=[];return g.Children.forEach(e,e=>{(0,g.isValidElement)(e)&&t.push(e)}),t}var Ow=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=Tw(o),f=(0,g.useMemo)(()=>Dw(e),[e]),p=o&&!u?[]:f.map(Ew),m=(0,g.useRef)(!0),h=d_(()=>new Map),_=(0,g.useRef)(new Set),[v,y]=(0,g.useState)(f),[b,x]=(0,g.useState)(f);f_(()=>{o&&!u&&!b.length&&d?.()},[u,o,b.length,d]),f_(()=>{m.current=!1;for(let e=0;e<b.length;e++){let t=Ew(b[e]);p.includes(t)?(h.delete(t),_.current.delete(t)):h.get(t)!==!0&&h.set(t,!1)}},[b,p.length,p.join(`-`)]);let S=[];if(f!==v){let e=[...f],t=0;for(let n of b){let r=p.indexOf(Ew(n));r===-1?(e.splice(t++,0,n),S.push(n)):t=r+S.length+1}return S.every(e=>h.get(Ew(e)))?e=f:a===`wait`&&(e=S),x(Dw(e)),y(f),null}let{forceRender:C}=(0,g.useContext)(u_);return(0,W.jsx)(W.Fragment,{children:b.map(e=>{let g=Ew(e),v=o&&!u?!1:f===b||p.includes(g);return(0,W.jsx)(Cw,{isPresent:v,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:v?void 0:()=>{if(_.current.has(g))return;if(h.has(g))_.current.add(g),h.set(g,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(C?.(),y([]),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},g)})})},kw=(0,g.createContext)({strict:!1}),Aw={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},jw=!1;function Mw(){if(jw)return;let e={};for(let t in Aw)e[t]={isEnabled:e=>Aw[t].some(t=>!!e[t])};qC(e),jw=!0}function Nw(){return Mw(),JC()}function Pw(e){let t=Nw();for(let n in e)t[n]={...t[n],...e[n]};qC(t)}function Fw({children:e,features:t,strict:n=!1}){let[,r]=(0,g.useState)(!Iw(t)),i=(0,g.useRef)(void 0);if(!Iw(t)){let{renderer:e,...n}=t;i.current=e,Pw(n)}return(0,g.useEffect)(()=>{Iw(t)&&t().then(({renderer:e,...t})=>{Pw(t),i.current=e,r(!0)})},[]),(0,W.jsx)(kw.Provider,{value:{renderer:i.current,strict:n},children:e})}function Iw(e){return typeof e==`function`}var Lw=(0,g.createContext)({});function Rw(e,t){if(RC(e)){let{initial:t,animate:n}=e;return{initial:t===!1||FC(t)?t:void 0,animate:FC(n)?n:void 0}}return e.inherit===!1?{}:t}function zw(e){let{initial:t,animate:n}=Rw(e,(0,g.useContext)(Lw));return(0,g.useMemo)(()=>({initial:t,animate:n}),[Bw(t),Bw(n)])}function Bw(e){return Array.isArray(e)?e.join(` `):e}var Vw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Hw(e,t,n){for(let r in t)!rS(t[r])&&!ew(r,n)&&(e[r]=t[r])}function Uw({transformTemplate:e},t){return(0,g.useMemo)(()=>{let n=Vw();return qS(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ww(e,t){let n=e.style||{},r={};return Hw(r,n,e),Object.assign(r,Uw(e,t)),r}function Gw(e,t){let n={},r=Ww(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Kw=()=>({...Vw(),attrs:{}});function qw(e,t,n,r){let i=(0,g.useMemo)(()=>{let n=Kw();return QS(n,t,aw(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Hw(t,e.style,e),i.style={...t,...i.style}}return i}var Jw=new Set(`animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Yw(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Jw.has(e)}function Xw(e,t){return e.startsWith(`on`)?!Yw(e):t?.(e)??!Yw(e)}function Zw(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(rS(e[a])||(Xw(a,r)||n===!0&&Yw(a)||!t&&!Yw(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var Qw=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function $w(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Qw.indexOf(e)>-1||/[A-Z]/u.test(e))}function eT(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??$w(e)?qw:Gw)(t,r,i,e),l=Zw(t,typeof e==`string`,a,s),u=e===g.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,g.useMemo)(()=>rS(d)?d.get():d,[d]);return(0,g.createElement)(e,{...u,children:f})}function tT({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:nT(n,r,i,e),renderState:t()}}function nT(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=gw(a[e]);let{initial:o,animate:s}=e,c=RC(e),l=zC(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!PC(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Yx(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var rT=e=>(t,n)=>{let r=(0,g.useContext)(Lw),i=(0,g.useContext)(p_),a=()=>tT(e,t,r,i);return n?a():d_(a)},iT=rT({scrapeMotionValuesFromProps:tw,createRenderState:Vw}),aT=rT({scrapeMotionValuesFromProps:sw,createRenderState:Kw}),oT=Symbol.for(`motionComponentSymbol`);function sT(e,t,n){let r=(0,g.useRef)(n);(0,g.useInsertionEffect)(()=>{r.current=n});let i=(0,g.useRef)(null);return(0,g.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var cT=(0,g.createContext)({});function lT(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function uT(e,t,n,r,i,a){let{visualElement:o}=(0,g.useContext)(Lw),s=(0,g.useContext)(kw),c=(0,g.useContext)(p_),l=(0,g.useContext)(_w),u=l.reducedMotion,d=l.skipAnimations,f=(0,g.useRef)(null),p=(0,g.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,g.useContext)(cT);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&dT(f.current,n,i,h);let _=(0,g.useRef)(!1);(0,g.useInsertionEffect)(()=>{m&&_.current&&m.update(n,c)});let v=n[sS],y=(0,g.useRef)(!!v&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return f_(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),f_(()=>{p.current=!0,m&&(_.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),y.current&&m.animationState&&m.animationState.animateChanges())}),(0,g.useEffect)(()=>{m&&(!y.current&&m.animationState&&m.animationState.animateChanges(),y.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),!1),m.enteringChildren=void 0)}),m}function dT(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:fT(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&lT(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function fT(e){if(e)return e.options.allowProjection===!1?fT(e.parent):e.projection}function pT(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Pw(r);let a=n?n===`svg`:$w(e),o=a?aT:iT;function s(n,s){let c,l={...(0,g.useContext)(_w),...n,layoutId:mT(n)},{isStatic:u,isValidProp:d}=l,f=zw(n),p=o(n,u);if(!u&&typeof window<`u`){hT(l,r);let t=gT(l);c=t.MeasureLayout,f.visualElement=uT(e,p,l,i,t.ProjectionNode,a)}return(0,W.jsxs)(Lw.Provider,{value:f,children:[c&&f.visualElement?(0,W.jsx)(c,{visualElement:f.visualElement,...l}):null,eT(e,n,sT(p,f.visualElement,s),p,u,t,a,d)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,g.forwardRef)(s);return c[oT]=e,c}function mT({layoutId:e}){let t=(0,g.useContext)(u_).id;return t&&e!==void 0?t+`-`+e:e}function hT(e,t){(0,g.useContext)(kw).strict}function gT(e){let{drag:t,layout:n}=Nw();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function _T(e,t){if(typeof Proxy>`u`)return pT;let n=new Map,r=(n,r)=>pT(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,pT(a,void 0,e,t)),n.get(a))})}var vT=_T(),yT=(e,t)=>t.isSVG??$w(e)?new cw(t):new rw(t,{allowProjection:e!==g.Fragment}),bT=class extends ZC{constructor(e){super(e),e.animationState||=dw(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();PC(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},xT=0,ST={animation:{Feature:bT},exit:{Feature:class extends ZC{constructor(){super(...arguments),this.id=xT++}update(){let{presenceContext:e,prevPresenceContext:t,animationState:n}=this.node;if(!e||!n)return;let{isPresent:r,onExitComplete:i}=e,a=t?.isPresent;if(r===a)return;if(r&&a===!1){if(this.exit===!0){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:n,...r}=Xx(this.node,e)||{};for(let e in r)this.node.getValue(e)?.jump(r[e])}this.node.blockInitialAnimation=!1,n.reset(),n.animateChanges()}else n.setActive(`exit`,!1);this.exit=void 0;return}let o=this.exit=n.setActive(`exit`,!r);i&&!r&&o.then(()=>{this.exit===o&&(this.exit=!0,i(this.id))})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function CT(e){return{point:{x:e.pageX,y:e.pageY}}}function wT(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&xy.postRender(()=>i(t,CT(t)))}var TT=class extends ZC{mount(){let{current:e}=this.node;e&&(this.unmount=vC(e,(e,t)=>(wT(this.node,t,`Start`),e=>wT(this.node,e,`End`))))}unmount(){}},ET=class extends ZC{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=C_(hw(this.node.current,`focus`,()=>this.onFocus()),hw(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function DT(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&xy.postRender(()=>i(t,CT(t)))}var OT=class extends ZC{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=kC(e,(e,t)=>(DT(this.node,t,`Start`),(e,{success:t})=>DT(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},kT=new WeakMap,AT=new WeakMap,jT=e=>{let t=kT.get(e.target);t&&t(e)},MT=e=>{e.forEach(jT)};function NT({root:e,...t}){let n=e||document;AT.has(n)||AT.set(n,{});let r=AT.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(MT,{root:e,...t})),r[i]}function PT(e,t,n){let r=NT(t);return kT.set(e,n),r.observe(e),()=>{kT.delete(e),r.unobserve(e)}}var FT={some:0,all:1},IT=class extends ZC{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:FT[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=PT(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(LT(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function LT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var RT={inView:{Feature:IT},tap:{Feature:OT},focus:{Feature:ET},hover:{Feature:TT}};function zT(e){return(0,g.useEffect)(()=>()=>e(),[])}var BT={renderer:yT,...ST,...RT};function VT(e){let t=d_(()=>Px(e)),{isStatic:n}=(0,g.useContext)(_w);if(n){let[,n]=(0,g.useState)(e);(0,g.useEffect)(()=>t.on(`change`,n),[])}return t}function HT(e,t){let n=VT(t()),r=()=>n.set(t());return r(),f_(()=>{let t=()=>xy.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),Sy(r)}}),n}function UT(e){Mx.current=[],e();let t=HT(Mx.current,e);return Mx.current=void 0,t}function WT(e,t,n,r){if(typeof e==`function`)return UT(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return KT(e,t,n,r);let i=typeof t==`function`?t:AC(t,n,r),a=Array.isArray(e)?GT(e,i):GT([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;if(o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1){let e=r?.ease;a.accelerate={...o,times:[0,...t,1],keyframes:[n[0],...n,n[n.length-1]],isTransformed:!0,...e?{ease:Array.isArray(e)?[e[0],...e]:e}:{}}}return a}function GT(e,t){let n=d_(()=>[]);return HT(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function KT(e,t,n,r){let i=d_(()=>Object.keys(n)),a=d_(()=>({}));for(let o of i)a[o]=WT(e,t,n[o],r);return a}function qT(){!HC.current&&WC();let[e]=(0,g.useState)(VC.current);return e}function JT(){let e=qT(),{reducedMotion:t}=(0,g.useContext)(_w);return t===`never`?!1:t===`always`||e}function YT(e){return typeof e==`object`&&!Array.isArray(e)}function XT(e,t,n,r){return e==null?[]:typeof e==`string`&&YT(t)?MS(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function ZT(e,t,n){return e*(t+1)+n*t}function QT(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function $T(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(h_(e,i),r--)}}function eE(e,t,n,r,i,a){$T(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:ey(i,a,r[o]),easing:J_(n,o)})}function tE(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function nE(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var rE=`easeInOut`,iE=20;function aE(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}if(!Array.isArray(o)){l.set(o.name,QT(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=QT(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=cE(e),{delay:l=0,times:u=Gy(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=ox(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&dE(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=E_(b));let r=Oy(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&Wy(u,T),c.length===1&&c.unshift(null),m&&`${m}${iE}`,m&&m<iE){let e=b>0?_/b:0;b=ZT(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?I_(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:J_(f,e-1))}tE(u,m,e)}let E=w+b;eE(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(rS(p)){let e=oE(p,s);_(m,h,sE(`default`,e))}else{let e=XT(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=oE(r,s);for(let e in m)_(m[e],lE(h,e),sE(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(nE);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(w_(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(rE)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function oE(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function sE(e,t){return t[e]||(t[e]=[]),t[e]}function cE(e){return Array.isArray(e)?e:[e]}function lE(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var uE=e=>typeof e==`number`,dE=e=>e.every(uE);function fE(e,t){return rS(e)||typeof e==`number`||typeof e==`string`&&!YT(t)}function pE(e,t,n,r){let i=[];if(fE(e,t))i.push(mw(e,YT(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=XT(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...uC(r,t,s,NC.get(r))):i.push(...DS(TS(r)??dC,r,t,s))}}return i}function mE(e,t,n){let r=[];return aE(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=Px(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:By}).forEach(({keyframes:e,transition:t},n)=>{r.push(...pE(n,e,t))}),r}function hE(e){return Array.isArray(e)&&e.some(Array.isArray)}function gE(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),hE(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=mE(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=pE(e,i,{...c,...r},t)}let l=new Ox(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{h_(t.animations,l)})),l}return i}var _E=Object.assign(gE(),{addEffect:CS,removeEffect:wS});function vE(){let e=d_(()=>({current:null,animations:[]})),t=JT()??void 0,{skipAnimations:n}=(0,g.useContext)(_w),r=(0,g.useMemo)(()=>gE({scope:e,reduceMotion:t,skipAnimations:n}),[e,t,n]);return zT(()=>{e.animations.forEach(e=>e.stop()),e.animations.length=0}),[e,r]}var yE=vT,bE=`text-[2.5rem]`,xE={indicator:`text-primary`,track:`text-primary-soft`},SE={indicator:`text-current`,track:`text-current/20`};function CE({colors:e,reduced:t}){return(0,W.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 40 40`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`,"aria-hidden":`true`,className:Z(`size-[1em] stroke-4!`,e.indicator),children:[(0,W.jsx)(`circle`,{cx:`20`,cy:`20`,r:`16`,className:e.track}),t?(0,W.jsx)(`circle`,{cx:`20`,cy:`20`,r:`16`,pathLength:1,strokeDasharray:`0.25 0.75`}):(0,W.jsx)(yE.circle,{cx:`20`,cy:`20`,r:`16`,pathLength:1,strokeDasharray:`0.25 0.75`,initial:{strokeDashoffset:0},animate:{strokeDashoffset:-1},transition:{duration:.9,repeat:1/0,ease:`linear`}})]})}var wE=12,TE=1.2;function EE({colors:e,reduced:t}){return(0,W.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 40 40`,fill:`currentColor`,"aria-hidden":`true`,className:Z(`size-[1em]`,e.indicator),children:Array.from({length:wE},(e,n)=>{let r={x:18,y:2,width:4,height:6,rx:2,transform:`rotate(${360/wE*n} 20 20)`};return t?(0,W.jsx)(`rect`,{...r,opacity:.25},n):(0,W.jsx)(yE.rect,{...r,initial:{opacity:0},animate:{opacity:[0,1,.5,0]},transition:{duration:TE,repeat:1/0,ease:`linear`,delay:n/wE*TE-TE,times:[0,.1,.5,1]}},n)})})}var DE=`M12.846 3.581C12.711 3.231 12.375 3 12 3C11.625 3 11.278 3.263 11.154 3.581C10.604 5.011 10.054 6.442 9.504 7.872C8.752 8.16 8.159 8.752 7.871 9.504C6.441 10.054 5.011 10.604 3.581 11.154C3.41 11.22 3.263 11.336 3.159 11.487C3.055 11.638 3 11.817 3 12C3 12.183 3.056 12.362 3.159 12.513C3.262 12.664 3.41 12.78 3.581 12.846C5.011 13.396 6.442 13.946 7.872 14.496C8.16 15.248 8.752 15.841 9.504 16.129C10.054 17.559 10.604 18.989 11.154 20.419C11.22 20.59 11.336 20.737 11.487 20.841C11.638 20.945 11.817 21 12 21C12.183 21 12.362 20.945 12.513 20.841C12.664 20.737 12.78 20.59 12.846 20.419C13.396 18.989 13.946 17.559 14.496 16.129C15.248 15.841 15.841 15.248 16.129 14.496C17.559 13.946 18.989 13.396 20.419 12.846C20.59 12.78 20.737 12.664 20.841 12.513C20.945 12.362 21 12.183 21 12C21 11.817 20.945 11.638 20.841 11.487C20.737 11.336 20.59 11.22 20.419 11.154C18.989 10.604 17.559 10.054 16.129 9.504C15.841 8.752 15.248 8.16 14.496 7.871C13.946 6.441 13.396 5.011 12.846 3.581Z`,OE=`M12.704 5C12.469 5 12.235 5 12 5C11.765 5 11.531 5 11.296 5C10.161 5.053 9.025 5.106 7.889 5.159C6.979 6.069 6.069 6.979 5.159 7.889C5.106 9.025 5.053 10.161 5 11.296C5 11.395 5 11.494 5 11.593C5 11.729 5 11.864 5 12C5 12.136 5 12.271 5 12.407C5 12.506 5 12.605 5 12.704C5.053 13.839 5.106 14.975 5.159 16.111C6.069 17.021 6.979 17.931 7.889 18.841C9.025 18.894 10.161 18.947 11.296 19C11.395 19 11.494 19 11.593 19C11.729 19 11.864 19 12 19C12.136 19 12.271 19 12.407 19C12.506 19 12.605 19 12.704 19C13.839 18.947 14.975 18.894 16.111 18.841C17.021 17.931 17.931 17.021 18.841 16.111C18.894 14.975 18.947 13.839 19 12.704C19 12.605 19 12.506 19 12.407C19 12.271 19 12.136 19 12C19 11.864 19 11.729 19 11.593C19 11.494 19 11.395 19 11.296C18.947 10.161 18.894 9.025 18.841 7.889C17.931 6.979 17.021 6.069 16.111 5.159C14.975 5.106 13.839 5.053 12.704 5Z`;function kE(e){return e.match(/-?\d+(?:\.\d+)?/g)?.map(Number)??[]}var AE=kE(DE),jE=kE(OE),ME=(AE.length-2)/6;function NE(e){let t=`M${e[0]} ${e[1]}`;for(let n=0;n<ME;n++){let r=2+n*6;t+=`C${e[r]} ${e[r+1]} ${e[r+2]} ${e[r+3]} ${e[r+4]} ${e[r+5]}`}return t+`Z`}function PE(e,t,n){return e+(t-e)*n}function FE(e){return e<.5?2*e*e:1-(-2*e+2)**2/2}var IE=2.5,LE=.4;function RE({colors:e,reduced:t}){let n=VT(0);g.useEffect(()=>{if(t)return;let e=_E(n,1,{duration:IE,repeat:1/0,ease:`linear`});return()=>e.stop()},[t,n]);let r=WT(n,e=>{if(e<LE/2){let t=FE(e/(LE/2));return NE(AE.map((e,n)=>PE(e,jE[n],t)))}if(e<LE){let t=FE((e-LE/2)/(LE/2));return NE(jE.map((e,n)=>PE(e,AE[n],t)))}return DE}),i=WT(n,e=>e<LE?FE(e/LE)*360:360);return(0,W.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinejoin:`round`,strokeLinecap:`round`,"aria-hidden":`true`,className:Z(`size-[1em]`,e.indicator),children:t?(0,W.jsx)(`path`,{d:DE}):(0,W.jsx)(yE.path,{d:r,style:{transformOrigin:`12px 12px`,rotate:i}})})}var zE={circular:CE,dots:EE,sparkle:RE};function BE({variant:e=`circular`,currentColor:t=!1,"aria-label":n=`Loading`,className:r,...i}){let a=_h(),o=t?SE:xE,s=zE[e],c=(0,W.jsx)(s,{colors:o,reduced:a});return(0,W.jsx)(`span`,{"data-slot":`spinner`,role:`status`,"aria-label":n,className:Z(`inline-flex shrink-0 items-center justify-center align-middle`,bE,r),...i,children:a?c:(0,W.jsx)(Fw,{features:BT,strict:!0,children:c})})}function VE(e,{storage:t=`local`}={}){let[n,r,i]=Ig(t,e,``,{serializer:e=>e,deserializer:e=>e}),a=n!==`1`,o=(0,g.useCallback)(()=>r(`1`),[r]),s=(0,g.useCallback)(()=>i(),[i]);return(0,g.useMemo)(()=>({open:a,dismiss:o,reset:s}),[a,o,s])}var HE=Uu(Z(`group/alert relative rounded-xl border p-5 text-foreground backdrop-blur-xl`,`grid w-full items-start`,`[grid-template-columns:auto_1fr_auto] [grid-template-areas:'icon_title_close'_'._description_.'_'._actions_actions']`,`@min-[460px]:data-[layout=inline]:items-center`,`@min-[460px]:data-[layout=inline]:[grid-template-columns:auto_auto_1fr_auto_auto]`,`@min-[460px]:data-[layout=inline]:[grid-template-areas:'icon_title_description_actions_close']`),{variants:{variant:{default:`bg-background border-border`,primary:`bg-primary-subtle border-primary-soft`,secondary:`bg-secondary-subtle border-secondary-soft`,error:`bg-error-subtle border-error-soft`,success:`bg-success-subtle border-success-soft`,warning:`bg-warning-subtle border-warning-soft`,info:`bg-info-subtle border-info-soft`}},defaultVariants:{variant:`default`}}),UE={default:`text-foreground-intense`,primary:`text-primary`,secondary:`text-secondary-emphasis`,error:`text-error-emphasis`,success:`text-success-emphasis`,warning:`text-warning-emphasis`,info:`text-info-emphasis`},WE=g.createContext(`default`),GE={opacity:0,scale:.88,filter:`blur(12px)`,height:0},KE={opacity:0},qE={default:{duration:.32,ease:[.4,0,.2,1]},height:{duration:.3,ease:[.4,0,.2,1],delay:.18}};function JE({variant:e,layout:t=`block`,dismissible:n=!1,open:r,onOpenChange:i,persistKey:a,persistStorage:o=`local`,closeLabel:s=`Dismiss`,role:c=`alert`,className:l,children:u,style:d,...f}){let p=_h(),[m,h]=g.useState(!0),_=VE(a??``,{storage:o}),v=r!==void 0,y=!v&&a!=null,b=v?r:y?_.open:m,x=g.useCallback(()=>{if(v){i?.(!1);return}y?_.dismiss():h(!1),i?.(!1)},[v,y,_,i]);return(0,W.jsx)(WE.Provider,{value:e??`default`,children:(0,W.jsx)(Fw,{features:BT,strict:!0,children:(0,W.jsx)(Ow,{initial:!1,children:b&&(0,W.jsx)(yE.div,{initial:!1,exit:p?KE:GE,transition:p?{duration:0}:qE,className:`@container overflow-hidden`,children:(0,W.jsxs)(`div`,{role:c,"data-slot":`alert`,"data-layout":t,style:d,className:Z(HE({variant:e}),l),...f,children:[u,n&&(0,W.jsx)(`button`,{type:`button`,"aria-label":s,"data-slot":`alert-close`,onClick:x,className:Z(`text-foreground-muted cursor-pointer rounded-md p-1 transition-colors outline-none [grid-area:close]`,`hover:text-foreground-intense`,`focus-visible:ring-ring focus-visible:ring-2`,`self-start @min-[460px]:group-data-[layout=inline]/alert:self-center`,`ms-3 -me-1 -mt-1 @min-[460px]:group-data-[layout=inline]/alert:my-0`),children:(0,W.jsx)(YE,{})})]})},`alert`)})})})}function YE(){return(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,className:`size-4`,children:(0,W.jsx)(`path`,{d:`M11.523 3.522c.264-.264.691-.264.955 0s.264.691 0 .955L8.955 8l3.522 3.522c.264.264.264.691 0 .955s-.691.264-.955 0L8 8.955l-3.522 3.522c-.264.264-.691.264-.955 0s-.264-.691 0-.955L7.045 8 3.522 4.478c-.264-.264-.264-.691 0-.955s.691-.264.955 0L8 7.045l3.523-3.522z`})})}function XE({className:e,...t}){let n=g.useContext(WE);return(0,W.jsx)(`span`,{"data-slot":`alert-icon`,className:Z(`me-3 flex h-lh shrink-0 items-center [grid-area:icon] [&_svg:not([class*='size-'])]:size-5`,UE[n],e),...t})}function ZE({className:e,as:t=`h5`,...n}){return(0,W.jsx)(t,{"data-slot":`alert-title`,className:Z(`text-foreground-intense self-center font-semibold [grid-area:title]`,`text-base @min-[460px]:group-data-[layout=inline]/alert:me-3 @min-[460px]:group-data-[layout=inline]/alert:text-sm`,e),...n})}function QE({className:e,...t}){return(0,W.jsx)(`p`,{"data-slot":`alert-description`,className:Z(`text-foreground text-sm [grid-area:description]`,`mt-2 @min-[460px]:group-data-[layout=inline]/alert:mt-0`,e),...t})}function $E(e){return Hr(e.defaultTagName??`div`,e,e)}var eD=[`before:pointer-events-none`,`before:absolute`,`before:inset-0`,`before:-z-1`,`before:rounded-[inherit]`,`[a,button]:before:transition-[opacity,background-color,border-color]`,`[a,button]:before:duration-250`,`motion-reduce:[a,button]:before:transition-none`],tD=Uu(`relative isolate inline-flex shrink-0 items-center justify-center rounded-full whitespace-nowrap outline-offset-1 select-none [&_svg]:shrink-0 [a,button]:transform-gpu [a,button]:cursor-pointer [a,button]:transition [a,button]:duration-250 [a,button]:ease-[cubic-bezier(0.175,0.885,0.32,1.5)] [a,button]:not-data-popup-open:active:translate-y-px [a,button]:not-data-popup-open:active:scale-[0.97] [a,button]:not-data-popup-open:active:duration-100 [a,button]:not-data-popup-open:active:ease-in-out motion-reduce:[a,button]:transition-none`,{variants:{variant:{primary:Z(eD,`bg-primary text-primary-foreground outline-ring-primary [a,button]:before:bg-[radial-gradient(138.15%_78.13%_at_52.05%_50%,var(--primary)_0%,var(--primary-muted)_75%)] [a,button]:before:opacity-0`,`[a,button]:hover:before:opacity-100`,`[a,button]:data-pressed:before:opacity-100`,`[a,button]:data-popup-open:before:opacity-100`),"primary-outline":Z(eD,`text-primary before:border before:border-primary outline-ring-primary`,`[a,button]:hover:before:bg-primary [a,button]:hover:text-primary-foreground`,`[a,button]:data-pressed:before:bg-primary [a,button]:data-pressed:text-primary-foreground`,`[a,button]:data-popup-open:before:bg-primary [a,button]:data-popup-open:text-primary-foreground`),secondary:Z(eD,`bg-secondary-muted text-secondary-foreground outline-ring-secondary [a,button]:before:bg-[radial-gradient(138.15%_78.13%_at_52.05%_50%,var(--secondary)_0%,var(--secondary-muted)_95%)] [a,button]:before:opacity-0`,`[a,button]:hover:before:opacity-100`,`[a,button]:data-pressed:before:opacity-100`,`[a,button]:data-popup-open:before:opacity-100`),soft:Z(eD,`text-foreground-intense before:bg-background-muted before:backdrop-blur-md [a,button]:before:border [a,button]:before:border-transparent outline-ring`,`data-[slot=breadcrumb-link]:not-data-active:text-foreground-muted data-[slot=breadcrumb-link]:hover:text-foreground-intense`,`[a,button]:hover:before:bg-background-subtle [a,button]:hover:before:border-border`,`[a,button]:data-pressed:before:bg-background-subtle [a,button]:data-pressed:before:border-border`,`[a,button]:data-popup-open:before:bg-background-subtle [a,button]:data-popup-open:before:border-border`,`data-active:before:bg-background-subtle data-active:border data-active:before:border-border`),outline:Z(eD,`bg-background text-foreground-intense before:bg-background before:border-border before:border outline-ring`,`data-[slot=breadcrumb-link]:not-data-active:text-foreground-muted data-[slot=breadcrumb-link]:hover:text-foreground-intense`,`[a,button]:hover:before:bg-background-subtle [a,button]:hover:before:border-border-strong`,`[a,button]:data-pressed:before:bg-background-subtle [a,button]:data-pressed:before:border-border-strong`,`[a,button]:data-popup-open:before:bg-background-subtle [a,button]:data-popup-open:before:border-border-strong`,`data-active:before:bg-background-subtle data-active:before:border-border-strong`),error:Z(eD,`bg-error-muted text-error-foreground outline-ring-error [a,button]:before:bg-[radial-gradient(138.15%_78.13%_at_52.05%_50%,var(--error-muted)_0%,rgba(255,255,255,.5)_95%)] [a,button]:before:opacity-0`,`[a,button]:hover:before:opacity-100`,`[a,button]:data-pressed:before:opacity-100`,`[a,button]:data-popup-open:before:opacity-100`),success:Z(eD,`bg-success-muted text-success-foreground outline-ring-success [a,button]:before:bg-[radial-gradient(138.15%_78.13%_at_52.05%_50%,var(--success-muted)_0%,rgba(255,255,255,.5)_95%)] [a,button]:before:opacity-0`,`[a,button]:hover:before:opacity-100`,`[a,button]:data-pressed:before:opacity-100`,`[a,button]:data-popup-open:before:opacity-100`),warning:Z(eD,`bg-warning-muted text-warning-foreground outline-ring-warning [a,button]:before:bg-[radial-gradient(138.15%_78.13%_at_52.05%_50%,var(--warning-muted)_0%,rgba(255,255,255,.5)_95%)] [a,button]:before:opacity-0`,`[a,button]:hover:before:opacity-100`,`[a,button]:data-pressed:before:opacity-100`,`[a,button]:data-popup-open:before:opacity-100`),info:Z(eD,`bg-info-muted text-info-foreground outline-ring-info [a,button]:before:bg-[radial-gradient(138.15%_78.13%_at_52.05%_50%,var(--info-muted)_0%,rgba(255,255,255,.5)_95%)] [a,button]:before:opacity-0`,`[a,button]:hover:before:opacity-100`,`[a,button]:data-pressed:before:opacity-100`,`[a,button]:data-popup-open:before:opacity-100`),light:Z(eD,`text-white before:bg-white/10 before:border-white/10 before:border before:backdrop-blur-md outline-ring-light`,`[a,button]:hover:before:bg-white/15 [a,button]:hover:before:border-white/15`,`[a,button]:data-pressed:before:bg-white/15 [a,button]:data-pressed:before:border-white/15`,`[a,button]:data-popup-open:before:bg-white/15 [a,button]:data-popup-open:before:border-white/15`,`data-active:before:bg-white/15 data-active:before:border-white/15`)},size:{xs:`h-4 w-fit gap-0.5 px-1.5 text-[.625rem] has-data-[icon=end]:pe-1.25 has-data-[icon=start]:ps-1.25 [&_svg:not([class*='size-'])]:size-2.5 [&_svg:not([class*='stroke-'])]:stroke-2`,sm:`h-5 w-fit gap-0.5 px-2 text-xs has-data-[icon=end]:pe-1.5 has-data-[icon=start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3 [&_svg:not([class*='stroke-'])]:stroke-[1.85]`,md:`h-6 w-fit gap-0.75 px-2.5 text-xs has-data-[icon=end]:pe-1.75 has-data-[icon=start]:ps-1.75 [&_svg:not([class*='size-'])]:size-3.5 [&_svg:not([class*='stroke-'])]:stroke-[1.75]`,lg:`h-7 w-fit gap-1 px-3 text-sm has-data-[icon=end]:pe-2.25 has-data-[icon=start]:ps-2.25 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='stroke-'])]:stroke-[1.75]`,"icon-sm":`h-5 w-5 [&_svg:not([class*='size-'])]:size-3 [&_svg:not([class*='stroke-'])]:stroke-[1.85]`,"icon-md":`h-6 w-6 [&_svg:not([class*='size-'])]:size-3.5 [&_svg:not([class*='stroke-'])]:stroke-[1.75]`,"icon-lg":`h-7 w-7 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='stroke-'])]:stroke-[1.75]`}},defaultVariants:{variant:`primary`,size:`md`}});function nD({className:e,variant:t,size:n,render:r,...i}){let a=g.isValidElement(r)?r.props:void 0,o=g.isValidElement(r)&&(r.type===`a`||r.type===`button`)||i.onClick!=null||a?.href!=null||a?.onClick!=null||a?.tabIndex!=null;return $E({defaultTagName:`span`,render:r,state:{variant:t,size:n},props:Or({"data-slot":`badge`,...o?Bu():{},className:Z(tD({variant:t,size:n}),e)},i)})}function rD(e,t,n,r,i){return g.isValidElement(t)?g.cloneElement(t,{...i,...t.props,className:Z(n,t.props.className,r)}):g.createElement(e,{...i,className:Z(n,r)})}var iD=`[--card-radius:var(--radius-xl)]`,aD=`rounded-[calc(var(--card-radius)*4/3)]`,oD={none:`rounded-(--card-radius)`,solid:Z(aD,`bg-background-muted/60 p-2 backdrop-blur-xl dark:bg-background-subtle`),glass:Z(aD,`border border-white/15 bg-white/10 p-2 backdrop-blur-sm`)},sD={none:`border`,solid:`border-border-muted border`,glass:``};function cD({frame:e=!1,inset:t=!0,className:n,contentProps:r,render:i,children:a,...o}){let s=e===!0?`solid`:e===!1?`none`:e;return rD(`div`,i,Z(`group/card flex flex-col`,iD,oD[s]),n,{"data-slot":`card`,"data-frame":s,...t?{"data-inset":``}:{},...o,children:(0,W.jsx)(`div`,{"data-slot":`card-content`,...r,className:Z(`bg-background flex min-h-0 flex-1 flex-col overflow-hidden rounded-(--card-radius)`,t&&`p-2`,sD[s],r?.className),children:a})})}function lD({className:e,...t}){return(0,W.jsx)(`div`,{"data-slot":`card-header`,className:Z(`flex flex-1 flex-col gap-1.5 p-6 group-data-inset/card:px-4`,e),...t})}function uD({className:e,render:t,...n}){return rD(`h3`,t,`text-foreground-intense text-lg font-semibold`,e,{"data-slot":`card-title`,...n})}var dD=g.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=vd(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return Hr(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:It,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),fD=`--nested-dialogs`,pD=g.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=vd(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`);Ud(),ai({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?Gs(c.context.popupRef):o,w=g>0,T=c.useStateSetter(`popupElement`),E=Hr(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:w},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...Ws,hidden:!m,onKeyDown(e){Jd.has(e.key)&&e.stopPropagation()},style:{[fD]:g}},s],ref:[t,c.context.popupRef,T],stateAttributesMapping:Zf});return(0,W.jsx)(Oo,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:E})}),mD=F(function(e){return Lf(`dialog`,e)}),hD=Object.assign(function(e){return(0,W.jsx)(mD,{...e})},{createHandle:Fp});function gD({className:e,children:t,closeButton:n=!0,closeLabel:r=`Close`,backdrop:i=!0,frame:a=!0,backdropProps:o,viewportProps:s,...c}){let l=a&&i,{portal:u,popup:d}=zp(c);return(0,W.jsxs)(gf,{...u,children:[i&&(0,W.jsx)(dD,{"data-slot":`dialog-backdrop`,...o,className:Z(`fixed inset-0 z-50 bg-black/30 backdrop-blur-sm supports-[-webkit-touch-callout:none]:absolute`,`motion-safe:transition-opacity motion-safe:duration-250 motion-safe:ease-out`,`data-ending-style:motion-safe:opacity-0 data-starting-style:motion-safe:opacity-0`,o?.className)}),(0,W.jsx)(Qf,{"data-slot":`dialog-viewport`,...s,className:Z(`fixed inset-0 z-50 flex items-center justify-center overflow-hidden p-4`,s?.className),children:(0,W.jsx)(pD,{"data-slot":`dialog-popup`,...l?{"data-frame":``}:{},className:Z(`group/dialog-popup relative flex max-h-full min-h-0 w-150 max-w-full flex-col`,`rounded-2xl border`,l?`border-white/15 bg-white/10 p-1.5 backdrop-blur-sm`:`bg-background border-border-overlay`,!l&&`shadow-2xl`,`isolate transform-gpu outline-none`,`motion-safe:transition-[opacity,scale] motion-safe:duration-250 motion-safe:ease-[cubic-bezier(0.175,0.885,0.32,1.5)]`,`data-starting-style:motion-safe:scale-95 data-starting-style:motion-safe:opacity-0`,`data-ending-style:motion-safe:scale-95 data-ending-style:motion-safe:opacity-0 data-ending-style:motion-safe:duration-100 data-ending-style:motion-safe:ease-out`,`data-nested-dialog-open:pointer-events-none data-nested-dialog-open:scale-95 data-nested-dialog-open:opacity-0`,e),...d,children:(0,W.jsxs)(`div`,{"data-slot":`dialog-content`,className:Z(`relative flex min-h-0 flex-col overflow-hidden not-has-[>[data-slot=dialog-footer]]:pb-6 not-has-[>[data-slot=dialog-header]]:pt-6 [&>[data-slot=dialog-header]+[data-slot=dialog-footer]]:pt-0`,l&&`bg-background rounded-[calc(var(--radius-2xl)*5/6)]`),children:[t,n&&(0,W.jsx)(Od,{"aria-label":r,"data-slot":`dialog-close-button`,className:Z(Gu({variant:`outline`,size:`icon-sm`}),`absolute inset-e-3 top-3 z-10`),children:(0,W.jsx)(SD,{})})]})})})]})}function _D({className:e,...t}){return(0,W.jsx)(`div`,{"data-slot":`dialog-header`,className:Z(`flex shrink-0 flex-col gap-2 p-6`,e),...t})}function vD({className:e,...t}){return(0,W.jsx)(Uf,{"data-slot":`dialog-title`,className:Z(`text-foreground-intense text-2xl font-semibold`,e),...t})}function yD({className:e,...t}){return(0,W.jsx)(Nd,{"data-slot":`dialog-description`,className:Z(`text-foreground-muted text-sm`,e),...t})}function bD({className:e,...t}){return(0,W.jsx)(`div`,{"data-slot":`dialog-body`,className:Z(`min-h-0 flex-1 px-6`,e),...t})}function xD({className:e,...t}){return(0,W.jsx)(`div`,{"data-slot":`dialog-footer`,className:Z(`flex flex-col-reverse gap-2 p-6 sm:flex-row sm:justify-end`,e),...t})}function SD(e){return(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,...e,children:(0,W.jsx)(`path`,{d:`M11.594 3.594c.225-.225.588-.225.813 0s.225.588 0 .812L8.813 8l3.594 3.594c.225.225.225.588 0 .813s-.588.225-.812 0L8 8.812l-3.594 3.594c-.225.225-.588.225-.812 0s-.225-.588 0-.812L7.188 8 3.594 4.406c-.225-.225-.225-.588 0-.812s.588-.225.813 0L8 7.187l3.594-3.594z`})})}var CD=g.createContext(void 0);function wD(){let e=g.useContext(CD);if(e===void 0)throw Error(S(63));return e}var TD=`data-valid`,ED=`data-invalid`,DD={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},OD={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},kD={valid(e){return e===null?null:e?{[TD]:``}:{[ED]:``}}},AD=`data-checked`,jD=`data-unchecked`,MD={...kD,checked(e){return e?{[AD]:``}:{[jD]:``}}},ND={invalid:void 0,name:void 0,validityData:{state:DD,errors:[],error:``,value:``,initialValue:null},setValidityData:p,disabled:void 0,setTouched:p,setDirty:p,setFilled:p,setFocused:p,validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:OD,registerFieldControl:p,validation:{getValidationProps:(e,t=h)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:p,getInputControl:()=>null,commit:async()=>{},change:p}},PD=g.createContext(ND);function FD(e=!0){let t=g.useContext(PD);if(t.setValidityData===p&&!e)throw Error(S(28));return t}function ID(e,t,n,r,i=!0,a){let{registerFieldControl:o}=FD(),s=y(()=>Symbol());b(()=>{let c=s.current;if(!i){o(c,void 0);return}o(c,{controlRef:e,getValue:r,id:t,name:a,value:n})},[e,i,r,t,a,o,s,n]),b(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}var LD=g.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:p,validationMode:`onSubmit`,submitCountRef:{current:0}});function RD(){return g.useContext(LD)}var zD=g.createContext({controlId:void 0,registerControlId:p,resetControlId:p,labelId:void 0,setLabelId:p,messageIds:[],setMessageIds:p,getDescriptionProps:e=>e});function BD(){return g.useContext(zD)}function VD(e,t,n,r=!0,i){let[a,o]=g.useState(),s=Md(i?`${i}-label`:void 0),c=e??t??a;return b(()=>{let i=e||t||!r?void 0:HD(n.current,s);a!==i&&o(i)}),c}function HD(e,t){let n=UD(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function UD(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}function WD(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=BD(),o=Md(),s=y(()=>Symbol()),c=g.useRef(!1),l=g.useRef(!1),u=q(()=>{c.current&&i!==p&&(c.current=!1,i(s.current,void 0))});return b(()=>{if(!n||i===p){u();return}let e;if(t!==void 0)l.current=!0,e=t;else if(l.current)e=o;else{a();return}if(e===void 0){u();return}c.current=!0,i(s.current,e)},[t,n,i,a,o,s,u]),b(()=>u,[u]),(n?r:void 0)??t??o}var GD=g.forwardRef(function(e,t){let{checked:n,className:r,defaultChecked:i,"aria-labelledby":a,form:o,id:s,inputRef:c,name:l,nativeButton:u=!1,onCheckedChange:d,readOnly:f=!1,required:p=!1,disabled:m=!1,render:_,uncheckedValue:v,value:y,style:x,...S}=e,{clearErrors:C}=RD(),{state:w,setTouched:T,setDirty:E,validityData:D,setFilled:O,setFocused:k,validationMode:A,disabled:j,name:M,validation:N}=FD(),{labelId:P}=BD(),F=j||m,I=M??l,L=g.useRef(null),R=gr(L,c,N.inputRef),z=g.useRef(null),B=Md(),V=WD({id:s}),H=u?void 0:V,[U,ee]=vf({controlled:n,default:!!i,name:`Switch`,state:`checked`});ID(z,B,U,void 0,!F,l),b(()=>{O(U)},[U,O]),Kf(U,()=>{C(I),E(U!==D.initialValue),N.change(U)});let{getButtonProps:te,buttonRef:G}=ua({disabled:F,native:u}),ne=VD(a,P,L,!u,H),K={id:u?V:B,role:`switch`,"aria-checked":U,"aria-readonly":f||void 0,"aria-required":p||void 0,"aria-labelledby":ne,onFocus(){F||k(!0)},onBlur(){let e=L.current;e&&!F&&(T(!0),k(!1),A===`onBlur`&&N.commit(e.checked))},onClick(e){if(f||F)return;e.preventDefault();let t=L.current;t&&la(t,e)}},re={...N.getValidationProps(F),checked:U,disabled:F,form:o,id:H,name:I,required:p,style:I?mr:pr,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,ref:R,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(f){e.preventDefault();return}let t=e.currentTarget.checked,n=ja(ha,e.nativeEvent);d?.(t,n),!n.isCanceled&&ee(t)},onClick(e){e.stopPropagation()},onFocus(){z.current?.focus()},...y===void 0?h:{value:y}},ie=g.useMemo(()=>({...w,checked:U,disabled:F,readOnly:f,required:p}),[w,U,F,f,p]),ae=Hr(`span`,e,{state:ie,ref:[t,z,G],props:[K,S,te,e=>N.getValidationProps(F,e)],stateAttributesMapping:MD});return(0,W.jsxs)(CD.Provider,{value:ie,children:[ae,!U&&I&&v!==void 0&&(0,W.jsx)(`input`,{type:`hidden`,form:o,name:I,value:v,disabled:F}),(0,W.jsx)(`input`,{...re,suppressHydrationWarning:!0})]})}),KD=g.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return Hr(`span`,e,{state:wD(),ref:t,stateAttributesMapping:MD,props:a})}),qD={sm:{root:`h-4 w-7.5`,thumb:`size-3`,thumbWidthKeyframes:[`0.75rem`,`1.25rem`,`0.75rem`],thumbXKeyframes:[0,`0.3125rem`,`0.875rem`],check:`size-2.5`},md:{root:`h-5 w-9.5`,thumb:`size-4`,thumbWidthKeyframes:[`1rem`,`1.6875rem`,`1rem`],thumbXKeyframes:[0,`0.4375rem`,`1.125rem`],check:`size-3`},lg:{root:`h-6 w-11.5`,thumb:`size-5`,thumbWidthKeyframes:[`1.25rem`,`2.125rem`,`1.25rem`],thumbXKeyframes:[0,`0.5rem`,`1.375rem`],check:`size-4`}},JD={duration:.25,ease:[.4,0,.2,1]};function YD(e,t){return t===1?[...e]:e.map(e=>typeof e==`number`?-e:`-${e}`)}function XD({renderProps:e,state:t,dirSign:n,sizeConfig:r,reduced:i}){let{checked:a}=t,{ref:o,onDrag:s,onDragStart:c,onDragEnd:l,onAnimationStart:u,onAnimationEnd:d,...f}=e,p=g.useMemo(()=>{let e=YD(r.thumbXKeyframes,n);return a?e:e.reverse()},[a,n,r]),m=p[p.length-1],[h,_]=vE(),v=zu(o,h),y=g.useRef(a);return g.useEffect(()=>{let e=y.current!==a;y.current=a,e&&!i?_(h.current,{x:p,width:r.thumbWidthKeyframes},JD):_(h.current,{x:m},{duration:0})},[a,r,_,h,i,p,m]),(0,W.jsx)(yE.span,{...f,ref:v,initial:{x:m},children:(0,W.jsx)(yE.svg,{className:Z(`text-foreground-intense`,r.check),xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 12 12`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,style:{strokeDasharray:12},initial:!1,animate:{strokeDashoffset:a?0:12},transition:i?{duration:0}:{strokeDashoffset:{duration:a?.3:0,ease:`easeOut`,delay:a?.25:0}},children:(0,W.jsx)(`path`,{d:`M3 6l2 2 4-4`})})})}function ZD({className:e,size:t=`md`,...n}){let r=Uc()===`rtl`?-1:1,i=qD[t],a=_h(),o=n[`aria-invalid`],s=o===!0||o===`true`;return(0,W.jsx)(Fw,{features:BT,strict:!0,children:(0,W.jsx)(GD,{"data-slot":`switch`,className:Z(`bg-background-strong outline-ring flex shrink-0 rounded-full border border-transparent p-px outline-offset-1`,i.root,`transition-background duration-200 motion-reduce:transition-none`,`data-checked:bg-primary data-checked:outline-ring-primary`,`data-disabled:not-data-checked:border-border-strong data-disabled:opacity-disabled data-disabled:cursor-not-allowed data-disabled:not-data-checked:border-dashed`,`data-invalid:border-error data-invalid:not-data-checked:bg-error-subtle data-invalid:outline-ring-error`,e),...n,...s?{"data-invalid":``}:{},children:(0,W.jsx)(KD,{"data-slot":`switch-thumb`,className:Z(`group flex items-center justify-center rounded-full bg-white shadow-2xs`,i.thumb,`data-checked:bg-primary-foreground`),render:(e,t)=>(0,W.jsx)(XD,{renderProps:e,state:t,dirSign:r,sizeConfig:i,reduced:a})})})})}var QD=3e4,$D=1e3;function eO(e,t=Date.now()){let n=e?.tailcat?.expiresAt??0;if(!Number.isFinite(n)||n<=0)return null;let r=n*1e3-t;return r<=0?null:Math.max(r-QD,$D)}var tO=class extends Error{constructor(e,t,n){super(e),K(this,`code`,void 0),K(this,`status`,void 0),this.name=`ApiError`,this.code=t,this.status=n}};async function nO(e){let t=null;try{t=await e.json()}catch{t=null}let n=t?.error;if(typeof n==`string`&&n)return new tO(n,`http_${e.status}`,e.status);if(n&&typeof n==`object`){let t=n,r=typeof t.code==`string`&&t.code?t.code:`http_${e.status}`;return new tO(typeof t.message==`string`&&t.message?t.message:$(`panel.net.requestFailed`,{status:e.status}),r,e.status)}return new tO($(`panel.net.requestFailed`,{status:e.status}),`http_${e.status}`,e.status)}async function rO(e){let t=e.split(`?`)[0]===`/api/relay/pairing`,n=t?3e4:e===`/api/relay/status`?12e3:0,r=n?new AbortController:null,i=r?window.setTimeout(()=>r.abort(),n):null;try{let n=await fetch(e,{headers:{accept:`application/json`},...r?{signal:r.signal}:{}});if(!n.ok)throw await nO(n);let i=await n.json();if(t&&(i?.ok!==!0||typeof i.svg!=`string`||!i.svg.includes(`<svg`)))throw new tO($(`panel.pairing.qrFailed`),`pairing_invalid`,n.status);return i}catch(e){throw r?.signal.aborted?new tO($(t?`panel.console.pairingTimeout`:`panel.console.statusTimeout`),t?`pairing_timeout`:`status_timeout`,0):e}finally{i!==null&&window.clearTimeout(i)}}async function iO(e,t,n){let r=await fetch(e,{method:`POST`,headers:{"content-type":`application/json`,accept:`application/json`},body:JSON.stringify(t??{})});if(!r.ok)throw await nO(r);let i=await r.json();return n?.keepApplyError||aO(i),i}function aO(e){let t=e?.applyError;if(typeof t==`string`&&t)throw new tO($(`panel.shell.applyFailed`,{message:t}),`apply_failed`,200)}function oO(e){return iO(`/api/relay/frp/import`,{config:e})}function sO(){return iO(`/api/relay/frp/stop`)}function cO(e){return e instanceof tO?e.message:e instanceof Error?e.message||$(`panel.net.requestFailedNoStatus`):String(e)}var lO={ok:4e3,soft:6e3,error:9e3};function uO(){let e=(0,g.useRef)(ud());return e.current=ud(),(0,g.useCallback)((t,n)=>{e.current.add({title:n,type:t,timeout:lO[t],priority:t===`error`?`high`:`low`})},[])}var dO={status:`/api/relay/update/status`,check:`/api/relay/update/check`,apply:`/api/relay/update/apply`,auto:`/api/relay/update/auto`,otaStatus:`/api/relay/update/ota/status`,otaCheck:`/api/relay/update/ota/check`,otaApply:`/api/relay/update/ota/apply`},fO=e=>e&&typeof e==`object`?e:{},pO=e=>typeof e==`string`&&e!==``?e:null,mO=e=>typeof e==`boolean`?e:null,hO=e=>typeof e==`number`&&Number.isFinite(e)?e:null;async function gO(e,t){let n=await fetch(e,{credentials:`same-origin`,headers:{accept:`application/json`,...t?.body?{"content-type":`application/json`}:{}},...t}),r=null;try{r=await n.json()}catch{r=null}let i=fO(r),a=fO(i.error);if(!n.ok){let e=pO(a.code)??`http_${n.status}`;throw new tO(pO(a.message)??$(`panel.net.hostHttp`,{status:n.status}),e,n.status)}return i}function _O(e){return e instanceof tO?e.status===404:e instanceof SyntaxError}function vO(e){return e instanceof tO&&e.code===`update_unavailable`}function yO(e){let t=fO(e);return Object.keys(t).length===0?null:{installedVersion:pO(t.installedVersion),latestVersion:pO(t.latestVersion),updateAvailable:t.updateAvailable===!0,source:pO(t.source),checkedAt:pO(t.checkedAt)}}function bO(e){let t=fO(e),n=fO(t.failure),r=pO(n.code);return{installed:mO(t.installed),skipped:mO(t.skipped),state:pO(t.state),beforeVersion:pO(t.beforeVersion),installedVersion:pO(t.installedVersion),swapped:mO(t.swapped),restartRequired:mO(t.restartRequired),refreshRequired:mO(t.refreshRequired),failure:r?{code:r,message:pO(n.message)??r}:null}}function xO(e){let t=fO(e);return{available:t.available===!0,version:pO(t.version),installedVersion:pO(t.installedVersion),source:pO(t.source),previousVersion:pO(t.previousVersion),activatedAt:pO(t.activatedAt),lastError:pO(t.lastError),inFlight:hO(t.inFlight)??0,swapping:t.swapping===!0,autoUpdate:t.autoUpdate===!0,autoIntervalMs:hO(t.autoIntervalMs)??6e5,marketBase:pO(t.marketBase),marketLastCheckedAt:pO(t.marketLastCheckedAt),marketLastError:pO(t.marketLastError),marketResult:yO(t.marketResult),lastApply:t.lastApply?bO(t.lastApply):null,appliedAt:pO(t.appliedAt),runningShellHash:pO(t.runningShellHash),installedShellHash:pO(t.installedShellHash),shellChanged:t.shellChanged===!0}}async function SO(){return xO((await gO(dO.status)).data)}async function CO(){let e=fO((await gO(dO.check,{method:`POST`,body:JSON.stringify({})})).data);return{update:yO(e.update),status:e.status?xO(e.status):null}}async function wO(e=!1){let t=fO((await gO(dO.apply,{method:`POST`,body:JSON.stringify({force:e})})).data),n=fO(t.status);return{...bO(t),status:Object.keys(n).length>0?xO(n):null}}async function TO(e){let t=fO((await gO(dO.auto,{method:`POST`,body:JSON.stringify({enabled:e})})).data);return{enabled:t.enabled===!0,status:t.status?xO(t.status):null}}function EO({className:e}){return(0,W.jsxs)(`svg`,{viewBox:`0 0 16 16`,className:e??`size-3.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.3`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6.2`}),(0,W.jsx)(`path`,{d:`M6.3 6.1a1.75 1.75 0 0 1 3.4.55c0 1.15-1.7 1.35-1.7 2.55`}),(0,W.jsx)(`path`,{d:`M8 11.5h.01`})]})}function DO(){let[e,t]=(0,g.useState)(null),[n,r]=(0,g.useState)(!1),[i,a]=(0,g.useState)(!1),[o,s]=(0,g.useState)(!1),c=uO();(0,g.useEffect)(()=>{let e=!0;return SO().then(n=>{e&&t(n)}).catch(()=>{}),()=>{e=!1}},[]);let l=(0,g.useCallback)(async n=>{r(!0);try{let r=await TO(n);t(e=>r.status??(e&&{...e,autoUpdate:r.enabled}));let i=Math.round((r.status?.autoIntervalMs??e?.autoIntervalMs??6e5)/6e4);c(`soft`,r.enabled?$(`panel.update.autoOn`,{minutes:i}):$(`panel.update.autoOff`))}catch(e){c(`error`,$(`panel.update.autoToggleFailed`,{message:cO(e)}));try{t(await SO())}catch{}}finally{r(!1)}},[e?.autoIntervalMs,c]);if(!e)return null;let u=e.autoUpdate===!0,d=Math.round((e.autoIntervalMs??6e5)/6e4);return(0,W.jsxs)(`div`,{className:`mt-1 border-t border-border-muted pt-3`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,W.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1`,children:[(0,W.jsx)(`span`,{className:`text-sm text-foreground`,children:$(`panel.update.autoUpdate`)}),(0,W.jsx)(`button`,{type:`button`,"aria-label":$(`panel.update.autoHelp`),title:$(`panel.update.autoHelp`),className:`shrink-0 cursor-pointer text-foreground-muted transition-colors duration-200 hover:text-foreground-strong focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none`,onClick:()=>a(!0),children:(0,W.jsx)(EO,{})})]}),(0,W.jsxs)(`span`,{className:`flex shrink-0 items-center gap-2`,children:[n?(0,W.jsx)(BE,{}):null,(0,W.jsx)(ZD,{size:`md`,checked:u,disabled:n,onCheckedChange:e=>{e?l(!0):s(!0)},"aria-label":$(`panel.update.autoUpdate`)})]})]}),(0,W.jsx)(hD,{open:i,onOpenChange:a,children:(0,W.jsxs)(gD,{className:`max-w-md`,closeLabel:$(`panel.common.close`),children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.update.autoUpdate`)})}),(0,W.jsx)(bD,{className:`whitespace-pre-line text-sm leading-6 text-foreground-muted`,children:$(`panel.update.autoDetail`,{minutes:d})}),(0,W.jsx)(xD,{className:`flex justify-end`,children:(0,W.jsx)(Q,{variant:`outline`,onClick:()=>a(!1),children:$(`panel.common.close`)})})]})}),(0,W.jsx)(hD,{open:o,onOpenChange:s,children:(0,W.jsxs)(gD,{className:`max-w-md`,closeLabel:$(`panel.common.close`),children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.update.autoOffTitle`)})}),(0,W.jsx)(bD,{className:`text-sm leading-6 text-foreground-muted`,children:$(`panel.update.autoOffBody`)}),(0,W.jsxs)(xD,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(Q,{variant:`outline`,onClick:()=>{s(!1),l(!1)},children:$(`panel.update.autoOffConfirm`)}),(0,W.jsx)(Q,{variant:`primary`,onClick:()=>s(!1),children:$(`panel.update.autoOffKeep`)})]})]})})]})}var OO=g.createContext(void 0);function kO(e){let t=g.useContext(OO);if(t===void 0&&!e)throw Error(S(72));return t}var AO={...dc,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},jO=class extends le{constructor(e,t,n){let r=new ic;super(MO(e,r,t,n),NO(r),AO),K(this,`setOpen`,(e,t)=>{Qs(this,e,t,{extraState:{openChangeReason:t.reason}})})}cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,ja(ga,e))}};function MO(e,t,n,r=!1){return{...ac(t,n,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function NO(e){return{popupRef:g.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var PO=F(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=Ks((e,t)=>new jO({open:n,openProp:r,activeTriggerId:d,triggerIdProp:u},e,t));p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,_=p.useState(`activeTriggerId`),v=p.useState(`mounted`),y=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i,disabled:t}),ec(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:x,transitionStatus:S}=tc(h,p),C=p.useState(`isInstantPhase`),w=p.useState(`instantType`),T=p.useState(`lastOpenChangeReason`),E=g.useRef(null);b(()=>{m&&t&&p.setOpen(!1,ja(Oa))},[m,t,p]),b(()=>{S===`ending`&&T===`none`||S!==`ending`&&C?(w!==`delay`&&(E.current=w),p.set(`instantType`,`delay`)):E.current!==null&&(p.set(`instantType`,E.current),E.current=null)},[S,C,T,w,p]),b(()=>{h&&(_??p.set(`payload`,void 0))},[p,_,h]),g.useImperativeHandle(o,()=>({unmount:x,close:()=>p.setOpen(!1,ja(ka))}),[x,p]);let D=h||v||!t&&a!==`none`;return(0,W.jsxs)(OO.Provider,{value:p,children:[l&&(0,W.jsx)(qs,{handle:l,store:p}),D&&(0,W.jsx)(FO,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:y}):f]})});function FO({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=Fo(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=Mo(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=g.useMemo(()=>Or(a.reference,i.reference),[a.reference,i.reference]);return nc(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:i.floating??h}),null}var IO=g.createContext(void 0);function LO(){return g.useContext(IO)}var RO=`data-base-ui-tooltip-trigger`;function zO(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if(_e(n))return n}}let t=e.target;return _e(t)?t:null}function BO(e){let t=e;for(;t;){let e=t.closest(`[${RO}]`);if(e)return e;let n=t.getRootNode();t=`host`in n&&_e(n.host)?n.host:null}return null}var VO=I(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:u,id:d,...f}=e,p=kO(!0),m=fc(a)??p;if(!m)throw Error(S(82));let h=Md(d),_=m.useState(`isTriggerActive`,h),v=m.useState(`isOpenedByTrigger`,h),y=m.useState(`floatingRootContext`),b=g.useRef(null),x=u??0,{registerTrigger:C,isMountedByThisTrigger:w}=$s(h,b,m,{payload:o,closeOnClick:l,closeDelay:x}),T=LO(),{activeIdRef:E,delayRef:D,isInstantPhase:O,hasProvider:k}=Ya(y,{open:v}),A=xc(y);m.useSyncedValue(`isInstantPhase`,O);let j=m.useState(`disabled`),M=s??j,N=Ba(M),P=m.useState(`trackCursorAxis`),F=m.useState(`disableHoverablePopup`),I=g.useRef(!1),L=Ke(),R=g.useRef(void 0);function z(){return k&&E.current!=null?0:c??T??600}function B(e){let t=b.current;if(!t||!e)return!1;let n=BO(e);return n!==null&&n!==t&&J(t,n)}function V(e){let t=B(e);return I.current=t,t&&(A.openChangeTimeout.clear(),A.restTimeout.clear(),A.restTimeoutPending=!1,L.clear()),t}let H=wc(y,{enabled:!M,mouseOnly:!0,move:!1,handleClose:!F&&P!==`both`?Vc():null,restMs:z,delay(){return u==null&&k?{close:Ua(D.current,`close`)}:{close:x}},triggerElementRef:b,isActiveTrigger:_,isClosing:()=>m.select(`transitionStatus`)===`ending`,shouldOpen(){return!I.current}}),U=gc(y,{enabled:!M}).reference,ee=e=>{let t=I.current,n=zO(e),r=V(n),i=b.current,a=i&&n&&J(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,ja(_a,e));return}if(t&&!r&&a&&!N.current&&!m.select(`open`)&&i&&Qt(R.current)){let t=()=>{!I.current&&!N.current&&!m.select(`open`)&&m.setOpen(!0,ja(_a,e,i))},n=z();n===0?(L.clear(),t()):L.start(n,t)}},W=m.useState(`triggerProps`,w);return Hr(`button`,e,{state:{open:v},ref:[t,C,b],props:[H,U,w||P!==`none`?W:void 0,{onMouseOver(e){ee(e.nativeEvent)},onFocus(e){B(zO(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){I.current=!1,L.clear(),R.current=void 0},onPointerEnter(e){R.current=e.pointerType},onPointerDown(e){R.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[Lt]:M?``:void 0,[RO]:M?void 0:``},f],stateAttributesMapping:Nt})}),HO=g.createContext(void 0);function UO(){let e=g.useContext(HO);if(e===void 0)throw Error(S(70));return e}var WO=g.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return kO().useState(`mounted`)||n?(0,W.jsx)(HO.Provider,{value:n,children:(0,W.jsx)(Ra,{ref:t,...r})}):null}),GO=g.createContext(void 0);function KO(){let e=g.useContext(GO);if(e===void 0)throw Error(S(71));return e}var qO=g.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=pi,style:_,...v}=e,y=kO(),b=UO(),x=y.useState(`open`),S=y.useState(`mounted`),C=y.useState(`trackCursorAxis`),w=y.useState(`disableHoverablePopup`),T=y.useState(`floatingRootContext`),E=y.useState(`instantType`),D=y.useState(`transitionStatus`),O=rl({anchor:i,positionMethod:a,floatingRootContext:T,mounted:S,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:b,collisionAvoidance:h,adaptiveOrigin:y.useState(`adaptiveOrigin`)}),k=sl(e,g.useMemo(()=>({open:x,side:O.side,align:O.align,anchorHidden:O.anchorHidden,instant:C===`none`?E:`tracking-cursor`}),[x,O.side,O.align,O.anchorHidden,C,E]),{styles:O.positionerStyles,transitionStatus:D,props:v,refs:[t,y.useStateSetter(`positionerElement`)],hidden:!S,inert:!x||C===`both`||w});return(0,W.jsx)(GO.Provider,{value:O,children:k})}),JO=g.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=kO(),{side:s,align:c}=KO(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);ai({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),Sc(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return Hr(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[Ws,f,ol(d),a],stateAttributesMapping:It})}),YO=g.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=kO(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=KO();return Hr(`div`,e,{state:{open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:Ft})});function XO(e){return(0,W.jsx)(PO,{...e})}function ZO(e){return(0,W.jsx)(VO,{"data-slot":`tooltip-trigger`,...e})}function QO({className:e,arrow:t=!0,children:n,...r}){let{positioner:i,portal:a,popup:o}=bh(r);return(0,W.jsx)(WO,{...a,children:(0,W.jsx)(qO,{side:`top`,align:`center`,alignOffset:0,sideOffset:t?8:4,...i,className:Z(`isolate z-50`,i.className),children:(0,W.jsxs)(JO,{"data-slot":`tooltip-content`,className:Z(`bg-background-inverse text-foreground-inverse rounded-xs px-3 py-1.5 text-xs shadow-md`,`motion-safe:origin-(--transform-origin) motion-safe:transition-[opacity,scale] motion-safe:duration-200 motion-safe:ease-[cubic-bezier(0.175,0.885,0.32,1.5)]`,`data-starting-style:motion-safe:scale-90 data-starting-style:motion-safe:opacity-0`,`data-ending-style:motion-safe:scale-95 data-ending-style:motion-safe:opacity-0 data-ending-style:motion-safe:duration-100 data-ending-style:motion-safe:ease-out`,`data-instant:motion-safe:transition-none`,e),...o,children:[n,t&&(0,W.jsx)(YO,{"data-slot":`tooltip-arrow`,className:Z(`bg-background-inverse fill-background-inverse size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px]`,`data-[side=top]:-bottom-2.5`,`data-[side=bottom]:top-1`,`data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2`,`data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2`,`data-[side=inline-start]:-inset-e-1 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-translate-y-1/2`,`data-[side=inline-end]:-inset-s-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-translate-y-1/2`)})]})})})}function $O({tone:e}){return(0,W.jsx)(`span`,{className:fg(`inline-block size-2 shrink-0 rounded-full`,pg[e]),"aria-hidden":!0})}function ek({label:e,hint:t,labelExtra:n,tone:r,mono:i,nowrap:a,children:o}){return(0,W.jsxs)(`div`,{className:fg(`flex justify-between gap-4 border-b border-border-muted py-2 last:border-b-0`,a?`items-center whitespace-nowrap`:`items-baseline`),children:[(0,W.jsx)(`dt`,{className:a?`shrink-0 text-xs text-foreground-muted`:`min-w-[5.5rem] flex-1 text-sm text-foreground-muted`,children:t||n?(0,W.jsxs)(`span`,{className:`inline-flex items-center gap-1`,children:[e,n,t?(0,W.jsxs)(XO,{children:[(0,W.jsx)(ZO,{delay:250,render:(0,W.jsx)(`button`,{type:`button`,"aria-label":t,title:t,className:`shrink-0 cursor-pointer text-foreground-muted transition-colors duration-200 hover:text-foreground-strong focus-visible:outline-none motion-reduce:transition-none`,children:(0,W.jsx)(EO,{})})}),(0,W.jsx)(QO,{className:`max-w-72`,children:(0,W.jsx)(`p`,{children:t})})]}):null]}):e}),(0,W.jsx)(`dd`,{className:fg(`text-right text-sm`,a?`shrink-0 whitespace-nowrap text-xs`:`min-w-0 max-w-[62%] break-words`,i?`font-mono text-xs text-foreground-strong`:`text-foreground`,r&&mg[r]),children:o})]})}var tk=`[&>div]:min-h-9`,nk=`[&>div]:min-h-12 [&>div]:py-0 [&>div]:items-center`;function rk({children:e,className:t}){return(0,W.jsx)(`dl`,{className:fg(`mt-1`,t),children:e})}function ik({tone:e,text:t,detail:n}){return(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-center justify-end gap-x-2`,children:[(0,W.jsx)($O,{tone:e}),(0,W.jsx)(`span`,{children:t}),n?(0,W.jsx)(`span`,{className:`line-clamp-2 text-xs text-foreground-muted`,title:n,children:n}):null]})}var ak=`M4.3 12.55 L9.25 17.5 L19.7 6.5`,ok={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0};async function sk(e){if(typeof e==`string`)return e;if(typeof e==`function`)return await e();let t=e.current;if(!t)throw Error("CopyButton: the `value` ref is not attached to an element");return t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?t.value:t.textContent??``}async function ck(e){if(navigator.clipboard?.writeText){await navigator.clipboard.writeText(e);return}let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();try{if(!document.execCommand(`copy`))throw Error(`Copying to clipboard is not supported`)}finally{t.remove()}}function lk({value:e,timeout:t=2e3,label:n=`Copy`,copiedLabel:r=`Copied`,onCopy:i,onCopyError:a,icon:o,onClick:s,variant:c=`ghost`,size:l=`icon-sm`,className:u,children:d,...f}){let[p,m]=g.useState(!1),h=g.useRef(void 0);return g.useEffect(()=>()=>clearTimeout(h.current),[]),(0,W.jsxs)(Q,{"data-slot":`copy-button`,"data-copied":p||void 0,type:`button`,variant:c,size:l,"aria-label":p?r:n,onClick:async n=>{if(s?.(n),n.defaultPrevented)return;let r;try{r=await sk(e),await ck(r)}catch(e){a?.(e);return}i?.(r),m(!0),clearTimeout(h.current),h.current=setTimeout(()=>m(!1),t)},className:Z(`group/copy`,u),...f,children:[(0,W.jsxs)(`span`,{"data-icon":d==null?void 0:`start`,className:`grid place-items-center *:[grid-area:1/1]`,children:[(0,W.jsx)(`span`,{className:Z(`grid place-items-center transition-[opacity,scale] delay-150 duration-150 ease-out group-data-copied/copy:delay-0`,`group-data-copied/copy:scale-50 group-data-copied/copy:opacity-0`,`motion-reduce:transition-none`),children:o??(0,W.jsx)(`svg`,{...ok,children:(0,W.jsx)(`path`,{d:`M4.012 16.737c-.307-.175-.562-.427-.739-.732S3.001 15.353 3 15V5c0-1.1.9-2 2-2h10c.75 0 1.158.385 1.5 1M7 9.667c0-.707.281-1.386.781-1.886S8.96 7 9.667 7h8.666c.35 0 .697.069 1.021.203s.618.33.865.578.444.542.578.865A2.67 2.67 0 0 1 21 9.667v8.666a2.67 2.67 0 0 1-.781 1.886 2.67 2.67 0 0 1-1.886.781H9.667a2.67 2.67 0 0 1-1.021-.203c-.324-.134-.618-.331-.865-.578s-.444-.542-.578-.865S7 18.683 7 18.333V9.667z`})})}),(0,W.jsx)(`svg`,{...ok,children:(0,W.jsx)(`path`,{d:ak,pathLength:1,strokeDasharray:`1 2`,className:Z(`[stroke-dashoffset:1.02] group-data-copied/copy:[stroke-dashoffset:0]`,`transition-[stroke-dashoffset] duration-200 ease-in`,`group-data-copied/copy:delay-100 group-data-copied/copy:duration-350 group-data-copied/copy:ease-out`,`motion-reduce:transition-none`)})})]}),typeof d==`string`&&p?r:d,(0,W.jsx)(`span`,{role:`status`,className:`sr-only`,children:p?r:``})]})}function uk({className:e}){return(0,W.jsxs)(`svg`,{viewBox:`0 0 16 16`,className:e??`size-3.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.3`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6.2`}),(0,W.jsx)(`path`,{d:`M8 4.8v4.4`}),(0,W.jsx)(`path`,{d:`M8 11.4h.01`})]})}function dk({issue:e}){let[t,n]=(0,g.useState)(!1),r=uO();return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`button`,{type:`button`,"aria-label":e.title,title:e.title,className:`shrink-0 cursor-pointer rounded text-error transition-colors duration-200 hover:text-foreground-strong focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none`,onClick:()=>n(!0),children:(0,W.jsx)(uk,{})}),(0,W.jsx)(hD,{open:t,onOpenChange:n,children:(0,W.jsxs)(gD,{className:`max-w-md`,closeLabel:$(`panel.common.close`),children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:e.title})}),(0,W.jsx)(bD,{children:(0,W.jsx)(`p`,{className:`whitespace-pre-wrap break-all text-sm leading-6 text-foreground-muted`,children:e.detail})}),(0,W.jsxs)(xD,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(lk,{value:e.detail,label:$(`panel.common.copy`),copiedLabel:$(`panel.links.sponsorCopied`),size:`sm`,variant:`outline`,onCopyError:()=>r(`error`,$(`panel.onboarding.copiedFailed`)),children:$(`panel.common.copy`)}),(0,W.jsx)(Q,{variant:`ghost`,onClick:()=>n(!1),children:$(`panel.common.close`)})]})]})})]})}function fk(e){return e.available?e.enabled?e.error?`panel.tailcat.error`:e.ready?`panel.tailcat.ready`:`panel.tailcat.starting`:`panel.tailcat.disabled`:`panel.tailcat.unavailableShort`}function pk(e){return e.available?e.enabled?e.path===`direct`&&e.active?`panel.p2p.open`:e.error?`panel.p2p.error`:e.path===`failed`?`panel.p2p.blocked`:e.ready?e.path===`waiting`?`panel.p2p.waiting`:`panel.p2p.punching`:e.started?`panel.p2p.punching`:`panel.p2p.waiting`:`panel.p2p.disabled`:`panel.p2p.unavailableShort`}function mk(e){return!e.available||!e.enabled?`off`:e.path===`direct`&&e.active?`ok`:e.error||e.path===`failed`?`error`:`warn`}function hk(e){return!e.available||!e.enabled?`off`:e.error?`error`:e.ready?`ok`:`warn`}function gk({status:e,addressBook:t,busy:n,onStopFrp:r,onManageTailcat:i,onManageP2P:a,restartError:o}){let s=e.tunnel,c=e.tailcat??null,l=e.p2p??null,u=(t?.manualTcp??``).trim(),d=e.frp??null,f=d?.enabled===!0||d?.enabled===void 0&&d?.configPresent===!0,p=d?.configPresent===!0||f||!!(d?.running||d?.starting||d?.retrying),m,h;return d?.running?(m=`ok`,h=$(`panel.connection.tcpRunning`)):d?.starting||d?.retrying?(m=`warn`,h=$(`panel.frp.retrying`)):d?.error?(m=`error`,h=$(`panel.connection.tcpFailed`)):f?(m=`warn`,h=$(`panel.connection.tcpEnabledNotRunning`)):p?(m=`off`,h=$(`panel.connection.tcpSet`)):u?(m=`ok`,h=$(`panel.connection.tcpManual`)):(m=`off`,h=$(`panel.connection.tcpOff`)),(0,W.jsxs)(cD,{frame:`solid`,children:[(0,W.jsxs)(rk,{children:[(0,W.jsxs)(ek,{label:$(`panel.connection.platform`),children:[e.platform,` `,e.osVersion,` · `,e.arch]}),(0,W.jsx)(ek,{label:$(`panel.connection.tunnel`),tone:gg(s.state),labelExtra:s.error?(0,W.jsx)(dk,{issue:{title:$(`panel.connection.tunnel`),detail:s.error}}):void 0,children:(0,W.jsx)(ik,{tone:gg(s.state),text:_g(s.state)})}),c?(0,W.jsx)(ek,{label:$(`panel.tailcat.title`),tone:hk(c),labelExtra:!c.available||c.error?(0,W.jsx)(dk,{issue:{title:$(`panel.tailcat.title`),detail:c.available?c.error??``:$(`panel.tailcat.unavailable`)}}):void 0,children:(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-center justify-end gap-x-2`,children:[(0,W.jsx)(ik,{tone:hk(c),text:$(fk(c))}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,onClick:i,children:$(`panel.tailcat.manage`)})]})}):null,l?(0,W.jsx)(ek,{label:$(`panel.p2p.title`),tone:mk(l),labelExtra:!l.available||l.error?(0,W.jsx)(dk,{issue:{title:$(`panel.p2p.title`),detail:l.available?l.error??``:$(`panel.p2p.unavailable`)}}):void 0,children:(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-center justify-end gap-x-2`,children:[(0,W.jsx)(ik,{tone:mk(l),text:$(pk(l))}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,onClick:a,children:$(`panel.p2p.manage`)})]})}):null,(0,W.jsx)(ek,{label:$(`panel.connection.tcp`),tone:m,labelExtra:d?.error?(0,W.jsx)(dk,{issue:{title:$(`panel.connection.tcp`),detail:d.error}}):void 0,children:(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-center justify-end gap-x-2`,children:[(0,W.jsx)(ik,{tone:m,text:h}),d&&(d.enabled||d.running||d.starting||d.retrying||d.enabled===void 0&&d.configPresent)?(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:n!==``,onClick:r,children:$(`panel.frp.stop`)}):null]})}),(0,W.jsx)(ek,{label:$(`panel.connection.sidecar`),labelExtra:o?(0,W.jsx)(dk,{issue:{title:$(`panel.connection.sidecar`),detail:o}}):void 0,children:(0,W.jsx)(ik,{tone:o||e.sidecar.state!==`healthy`?`error`:`ok`,text:o?$(`panel.pairing.sidecarRestartFailed`):bg(e.sidecar.state),...!o&&e.sidecar.restarts>0?{detail:$(`panel.connection.sidecarRestarts`,{count:e.sidecar.restarts})}:{}})}),(0,W.jsx)(ek,{label:$(`panel.connection.mirror`),labelExtra:e.mirror.error?(0,W.jsx)(dk,{issue:{title:$(`panel.connection.mirror`),detail:e.mirror.error}}):void 0,children:(0,W.jsx)(ik,{tone:e.mirror.ok?`ok`:e.mirror.error?`error`:`warn`,text:e.mirror.ok?$(`panel.connection.mirrorOk`):$(`panel.connection.mirrorOff`),detail:hg(e.mirror.pushedAt)})})]}),e.lan.recovery?.state===`awaiting-device`?(0,W.jsx)(rk,{children:(0,W.jsx)(ek,{label:$(`panel.connection.lan`),children:(0,W.jsx)(ik,{tone:`warn`,text:$(`panel.connection.lanWaiting`)})})}):e.lan.recovery?.state===`verified`?(0,W.jsx)(rk,{children:(0,W.jsx)(ek,{label:$(`panel.connection.lan`),children:(0,W.jsx)(ik,{tone:`ok`,text:$(`panel.connection.lanVerified`)})})}):null,e.lan.enabled&&(e.lan.error||e.lan.discovery?.error)?(0,W.jsx)(rk,{children:(0,W.jsx)(ek,{label:$(`panel.connection.lan`),labelExtra:(0,W.jsx)(dk,{issue:{title:$(`panel.connection.lan`),detail:(e.lan.error||e.lan.discovery?.error)??``}}),children:(0,W.jsx)(ik,{tone:`warn`,text:$(`panel.lan.error`)})})}):null,(0,W.jsx)(_k,{status:e})]})}function _k({status:e}){let t=e.tunnel.admissionHint;return t?t===`register-secret`?(0,W.jsx)(rk,{children:(0,W.jsx)(ek,{label:$(`panel.connection.relayNeedsSecret`),children:(0,W.jsx)(ik,{tone:`warn`,text:$(`panel.connection.relayNeedsSecret`),detail:$(`panel.connection.relayNeedsSecretBody`)})})}):(0,W.jsx)(rk,{children:(0,W.jsx)(ek,{label:$(`panel.connection.relayRejected`),children:(0,W.jsx)(ik,{tone:`warn`,text:$(`panel.connection.relayRejected`),detail:$(`panel.connection.relayRejectedBody`)})})}):null}var vk=`dsh-mobile-plugin:panel-action`;function yk(){return typeof window<`u`&&window.parent!==window}function bk(e){yk()&&window.parent.postMessage({type:vk,action:e},`*`)}function xk(){return(0,W.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`size-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`path`,{d:`M13 5H5.8A1.8 1.8 0 0 0 4 6.8v11.4A1.8 1.8 0 0 0 5.8 20h11.4a1.8 1.8 0 0 0 1.8-1.8V11`}),(0,W.jsx)(`path`,{d:`M14 4h6v6`}),(0,W.jsx)(`path`,{d:`M20 4l-8.5 8.5`})]})}function Sk(){return(0,W.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`size-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`path`,{d:`M6 6l12 12`}),(0,W.jsx)(`path`,{d:`M18 6L6 18`})]})}function Ck(){return yk()?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(Q,{variant:`ghost`,size:`icon-md`,"aria-label":$(`panel.console.openBrowser`),title:$(`panel.console.openBrowser`),onClick:()=>bk(`open-browser`),children:(0,W.jsx)(xk,{})}),(0,W.jsx)(Q,{variant:`ghost`,size:`icon-md`,"aria-label":$(`panel.common.close`),title:$(`panel.common.close`),onClick:()=>bk(`close`),children:(0,W.jsx)(Sk,{})})]}):null}function wk(e){return Lf(`alert-dialog`,e)}var Tk=class extends Pp{};function Ek(){return new Tk}var Dk=Object.assign(function(e){return(0,W.jsx)(wk,{...e})},{createHandle:Ek});function Ok({className:e,children:t,backdrop:n=!0,frame:r=!0,backdropProps:i,viewportProps:a,...o}){let{portal:s,popup:c}=zp(o),l=i?.forceRender===!0,u=r&&n;return(0,W.jsxs)(gf,{...s,children:[n&&(0,W.jsx)(dD,{"data-slot":`alert-dialog-backdrop`,...i,className:Z(`fixed inset-0 z-50 bg-black/30 backdrop-blur-sm supports-[-webkit-touch-callout:none]:absolute`,`motion-safe:transition-opacity motion-safe:duration-250 motion-safe:ease-out`,`data-ending-style:motion-safe:opacity-0 data-starting-style:motion-safe:opacity-0`,i?.className)}),(0,W.jsx)(Qf,{"data-slot":`alert-dialog-viewport`,...a,className:Z(`fixed inset-0 z-50 flex items-center justify-center overflow-hidden p-4`,a?.className),children:(0,W.jsx)(pD,{"data-slot":`alert-dialog-popup`,...u?{"data-frame":``}:{},className:Z(`group/alert-dialog-popup relative flex max-h-full min-h-0 w-100 max-w-full flex-col`,`rounded-2xl border`,u?Z(`border-white/15 bg-white/10 p-1.5 backdrop-blur-sm`,!l&&`data-nested:border-border-overlay data-nested:bg-background data-nested:p-0 data-nested:shadow-2xl data-nested:backdrop-blur-none`):`bg-background border-border-overlay`,!u&&`shadow-2xl`,`isolate transform-gpu outline-none`,`motion-safe:transition-[opacity,scale] motion-safe:duration-250 motion-safe:ease-[cubic-bezier(0.175,0.885,0.32,1.5)]`,`data-starting-style:motion-safe:scale-95 data-starting-style:motion-safe:opacity-0`,`data-ending-style:motion-safe:scale-95 data-ending-style:motion-safe:opacity-0 data-ending-style:motion-safe:duration-100 data-ending-style:motion-safe:ease-out`,e),...c,children:(0,W.jsx)(`div`,{"data-slot":`alert-dialog-content`,className:Z(`flex min-h-0 flex-col overflow-hidden not-has-[>[data-slot=alert-dialog-footer]]:pb-6 not-has-[>[data-slot=alert-dialog-header]]:pt-6 [&>[data-slot=alert-dialog-header]+[data-slot=alert-dialog-footer]]:pt-0`,u&&Z(`bg-background rounded-[calc(var(--radius-2xl)*5/6)]`,!l&&`group-data-nested/alert-dialog-popup:rounded-none group-data-nested/alert-dialog-popup:bg-transparent`)),children:t})})})]})}function kk({className:e,...t}){return(0,W.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:Z(`flex shrink-0 flex-col gap-2 p-6`,e),...t})}function Ak({className:e,...t}){return(0,W.jsx)(Uf,{"data-slot":`alert-dialog-title`,className:Z(`text-foreground-intense text-xl font-semibold`,e),...t})}function jk({className:e,...t}){return(0,W.jsx)(Nd,{"data-slot":`alert-dialog-description`,className:Z(`text-foreground-muted text-sm`,e),...t})}function Mk({className:e,...t}){return(0,W.jsx)(`div`,{"data-slot":`alert-dialog-body`,className:Z(`min-h-0 flex-1 px-6`,e),...t})}function Nk({className:e,...t}){return(0,W.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:Z(`flex flex-col-reverse gap-2 p-6 sm:flex-row sm:justify-end`,e),...t})}function Pk(e,t){if(!e)return``;let n=Math.max(0,t-e);if(n<6e4)return $(`panel.devices.justNow`);let r=Math.floor(n/6e4);if(r<60)return $(`panel.devices.minutesAgo`,{count:r});let i=Math.floor(r/60);return i<24?$(`panel.devices.hoursAgo`,{count:i}):$(`panel.devices.daysAgo`,{count:Math.floor(i/24)})}function Fk(e,t){return e?Ik(e,t)?$(`panel.devices.online`):Pk(e,t):$(`panel.devices.noRecord`)}function Ik(e,t){return e>0&&t-e<=3e5}function Lk(e){return{ios:`iOS`,android:`Android`,linux:`Linux`,darwin:`macOS`,win32:`Windows`}[e]??(e||$(`panel.devices.unknownPlatform`))}function Rk(e){return $(e===`relay`?`panel.devices.channelRelay`:e===`lan`?`panel.devices.channelLan`:e===`tunnel`?`panel.devices.channelTunnel`:e===`p2p`?`panel.devices.channelP2p`:e===`direct`?`panel.devices.channelDirect`:e===`ipv6`?`panel.devices.channelIpv6`:e===`tcp`?`panel.devices.channelTcp`:e===`mux`?`panel.devices.channelMux`:`panel.devices.channelUnknown`)}function zk(e){let t=e?.model||e?.name||$(`panel.devices.unknown`);return e?.suffix?`${t} · ${e.suffix}`:t}function Bk(){return(0,W.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`size-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`path`,{d:`M9 15l6-6`}),(0,W.jsx)(`path`,{d:`M7 17l-1 1a3 3 0 0 1-4-4l2-2a3 3 0 0 1 4 0`}),(0,W.jsx)(`path`,{d:`M17 7l1-1a3 3 0 0 1 4 4l-2 2a3 3 0 0 1-4 0`})]})}function Vk({busy:e,fill:t=!1}){let n=uO(),[r,i]=(0,g.useState)(null),[a,o]=(0,g.useState)(null),[s,c]=(0,g.useState)(!1),l=(0,g.useRef)(!1),u=(0,g.useRef)(null),[d,f]=(0,g.useState)(!1),[p,m]=(0,g.useState)(null),[h,_]=(0,g.useState)(!1),[v,y]=(0,g.useState)(!1),[b,x]=(0,g.useState)(!1),S=(0,g.useRef)(0),C=(0,g.useCallback)(async()=>{let e=++S.current;_(!1);try{let t=await rO(`/api/relay/devices?history=1`);e===S.current&&m(t)}catch{e===S.current&&_(!0)}},[]),w=(0,g.useCallback)(async()=>{try{let e=await rO(`/api/relay/devices`),t=e.revokedCount??0,n=u.current!==null&&u.current!==t;u.current=t,i(e),n&&l.current&&C()}catch{}},[C]);(0,g.useEffect)(()=>{let e=()=>{c_()&&w()};e();let t=window.setInterval(e,3e3);return document.addEventListener(`visibilitychange`,e),()=>{window.clearInterval(t),document.removeEventListener(`visibilitychange`,e)}},[w]);let T=r?.devices??[],E=r?.serverNow??0,D=r?.revokedCount??0;(0,g.useEffect)(()=>{l.current=d},[d]),(0,g.useEffect)(()=>{d&&C()},[d,C]);function O(e){let t=Pk(e.revokedAt||e.expiresAt,E)||`—`;return $(e.kind===`revoked`?`panel.devices.historyRevoked`:`panel.devices.historyExpired`,{time:t})}let k=(p?.devices??[]).filter(e=>e.kind===`revoked`||e.kind===`expired`),A=h||(p?.devices.length??0)>0&&k.length===0;async function j(e){c(!0);try{let t=await iO(`/api/relay/devices/revoke`,{deviceId:e.deviceId});o(null),await w(),d&&C(),n(`soft`,$(t.closed>0?`panel.devices.unbindDoneClosed`:`panel.devices.unbindDone`,{name:zk(e),count:t.revoked,closed:t.closed}))}catch(e){n(`error`,$(`panel.devices.unbindFailed`,{message:cO(e)}))}finally{c(!1)}}async function M(){x(!0);try{let e=await iO(`/api/relay/devices/history/clear`,{});y(!1),await w(),d&&C(),n(`soft`,$(`panel.devices.historyClearDone`,{count:e.cleared}))}catch(e){n(`error`,$(`panel.devices.historyClearFailed`,{message:cO(e)}))}finally{x(!1)}}return T.length===0&&D===0?null:(0,W.jsxs)(cD,{frame:`solid`,className:t?`flex h-full min-h-0 flex-col`:void 0,children:[(0,W.jsxs)(`div`,{className:t?`hvscroll mt-1 min-h-0 flex-1`:`hscroll mt-1`,children:[(0,W.jsx)(`div`,{className:`min-w-max`,children:T.map(e=>{let t=Ik(e.lastSeenAt,E);return(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-2 border-b border-border-muted py-2 whitespace-nowrap last:border-b-0`,children:[(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2`,children:[(0,W.jsx)(`span`,{className:`text-sm text-foreground-strong`,children:zk(e)}),(0,W.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1 whitespace-nowrap text-xs text-foreground-muted`,children:[(0,W.jsx)(`span`,{children:Lk(e.platform)}),(0,W.jsx)(`span`,{"aria-hidden":!0,children:`·`}),(0,W.jsx)(`span`,{children:Rk(e.lastChannel)}),(0,W.jsx)(`span`,{"aria-hidden":!0,children:`·`}),t?(0,W.jsx)($O,{tone:`ok`}):null,(0,W.jsx)(`span`,{children:Fk(e.lastSeenAt,E)})]})]}),(0,W.jsx)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:(0,W.jsx)(Q,{variant:`ghost`,size:`icon-md`,"aria-label":$(`panel.devices.unbind`),title:$(`panel.devices.unbind`),onClick:()=>o(e),children:(0,W.jsx)(Bk,{})})})]},e.deviceId)})}),(0,W.jsxs)(`div`,{className:`mt-1 border-t border-border-muted pt-2`,children:[(0,W.jsxs)(`div`,{className:`flex w-full items-center justify-between gap-2`,children:[(0,W.jsxs)(`button`,{type:`button`,"aria-expanded":d,className:`flex min-w-0 cursor-pointer items-center gap-2 text-xs text-foreground-muted focus-visible:outline-none`,onClick:()=>f(e=>!e),children:[(0,W.jsxs)(`span`,{className:`flex items-center gap-2`,children:[$(`panel.devices.historyTitle`),(0,W.jsx)(nD,{variant:`secondary`,size:`xs`,children:$(`panel.devices.historyCount`,{count:D})})]}),(0,W.jsx)(`svg`,{viewBox:`0 0 12 12`,className:`size-3 shrink-0 transition-transform ${d?`rotate-90`:``}`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:`m4.5 2.5 3.5 3.5-3.5 3.5`})})]}),D>0?(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,className:`shrink-0`,disabled:b||e!==``,onClick:()=>y(!0),children:$(`panel.devices.historyClear`)}):null]}),d?(0,W.jsxs)(`div`,{className:`mt-2`,children:[k.map(e=>(0,W.jsxs)(`div`,{className:`flex flex-col gap-1 py-2`,children:[(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,W.jsx)(`span`,{className:`text-xs text-foreground`,children:zk(e)}),(0,W.jsxs)(`span`,{className:`text-xs text-foreground-muted`,children:[Lk(e.platform),e.osVersion?` ${e.osVersion}`:``,e.appVersion?$(`panel.devices.appVersion`,{version:e.appVersion}):``]})]}),(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-foreground-muted`,children:[(0,W.jsx)(`span`,{children:$(`panel.devices.historyBoundAt`,{time:Pk(e.boundAt,E)||`—`})}),(0,W.jsx)(`span`,{children:$(`panel.devices.historyLastSeen`,{time:e.lastSeenAt?Pk(e.lastSeenAt,E):$(`panel.devices.noRecord`)})}),(0,W.jsx)(`span`,{children:O(e)})]})]},e.deviceId)),A?(0,W.jsx)(`p`,{className:`py-2 text-xs text-foreground-muted`,children:$(`panel.devices.historyFailed`)}):null,(0,W.jsx)(`p`,{className:`py-2 text-xs text-foreground-muted`,children:$(`panel.devices.historyRetention`,{days:30})})]}):null]})]}),(0,W.jsx)(Dk,{open:a!==null,onOpenChange:e=>{!e&&!s&&o(null)},children:(0,W.jsxs)(Ok,{children:[(0,W.jsx)(kk,{children:(0,W.jsx)(Ak,{children:$(`panel.devices.unbindTitle`)})}),(0,W.jsxs)(Mk,{className:`flex flex-col gap-2 text-sm`,children:[(0,W.jsx)(jk,{children:$(`panel.devices.unbindConfirm`,{name:zk(a)})}),(0,W.jsx)(`p`,{className:`text-foreground-muted`,children:$(a?.legacy?`panel.devices.effectLegacy`:`panel.devices.effectIdentity`)})]}),(0,W.jsxs)(Nk,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(Q,{variant:`outline`,disabled:s,onClick:()=>o(null),children:$(`panel.devices.cancel`)}),(0,W.jsx)(Q,{variant:`destructive`,disabled:s,onClick:()=>{a&&j(a)},children:s?(0,W.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,W.jsx)(BE,{}),$(`panel.devices.unbinding`)]}):$(`panel.devices.unbind`)})]})]})}),(0,W.jsx)(Dk,{open:v,onOpenChange:e=>{!e&&!b&&y(!1)},children:(0,W.jsxs)(Ok,{children:[(0,W.jsx)(kk,{children:(0,W.jsx)(Ak,{children:$(`panel.devices.historyClearTitle`)})}),(0,W.jsxs)(Mk,{className:`flex flex-col gap-2 text-sm`,children:[(0,W.jsx)(jk,{children:$(`panel.devices.historyClearConfirm`,{count:D})}),(0,W.jsx)(`p`,{className:`text-foreground-muted`,children:$(`panel.devices.historyClearHint`)})]}),(0,W.jsxs)(Nk,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(Q,{variant:`outline`,disabled:b,onClick:()=>y(!1),children:$(`panel.devices.cancel`)}),(0,W.jsx)(Q,{variant:`destructive`,disabled:b,onClick:()=>void M(),children:b?(0,W.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,W.jsx)(BE,{}),$(`panel.devices.historyClearing`)]}):$(`panel.devices.historyClear`)})]})]})})]})}var Hk=`data:image/png;base64,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`,Uk=`https://github.com/WNLUO/dsh-mobile-server`,Wk=`https://github.com/WNLUO/dsh-mobile-plugin`,Gk=[{platform:`android`,channels:[{nameKey:`panel.links.distPlatform`,hintKey:`panel.links.domesticRecommended`,url:`https://app.wnluo.com/api/public/apps/14/download-latest`},{name:`GitHub`,hintKey:`panel.links.overseasRecommended`,url:`https://github.com/WNLUO/dsh-mobile-plugin/releases/latest/download/ai-hub-android.apk`}]},{platform:`apple`,channels:[{name:`App Store`,hintKey:`panel.links.appStore`,url:`https://apps.apple.com/cn/app/ai-hub/id6821681438`},{name:`TestFlight`,hintKey:`panel.links.testFlight`,url:`https://testflight.apple.com/join/4fn5PCMD`}]}],Kk=[{nameKey:`panel.links.publicRelay`,url:`https://ai-hub-de-1.wnluo.com`}];Kk[0].url;function qk(e){let t=e=>e.trim().replace(/\/+$/,``),n=t(e);return!!n&&Kk.some(e=>t(e.url)===n)}function Jk(e){return e.name===`GitHub`?(0,W.jsx)(tA,{}):e.name===`App Store`||e.name===`TestFlight`?(0,W.jsx)(eA,{}):(0,W.jsx)(rA,{})}function Yk(e){return e===`android`?(0,W.jsx)($k,{}):(0,W.jsx)(eA,{})}function Xk({channel:e}){return(0,W.jsxs)(`a`,{className:`flex items-center gap-3 rounded-lg border border-border-muted px-3 py-2.5 transition-colors hover:bg-background-muted`,href:e.url,target:`_blank`,rel:`noreferrer noopener`,children:[(0,W.jsx)(`span`,{className:`flex size-9 shrink-0 items-center justify-center rounded-lg bg-background-muted text-foreground`,children:Jk(e)}),(0,W.jsxs)(`span`,{className:`flex min-w-0 flex-col gap-0.5`,children:[(0,W.jsx)(`span`,{className:`text-sm text-foreground-intense`,children:e.name??(e.nameKey?$(e.nameKey):``)}),(0,W.jsx)(`span`,{className:`truncate text-xs text-foreground-muted`,children:$(e.hintKey)})]})]})}function Zk(){return(0,W.jsx)(`div`,{className:`grid grid-cols-1 gap-4 sm:grid-cols-2`,children:Gk.map(e=>(0,W.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-center gap-1.5 pb-0.5 text-xs text-foreground-muted`,children:[Yk(e.platform),(0,W.jsx)(`span`,{children:$(e.platform===`android`?`panel.links.android`:`panel.links.apple`)})]}),e.channels.map(e=>(0,W.jsx)(Xk,{channel:e},e.url))]},e.platform))})}function Qk({size:e=`md`,variant:t=`outline`,className:n}){let[r,i]=(0,g.useState)(!1),a=(0,g.useRef)(null);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(Q,{variant:t,size:e,className:n,onClick:()=>i(!0),children:[(0,W.jsx)(nA,{}),$(`panel.download.open`)]}),(0,W.jsx)(hD,{open:r,onOpenChange:i,children:(0,W.jsxs)(gD,{className:`max-w-xl`,closeLabel:$(`panel.common.close`),initialFocus:a,children:[(0,W.jsx)(_D,{children:(0,W.jsxs)(vD,{className:`flex flex-wrap items-center gap-2.5 pr-8`,children:[(0,W.jsx)(`img`,{src:Hk,alt:``,className:`size-8 rounded-lg bg-white p-0.5`}),(0,W.jsx)(`span`,{className:`min-w-0 break-words`,children:$(`panel.download.title`)})]})}),(0,W.jsx)(`div`,{ref:a,tabIndex:-1,className:`outline-none`,children:(0,W.jsx)(bD,{children:(0,W.jsx)(Zk,{})})})]})})]})}function $k(){return(0,W.jsx)(`svg`,{viewBox:`0 0 24 24`,className:`size-3.5 stroke-0`,fill:`currentColor`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:`M17.523 15.3414c-.5511 0-.9993-.4486-.9993-.9997s.4483-.9993.9993-.9993c.5511 0 .9993.4483.9993.9993.0001.5511-.4482.9997-.9993.9997m-11.046 0c-.5511 0-.9993-.4486-.9993-.9997s.4482-.9993.9993-.9993c.551 0 .9993.4483.9993.9993 0 .5511-.4483.9997-.9993.9997m11.4045-6.02 1.9973-3.4592a.416.416 0 0 0-.1521-.5676.416.416 0 0 0-.5676.1521l-2.0223 3.503C15.5902 8.2439 13.8533 7.8508 12 7.8508s-3.5902.3931-5.1367 1.0989L4.841 5.4467a.4161.4161 0 0 0-.5677-.1521.4157.4157 0 0 0-.1521.5676l1.9973 3.4592C2.6889 11.1867.3432 14.6589 0 18.761h24c-.3435-4.1021-2.6892-7.5743-6.1185-9.4396`})})}function eA(){return(0,W.jsx)(`svg`,{viewBox:`0 0 24 24`,className:`size-4 stroke-0`,fill:`currentColor`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:`M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701`})})}function tA(){return(0,W.jsx)(`svg`,{viewBox:`0 0 24 24`,className:`size-[18px] stroke-0`,fill:`currentColor`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`})})}function nA(){return(0,W.jsxs)(`svg`,{viewBox:`0 0 24 24`,className:`size-[18px]`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.85`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`rect`,{x:`5`,y:`2`,width:`14`,height:`20`,rx:`2.5`}),(0,W.jsx)(`path`,{d:`M12 6v9m-3-3 3 3 3-3M10 19h4`})]})}function rA(){return(0,W.jsxs)(`svg`,{viewBox:`0 0 24 24`,className:`size-[18px]`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.85`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`path`,{d:`M12 4v10`}),(0,W.jsx)(`path`,{d:`m8 10.5 4 4 4-4`}),(0,W.jsx)(`path`,{d:`M4 18.5h16`})]})}var iA=`data:image/png;base64,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`,aA=()=>$(`panel.links.wechatQrAlt`);function oA(){return(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`stroke-0`,fill:`currentColor`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:`M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178A1.17 1.17 0 0 1 4.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178 1.17 1.17 0 0 1-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786-1.72 1.428-2.687 3.72-1.78 6.22.942 2.453 3.666 4.229 6.884 4.229.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.047c.134 0 .24-.111.24-.247 0-.06-.023-.12-.038-.177l-.327-1.233a.582.582 0 0 1-.023-.156.49.49 0 0 1 .201-.398C23.024 18.48 24 16.82 24 14.98c0-3.21-2.931-5.837-6.656-6.088V8.89c-.135-.01-.27-.027-.407-.03zm-2.53 3.274c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.97-.982zm4.844 0c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.969-.982z`})})}function sA({compact:e=!1}={}){let[t,n]=(0,g.useState)(!1),r=xg();return r!==`zh-Hans`&&r!==`zh-Hant`?null:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(Q,{variant:`ghost`,size:e?`sm`:`lg`,className:`pointer-events-auto`,onClick:()=>n(!0),children:[(0,W.jsx)(oA,{}),$(`panel.links.joinGroup`)]}),(0,W.jsx)(hD,{open:t,onOpenChange:n,children:(0,W.jsxs)(gD,{className:`max-w-sm`,children:[(0,W.jsx)(vD,{className:`sr-only`,children:$(`panel.links.joinGroup`)}),(0,W.jsx)(bD,{className:`flex justify-center`,children:(0,W.jsx)(`img`,{src:iA,alt:aA(),className:`w-full rounded-md`})})]})})]})}var cA=Uu(``,{variants:{size:{sm:`h-6 gap-0.75 rounded-xs px-2 text-xs has-data-[icon=end]:pe-1.5 has-data-[icon=start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3.5`,md:`h-8 gap-1 rounded-sm px-3 text-sm has-data-[icon=end]:pe-2 has-data-[icon=start]:ps-2 [&_svg:not([class*='size-'])]:size-4`,lg:`h-10 gap-1.25 rounded-md px-3.5 text-base has-data-[icon=end]:pe-2.5 has-data-[icon=start]:ps-2.5 [&_svg:not([class*='size-'])]:size-4.5`}},defaultVariants:{size:`md`}}),lA=g.createContext(null),uA={opacity:0,scale:.85,filter:`blur(8px)`},dA={opacity:0},fA={duration:.28,ease:[.4,0,.2,1]},pA={duration:0},mA={sm:`size-3`,md:`size-3.5`,lg:`size-4`};function hA({className:e,variant:t,size:n,render:r,dismissible:i=!1,open:a,onOpenChange:o,onDismiss:s,closeLabel:c=`Dismiss`,children:l,onClick:u,...d}){let f=g.useContext(lA),p=t??f?.variant??`soft`,m=n??f?.size??`md`,h=_h(),[_,v]=g.useState(!0),y=a!==void 0,b=y?a:_,x=g.useCallback(()=>{y||v(!1),o?.(!1)},[y,o]);g.useEffect(()=>{if(f&&i)return f.register(x)},[f,i,x]);let S=e=>{u?.(e),!e.defaultPrevented&&i&&x()},C=i?(0,W.jsxs)(W.Fragment,{children:[l,(0,W.jsx)(gA,{size:m}),(0,W.jsx)(`span`,{className:`sr-only`,children:c})]}):l,w=$E({defaultTagName:`button`,render:r,state:{variant:p,size:m,dismissible:i},props:Or({"data-slot":`chip`,"data-dismissible":i||void 0,type:r?void 0:`button`,...Bu(d.disabled),className:Z(Gu({variant:p}),cA({size:m}),i&&`group/chip`,e),onClick:S,children:C},d)});return i?(0,W.jsx)(Fw,{features:BT,strict:!0,children:(0,W.jsx)(Ow,{initial:!1,onExitComplete:()=>s?.(),children:b&&(0,W.jsx)(yE.span,{initial:!1,exit:h?dA:uA,transition:h?pA:fA,className:`inline-flex align-middle`,children:w},`chip`)})}):w}function gA({size:e}){return(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,"data-slot":`chip-close-icon`,"data-icon":`end`,className:Z(mA[e],`opacity-60 transition-opacity duration-200 group-hover/chip:opacity-100 motion-reduce:transition-none`),children:(0,W.jsx)(`path`,{d:`M11.523 3.522c.264-.264.691-.264.955 0s.264.691 0 .955L8.955 8l3.522 3.522c.264.264.264.691 0 .955s-.691.264-.955 0L8 8.955l-3.522 3.522c-.264.264-.691.264-.955 0s-.264-.691 0-.955L7.045 8 3.522 4.478c-.264-.264-.264-.691 0-.955s.691-.264.955 0L8 7.045l3.523-3.522z`})})}var _A=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAewAAAHsAQAAAAA4UaPNAAACeUlEQVR42u2dQW7DMAwEhX5A//+lfsA2sU0umRg9BChKYQwfDNlzEVbKkqKUYZ9ca4CDg4OD/398+DXt5360zOvtcT+vn/flY1tf46MLHPzv8REKfz48Wi6dn89P8R/PPihOCs2Dt9V8muTLW/8JuL6Jj9E8eH/Nx7O/mmJ1DM2Db6d5fbVOP+PennkefE8/b5ba1/CxUD5G8+BdNZ/zNr/c5G3A+2v+Lo2pI8In//wNPQ/eVvNXfHpI/TDz48pPapY+t9Pz4D01v8ZrWsYv179nMmWA0PPgjf18Cl2XCNvD25LMRPPgnb3N8MxkdjWh/7e/AmgevLXmtfYgx7AlOU8MC76Bt0lpmVxjE2r38jO392gevHPextM1teQml1aqsUfz4F3neamoOa/s2+9TPfQ8eGNv46l4jVvVvetbvA14b2+T0+9j1PWpVGY5IquD5sFb5200/a55mzD8MyV20Dx4b2/jlqbYezH2Ec/ibcC3mOfTDpFQdQ5azTS9g+bBW8ewVerTSngbQ2Dh58H7x7BZzyr+aJl5xQrNgzf387EaNWtCPlpyaSWaB288z4uko7Ty7dE3Q2vp6XnwtjFsOehDqmsiq2MS4VJ7AN7a20yTsFTqykYsxeoQkAVZeh68q7fR/VBpJ+xMu6VeBgg9D941hq0HGljdA6uFB/EZmgdv6+ff7H7Nx4BouhLNg+8wz4eMo/G25Ib6efANYtibauF0XqVZqb1E8+B9Ne8K1xTNq8iT1UHz4FtoPkSuZcOl8JL6efC95nldgS2nfNQt4WgefAM/b/Us4pHrE/IJCfQ8+C55m5XWqkpUy5oUeHfN8/dz4ODg4Pvi3/5iKXEUjwVUAAAAAElFTkSuQmCC`,vA=`0x62744c084c272ddba4680920edc3239cb7180718`;function yA(){return(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`stroke-0`,fill:`currentColor`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:`M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z`})})}function bA({compact:e=!1}={}){let[t,n]=(0,g.useState)(!1),[r,i]=(0,g.useState)(!1);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(Q,{variant:`ghost`,size:e?`sm`:`lg`,className:`pointer-events-auto`,onClick:()=>{i(!1),n(!0)},children:[(0,W.jsx)(yA,{}),$(`panel.links.sponsor`)]}),(0,W.jsx)(xA,{open:t,onOpenChange:n,copyFailed:r,setCopyFailed:i})]})}function xA({open:e,onOpenChange:t,copyFailed:n,setCopyFailed:r}){return(0,W.jsx)(hD,{open:e,onOpenChange:t,children:(0,W.jsxs)(gD,{className:`max-w-sm`,children:[(0,W.jsxs)(_D,{className:`gap-1.5`,children:[(0,W.jsx)(vD,{className:`text-xl`,children:$(`panel.links.sponsorTitle`)}),(0,W.jsx)(yD,{children:$(`panel.links.sponsorIntro`)})]}),(0,W.jsxs)(bD,{className:`flex flex-col gap-4`,children:[(0,W.jsx)(`div`,{className:`flex justify-center`,children:(0,W.jsx)(`img`,{src:_A,alt:$(`panel.links.sponsorQrAlt`),className:`size-44 rounded-lg border border-border-muted bg-white p-2`})}),(0,W.jsxs)(`div`,{className:`flex justify-center gap-2`,children:[(0,W.jsx)(hA,{variant:`soft`,size:`sm`,children:`USDT`}),(0,W.jsx)(hA,{variant:`soft`,size:`sm`,children:`Polygon`})]}),(0,W.jsxs)(`div`,{className:`flex flex-col gap-2 rounded-lg border border-border-muted bg-background-muted p-3`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,W.jsx)(`span`,{className:`text-xs text-foreground-muted`,children:$(`panel.links.sponsorAddress`)}),(0,W.jsx)(lk,{value:vA,label:$(`panel.links.sponsorCopy`),copiedLabel:$(`panel.links.sponsorCopied`),size:`sm`,variant:`outline`,onCopyError:()=>r(!0),onCopy:()=>r(!1),children:$(`panel.links.sponsorCopy`)})]}),(0,W.jsx)(`code`,{className:`block select-all break-all font-mono text-[11px] leading-4 text-foreground-strong`,children:vA}),n?(0,W.jsx)(`p`,{className:`text-[11px] leading-4 text-foreground-strong`,children:$(`panel.links.sponsorCopyFailed`)}):null]})]}),(0,W.jsx)(`div`,{className:`px-6 pt-4 pb-6`,children:(0,W.jsx)(`p`,{className:`text-center text-sm text-foreground-muted`,children:$(`panel.links.sponsorNote`)})})]})})}function SA(){return(0,W.jsx)(`svg`,{viewBox:`0 0 24 24`,className:`size-[18px] stroke-0`,fill:`currentColor`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`})})}function CA({compact:e=!1}={}){return(0,W.jsxs)(`a`,{href:Wk,target:`_blank`,rel:`noreferrer noopener`,className:`${Gu({variant:`ghost`,size:e?`sm`:`lg`})} pointer-events-auto`,children:[(0,W.jsx)(SA,{}),$(`panel.links.star`)]})}function wA({compact:e=!1}){return(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[(0,W.jsx)(CA,{compact:e}),(0,W.jsx)(bA,{compact:e}),(0,W.jsx)(sA,{compact:e}),(0,W.jsx)(Qk,{size:`sm`,variant:`ghost`,className:`px-2`})]})}function TA(e){let t=Number.isFinite(e)&&e>0?e:0;return t===0?`0 MB`:t<1048576?`${Math.max(1,Math.round(t/1024))} KB`:`${(t/1024/1024).toFixed(1)} MB`}function EA(e,t=Date.now()){if(!e)return``;let n=Math.floor((t-e)/36e5);return n<1?$(`panel.inbox.ageLessThanHour`):n<24?$(`panel.inbox.ageHours`,{hours:n}):$(`panel.inbox.ageDays`,{days:Math.floor(n/24)})}function DA({framed:e=!0}){let t=uO(),[n,r]=(0,g.useState)(null),[i,a]=(0,g.useState)(!1),[o,s]=(0,g.useState)(!1),[c,l]=(0,g.useState)(!1),u=(0,g.useCallback)(async()=>{try{r(await rO(`/api/relay/inbox/status`))}catch{r(null)}finally{a(!0)}},[]);(0,g.useEffect)(()=>{u()},[u]);let d=n?.deletableFiles??0,f=EA(n?.oldestAt??null),p=n?.stagingFiles??0;async function m(e){if(!c){l(!0);try{let t=await iO(`/api/relay/inbox/auto`,{enabled:e});r(e=>e&&{...e,autoClear:t.data.autoClear})}catch(e){t(`error`,$(`panel.inbox.autoFailed`,{message:cO(e)}))}finally{l(!1)}}}async function h(){if(o)return;let e=d>0?$(`panel.inbox.confirmDetail`,{count:d,hours:n?.keepHours??24,bytes:TA(n?.deletableBytes??0)}):$(`panel.inbox.confirmNothing`,{hours:n?.keepHours??24});if(window.confirm(`${$(`panel.inbox.confirmTitle`)}\n\n${e}\n\n${$(`panel.inbox.confirmIrreversible`)}`)){s(!0);try{let e=await iO(`/api/relay/inbox/clear`),n=TA(e.freedBytes);t(e.failedFiles>0?`soft`:`ok`,e.deletedFiles>0?`${$(`panel.inbox.cleared`,{bytes:n,count:e.deletedFiles})}${e.failedFiles>0?$(`panel.inbox.clearedSomeFailed`,{count:e.failedFiles}):``}`:$(`panel.inbox.nothingToClear`)),await u()}catch(e){t(`error`,$(`panel.inbox.clearFailed`,{message:cO(e)}))}finally{s(!1)}}}let _=(0,W.jsxs)(W.Fragment,{children:[i?null:(0,W.jsxs)(`div`,{className:`flex items-center gap-2 py-2 text-sm text-foreground-muted`,children:[(0,W.jsx)(BE,{}),$(`panel.inbox.reading`)]}),i&&n===null?(0,W.jsx)(rk,{children:(0,W.jsx)(ek,{label:$(`panel.inbox.unreadableTitle`),children:(0,W.jsx)(ik,{tone:`warn`,text:$(`panel.inbox.unreadableTitle`),detail:$(`panel.inbox.unreadableBody`)})})}):null,n===null?null:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`dl`,{className:`mt-1`,children:[(0,W.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 border-b border-border-muted py-2`,children:[(0,W.jsx)(`dt`,{className:`shrink-0 text-sm text-foreground-muted`,children:$(`panel.inbox.used`)}),(0,W.jsx)(`dd`,{className:`min-w-0 text-right text-sm break-all`,children:$(`panel.inbox.usedValue`,{bytes:TA(n.bytes),count:n.files})})]}),(0,W.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 border-b border-border-muted py-2`,children:[(0,W.jsx)(`dt`,{className:`shrink-0 text-sm text-foreground-muted`,children:$(`panel.inbox.deletable`)}),(0,W.jsx)(`dd`,{className:`min-w-0 text-right text-sm break-all`,children:d>0?$(`panel.inbox.deletableValue`,{bytes:TA(n.deletableBytes),count:d}):$(`panel.common.none`)})]}),(0,W.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 py-2`,children:[(0,W.jsx)(`dt`,{className:`shrink-0 text-sm text-foreground-muted`,children:$(`panel.inbox.keep`)}),(0,W.jsx)(`dd`,{className:`min-w-0 text-right text-sm break-all`,children:f?$(`panel.inbox.keepValueOldest`,{hours:n.keepHours,age:f}):$(`panel.inbox.keepValue`,{hours:n.keepHours})})]})]}),p>0?(0,W.jsx)(`p`,{className:`mt-1 text-xs text-foreground-muted`,children:$(`panel.inbox.staging`,{bytes:TA(n.stagingBytes??0),count:n.stagingFiles??0})}):null,(0,W.jsxs)(`label`,{className:`mt-3 flex items-center justify-between gap-4 border-t border-border-muted pt-3`,children:[(0,W.jsx)(`span`,{className:`block text-sm text-foreground`,children:$(`panel.inbox.auto`)}),(0,W.jsxs)(`span`,{className:`flex shrink-0 items-center gap-2`,children:[c?(0,W.jsx)(BE,{}):null,(0,W.jsx)(ZD,{size:`md`,checked:n.autoClear===!0,disabled:o||c,onCheckedChange:e=>void m(e),"aria-label":$(`panel.inbox.autoA11y`)})]})]}),(0,W.jsx)(`div`,{className:`mt-3 flex justify-center`,children:(0,W.jsx)(Q,{variant:d>0?`primary`:`outline`,size:`md`,disabled:o,onClick:()=>void h(),children:$(o?`panel.inbox.clearing`:`panel.inbox.clear`)})})]})]});return e?(0,W.jsxs)(cD,{frame:`solid`,children:[(0,W.jsx)(lD,{className:`px-4 py-3`,children:(0,W.jsx)(uD,{className:`flex items-center gap-2`,children:(0,W.jsx)(`span`,{children:$(`panel.inbox.title`)})})}),_]}):_}var OA=`data-checked`,kA=`data-unchecked`,AA={checked(e){return e?{[OA]:``}:{[kA]:``}},...St,...kD},jA=`data-composite-item-active`,MA=g.createContext({disabled:!1});function NA(){return g.useContext(MA)}var PA=g.createContext(void 0);function FA(){return g.useContext(PA)}function IA(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}var LA=g.createContext(void 0);function RA(){let e=g.useContext(LA);if(e===void 0)throw Error(S(52));return e}var zA=g.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,readOnly:a=!1,required:o=!1,"aria-labelledby":s,value:c,inputRef:l,nativeButton:u=!1,id:d,style:f,...m}=e,_=FA(),{disabled:v,readOnly:y,required:x,form:S,checkedValue:C,touched:w=!1,validation:T,name:E,setCheckedValue:D=p,setTouched:O=p,registerInputRef:k=p}=_??{},{setTouched:A,setFilled:j,state:M,disabled:N}=FD(),P=NA(),{labelId:F,getDescriptionProps:I}=BD(),L=N||P.disabled||v||i,R=y||a,z=x||o,B=S,V=_?C===c:c===``,H=g.useRef(null),U=g.useRef(null),ee=T?.registerInput,te=gr(l,U,k,g.useCallback(e=>ee?.(e,{controlRef:H,value:void 0}),[ee]));b(()=>{U.current?.checked&&j(!0)},[j]),b(()=>{if(U.current){if(L&&V){k(null);return}k(U.current)}},[V,L,k]);let G=Md(),ne=WD({id:d}),K=u?void 0:ne,re={role:`radio`,"aria-checked":V,"aria-labelledby":VD(s,F,U,!u,K),[jA]:V?``:void 0,id:u?ne:G,onKeyDown(e){e.key===`Enter`&&e.preventDefault()},onClick(e){if(e.defaultPrevented||L||R)return;e.preventDefault();let t=U.current;t&&la(t,e)},onFocus(e){e.defaultPrevented||L||R||!w||(U.current?.click(),O(!1))}},{getButtonProps:ie,buttonRef:ae}=ua({disabled:L,native:u,composite:!1}),oe={type:`radio`,ref:te,form:B,id:K,name:E,tabIndex:-1,style:E?mr:pr,"aria-hidden":!0,...c===void 0?h:{value:IA(c)},disabled:L,checked:V,required:z,readOnly:R,onChange(e){if(e.nativeEvent.defaultPrevented||L||R||c===void 0)return;let t=ja(ha,e.nativeEvent);D(c,t),!t.isCanceled&&A(!0)},onClick(e){e.stopPropagation()},onFocus(){H.current?.focus()}},q=g.useMemo(()=>({...M,required:z,disabled:L,readOnly:R,checked:V}),[M,L,R,V,z]),se=q,ce=_!==void 0,le=[t,H,ae],ue=[re,m,ie,I,T?e=>T.getValidationProps(L,e):h],de=Hr(`span`,e,{enabled:!ce,state:q,ref:le,props:ue,stateAttributesMapping:AA});return(0,W.jsxs)(LA.Provider,{value:se,children:[ce?(0,W.jsx)(ih,{tag:`span`,render:n,className:r,style:f,state:q,refs:le,props:ue,stateAttributesMapping:AA}):de,(0,W.jsx)(`input`,{...oe,suppressHydrationWarning:!0})]})}),BA=g.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=RA(),c=s.checked,{mounted:l,transitionStatus:u,setMounted:d}=Us(c),f={...s,transitionStatus:u},p=g.useRef(null),m=a||l,h=Hr(`span`,e,{ref:[t,p],state:f,props:o,stateAttributesMapping:AA});return ai({batch:!0,enabled:!c,open:c,ref:p,onComplete(){c||d(!1)}}),m?h:null}),VA={duration:.3,ease:[.4,0,.2,1]},HA={duration:.3,ease:[.4,0,.2,1]},UA={duration:0};function WA({checked:e,reduced:t}){return(0,W.jsx)(BA,{"data-slot":`radio-indicator`,className:`flex items-center justify-center`,keepMounted:!0,children:(0,W.jsx)(yE.span,{className:`bg-primary-foreground size-[0.5em] min-h-2 min-w-2 rounded-full`,initial:!1,animate:{scale:+!!e},transition:t?UA:HA})})}function GA({renderProps:e,state:t,reduced:n}){let{checked:r}=t,{ref:i,...a}=e,[o,s]=vE(),c=zu(i,o),l=g.useRef(r);return g.useEffect(()=>{let e=l.current!==r;l.current=r,e&&!n&&s(o.current,{scale:[1,.8,1.1,1]},VA)},[r,s,o,n]),(0,W.jsx)(`span`,{"data-slot":`radio`,...a,ref:c,children:(0,W.jsx)(WA,{checked:r,reduced:n})})}function KA({className:e,...t}){let n=_h(),r=t[`aria-invalid`],i=r===!0||r===`true`;return(0,W.jsx)(Fw,{features:BT,strict:!0,children:(0,W.jsx)(zA,{...t,...i?{"data-invalid":``}:{},className:Z(`flex size-[1em] min-h-4 min-w-4 shrink-0 cursor-default items-center justify-center`,`bg-background border-border-strong outline-ring-input rounded-full border outline-offset-1`,`transition-[background-color,border-color,box-shadow] duration-200 motion-reduce:transition-none`,`hover:not-data-checked:not-data-disabled:not-data-invalid:border-border-emphasis`,`data-checked:bg-primary data-checked:outline-ring-primary data-checked:border-transparent`,`data-disabled:not-data-checked:bg-background-subtle data-disabled:data-checked:opacity-disabled data-disabled:cursor-not-allowed data-disabled:not-data-checked:border-dashed`,`data-invalid:border-error data-invalid:not-data-checked:bg-error-subtle data-invalid:outline-ring-error`,e),render:(e,t)=>(0,W.jsx)(GA,{renderProps:e,state:t,reduced:n})})})}function qA(e){let{loopFocus:t=!0,orientation:n=`both`,grid:r,onLoop:i,direction:a,highlightedIndex:o,onHighlightedIndexChange:s,rootRef:c,enableHomeAndEndKeys:l=!1,stopEventPropagation:u,disabledIndices:d,modifierKeys:f=m}=e,[p,h]=g.useState(0),_=r!=null,v=g.useRef(null),y=gr(v,c),x=g.useRef([]),S=g.useRef(!1),C=g.useRef(null),w=o??p,T=q((e,t=!1)=>{if(C.current=x.current[e]??null,(s??h)(e),t){let t=x.current[e];$d(v.current,t,a,n)}}),E=q(e=>{if(e.size===0)return;if(S.current){let e=x.current,t=e.indexOf(C.current);if(t===-1){let t=e[w];!t||Mn(e,w,d)?T(JA(e,d)):C.current=t}else t!==w&&T(t);return}S.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,i=r?e.get(r)?.index??-1:-1;if(i!==-1)T(i);else if(Mn(t,w,d)){let e=jn(t,{disabledIndices:d});On(t,e)||T(e)}$d(v.current,r,a,n)});b(()=>{if(d==null||o!=null||!S.current)return;let e=x.current;if(Mn(e,w,d)){let t=jn(e,{disabledIndices:d});On(e,t)||T(t)}},[d,o,w,x,T]);let D=q((e,t,n)=>i?i(e,t,n,x):n),O=q(e=>{let o=e.key===`Home`||e.key===`End`;if(!Jd.has(e.key)||!l&&o||YA(e,f)||!v.current)return;let s=a===`rtl`,c=s?Kd:qd,p=s?qd:Kd,m=n===`vertical`?Gd:c,h=n===`vertical`?Wd:p,g=dt(e.nativeEvent);if(g!=null&&Qd(g)&&!fh(g)){let t=g.selectionStart,n=g.selectionEnd,r=g.value;if(t==null||e.shiftKey||t!==n||e.key!==h&&t<r.length||e.key!==m&&t>0)return}let y=w,b=kn(x,d),S=An(x,d);r!=null&&(y=r({disabledIndices:d,elementsRef:x,event:e,highlightedIndex:w,loopFocus:t,maxIndex:S,minIndex:b,onLoop:D,orientation:n,rtl:s}));let C=n!==`vertical`&&e.key===c||n!==`horizontal`&&e.key===`ArrowDown`,E=n!==`vertical`&&e.key===p||n!==`horizontal`&&e.key===`ArrowUp`;l&&(e.key===`Home`?y=b:e.key===`End`&&(y=S)),y===w&&(C||E)&&(t&&y===S&&C?(y=b,i&&(y=i(e,w,y,x))):t&&y===b&&E?(y=S,i&&(y=i(e,w,y,x))):y=jn(x.current,{startingIndex:y,decrement:E,disabledIndices:d})),y!==w&&!On(x.current,y)&&(u&&e.stopPropagation(),(_||o||C||E)&&e.preventDefault(),T(y,!0),queueMicrotask(()=>{x.current[y]?.focus()}))});return{props:{ref:y,onFocus(e){let t=v.current,n=dt(e.nativeEvent);t&&n!=null&&Qd(n)&&n.setSelectionRange(0,n.value.length)},onKeyDown:O},highlightedIndex:w,onHighlightedIndexChange:T,elementsRef:x,onMapChange:E,relayKeyboardEvent:O}}function JA(e,t){let n=-1;for(let r=0;r<e.length;r+=1){let i=e[r];if(i&&!Mn(e,r,t)){if(i.hasAttribute(`data-composite-item-active`))return r;n===-1&&(n=r)}}return Math.max(n,0)}function YA(e,t){for(let n of Xd)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function XA(e){let{render:t,className:n,style:r,refs:i=m,props:a=m,state:o=h,stateAttributesMapping:s,highlightedIndex:c,onHighlightedIndexChange:l,orientation:u,grid:d,loopFocus:f,onLoop:p,enableHomeAndEndKeys:_,onMapChange:v,stopEventPropagation:y=!0,rootRef:b,disabledIndices:x,modifierKeys:S,highlightItemOnHover:C=!1,tag:w=`div`,...T}=e,{props:E,highlightedIndex:D,onHighlightedIndexChange:O,elementsRef:k,onMapChange:A,relayKeyboardEvent:j}=qA({grid:d,loopFocus:f,onLoop:p,orientation:u,highlightedIndex:c,onHighlightedIndexChange:l,rootRef:b,stopEventPropagation:y,enableHomeAndEndKeys:_,direction:Uc(),disabledIndices:x,modifierKeys:S}),M=Hr(w,e,{state:o,ref:i,props:[E,...a,T],stateAttributesMapping:s}),N=g.useMemo(()=>({highlightedIndex:D,onHighlightedIndexChange:O,highlightItemOnHover:C,relayKeyboardEvent:j}),[D,O,C,j]);return(0,W.jsx)(oa.Provider,{value:N,children:(0,W.jsx)(Dm,{elementsRef:k,onMapChange:e=>{v?.(e),A(e)},children:M})})}function ZA(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var QA=Object.keys(DD);function $A(e,t){return e.matches(`:disabled`)?!1:!t||e.form===t||e.form===null&&!e.hasAttribute(`form`)}function ej(e,t){let n=null;for(let r of e.keys())if($A(r,t)){if(!r.validity.valid)return r;n??=r}return n}function tj(e){return{...DD,valid:!e,customError:e}}function nj(e){return e&&e.validationMessage?[e.validationMessage]:[]}function rj(e){let{elementRef:t,formRef:n}=RD(),{setValidityData:r,validate:i,validityData:a,validationDebounceTime:o,invalid:s,markedDirtyRef:c,state:l,shouldValidateOnChange:u,validationMode:d,registeredFieldIdRef:f}=e,{controlId:p,getDescriptionProps:m}=BD(),_=Ke(),v=g.useRef(null),b=y(()=>new Map).current,x=g.useRef(0),S=g.useRef(null),C=g.useCallback((e,t)=>(b.set(e,t),()=>{b.delete(e)}),[b]),w=q(()=>{let e=ej(b,t.current);return e&&b.get(e)?.controlRef.current||null}),T=q(async(e,o=!1)=>{x.current+=1;let m=x.current;function h(e,t=s){let r=f.current??p;if(r==null)return;let i=n.current.fields.get(r);if(!i)return;let a=ZA(e,t);n.current.fields.set(r,{...i,validityData:a})}function g(t,n){let r=t.valid===!1?n:[];return{value:e,state:t,error:r[0]??``,errors:r,initialValue:a.initialValue}}function y(e,t){let n=e.validity.customError?e.validationMessage:``,r=t.replace(/\r\n?/g,`
104
- `);e.setCustomValidity(r),S.current=[e,r,n]}function C(){let e=S.current;S.current=null,e&&(!e[0].willValidate||e[0].validationMessage===e[1])&&e[0].setCustomValidity(e[2])}function w(e,t,n){let i=g(e,t);h(i,n),r(i)}function T(e){let t=QA.reduce((t,n)=>(t[n]=e.validity[n],t),{}),n=!1;for(let e of QA)if(e!==`valid`){if(e===`valueMissing`&&t[e])n=!0;else if(t[e])return t}return n&&!c.current&&(t.valid=!0,t.valueMissing=!1),t}function E(){return b.size>0?ej(b,t.current):v.current}let D=E();function O(){return D=E(),D?.willValidate?T(D):tj(!1)}if(o){if(l.valid!==!1||!D)return;if(!D.validity.valueMissing){C();let e=E(),t=e?.validity.customError?nj(e):[];w(tj(t.length>0),t,!1);return}for(let e of QA)if(e!==`valid`&&e!==`valueMissing`&&e!==`customError`&&D.validity[e])return}_.clear(),C();let k=O(),A=nj(D),j=u();if(A.length===0||j){let t=Array.from(n.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}),r=i(e,t),o;if(typeof r==`object`&&r&&`then`in r){if(k.valid===!1?w(k,A):(d===`onSubmit`||!a.state.customError)&&(k.valid=null,w(k,A)),o=await r,m!==x.current)return;k=O()}else o=r;A=o?[].concat(o).filter(Boolean):[],A.length>0?(k.valid=!1,k.customError=!0,D?.willValidate&&y(D,A.join(`
105
- `))):A=nj(D)}w(k,A)}),E=q((e,t=!1)=>{if(_.clear(),x.current+=1,t)return;let n=u();n&&e!==``&&o?_.start(o,()=>{T(e)}):T(e,!n)}),D=g.useCallback((e,t={})=>Or(m(t),l.valid===!1&&!l.disabled&&!e?{"aria-invalid":!0}:h),[m,l.disabled,l.valid]);return g.useMemo(()=>({getValidationProps:D,inputRef:v,registeredInputs:b,registerInput:C,getInputControl:w,commit:T,change:E}),[D,b,C,w,T,E])}var ij=g.createContext(void 0);function aj(e=!1){let t=g.useContext(ij);if(!t&&!e)throw Error(S(86));return t}var oj=[Yd],sj=g.forwardRef(function(e,t){let{render:n,className:r,disabled:i,readOnly:a,required:o,onValueChange:s,value:c,defaultValue:l,form:u,name:d,inputRef:f,id:p,style:m,...h}=e,{setTouched:_,setFocused:v,validationMode:y,name:b,disabled:x,state:S,validation:C,setDirty:w,setFilled:T,validityData:E}=FD(),{labelId:D}=BD(),{clearErrors:O,elementRef:k}=RD(),A=aj(!0),j=x||i,M=b??d,N=Md(p),[P,F]=vf({controlled:c,default:l,name:`RadioGroup`,state:`value`}),[I,L]=g.useState(!1),R=q((e,t)=>{s?.(e,t),!t.isCanceled&&F(e)}),z=C.getInputControl,B=g.useMemo(()=>({get current(){return z()}}),[z]),V=g.useRef(null),H=g.useRef(null);function U(e){let t;return f&&(typeof f==`function`?t=f(e):f.current=e),V.current=e,t}let ee=q(e=>{if(!e||e.disabled)return;H.current||=e;let t=V.current,n=e.checked||t==null||t.disabled?U(e):void 0;return()=>{H.current===e&&(H.current=null),V.current===e?n?(n(),V.current=null):U(null):n?.()}}),te=q(()=>{let e=k.current;if(!e)return P??null;for(let t of C.registeredInputs.keys())if(t.checked&&$A(t,e))return P??null;return null});ID(B,N,P??null,te,!j,d),Kf(P,()=>{O(M),w(P!==E.initialValue),T(P!=null),C.change(P);let e=H.current;P==null&&e&&!e.disabled&&U(e)});let G=D??A?.legendId,ne={...S,disabled:j??!1,required:o??!1,readOnly:a??!1},K=g.useMemo(()=>({checkedValue:P,disabled:j,form:u,validation:C,name:M,readOnly:a,registerInputRef:ee,required:o,setCheckedValue:R,setTouched:L,touched:I}),[P,j,u,C,M,a,ee,o,R,L,I]),re={id:p,role:`radiogroup`,"aria-required":o||void 0,"aria-disabled":j||void 0,"aria-readonly":a||void 0,"aria-labelledby":G,onFocus(){v(!0)},onBlur(e){J(e.currentTarget,e.relatedTarget)||(_(!0),v(!1),y===`onBlur`&&C.commit(P))},onKeyDownCapture(e){e.key.startsWith(`Arrow`)&&(L(!0),v(!0))}};return(0,W.jsx)(PA.Provider,{value:K,children:(0,W.jsx)(XA,{render:n,className:r,style:m,state:ne,props:[re,h,e=>C.getValidationProps(j??!1,e)],refs:[t],stateAttributesMapping:kD,enableHomeAndEndKeys:!1,modifierKeys:oj})})});function cj({className:e,orientation:t=`vertical`,...n}){return(0,W.jsx)(sj,{"data-slot":`radio-group`,"aria-orientation":t,className:Z(`flex`,t===`horizontal`?`flex-wrap gap-4`:`flex-col gap-2`,e),...n})}function lj(e){return e?e.lan.length>0?e.lan:e.public:[]}function uj(e){return!e||e.lan.length===0?[]:e.public}function dj(e){return e?.ipv6??[]}function fj(e,t){let n=$(e===`lan`?`panel.address.lan`:e===`ipv6`?`panel.address.ipv6`:`panel.address.public`);return t?`${n} · ${t}`:n}function pj(e,t){return`http://${e.includes(`:`)?`[${e}]`:e}:${String(t??``)}`}function mj({book:e,error:t=``,onRetry:n,port:r,value:i,busy:a=!1,onChange:o,fallbackUrls:s=[],align:c=`end`}){let l=c===`start`?`items-start`:`items-end`,u=c===`start`?`justify-start`:`justify-end`,d=c===`start`?`text-start`:`text-end`,f=String(r??``),p=lj(e),m=uj(e),h=dj(e),g=e&&e.lan.length>0?`lan`:`public`,_=p.some(e=>e.address===i)?i:p[0]?.address??``;return t?(0,W.jsxs)(`span`,{className:`flex flex-col gap-0.5 ${l}`,children:[(0,W.jsx)(`span`,{className:`font-sans text-foreground-muted`,children:$(`panel.address.loadFailed`)}),n?(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,onClick:n,children:$(`panel.address.retry`)}):null]}):p.length===0?h.length===0&&s.length>0?(0,W.jsxs)(`span`,{className:`flex flex-col gap-0.5 ${l}`,children:[s.map(e=>(0,W.jsx)(`span`,{children:e},e)),e?(0,W.jsx)(`span`,{className:`font-sans text-xs text-foreground-muted`,children:$(`panel.address.natHint`)}):null]}):h.length===0?(0,W.jsxs)(`span`,{className:`flex flex-col gap-0.5 ${l}`,children:[(0,W.jsx)(`span`,{className:`font-sans text-foreground-muted`,children:$(e?`panel.address.none`:`panel.address.empty`)}),e?(0,W.jsx)(`span`,{className:`font-sans text-xs text-foreground-muted`,children:$(`panel.address.natHint`)}):null]}):(0,W.jsx)(`span`,{className:`flex w-full flex-col gap-1 ${l}`,children:h.map(e=>(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-baseline gap-x-2 ${u}`,children:[(0,W.jsx)(`span`,{className:`font-mono text-xs text-foreground-muted`,children:pj(e.address,f)}),(0,W.jsx)(`span`,{className:`shrink-0 font-sans text-xs text-foreground-subtle`,children:`${fj(`ipv6`,e.interface)}${$(`panel.address.ipv6Hint`)}`})]},e.address))}):(0,W.jsxs)(`span`,{className:`flex w-full flex-col gap-1 ${l}`,children:[p.length>1?(0,W.jsx)(cj,{className:fg(`w-full gap-1`,l,a&&`pointer-events-none opacity-60`),value:_,onValueChange:e=>{typeof e==`string`&&e!==_&&o(e)},children:p.map(e=>(0,W.jsxs)(`label`,{className:`flex w-full cursor-pointer flex-wrap items-baseline gap-x-2 ${u}`,children:[(0,W.jsx)(KA,{value:e.address,"aria-label":pj(e.address,f)}),(0,W.jsx)(`span`,{className:`font-mono text-xs text-foreground`,children:pj(e.address,f)}),(0,W.jsx)(`span`,{className:`shrink-0 font-sans text-xs text-foreground-muted`,children:fj(g,e.interface)})]},e.address))}):(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-baseline gap-x-2 ${u}`,children:[(0,W.jsx)(`span`,{className:`font-mono`,children:pj(p[0].address,f)}),(0,W.jsx)(`span`,{className:`shrink-0 font-sans text-xs text-foreground-muted`,children:fj(g,p[0].interface)})]}),m.map(e=>(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-baseline gap-x-2 ${u}`,children:[(0,W.jsx)(`span`,{className:`font-mono text-xs text-foreground-muted`,children:pj(e.address,f)}),(0,W.jsx)(`span`,{className:`shrink-0 font-sans text-xs text-foreground-subtle`,children:`${fj(`public`,e.interface)}${$(`panel.address.publicHint`)}`})]},e.address)),h.map(e=>(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-baseline gap-x-2 ${u}`,children:[(0,W.jsx)(`span`,{className:`font-mono text-xs text-foreground-muted`,children:pj(e.address,f)}),(0,W.jsx)(`span`,{className:`shrink-0 font-sans text-xs text-foreground-subtle`,children:$(`panel.address.ipv6Pick`,{kind:fj(`ipv6`,e.interface)})})]},e.address)),e&&e.lan.length>0&&e.public.length===0&&h.length===0?(0,W.jsx)(`span`,{className:`font-sans text-xs text-foreground-muted ${d}`,children:$(`panel.address.natHint`)}):null,p.length>1?(0,W.jsx)(`span`,{className:`font-sans text-xs text-foreground-muted ${d}`,children:$(`panel.address.hint`)}):null]})}function hj({on:e,what:t,label:n,className:r,disabled:i,onClick:a}){let o=n??$(e?`panel.common.hide`:`panel.common.show`);return(0,W.jsx)(Q,{variant:`ghost`,size:`icon-sm`,className:r,"aria-label":`${o}${t}`,title:`${o}${t}`,disabled:i,onClick:a,children:(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:e?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`path`,{d:`m3 3 18 18M10.58 10.59a2 2 0 0 0 2.83 2.82`}),(0,W.jsx)(`path`,{d:`M9.88 5.09A10.94 10.94 0 0 1 12 5c7 0 10 7 10 7a14.5 14.5 0 0 1-3.17 4.36M6.61 6.61A16.77 16.77 0 0 0 2 12s3 7 10 7a10.94 10.94 0 0 0 5.39-1.39`})]}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`path`,{d:`M2 12s3-7 10-7 10 7 10 7-3 7-10 7S2 12 2 12Z`}),(0,W.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`})]})})})}function gj(){return(0,W.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`size-6`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`rect`,{x:`3`,y:`3`,width:`7`,height:`7`,rx:`1`}),(0,W.jsx)(`rect`,{x:`14`,y:`3`,width:`7`,height:`7`,rx:`1`}),(0,W.jsx)(`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`}),(0,W.jsx)(`path`,{d:`M14 14h3v3M21 14v.01M14 21h.01M17 21h4v-4`})]})}function _j({status:e,pairing:t,addressBook:n,addressError:r=``,onRetryAddresses:i,version:a,versionIssues:o=[],busy:s,error:c,onRetryPairing:l,onSavePreferred:u,onEditPort:d,bare:f=!1}){let p=s!==``,m=t?.relayUrl||e.relayUrl||`—`,h=r?`error`:yj(n,t),[_,v]=g.useState({relay:!1}),[y,b]=g.useState(!1),[x,S]=g.useState(!1),C=g.useRef(null),[w,T]=g.useState(0);g.useEffect(()=>{let e=C.current;if(!e||typeof ResizeObserver>`u`)return;let t=()=>T(Math.round(e.getBoundingClientRect().height));t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]);let E=e=>v(t=>({...t,[e]:!t[e]})),D=(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`div`,{className:`${f?``:`mt-3`} flex flex-col gap-4 sm:flex-row sm:items-stretch`,children:[(0,W.jsx)(`div`,{className:`relative mx-auto aspect-square w-full max-w-[200px] shrink-0 self-center sm:mx-0 sm:h-[var(--qr-size)] sm:w-[var(--qr-size)] sm:max-w-none sm:self-start`,style:w>0?{"--qr-size":`${w}px`}:void 0,children:t?.svg?(0,W.jsxs)(`button`,{type:`button`,className:`absolute inset-0 flex cursor-zoom-in flex-col items-center justify-center gap-2 rounded-md border border-border-muted bg-background-muted p-3 text-foreground-subtle transition-colors hover:bg-background-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,onClick:()=>S(!0),"aria-label":`${$(`panel.pairing.qrZoom`)}:${$(`panel.pairing.qr`)}`,children:[(0,W.jsx)(gj,{}),(0,W.jsx)(`span`,{className:`text-xs`,children:$(`panel.pairing.qrHidden`)}),(0,W.jsx)(`span`,{className:`text-xs`,children:$(`panel.common.show`)})]}):(0,W.jsx)(`div`,{className:`absolute inset-0 flex flex-col items-center justify-center gap-2 rounded-md border border-border-muted bg-background-muted p-3 text-foreground-subtle`,children:c?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`span`,{className:`text-xs`,children:$(`panel.pairing.qrFailed`)}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:p,onClick:l,children:$(`panel.console.retryPairing`)})]}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(BE,{}),(0,W.jsx)(`span`,{className:`text-xs`,children:$(`panel.pairing.noQr`)})]})})}),(0,W.jsx)(`div`,{ref:C,className:`flex min-w-0 flex-1 flex-col`,children:(0,W.jsxs)(rk,{className:nk,children:[(0,W.jsx)(ek,{label:$(`panel.connection.relayUrl`),nowrap:!0,children:(0,W.jsxs)(`span`,{className:`inline-flex min-w-0 flex-wrap items-center justify-end gap-x-2 gap-y-1`,children:[_.relay?(0,W.jsx)(`span`,{className:`min-w-0 font-mono text-xs text-foreground-strong`,children:m}):(0,W.jsx)(`span`,{className:`text-xs text-foreground-subtle`,children:$(`panel.pairing.hidden`)}),(0,W.jsx)(hj,{on:_.relay,what:$(`panel.connection.relayUrl`),label:_.relay?$(`panel.common.hide`):$(`panel.common.show`),onClick:()=>E(`relay`)})]})}),(0,W.jsx)(ek,{label:$(`panel.pairing.port`),mono:!0,nowrap:!0,children:(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-center justify-end gap-x-2 gap-y-1`,children:[(0,W.jsxs)(`span`,{children:[t?.lanPort??e.lan.port,t?.lanPortAdjusted?(0,W.jsx)(`span`,{className:`ml-2 font-sans text-xs text-foreground-muted`,children:$(`panel.pairing.portFallback`)}):null]}),(0,W.jsx)(Q,{variant:`ghost`,size:`icon-sm`,"aria-label":$(`panel.pairing.portTitle`),title:$(`panel.pairing.portTitle`),disabled:p,onClick:d,children:(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:`m16 3 5 5M4 15 16 3a3.54 3.54 0 0 1 5 5L9 20l-6 1 1-6Z`})})})]})}),(0,W.jsx)(ek,{label:$(`panel.pairing.phoneAddress`),nowrap:!0,children:(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-center justify-end gap-x-2 gap-y-1`,children:[h?null:(0,W.jsx)(`span`,{className:`text-xs text-foreground-subtle`,children:$(`panel.pairing.noAddress`)}),(0,W.jsx)(hj,{on:!1,what:$(`panel.pairing.phoneAddress`),label:$(`panel.common.show`),onClick:()=>b(!0)})]})}),(0,W.jsx)(ek,{label:$(`panel.update.runningVersion`),mono:!0,labelExtra:o.length>0?(0,W.jsx)(dk,{issue:o[0]}):void 0,children:a||$(`panel.update.unknownVersion`)})]})})]}),(0,W.jsx)(hD,{open:x,onOpenChange:S,children:(0,W.jsxs)(gD,{className:`w-[min(680px,94vw)] max-h-[90vh] max-w-none`,closeLabel:$(`panel.common.close`),children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.pairing.qr`)})}),(0,W.jsx)(bD,{children:(0,W.jsx)(`div`,{className:`flex items-center justify-center overflow-auto rounded-md bg-white p-2 sm:p-4`,children:t?.svg?(0,W.jsx)(`div`,{className:`aspect-square h-[min(64vh,560px)] w-auto max-w-full [&_svg]:h-full [&_svg]:w-full`,dangerouslySetInnerHTML:{__html:t.svg}}):null})})]})}),(0,W.jsx)(hD,{open:y,onOpenChange:b,children:(0,W.jsxs)(gD,{className:`max-w-xl`,closeLabel:$(`panel.common.close`),children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.pairing.phoneAddress`)})}),(0,W.jsx)(bD,{children:(0,W.jsx)(mj,{book:n,error:r,onRetry:i,port:t?.lanPort??e.lan.port,value:n?.preferred??``,busy:p,onChange:u,fallbackUrls:t?.lanUrls??[]})}),(0,W.jsx)(xD,{className:`flex justify-end`,children:(0,W.jsx)(Q,{variant:`outline`,onClick:()=>b(!1),children:$(`panel.common.close`)})})]})})]});return f?D:(0,W.jsxs)(cD,{frame:`solid`,children:[(0,W.jsx)(lD,{className:`flex-none px-4 py-3`,children:(0,W.jsx)(uD,{className:`text-base lg:text-lg`,children:$(`panel.pairing.cardTitle`)})}),D]})}function vj({status:e,busy:t,onChangePolicy:n,onToggleRemote:r,onChangeControlReport:i}){let a=t!==``,o=e.pairingPolicy===`code`,s=e.controlReportEnabled!==!1,[c,l]=g.useState(!1);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(ek,{label:$(`panel.pairing.policy`),children:(0,W.jsx)(ZD,{size:`md`,checked:o,disabled:a,onCheckedChange:e=>n(e?`code`:`deny`),"aria-label":$(`panel.devices.allowTitle`)})}),(0,W.jsx)(ek,{label:$(`panel.connection.remoteControl`),children:(0,W.jsx)(ZD,{size:`md`,checked:e.enabled,disabled:a,onCheckedChange:e=>r(e),"aria-label":$(`panel.connection.remoteControl`)})}),(0,W.jsx)(ek,{label:$(`panel.pairing.controlReport`),nowrap:!0,labelExtra:(0,W.jsx)(`button`,{type:`button`,"aria-label":$(`panel.pairing.controlReportInfo`),title:$(`panel.pairing.controlReportInfo`),className:`shrink-0 cursor-pointer rounded text-foreground-muted transition-colors duration-200 hover:text-foreground-strong focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none`,onClick:()=>l(!0),children:(0,W.jsx)(uk,{})}),children:(0,W.jsx)(ZD,{size:`md`,checked:s,disabled:a,"aria-label":$(`panel.pairing.controlReport`),onCheckedChange:e=>{e!==s&&i(e)}})}),(0,W.jsx)(hD,{open:c,onOpenChange:l,children:(0,W.jsxs)(gD,{className:`max-w-md`,closeLabel:$(`panel.common.close`),children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.pairing.controlReport`)})}),(0,W.jsxs)(bD,{className:`whitespace-pre-line text-sm leading-6 text-foreground-muted`,children:[$(`panel.pairing.controlReportDetail`),`
106
-
107
- `,$(`panel.pairing.controlReportTarget`,{target:e.controlReportTargetUrl||$(`panel.pairing.controlReportUnknown`)}),e.relayUrl&&!qk(e.relayUrl)?`\n\n${$(`panel.pairing.controlReportSelfHosted`)}`:``]}),(0,W.jsx)(xD,{className:`flex justify-end`,children:(0,W.jsx)(Q,{variant:`outline`,onClick:()=>l(!1),children:$(`panel.common.close`)})})]})})]})}function yj(e,t){return e&&e.lan.length+e.public.length>0?`book`:t?.lanUrls?.[0]??``}function bj(e){return e.available?e.enabled?e.path===`direct`&&e.active?`panel.p2p.open`:e.error?`panel.p2p.error`:e.path===`failed`?`panel.p2p.blocked`:e.ready?e.path===`waiting`?`panel.p2p.waiting`:`panel.p2p.punching`:e.started?`panel.p2p.punching`:`panel.p2p.waiting`:`panel.p2p.disabled`:`panel.p2p.unavailable`}function xj(e){return e.length>16?`${e.slice(0,12)}…${e.slice(-4)}`:e}function Sj({open:e,onOpenChange:t,onChanged:n}){let r=uO(),[i,a]=(0,g.useState)(null),[o,s]=(0,g.useState)(``),[c,l]=(0,g.useState)(``),u=(0,g.useCallback)(async()=>{try{let e=await rO(`/api/relay/p2p`);a(e.status??null),s(``)}catch(e){s(cO(e))}},[]),d=async e=>{l(`toggle`);try{let t=await iO(`/api/relay/p2p/enabled`,{enabled:e});a(t.status??null),r(`soft`,$(e?`panel.p2p.enabledToast`:`panel.p2p.disabledToast`)),n?.()}catch(e){r(`error`,cO(e))}finally{l(``)}};(0,g.useEffect)(()=>{if(!e)return;let t=()=>{c_()&&u()};t();let n=window.setInterval(t,2e3);return document.addEventListener(`visibilitychange`,t),()=>{window.clearInterval(n),document.removeEventListener(`visibilitychange`,t)}},[e,u]);let f=i,p=Array.isArray(f?.candidates)?f.candidates:[];return(0,W.jsx)(hD,{open:e,onOpenChange:t,children:(0,W.jsxs)(gD,{className:`max-w-md`,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.p2p.title`)})}),(0,W.jsxs)(bD,{className:`flex flex-col gap-3`,children:[(0,W.jsx)(`p`,{className:`text-xs leading-5 text-foreground-muted`,children:$(`panel.p2p.hint`)}),o?(0,W.jsx)(`p`,{className:`text-xs text-error`,children:o}):null,f===null?(0,W.jsxs)(`div`,{className:`flex items-center gap-2 py-2 text-sm text-foreground-muted`,children:[(0,W.jsx)(BE,{}),$(`panel.shell.readingStatus`)]}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 border-b border-border-muted py-2`,children:[(0,W.jsx)(`span`,{className:`shrink-0 text-sm text-foreground-muted`,children:$(`panel.p2p.stateLabel`)}),(0,W.jsxs)(`span`,{className:`min-w-0 text-right text-sm break-all`,children:[$(bj(f)),f.error?(0,W.jsx)(`span`,{className:`ml-1 text-xs text-foreground-muted`,children:f.error}):null]})]}),(0,W.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 border-b border-border-muted py-2`,children:[(0,W.jsx)(`span`,{className:`shrink-0 text-sm text-foreground-muted`,children:$(`panel.p2p.addressLabel`)}),(0,W.jsx)(`span`,{className:`min-w-0 text-right font-mono text-xs break-all text-foreground-strong`,children:f.url||$(`panel.p2p.noAddress`)})]}),(0,W.jsxs)(`label`,{className:`flex items-center justify-between gap-4 border-b border-border-muted py-2`,children:[(0,W.jsx)(`span`,{className:`text-sm text-foreground-muted`,children:$(`panel.p2p.enableLabel`)}),(0,W.jsx)(ZD,{size:`md`,checked:f.enabled,disabled:!f.available||c!==``,onCheckedChange:e=>void d(e),"aria-label":$(`panel.p2p.enableLabel`)})]}),(0,W.jsxs)(`div`,{className:`flex flex-col gap-1 border-b border-border-muted py-2`,children:[(0,W.jsxs)(`span`,{className:`text-sm text-foreground-muted`,children:[$(`panel.p2p.candidatesLabel`),` (`,p.length,`)`]}),p.length===0?(0,W.jsx)(`span`,{className:`text-xs text-foreground-muted`,children:$(`panel.p2p.noCandidates`)}):(0,W.jsx)(`ul`,{className:`flex flex-col gap-1`,children:p.map(e=>(0,W.jsx)(`li`,{className:`font-mono text-xs break-all text-foreground-strong`,children:e},e))})]}),(0,W.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 py-2`,children:[(0,W.jsx)(`span`,{className:`shrink-0 text-sm text-foreground-muted`,children:$(`panel.p2p.keyLabel`)}),(0,W.jsx)(`span`,{className:`min-w-0 text-right font-mono text-xs break-all text-foreground-strong`,children:f.publicKey?xj(f.publicKey):$(`panel.p2p.noKey`)})]})]})]}),(0,W.jsx)(xD,{className:`flex justify-end gap-2`,children:(0,W.jsx)(Q,{variant:`outline`,disabled:c!==``,onClick:()=>t(!1),children:$(`panel.common.close`)})})]})})}var Cj=function(e){let t=Md(),[n,r]=g.useState(t),[i,a]=g.useState(),[o,s]=g.useState([]),c=n===void 0?t:n,l=y(()=>new Map),{messageIds:u}=BD(),d=q((e,t)=>{let n=l.current;t===void 0?n.delete(e):n.set(e,t),r(e=>{if(n.size===0)return e;let t;for(let r of n.values()){if(r===e)return e;t===void 0&&(t=r)}return t})}),f=q(()=>{l.current.size===0&&r(t)}),p=g.useCallback(e=>{let t=e[`aria-describedby`]?e[`aria-describedby`].split(` `):[];return t.push(...u,...o),{...e,"aria-describedby":Array.from(new Set(t)).join(` `)||void 0}},[u,o]),m=g.useMemo(()=>({controlId:c,registerControlId:d,resetControlId:f,labelId:i,setLabelId:a,messageIds:o,setMessageIds:s,getDescriptionProps:p}),[c,d,f,i,a,o,s,p]);return(0,W.jsx)(zD.Provider,{value:m,children:e.children})};function wj(e,t){let n=Md(e);return b(()=>(t(n),()=>{t(e=>e===n?void 0:e)}),[n,t]),n}function Tj(e={}){let{id:t,fallbackControlId:n,native:r=!1,setLabelId:i,focusControl:a}=e,{controlId:o,setLabelId:s}=BD(),c=wj(t,q(e=>{s(e),i?.(e)})),l=o??n;function u(e){if(a){a(e,l);return}if(!l)return;let t=Re(e.currentTarget).getElementById(l);ve(t)&&Ej(t)}function d(e){dt(e.nativeEvent)?.closest(`button,input,select,textarea`)||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),!r&&u(e))}return r?{id:c,htmlFor:l,onMouseDown:d}:{id:c,onClick:d,onPointerDown(e){e.preventDefault()}}}function Ej(e){e.focus({focusVisible:!0})}function Dj(e){let{change:t,commit:n,invalid:r,markedDirtyRef:i,name:a,setRegisteredFieldName:o,registeredFieldIdRef:s,setValidityData:c,validityData:l}=e,{formRef:u}=RD(),d=g.useRef(null),f=g.useRef(null),p=g.useRef(!1),m=q(()=>{let e=f.current;if(e)return e.getValue?e.getValue():e.value});function h(e){return e.value===void 0?m():e.value}let _=q(()=>{let e=f.current;if(i.current=!0,!e){n(l.value);return}n(h(e))});function v(){let e=f.current;e&&e.id&&u.current.fields.set(e.id,{getValue:m,name:a??e.name,controlRef:e.controlRef,validityData:ZA(l,r),validate:_})}function y(e=f.current?.id){e&&u.current.fields.delete(e)}function x(e){if(p.current)return;p.current=!0;let t=h(e);c(e=>e.initialValue===t?e:{...e,initialValue:t})}return b(()=>{let e=f.current;e&&e.id&&(o(a?void 0:e.name),u.current.fields.set(e.id,{getValue:m,name:a??e.name,controlRef:e.controlRef,validityData:ZA(l,r),validate:_}))},[u,m,r,a,o,_,l]),b(()=>{let e=u.current.fields;return()=>{let t=f.current?.id;t&&e.delete(t)}},[u]),[_,q((e,n)=>{if(!n){d.current===e&&(d.current=null,t(void 0,!0),y(),f.current=null,o(void 0),s.current=void 0);return}let r=f.current?.id,i=d.current;i&&i!==e&&t(void 0,!0),d.current=e,f.current=n,a||o(n.name),s.current=n.id,r&&r!==n.id&&y(r),x(n),v()})]}var Oj=g.forwardRef(function(e,t){let{errors:n,validationMode:r,submitCountRef:i}=RD(),{render:a,className:o,validate:s,validationDebounceTime:c=0,validationMode:l=r,name:u,disabled:d=!1,invalid:f,dirty:p,touched:m,actionsRef:h,style:_,...v}=e,y=aj(!0)?.disabled,x=q(s||(()=>null)),S=y||d,[C,w]=g.useState(!1),[T,E]=g.useState(!1),[D,O]=g.useState(!1),[k,A]=g.useState(!1),j=p??T,M=m??C,N=g.useRef(j),P=g.useRef(void 0),[F,I]=g.useState(),L=u??F;b(()=>{p!==void 0&&(N.current=p)},[p]);let R=q(e=>{p===void 0&&(e&&(N.current=!0),E(e))}),z=q(e=>{m===void 0&&w(e)}),B=q(()=>l===`onChange`||l===`onSubmit`&&i.current>0),V=L&&Object.hasOwn(n,L)?n[L]:null,H=!!(Array.isArray(V)?V.length:V),U=f===!0||H,[ee,te]=g.useState({state:DD,error:``,errors:[],value:null,initialValue:null}),G=!U&&(S?null:ee.state.valid),ne=g.useMemo(()=>({disabled:S,touched:M,dirty:j,valid:G,filled:D,focused:k}),[S,M,j,G,D,k]),K=rj({setValidityData:te,validate:x,validityData:ee,validationDebounceTime:c,invalid:U,markedDirtyRef:N,state:ne,shouldValidateOnChange:B,validationMode:l,registeredFieldIdRef:P}),[re,ie]=Dj({change:K.change,commit:K.commit,invalid:U,markedDirtyRef:N,name:u,setRegisteredFieldName:I,registeredFieldIdRef:P,setValidityData:te,validityData:ee});g.useImperativeHandle(h,()=>({validate:re}),[re]);let ae=g.useMemo(()=>({invalid:U,name:L,validityData:ee,setValidityData:te,disabled:S,setTouched:z,setDirty:R,setFilled:O,setFocused:A,validationMode:l,shouldValidateOnChange:B,state:ne,registerFieldControl:ie,validation:K}),[U,L,ee,S,z,R,O,A,l,B,ne,ie,K]),oe=Hr(`div`,e,{ref:t,state:ne,props:v,stateAttributesMapping:kD});return(0,W.jsx)(PD.Provider,{value:ae,children:oe})}),kj=g.forwardRef(function(e,t){return(0,W.jsx)(Cj,{children:(0,W.jsx)(Oj,{...e,ref:t})})}),Aj=g.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,nativeLabel:o=!0,...s}=e,c=FD(!1),l=NA(),{labelId:u}=BD(),d={...c.state,disabled:c.disabled||l.disabled},f=g.useRef(null),p=Tj({id:u??a,native:o});return Hr(`label`,e,{ref:[t,f],state:d,props:[p,s],stateAttributesMapping:kD})}),jj=g.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:_,setDirty:v,validityData:y,setFocused:x,setFilled:S,validationMode:C,validation:w}=FD(),{clearErrors:T,elementRef:E,submitCountRef:D}=RD(),O=h||s,k=m??a,A={...p,disabled:O},{labelId:j}=BD(),M=WD({id:i}),[N]=vf({controlled:o,default:l,name:`FieldControl`,state:`value`}),P=o!==void 0,F=P?N:void 0,I=F==null?void 0:String(F),L=q(()=>w.inputRef.current?.value);ID(w.inputRef,M,I,L,!O,a),b(()=>{let e=I??w.inputRef.current?.value;e!==void 0&&S(e!==``)},[I,w.inputRef,S]),Kf(I,()=>{I!==void 0&&(T(k),v(I!==(y.initialValue??``)),w.change(I))});let R=g.useRef(null),z=Ke();return b(()=>{u&&R.current===ut(Re(R.current))&&x(!0)},[u,x]),Hr(`input`,e,{ref:[t,R],state:A,props:[{id:M,disabled:O,name:k,ref:w.inputRef,"aria-labelledby":j,autoFocus:u,...P?{value:F}:{defaultValue:l},onChange(e){let t=e.currentTarget.value,n=ja(ha,e.nativeEvent);c?.(t,n),!P&&(v(t!==(y.initialValue??``)),S(t!==``),!e.nativeEvent.defaultPrevented&&!n.isCanceled&&(T(k),w.change(t)))},onFocus(){x(!0)},onBlur(e){if(_(!0),x(!1),C===`onBlur`){let t=e.currentTarget.value;w.commit(t),P&&queueMicrotask(()=>{let e=w.inputRef.current?.value;e!==void 0&&e!==t&&e!==(y.initialValue??``)&&w.commit(e)})}},onKeyDown(e){if(e.currentTarget.tagName===`INPUT`&&e.key===`Enter`){_(!0);let t=e.currentTarget.value,n=e.currentTarget.form;if(n&&n===E.current&&!e.defaultPrevented){let t=e.currentTarget,n=D.current;z.start(0,()=>{D.current===n&&w.commit(t.value)})}else w.commit(t)}}},f,e=>w.getValidationProps(O,e)],stateAttributesMapping:kD})});function Mj({className:e,...t}){return(0,W.jsx)(kj,{"data-slot":`field`,className:Z(e),...t})}function Nj({className:e,...t}){return(0,W.jsx)(Aj,{"data-slot":`field-label`,className:Z(`text-foreground-intense mb-1.5 flex w-fit items-center text-sm font-medium select-none`,`data-disabled:opacity-disabled`,e),...t})}var Pj=g.forwardRef(function(e,t){return(0,W.jsx)(jj,{ref:t,...e})}),Fj=Uu(`w-full border text-foreground outline-none transition-[background-color,border-color,box-shadow] duration-200 motion-reduce:transition-none [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{outline:`bg-background border-border-strong hover:not-focus:not-focus-visible:not-has-focus:not-has-focus-visible:not-data-popup-open:not-has-data-popup-open:not-data-pressed:not-has-data-pressed:not-data-invalid:not-has-data-invalid:border-border-emphasis`,soft:`bg-background-muted border-transparent hover:not-focus:not-focus-visible:not-has-focus:not-has-focus-visible:not-data-popup-open:not-has-data-popup-open:not-data-pressed:not-has-data-pressed:not-data-invalid:not-has-data-invalid:border-border-strong`},size:{sm:`h-8 px-3 text-xs pointer-coarse:text-base rounded-sm gap-1.5 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='stroke-'])]:stroke-[1.75]`,md:`h-10 px-3.5 text-sm pointer-coarse:text-base rounded-md gap-2 [&_svg:not([class*='size-'])]:size-4.5 [&_svg:not([class*='stroke-'])]:stroke-[1.65]`,lg:`h-12 px-4 text-base rounded-lg gap-2 [&_svg:not([class*='size-'])]:size-5 [&_svg:not([class*='stroke-'])]:stroke-[1.65]`},state:{self:Z(`focus-visible:ring-3 focus-visible:ring-ring-input focus-visible:border-transparent focus-visible:bg-background`,`data-popup-open:ring-3 data-popup-open:ring-ring-input data-popup-open:border-transparent data-popup-open:bg-background`,`data-pressed:ring-3 data-pressed:ring-ring-input data-pressed:border-transparent data-pressed:bg-background`,`data-invalid:bg-error-subtle data-invalid:border-error`,`data-invalid:focus-visible:border-transparent data-invalid:focus-visible:ring-ring-error data-invalid:focus-visible:bg-background`,`data-invalid:data-popup-open:border-transparent data-invalid:data-popup-open:ring-ring-error data-invalid:data-popup-open:bg-background`,`data-invalid:data-pressed:border-transparent data-invalid:data-pressed:ring-ring-error data-invalid:data-pressed:bg-background`,`data-disabled:border-border-strong! data-disabled:bg-background-subtle! data-disabled:cursor-not-allowed data-disabled:border-dashed data-disabled:opacity-disabled`),within:Z(`flex items-center`,`has-focus:ring-[3px] has-focus:ring-ring-input has-focus:border-transparent has-focus:bg-background`,`has-data-popup-open:ring-3 has-data-popup-open:ring-ring-input has-data-popup-open:border-transparent has-data-popup-open:bg-background`,`has-data-pressed:ring-3 has-data-pressed:ring-ring-input has-data-pressed:border-transparent has-data-pressed:bg-background`,`data-invalid:bg-error-subtle data-invalid:border-error data-invalid:has-focus:border-transparent data-invalid:has-focus:ring-ring-error data-invalid:has-focus:bg-background`,`data-invalid:has-data-popup-open:border-transparent data-invalid:has-data-popup-open:ring-ring-error data-invalid:has-data-popup-open:bg-background`,`data-invalid:has-data-pressed:border-transparent data-invalid:has-data-pressed:ring-ring-error data-invalid:has-data-pressed:bg-background`,`has-data-invalid:bg-error-subtle has-data-invalid:border-error has-data-invalid:has-focus:border-transparent has-data-invalid:has-focus:ring-ring-error has-data-invalid:has-focus:bg-background`,`has-data-invalid:has-data-popup-open:border-transparent has-data-invalid:has-data-popup-open:ring-ring-error has-data-invalid:has-data-popup-open:bg-background`,`has-data-invalid:has-data-pressed:border-transparent has-data-invalid:has-data-pressed:ring-ring-error has-data-invalid:has-data-pressed:bg-background`,`has-[input:disabled]:border-border-strong! has-[input:disabled]:bg-background-subtle! has-[input:disabled]:cursor-not-allowed has-[input:disabled]:border-dashed has-[input:disabled]:opacity-disabled`)}},defaultVariants:{variant:`outline`,size:`md`,state:`self`}});function Ij(e,t){(Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,`value`)?.set)?.call(e,t),e.dispatchEvent(new Event(`input`,{bubbles:!0}))}function Lj({className:e,variant:t=`outline`,inputSize:n=`md`,clearable:r,startSlot:i,endSlot:a,onClear:o,inputProps:s,ref:c,...l}){let u=g.useRef(null),d=!!(r||i||a),f=l[`aria-invalid`],p=f===!0||f===`true`,m=zu(c,u),h=()=>{u.current&&l.value===void 0&&Ij(u.current,``),u.current?.focus(),o?.()};return d?(0,W.jsxs)(`div`,{"data-slot":`input-wrapper`,className:Z(Fj({variant:t,size:n,state:`within`}),e),...p?{"data-invalid":``}:{},children:[i&&(0,W.jsx)(`div`,{"data-slot":`input-start`,className:`-ms-1 flex shrink-0 items-center`,children:i}),(0,W.jsx)(Pj,{"data-slot":`input`,ref:m,placeholder:l.placeholder??` `,...s,className:Z(`peer text-foreground placeholder:text-foreground-subtle h-full min-w-0 flex-1 bg-transparent outline-none disabled:cursor-not-allowed`,s?.className),...l}),r&&(0,W.jsx)(`button`,{"data-slot":`input-clear`,type:`button`,onClick:h,className:`text-foreground-subtle hover:text-foreground pointer-events-none shrink-0 cursor-pointer opacity-0 transition-[opacity,color] duration-200 peer-not-placeholder-shown:pointer-events-auto peer-not-placeholder-shown:opacity-100`,tabIndex:-1,"aria-label":`Clear input`,children:(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`2 2 16 16`,fill:`currentColor`,className:`size-[1em]`,children:(0,W.jsx)(`path`,{d:`M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z`})})}),a&&(0,W.jsx)(`div`,{"data-slot":`input-end`,className:`-me-1 flex shrink-0 items-center`,children:a})]}):(0,W.jsx)(Pj,{"data-slot":`input`,ref:m,...s,className:Z(Fj({variant:t,size:n,state:`self`}),`placeholder:text-foreground-subtle`,s?.className,e),...l,...p?{"data-invalid":``}:{}})}var Rj=1024,zj=65535;function Bj({open:e,onOpenChange:t,port:n,busy:r,fixed:i,forwarding:a,onSave:o}){let[s,c]=(0,g.useState)(String(n)),[l,u]=(0,g.useState)(i);(0,g.useEffect)(()=>{e&&(c(String(n)),u(i))},[e]);let d=s.trim(),f=Number(d),p=d!==``&&Number.isInteger(f)&&f>=Rj&&f<=zj&&r===``;return(0,W.jsx)(hD,{open:e,onOpenChange:t,children:(0,W.jsxs)(gD,{className:`max-w-sm`,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.pairing.portTitle`)})}),(0,W.jsxs)(bD,{className:`flex flex-col gap-2`,children:[(0,W.jsxs)(Mj,{children:[(0,W.jsx)(Nj,{htmlFor:`relay-lan-port`,children:$(`panel.pairing.port`)}),(0,W.jsx)(Lj,{inputProps:{id:`relay-lan-port`,inputMode:`numeric`},value:s,onChange:e=>c(e.target.value)})]}),(0,W.jsx)(`p`,{className:`text-xs text-foreground-muted`,children:$(`panel.pairing.portHint`)}),(0,W.jsxs)(Mj,{children:[(0,W.jsx)(Nj,{htmlFor:`relay-port-fixed`,children:$(`panel.pairing.portFixed`)}),(0,W.jsx)(ZD,{id:`relay-port-fixed`,size:`md`,checked:l,disabled:r!==``,onCheckedChange:u,"aria-label":$(`panel.pairing.portFixed`)})]}),(0,W.jsx)(`p`,{className:`text-xs text-foreground-muted`,children:$(a?`panel.pairing.portForwarding`:`panel.pairing.portFixedHint`)})]}),(0,W.jsxs)(xD,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(Q,{variant:`outline`,disabled:r!==``,onClick:()=>t(!1),children:$(`panel.common.cancel`)}),(0,W.jsx)(Q,{variant:`primary`,disabled:!p,onClick:()=>o(f,l),children:$(`panel.common.save`)})]})]})})}function Vj({visible:e,onOpenConfig:t}){let[n,r]=(0,g.useState)(!1);return!e||n?null:(0,W.jsx)(hD,{open:!0,onOpenChange:e=>{e||r(!0)},children:(0,W.jsxs)(gD,{className:`max-w-md`,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.publicRelayNotice.title`)})}),(0,W.jsx)(bD,{className:`whitespace-pre-line text-sm leading-6 text-foreground-muted`,children:$(`panel.publicRelayNotice.body`)}),(0,W.jsxs)(xD,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(Q,{variant:`outline`,onClick:()=>{r(!0),t()},children:$(`panel.pairing.openConfig`)}),(0,W.jsx)(Q,{variant:`primary`,onClick:()=>r(!0),children:$(`panel.publicRelayNotice.action`)})]})]})})}var Hj={sm:`py-2`,md:`py-2.5`,lg:`py-3`},Uj={sm:`min-h-16`,md:`min-h-20`,lg:`min-h-24`},Wj={sm:`0.5rem`,md:`0.625rem`,lg:`0.75rem`};function Gj(e,t){(Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,`value`)?.set)?.call(e,t),e.dispatchEvent(new Event(`input`,{bubbles:!0}))}function Kj({className:e,variant:t=`outline`,inputSize:n=`md`,clearable:r,startSlot:i,endSlot:a,onClear:o,ref:s,rows:c=3,...l}){let u=g.useRef(null),d=zu(s,u),f=!!(r||i||a),p=l[`aria-invalid`],m=p===!0||p===`true`,h=()=>{u.current&&l.value===void 0&&Gj(u.current,``),u.current?.focus(),o?.()};return f?(0,W.jsxs)(`div`,{"data-slot":`textarea-wrapper`,"data-invalid":m?``:void 0,style:{"--textarea-h":`calc(${c} * 1lh + 2 * ${Wj[n]} + 2px)`},className:Z(Fj({variant:t,size:n,state:`within`}),`h-(--textarea-h) resize-y items-start overflow-hidden`,Uj[n],Hj[n],`has-[textarea:disabled]:border-border-strong! has-[textarea:disabled]:bg-background-subtle! has-[textarea:disabled]:opacity-disabled has-[textarea:disabled]:cursor-not-allowed has-[textarea:disabled]:border-dashed`,e),children:[i&&(0,W.jsx)(`div`,{"data-slot":`textarea-start`,className:`-ms-1 inline-flex h-lh shrink-0 items-center`,children:i}),(0,W.jsx)(jj,{"data-slot":`textarea`,ref:d,render:(0,W.jsx)(`textarea`,{rows:c}),placeholder:l.placeholder??` `,className:`peer text-foreground placeholder:text-foreground-subtle min-w-0 flex-1 resize-none self-stretch bg-transparent outline-none disabled:cursor-not-allowed`,...l}),r&&(0,W.jsx)(`button`,{"data-slot":`textarea-clear`,type:`button`,onClick:h,className:`text-foreground-subtle hover:text-foreground pointer-events-none inline-flex h-lh shrink-0 cursor-pointer items-center opacity-0 transition-[opacity,color] duration-200 peer-not-placeholder-shown:pointer-events-auto peer-not-placeholder-shown:opacity-100 motion-reduce:transition-none`,tabIndex:-1,"aria-label":`Clear input`,children:(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`2 2 16 16`,fill:`currentColor`,className:`size-[1em]`,children:(0,W.jsx)(`path`,{d:`M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z`})})}),a&&(0,W.jsx)(`div`,{"data-slot":`textarea-end`,className:`-me-1 inline-flex h-lh shrink-0 items-center`,children:a})]}):(0,W.jsx)(jj,{"data-slot":`textarea`,ref:d,render:(0,W.jsx)(`textarea`,{rows:c}),className:Z(Fj({variant:t,size:n,state:`self`}),`placeholder:text-foreground-subtle h-auto resize-y`,Hj[n],Uj[n],e),...l,...m?{"data-invalid":``}:{}})}function qj(e){return String(e||``).replace(/\s+#.*$/,``).trim().replace(/^["']/,``).replace(/["']$/,``).trim()}function Jj(e){let t={};for(let n of String(e||``).split(/\r?\n/)){let e=n.trim();if(!e||e.startsWith(`#`)||e.startsWith(`;`)||e.startsWith(`[`))continue;let r=/^([A-Za-z0-9_.]+)\s*[=:]\s*(.+)$/.exec(e);if(!r)continue;let i=r[1].toLowerCase();i in t||(t[i]=qj(r[2]))}return t}function Yj(e){let t=String(e||``).trim();if(!t)return[];let n=[...t.matchAll(/["']([^"']+)["']/g)].map(e=>e[1].trim()).filter(Boolean);return n.length?n:t.replace(/^\[|\]$/g,``).split(/[,\s]+/).map(e=>e.trim()).filter(Boolean)}function Xj(e){let t=(...t)=>{for(let n of t)if(e[n])return e[n];return``};return{type:(t(`type`)||``).toLowerCase(),remotePort:t(`remoteport`,`remote_port`),localPort:t(`localport`,`local_port`),domains:Yj(t(`customdomains`,`custom_domains`))}}function Zj(e){let t=e.split(/\[\[\s*proxies\s*\]\]/i),n=Jj(t[0]);return{serverAddr:n.serveraddr||n.server_addr||``,proxies:t.slice(1).map(e=>Xj(Jj(e)))}}function Qj(e){let t=[{name:`__global__`,pairs:{}}];for(let n of e.split(/\r?\n/)){let e=n.trim();if(!e||e.startsWith(`#`)||e.startsWith(`;`))continue;let r=/^\[([^\]]+)\]$/.exec(e);if(r){t.push({name:r[1].trim().toLowerCase(),pairs:{}});continue}let i=/^([A-Za-z0-9_.]+)\s*[=:]\s*(.+)$/.exec(e);if(!i)continue;let a=t[t.length-1],o=i[1].toLowerCase();o in a.pairs||(a.pairs[o]=qj(i[2]))}let n=t.find(e=>e.name===`common`)||t[0];return{serverAddr:n.pairs.server_addr||n.pairs.serveraddr||``,proxies:t.filter(e=>e.name!==`__global__`&&e.name!==`common`).map(e=>Xj(e.pairs))}}function $j(e){let t;try{t=JSON.parse(e)}catch{return null}let n=t&&typeof t==`object`?t:{};return{serverAddr:typeof n.serverAddr==`string`?n.serverAddr:typeof n.server_addr==`string`?n.server_addr:``,proxies:(Array.isArray(n.proxies)?n.proxies:[]).map(e=>{let t=e&&typeof e==`object`?e:{},n=e=>typeof e==`string`||typeof e==`number`?String(e):``,r=t.customDomains??t.custom_domains;return{type:n(t.type).toLowerCase(),remotePort:n(t.remotePort??t.remote_port),localPort:n(t.localPort??t.local_port),domains:Array.isArray(r)?r.map(e=>String(e)):Yj(n(r))}})}}function eM(e){if(!/^\d+$/.test(String(e||``)))return null;let t=Number(e);return Number.isInteger(t)&&t>=1&&t<=65535?t:null}function tM(e,t){for(let n of t){if(n.type&&n.type!==`tcp`)continue;let t=eM(n.remotePort);if(e&&t!==null)return{ok:!0,field:`tcp`,value:`${e}:${t}`,kind:`tcp`}}for(let e of t)if((e.type===`https`||e.type===`http`)&&e.domains.length)return{ok:!0,field:`direct`,value:`https://${e.domains[0]}`,kind:`https`};for(let n of t){if(n.type&&n.type!==`tcp`)continue;let t=eM(n.localPort);if(e&&t!==null)return{ok:!0,field:`tcp`,value:`${e}:${t}`,kind:`tcp`,note:`inferred-local-port`,port:t}}return{ok:!1,reason:`no-address`}}function nM(e){let t=String(e||``).trim();if(!t)return{ok:!1,reason:`empty`};let n=t.replace(/^[a-z][a-z0-9+.-]*:\/\//i,``).replace(/\/+$/,``).trim(),r=/^(\[[^\]]+\]|[^\s/:?#]+):(\d+)$/.exec(n);if(r){let e=Number(r[2]);return Number.isInteger(e)&&e>=1&&e<=65535?{ok:!0,field:`tcp`,value:`${r[1]}:${e}`,kind:`tcp`}:{ok:!1,reason:`bad-tcp`}}let i;return i=t.startsWith(`{`)?$j(t)||{serverAddr:``,proxies:[]}:/\[\[\s*proxies\s*\]\]/i.test(t)?Zj(t):/^\s*\[common\]\s*$/im.test(t)||/(?:^|[\r\n])\s*server_addr\s*=/i.test(t)?Qj(t):Zj(t),tM(i.serverAddr,i.proxies)}function rM(e){return/serverAddr|server_addr|\[\[\s*proxies\s*\]\]|\[common\]/i.test(e)}function iM({open:e,onOpenChange:t,onImport:n}){let[r,i]=(0,g.useState)(``),[a,o]=(0,g.useState)(``),s=(0,g.useMemo)(()=>nM(r),[r]);(0,g.useEffect)(()=>{e&&o(``)},[e]);function c(){if(!s.ok)return;if(/^\s*\[common\]\s*$/im.test(r)||/^\s*server_addr\s*=/im.test(r)){o($(`panel.frp.iniUnsupported`));return}let e=s.value;n({field:s.field,value:e,...rM(r)?{config:r}:{}}),t(!1)}return(0,W.jsx)(hD,{open:e,onOpenChange:t,children:(0,W.jsxs)(gD,{className:`w-[min(560px,92vw)]`,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.frp.title`)})}),(0,W.jsxs)(bD,{className:`flex flex-col gap-3`,children:[(0,W.jsx)(`p`,{className:`text-xs leading-5 text-foreground-muted`,children:$(`panel.frp.hint`)}),(0,W.jsxs)(Mj,{children:[(0,W.jsx)(Nj,{htmlFor:`frp-import`,children:$(`panel.frp.label`)}),(0,W.jsx)(Kj,{id:`frp-import`,rows:6,value:r,onChange:e=>i(e.target.value),autoComplete:`off`,spellCheck:!1})]}),r.trim()?s.ok?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`p`,{role:`status`,className:`text-xs text-foreground-muted`,children:$(s.field===`tcp`?`panel.frp.detectedTcp`:`panel.frp.detectedDirect`,{address:s.value})}),s.note===`inferred-local-port`?(0,W.jsx)(`p`,{className:`text-xs text-foreground-muted`,children:$(`panel.frp.inferredPort`,{port:s.port??``})}):null]}):(0,W.jsx)(`p`,{className:`text-xs text-error`,children:$(s.reason===`empty`?`panel.frp.empty`:`panel.frp.badFormat`)}):null,a?(0,W.jsx)(`p`,{className:`text-xs text-error`,children:a}):null]}),(0,W.jsxs)(xD,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(Q,{variant:`outline`,onClick:()=>t(!1),children:$(`panel.common.cancel`)}),(0,W.jsx)(Q,{variant:`primary`,disabled:!s.ok,onClick:c,children:$(`panel.frp.fill`)})]})]})})}var aM=.7,oM=2;function sM(e){let t=Number.isFinite(e)&&e>0?e:0;return t>=600?1:t<=100?t/100*aM:aM+(t-100)/500*.30000000000000004}function cM(e,t,n){let r=e.map(e=>typeof e==`number`&&Number.isFinite(e)&&e>=0?e:null);if(!r.some(e=>e!==null))return``;let i=r.length>1?t/(r.length-1):0,a=Math.max(1,n-4),o=[],s=!1;return r.forEach((e,n)=>{if(e===null){s=!1;return}let c=r.length>1?n*i:t/2,l=oM+sM(e)*a;o.push(`${s?`L`:`M`}${c.toFixed(1)} ${l.toFixed(1)}`),s=!0}),o.join(` `)}function lM(e){return typeof e!=`number`||!Number.isFinite(e)?`none`:e<=100?`fast`:e<=600?`ok`:`slow`}var uM=5e3,dM=132,fM=28;function pM(e){return e===`fast`?`text-success`:e===`ok`?`text-warning`:e===`slow`?`text-destructive`:`text-foreground-muted`}function mM(e){return e===`fast`?`#16a34a`:e===`ok`?`#d97706`:e===`slow`?`#dc2626`:`#9ca3af`}function hM(e){return typeof e!=`number`||!Number.isFinite(e)?`—`:`${Math.round(e)} ms`}function gM({open:e,onOpenChange:t,activeUrl:n}){let[r,i]=(0,g.useState)({}),[a,o]=(0,g.useState)(``),s=(0,g.useRef)(!1),c=n.trim().replace(/\/+$/,``),l=[...new Set([...Kk.map(e=>e.url),.../^https?:\/\//i.test(c)?[c]:[]])],u=(0,g.useRef)(null);return(0,g.useEffect)(()=>{if(!e){u.current!==null&&(clearInterval(u.current),u.current=null);return}let t=!0;o(``);let n=[...new Set([...Kk.map(e=>e.url),.../^https?:\/\//i.test(c)?[c]:[]])];i(Object.fromEntries(n.map(e=>[e,[null]])));async function r(){if(t&&!s.current){s.current=!0;try{let e=await iO(`/api/relay/probe-relays`,{urls:n});if(!t)return;let r=new Map((e.results||[]).map(e=>[e.url,e.ms]));i(e=>{let t={};for(let i of n)t[i]=[...e[i]||[],r.get(i)??null].slice(-14);return t}),o(``)}catch(e){t&&(i(e=>Object.fromEntries(n.map(t=>[t,[...e[t]||[],null].slice(-14)]))),o(cO(e)))}finally{s.current=!1}}}return r(),u.current=setInterval(()=>{r()},uM),()=>{t=!1,u.current!==null&&(clearInterval(u.current),u.current=null)}},[e,c]),(0,W.jsx)(hD,{open:e,onOpenChange:t,children:(0,W.jsxs)(gD,{children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.relay.panelTitle`)})}),(0,W.jsxs)(bD,{className:`flex max-h-[60vh] flex-col gap-1 overflow-y-auto`,children:[(0,W.jsx)(`p`,{className:`mb-2 text-xs text-foreground-muted`,children:$(`panel.relay.panelHint`)}),l.map(e=>{let t={url:e},i=r[t.url]||[null],a=i[i.length-1]??null,o=lM(a),s=cM(i,dM,fM),c=t.url===n;return(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-md border border-border-muted px-3 py-2`,children:[(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,W.jsx)(`span`,{className:`truncate font-mono text-sm`,children:t.url}),c?(0,W.jsx)(`span`,{className:`text-xs text-primary`,children:$(`panel.relay.selected`)}):null]}),(0,W.jsxs)(`div`,{className:`flex shrink-0 items-center gap-3`,children:[s?(0,W.jsx)(`svg`,{width:dM,height:fM,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:s,stroke:mM(o),strokeWidth:1.5,fill:`none`})}):null,(0,W.jsx)(`span`,{className:`w-16 text-right text-sm tabular-nums ${pM(o)}`,children:hM(a)})]})]},t.url)}),a?(0,W.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:a}):null]}),(0,W.jsx)(xD,{children:(0,W.jsx)(Q,{variant:`outline`,onClick:()=>t(!1),children:$(`panel.common.close`)})})]})})}function _M({id:e,value:t,placeholder:n,ariaLabel:r,options:i,emptyText:a,onChange:o}){return(0,W.jsx)(Lj,{inputProps:{id:e,className:`font-mono`},value:t,placeholder:n,onChange:e=>o(e.target.value),endSlot:(0,W.jsxs)(kh,{children:[(0,W.jsx)(Ah,{"aria-label":r,className:`-mr-1 flex h-7 w-7 shrink-0 cursor-pointer items-center justify-center rounded text-foreground-muted hover:text-foreground-strong focus-visible:outline-none`,children:(0,W.jsx)(`svg`,{viewBox:`0 0 24 24`,className:`size-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,W.jsx)(`path`,{d:`m6 9 6 6 6-6`})})}),(0,W.jsx)(Nh,{align:`end`,style:{width:`auto`,minWidth:`18rem`,maxWidth:`32rem`},children:i.length===0?(0,W.jsx)(`div`,{className:`px-3 py-2 text-xs text-foreground-muted`,children:a}):i.map(e=>(0,W.jsx)(Ih,{onClick:()=>o(e.value),children:(0,W.jsx)(`span`,{className:`font-mono text-xs break-all`,children:e.label})},e.value))})]})})}function vM({open:e,onOpenChange:t,status:n,addressBook:r,addressError:i=``,onRetryAddresses:a,lanUrls:o,busy:s,onSave:c,onSavePreferred:l}){let[u,d]=(0,g.useState)(n.relayUrl),[f,p]=(0,g.useState)(``),[m,h]=(0,g.useState)(``),[_,v]=(0,g.useState)(``),[y,b]=(0,g.useState)(``),[x,S]=(0,g.useState)(``),[C,w]=(0,g.useState)(!1),[T,E]=(0,g.useState)(!1),[D,O]=(0,g.useState)(),[k,A]=(0,g.useState)(!1),j=(0,g.useRef)(null),M=(0,g.useRef)(null),N=(0,g.useRef)(!1),P=(0,g.useRef)(!1),F=(0,g.useRef)(!1),I=(0,g.useRef)(!1),L=r?r.lan.length>0?r.lan:r.public:[];(0,g.useEffect)(()=>{e&&d(n.relayUrl)},[e]),(0,g.useEffect)(()=>{e||(w(!1),E(!1),O(void 0))},[e]),(0,g.useEffect)(()=>{if(!e){N.current=!1,P.current=!1,F.current=!1,I.current=!1,S(``);return}if(N.current||p(r?.manual??``),P.current||h(r?.manualIpv6||r?.ipv6?.[0]?.url||``),F.current||v(r?.manualTcp??``),!I.current){let e=r?r.lan.length>0?r.lan:r.public:[];b((r?.preferred||``).trim()||(e[0]?.address??``))}},[e,r]);let R=s===``,z=Kk.find(e=>e.url===u.trim())??null,B=n.publicRelayBlocked===!0,V=e=>e.trim().replace(/\/+$/,``);function H(){if(!R)return;let e={};z?e.relayUrls=Kk.map(e=>e.url):u.trim()!==n.relayUrl&&(e.relayUrl=u.trim());let t=V(f);t!==V(r?.manual??``)&&(e.manualLanUrl=t);let i=V(m);i!==V(r?.manualIpv6||r?.ipv6?.[0]?.url||``)&&(e.manualIpv6Url=i);let a=V(_);a!==V(r?.manualTcp??``)&&(e.manualTcpUrl=a);let o=y.trim();if(I.current&&o!==(r?.preferred??``).trim()){if(o&&!L.some(e=>e.address===o)){S($(`panel.address.lanUnknown`));return}e.preferredLanAddress=o}c(e,D)}return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(hD,{open:e,onOpenChange:e=>{s!==`config`&&t(e)},children:(0,W.jsxs)(gD,{className:`w-[min(1100px,92vw)]`,initialFocus:M,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.pairing.openConfig`)})}),(0,W.jsx)(`div`,{ref:M,tabIndex:-1,className:`outline-none`,children:(0,W.jsxs)(bD,{className:`grid max-h-[calc(100vh-13rem)] grid-cols-2 items-start gap-x-8 gap-y-4 overflow-y-auto`,children:[(0,W.jsxs)(Mj,{children:[(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-1`,children:[(0,W.jsx)(Nj,{children:$(`panel.relay.publicKind`)}),(0,W.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,onClick:()=>A(!0),children:$(`panel.relay.viewPanel`)}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:!R||B,onClick:()=>d(z?``:Kk[0].url),children:$(z?`panel.relay.disablePublic`:`panel.relay.enablePublic`)})]})]}),B?(0,W.jsx)(Lj,{inputProps:{className:`text-foreground-muted`,readOnly:!0,"aria-label":$(`panel.relay.publicKind`)},value:$(`panel.relay.publicDisabled`)}):(0,W.jsx)(`div`,{className:`flex flex-col gap-1`,children:Kk.map(e=>(0,W.jsx)(Lj,{inputProps:{className:`font-mono`,readOnly:!0,"aria-label":$(`panel.relay.publicKind`)},value:e.url},e.url))})]}),(0,W.jsxs)(Mj,{children:[(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-1`,children:[(0,W.jsx)(Nj,{htmlFor:`relay-url`,children:$(`panel.relay.selfKind`)}),(0,W.jsx)(`a`,{href:Uk,target:`_blank`,rel:`noreferrer noopener`,className:Gu({variant:`ghost`,size:`sm`}),children:$(`panel.relay.selfRepo`)})]}),(0,W.jsx)(Lj,{inputProps:{id:`relay-url`,className:`font-mono`},value:z?``:u,placeholder:`https://example.com`,onChange:e=>d(e.target.value)})]}),(0,W.jsxs)(Mj,{children:[(0,W.jsx)(Nj,{htmlFor:`relay-manual-lan`,children:$(`panel.address.direct`)}),(0,W.jsx)(Lj,{inputProps:{id:`relay-manual-lan`,className:`font-mono`},value:f,placeholder:$(`panel.address.directPlaceholder`),onChange:e=>{N.current=!0,p(e.target.value)}})]}),(0,W.jsxs)(Mj,{children:[(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-1`,children:[(0,W.jsx)(Nj,{htmlFor:`relay-manual-tcp`,children:$(`panel.address.tcp`)}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,onClick:()=>E(!0),children:$(`panel.address.frpImport`)})]}),(0,W.jsx)(Lj,{inputProps:{id:`relay-manual-tcp`,className:`font-mono`},value:_,placeholder:$(`panel.address.tcpPlaceholder`),onChange:e=>{F.current=!0,v(e.target.value)}})]}),(0,W.jsxs)(Mj,{children:[(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-1`,children:[(0,W.jsx)(Nj,{htmlFor:`relay-preferred-lan`,children:$(`panel.address.lan`)}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,onClick:()=>w(!0),children:$(`panel.onboarding.chooseAddress`)})]}),(0,W.jsx)(_M,{id:`relay-preferred-lan`,value:y,placeholder:$(`panel.address.lanPlaceholder`),ariaLabel:$(`panel.address.lan`),options:L.map(e=>({value:e.address,label:e.url})),emptyText:$(`panel.address.empty`),onChange:e=>{I.current=!0,S(``),b(e)}}),x?(0,W.jsx)(`p`,{className:`text-xs text-error`,children:x}):null,i?(0,W.jsxs)(`p`,{className:`text-xs text-error`,children:[$(`panel.address.loadFailed`),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,onClick:a,children:$(`panel.address.retry`)})]}):null]}),(0,W.jsxs)(Mj,{children:[(0,W.jsx)(Nj,{htmlFor:`relay-manual-ipv6`,children:$(`panel.address.ipv6Url`)}),(0,W.jsx)(_M,{id:`relay-manual-ipv6`,value:m,placeholder:$(`panel.address.ipv6Placeholder`),ariaLabel:$(`panel.address.ipv6Url`),options:(r?.ipv6??[]).map(e=>({value:e.url,label:e.interface?`${e.url} · ${e.interface}`:e.url})),emptyText:$(`panel.address.empty`),onChange:e=>{P.current=!0,h(e)}})]})]})}),(0,W.jsxs)(xD,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(Q,{variant:`outline`,disabled:s===`config`,onClick:()=>t(!1),children:$(`panel.common.cancel`)}),(0,W.jsx)(Q,{variant:`primary`,disabled:!R,onClick:H,children:$(`panel.relay.saveConfig`)})]})]})}),(0,W.jsx)(hD,{open:C,onOpenChange:w,children:(0,W.jsxs)(gD,{className:`w-[min(560px,92vw)]`,initialFocus:j,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.address.lan`)})}),(0,W.jsx)(`div`,{ref:j,tabIndex:-1,className:`outline-none`,children:(0,W.jsx)(bD,{className:`max-h-[60vh] overflow-y-auto px-1 py-2`,children:(0,W.jsx)(mj,{align:`start`,book:r,error:i,onRetry:a,port:n.lan.port,value:r?.preferred??``,busy:s!==``,fallbackUrls:o,onChange:e=>{l(e),w(!1)}})})}),(0,W.jsx)(xD,{className:`flex justify-end`,children:(0,W.jsx)(Q,{variant:`outline`,onClick:()=>w(!1),children:$(`panel.common.close`)})})]})}),(0,W.jsx)(iM,{open:T,onOpenChange:E,onImport:e=>{O(e.config?{config:e.config,field:e.field,value:e.value}:void 0),e.field===`tcp`?(F.current=!0,v(e.value)):(N.current=!0,p(e.value))}}),(0,W.jsx)(gM,{open:k,onOpenChange:A,activeUrl:n.relayUrl})]})}function yM(e){return e.available?e.enabled?e.error?`panel.tailcat.error`:e.ready?`panel.tailcat.ready`:`panel.tailcat.starting`:`panel.tailcat.disabled`:`panel.tailcat.unavailable`}function bM(e){return e.length>16?`${e.slice(0,12)}…${e.slice(-4)}`:e}function xM({open:e,onOpenChange:t,onChanged:n}){let r=uO(),[i,a]=(0,g.useState)(null),[o,s]=(0,g.useState)(``),[c,l]=(0,g.useState)(``),u=(0,g.useCallback)(async()=>{try{a(await rO(`/api/relay/tailcat`)),s(``)}catch(e){s(cO(e))}},[]);(0,g.useEffect)(()=>{if(!e)return;let t=()=>{c_()&&u()};t();let n=window.setInterval(t,2e3);return document.addEventListener(`visibilitychange`,t),()=>{window.clearInterval(n),document.removeEventListener(`visibilitychange`,t)}},[e,u]);let d=(0,g.useCallback)(async(e,t,i)=>{l(e);try{a(await t()),r(`soft`,i),n?.()}catch(e){r(`error`,cO(e))}finally{l(``)}},[r,n]),f=e=>void d(`toggle`,()=>iO(`/api/relay/tailcat/enabled`,{enabled:e}),$(e?`panel.tailcat.enabledToast`:`panel.tailcat.disabledToast`)),p=e=>{window.confirm($(`panel.tailcat.revokeConfirm`))&&d(`revoke`,()=>iO(`/api/relay/tailcat/revoke`,{client:e}),$(`panel.tailcat.revokedToast`))},m=i?.status??null,h=i?.allowedClients??[];return(0,W.jsx)(hD,{open:e,onOpenChange:t,children:(0,W.jsxs)(gD,{className:`max-w-md`,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.tailcat.title`)})}),(0,W.jsxs)(bD,{className:`flex flex-col gap-3`,children:[(0,W.jsx)(`p`,{className:`text-xs leading-5 text-foreground-muted`,children:$(`panel.tailcat.hint`)}),o?(0,W.jsx)(`p`,{className:`text-xs text-error`,children:o}):null,i===null?(0,W.jsxs)(`div`,{className:`flex items-center gap-2 py-2 text-sm text-foreground-muted`,children:[(0,W.jsx)(BE,{}),$(`panel.shell.readingStatus`)]}):m===null?(0,W.jsx)(`p`,{className:`text-sm text-foreground-muted`,children:$(`panel.tailcat.unavailable`)}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 border-b border-border-muted py-2`,children:[(0,W.jsx)(`span`,{className:`shrink-0 text-sm text-foreground-muted`,children:$(`panel.tailcat.title`)}),(0,W.jsxs)(`span`,{className:`min-w-0 text-right text-sm break-all`,children:[$(yM(m)),m.error?(0,W.jsx)(`span`,{className:`ml-1 text-xs text-foreground-muted`,children:m.error}):null]})]}),(0,W.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 border-b border-border-muted py-2`,children:[(0,W.jsx)(`span`,{className:`shrink-0 text-sm text-foreground-muted`,children:$(`panel.tailcat.addressLabel`)}),(0,W.jsx)(`span`,{className:`min-w-0 text-right font-mono text-xs break-all text-foreground-strong`,children:m.address||$(`panel.tailcat.noAddress`)})]}),(0,W.jsxs)(`label`,{className:`flex items-center justify-between gap-4 border-b border-border-muted py-2`,children:[(0,W.jsx)(`span`,{className:`text-sm text-foreground-muted`,children:$(`panel.tailcat.enableLabel`)}),(0,W.jsx)(ZD,{size:`md`,checked:m.enabled,disabled:!m.available||c!==``,onCheckedChange:e=>f(e),"aria-label":$(`panel.tailcat.enableLabel`)})]}),(0,W.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,W.jsxs)(`span`,{className:`text-sm text-foreground-muted`,children:[$(`panel.tailcat.pairedLabel`),` (`,m.paired,`)`]}),h.length===0?(0,W.jsx)(`span`,{className:`text-xs text-foreground-muted`,children:$(`panel.tailcat.noClients`)}):(0,W.jsx)(`ul`,{className:`flex flex-col`,children:h.map(e=>(0,W.jsxs)(`li`,{className:`flex items-center justify-between gap-3 border-b border-border-muted py-1.5 last:border-b-0`,children:[(0,W.jsx)(`span`,{className:`min-w-0 font-mono text-xs break-all text-foreground-strong`,children:bM(e)}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:c!==``,onClick:()=>p(e),children:$(`panel.tailcat.revoke`)})]},e))})]})]})]}),(0,W.jsx)(xD,{className:`flex justify-end gap-2`,children:(0,W.jsx)(Q,{variant:`outline`,disabled:c!==``,onClick:()=>t(!1),children:$(`panel.common.close`)})})]})})}var SM=`/dsh-market/api/v1`,CM=`dsh-mobile-plugin`,wM=class extends Error{constructor(e,t,n){super(n),K(this,`status`,void 0),K(this,`code`,void 0),this.name=`MarketError`,this.status=e,this.code=t}},TM=e=>e&&typeof e==`object`?e:{},EM=e=>typeof e==`string`&&e!==``?e:null;async function DM(e,t){let n;try{n=await fetch(`${SM}${e}`,{credentials:`same-origin`,...t})}catch(e){throw new wM(0,`market_unreachable`,$(`panel.net.marketUnreachable`,{message:String(e?.message||e)}))}let r=await n.json().catch(()=>null);if(!n.ok){let e=TM(r),t=TM(e.failure),i=EM(t.code)??(typeof e.error==`string`?e.error:`HTTP ${n.status}`),a=EM(t.message)??EM(e.error)??$(`panel.net.marketHttp`,{status:n.status});throw new wM(n.status,i,a)}return r}async function OM(){try{return{available:!0,restartSupported:TM(TM(await DM(`/capabilities`)).restart).supported===!0}}catch{return{available:!1,restartSupported:!1}}}async function kM(e=CM,t=!1){let n=TM(await DM(`/updates${`?name=${encodeURIComponent(e)}${t?`&force=1`:``}`}`)),r=TM(n.package??n);return{installedVersion:EM(r.installedVersion),latestVersion:EM(r.latestVersion),updateAvailable:r.updateAvailable===!0,source:EM(r.source)}}var AM=new Set([`OPERATION_BUSY`,`RELEASE_TOO_FRESH`,`VERSION_UNCHANGED`,`PLUGIN_NOT_INSTALLED`,`AGENTS_RUNNING`]);function jM(e){let t=e.installedVersion??e.beforeVersion;return e.failure?{text:$(`panel.update.applyFailed`,{message:e.failure.message}),ok:!1}:e.installed===!1?e.skipped?{text:t?$(`panel.update.applyUpToDate`,{version:t}):$(`panel.update.applyUpToDatePlain`),ok:!0}:{text:t?$(`panel.update.applyDiskUnchanged`,{version:t}):$(`panel.update.applyFailedRetry`),ok:!1}:{text:t?$(`panel.update.applySwitched`,{version:t}):$(`panel.update.applySwitchedPlain`),ok:!0}}function MM({version:e,busy:t,onRestartSidecar:n,extraActions:r,onIssues:i,bare:a=!1}){let[o,s]=(0,g.useState)(null),[c,l]=(0,g.useState)(!1),[u,d]=(0,g.useState)(!1),[f,p]=(0,g.useState)(null),[m,h]=(0,g.useState)(null),[_,v]=(0,g.useState)(``),y=uO(),b=(0,g.useCallback)(e=>{e&&s(t=>({...e,available:e.available===!0||t?.available===!0}))},[]),x=o!==null&&o.available&&!u,S=t!==``||_!==``,C=(0,g.useCallback)(async()=>{try{let e=await SO();s(e),d(e.available!==!0)}catch(e){s(null),d(vO(e))}finally{l(!0)}},[]);(0,g.useEffect)(()=>{C()},[C]),(0,g.useEffect)(()=>{if(!c)return;let e=!0;return CO().then(t=>{e&&(t.update&&h(t.update),t.status&&b(t.status))}).catch(()=>{}),()=>{e=!1}},[c]);let w=o?.swapping===!0;(0,g.useEffect)(()=>{if(!w)return;let e=window.setInterval(()=>void C(),1500);return()=>window.clearInterval(e)},[w,C]),(0,g.useEffect)(()=>{if(x||!c)return;let e=!0;return OM().then(t=>{e&&p(t)}),()=>{e=!1}},[x,c]);let T=(0,g.useCallback)(e=>{if(e instanceof wM&&AM.has(e.code)){y(`soft`,`${e.message}(${e.code})`);return}y(`error`,cO(e))},[]),E=(0,g.useCallback)(async()=>{v(`check`);try{let e=await CO();e.status&&b(e.status),e.update&&h(e.update)}catch(e){_O(e)||vO(e)?await C():y(`error`,cO(e))}finally{v(``)}},[C]),D=(0,g.useCallback)(async e=>{v(`apply`);try{let t=await wO(e);t.status&&b(t.status);let n=jM(t),r=t.failure!==null&&AM.has(t.failure.code);n.ok||r?y(`soft`,n.text):y(`error`,n.text)}catch(e){_O(e)||vO(e)?await C():y(`error`,cO(e))}finally{v(``)}},[C]),O=(0,g.useCallback)(async()=>{v(`check`);try{let e=await CO();e.status&&b(e.status),h(e.update)}catch(e){if(!_O(e))h(null),y(`error`,cO(e));else try{h(await kM(void 0,!0))}catch(e){h(null),T(e)}}finally{v(``)}},[T]),k=m?.source??o?.marketResult?.source??null,A=k===`linked`||k===`file`||k===`workspace`,j=m?.updateAvailable??o?.marketResult?.updateAvailable??!1,M=o?.lastApply?jM(o.lastApply):null,N=o?.version??null,P=x&&!!N&&!!e&&N!==e,F=o?.installedVersion??null,I=x&&!!F&&!!e&&F!==e;(0,g.useEffect)(()=>{if(!i)return;let t=[];P&&t.push({title:$(`panel.update.runningVersion`),detail:$(`panel.update.versionDrift`,{version:e??``,shell:N??``})}),I&&t.push({title:$(`panel.update.diskVersion`),detail:$(`panel.update.diskDrift`,{disk:F??``,running:e??``})}),i(t)},[i,P,I,e,N,F]);let L=(0,W.jsxs)(W.Fragment,{children:[c?null:(0,W.jsxs)(`div`,{className:`flex items-center gap-2 py-2 text-sm text-foreground-muted`,children:[(0,W.jsx)(BE,{}),$(`panel.update.reading`)]}),u?(0,W.jsx)(W.Fragment,{children:(0,W.jsxs)(`p`,{className:`mt-3 text-xs text-foreground-muted`,children:[j?$(`panel.update.hasNew`):``,$(`panel.update.nothingToInstall`)]})}):null,c&&!x&&!u&&f!==null&&!f.available?(0,W.jsxs)(JE,{variant:`info`,className:`mt-3`,children:[(0,W.jsx)(XE,{}),(0,W.jsx)(ZE,{children:$(`panel.update.noMarketTitle`)}),(0,W.jsx)(QE,{children:$(`panel.update.noMarketBody`)})]}):null,x&&o?(0,W.jsxs)(W.Fragment,{children:[o.lastError?(0,W.jsx)(`p`,{className:`mt-2 text-xs text-foreground-muted`,children:$(`panel.update.lastErrorLine`,{message:o.lastError})}):null,(0,W.jsxs)(`div`,{className:`flex flex-wrap justify-end gap-1 lg:flex-nowrap`,children:[r,(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:S,onClick:n,children:$(`panel.update.restartSidecar`)}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:S,onClick:()=>void E(),children:$(_===`check`?`panel.update.checking`:`panel.update.check`)}),A?null:(0,W.jsx)(Q,{variant:`primary`,size:`sm`,disabled:S,onClick:()=>void D(!1),children:$(_===`apply`?`panel.update.updating`:`panel.update.updateNow`)})]}),!A&&(j||M!==null&&!M.ok)?(0,W.jsx)(`div`,{className:`mt-2 flex justify-end`,children:(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:S,onClick:()=>void D(!0),children:$(`panel.update.forceHint`)})}):null]}):null,c&&!x&&!u&&f?.available?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(rk,{className:tk,children:(0,W.jsx)(ek,{label:$(`panel.update.checkResult`),children:$(j?`panel.update.resultHasNew`:`panel.update.resultUpToDate`)})}),(0,W.jsxs)(`div`,{className:`flex flex-wrap justify-end gap-1 lg:flex-nowrap`,children:[r,(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:S,onClick:n,children:$(`panel.update.restartSidecar`)}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:S,onClick:()=>void O(),children:$(_===`check`?`panel.update.checking`:`panel.update.check`)}),o!==null&&!A?(0,W.jsx)(Q,{variant:`primary`,size:`sm`,disabled:S,onClick:()=>void D(!1),children:$(_===`apply`?`panel.update.updating`:`panel.update.updateNow`)}):null]})]}):null]});return a?L:(0,W.jsxs)(cD,{frame:`solid`,children:[(0,W.jsx)(lD,{className:`px-4 py-3`,children:(0,W.jsxs)(uD,{className:`flex items-center gap-2 text-base lg:text-lg`,children:[(0,W.jsx)(`span`,{children:$(`panel.update.title`)}),(0,W.jsx)(nD,{variant:`soft`,size:`sm`,children:e||$(`panel.update.unknownVersion`)})]})}),L]})}function NM({webAccess:e,busy:t,onToggle:n}){let r=e?.enabled===!0,i=typeof e?.expiresAt==`number`?e.expiresAt:0;return(0,W.jsxs)(cD,{frame:`solid`,children:[(0,W.jsx)(lD,{className:`px-4 py-3`,children:(0,W.jsx)(uD,{className:`text-base lg:text-lg`,children:$(`panel.webAccess.title`)})}),(0,W.jsx)(rk,{children:(0,W.jsx)(ek,{label:$(`panel.webAccess.state`),tone:r?`ok`:`off`,children:r?$(`panel.webAccess.expires`,{time:hg(i)}):$(`panel.webAccess.closed`)})}),(0,W.jsx)(`p`,{className:`mt-2 text-xs leading-5 text-foreground-muted`,children:$(`panel.webAccess.hint`)}),(0,W.jsx)(`div`,{className:`mt-3 flex flex-wrap gap-2`,children:r?(0,W.jsx)(Q,{variant:`outline`,size:`sm`,disabled:t===`webAccess`,onClick:()=>n(!1),children:$(`panel.webAccess.close`)}):(0,W.jsx)(Q,{variant:`outline`,size:`sm`,disabled:t===`webAccess`,onClick:()=>n(!0),children:$(`panel.webAccess.open`)})})]})}function PM(e,t=``){let n=document.documentElement;n.setAttribute(`data-dshm-panel-state`,e),t?n.setAttribute(`data-dshm-panel-error`,t):n.removeAttribute(`data-dshm-panel-error`),window.parent!==window&&window.parent.postMessage({type:`dsh-mobile-plugin:panel-state`,state:e,message:t},`*`)}var FM=1500,IM=600;function LM(){return(0,W.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`size-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`path`,{d:`M4 7h16`}),(0,W.jsx)(`path`,{d:`M9 7V4.5A1.5 1.5 0 0 1 10.5 3h3A1.5 1.5 0 0 1 15 4.5V7`}),(0,W.jsx)(`path`,{d:`M6 7l1 12.5A2 2 0 0 0 9 21h6a2 2 0 0 0 2-1.5L18 7`}),(0,W.jsx)(`path`,{d:`M10 11v6M14 11v6`})]})}function RM(){let[e,t]=(0,g.useState)(null),[n,r]=(0,g.useState)(``),[i,a]=(0,g.useState)(``),[o,s]=(0,g.useState)(null),[c,l]=(0,g.useState)(``),[u,d]=(0,g.useState)(null),[f,p]=(0,g.useState)(``),[m,h]=(0,g.useState)([]),[_,v]=(0,g.useState)(!1),[y,b]=(0,g.useState)(!1),[x,S]=(0,g.useState)(!1),[C,w]=(0,g.useState)(!1),[T,E]=(0,g.useState)(!1),D=uO();(0,g.useEffect)(()=>{e?PM(`ready`):n&&PM(`error`,n)},[e,n]);let O=(0,g.useRef)(null),[k,A]=(0,g.useState)(0);(0,g.useEffect)(()=>{let e=O.current;if(!e||typeof ResizeObserver>`u`)return;let t=()=>A(e.getBoundingClientRect().height);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[e]);let j=(0,g.useCallback)(async()=>{try{t(await rO(`/api/relay/status`)),r(``)}catch(e){r(cO(e))}},[]),M=(0,g.useCallback)(async()=>{l(``);try{s(await rO(`/api/relay/pairing`)),l(``)}catch(e){s(null),l(cO(e))}},[]),N=(0,g.useCallback)(async()=>{try{d(await rO(`/api/relay/addresses`)),p(``)}catch(e){d(null),p(cO(e))}},[]);(0,g.useEffect)(()=>{let e=()=>{c_()&&j()};e();let t=0,n=window.setTimeout(()=>{t=window.setInterval(e,3e3)},FM);return document.addEventListener(`visibilitychange`,e),()=>{window.clearTimeout(n),t&&window.clearInterval(t),document.removeEventListener(`visibilitychange`,e)}},[j]),(0,g.useEffect)(()=>{if(!e?.enabled)return;let t=window.setTimeout(()=>void M(),IM);return()=>window.clearTimeout(t)},[e?.enabled,M]),(0,g.useEffect)(()=>{e?.enabled&&o&&e.pairingCode&&o.pairingCode!==e.pairingCode&&M()},[e?.pairingCode,e?.enabled,o,M]);let P=(0,g.useCallback)(async()=>{try{s(await rO(`/api/relay/pairing`)),l(``)}catch{}},[]);(0,g.useEffect)(()=>{if(!e?.enabled)return;let t=eO(o);if(t===null)return;let n=window.setTimeout(()=>void P(),t);return()=>window.clearTimeout(n)},[o,e?.enabled,P]),(0,g.useEffect)(()=>{if(!e?.enabled)return;let t=window.setTimeout(()=>void N(),IM);return()=>window.clearTimeout(t)},[e?.enabled,o,N]),(0,g.useEffect)(()=>{_&&e?.enabled&&(M(),N())},[_,e?.enabled,M,N]);let F=(0,g.useCallback)(async(e,t)=>{a(e);try{await t()}catch(e){D(`error`,cO(e))}finally{a(``)}},[D]),I=e=>F(`toggle`,async()=>{t(await iO(`/api/relay/toggle`,{enabled:e})),e?await M():(s(null),l(``)),D(`soft`,$(e?`panel.shell.remoteEnabled`:`panel.shell.remoteDisabled`))}),L=()=>F(`restart`,async()=>{let e=await iO(`/api/relay/restart-sidecar`);t(e.status),D(`soft`,$(`panel.shell.sidecarRestarted`))}),R=e=>F(`webAccess`,async()=>{let n=await iO(`/api/relay/web-access`,{enabled:e});t(e=>e&&{...e,webAccess:n.webAccess}),D(`soft`,$(e?`panel.webAccess.opened`:`panel.webAccess.closedNotice`))}),z=(e,n)=>F(`config`,async()=>{let r={...e};if(n){let e=await oO(n.config);if(!e.ok||!e.status?.running||e.status.error)throw await j(),Error(e.status?.error||$(`panel.connection.tcpFailed`));n.field===`tcp`&&(r.manualTcpUrl===void 0||r.manualTcpUrl===n.value)&&(r.manualTcpUrl=e.status.remoteAddress||n.value)}t(await iO(`/api/relay/config`,r)),v(!1),await Promise.all([M(),N()]),D(`soft`,$(`panel.shell.configSaved`))}),B=()=>{window.confirm($(`panel.frp.stopConfirm`))&&F(`frp`,async()=>{await sO(),await Promise.all([j(),N(),M()])})},V=(e,n)=>F(`config`,async()=>{let r=await iO(`/api/relay/config`,e,{keepApplyError:!0});t(r),r.applyError?D(`error`,$(`panel.shell.applyFailed`,{message:r.applyError})):D(`soft`,$(n))}),H=e=>V({pairingPolicy:e},e===`code`?`panel.shell.deviceAllowed`:`panel.shell.deviceDenied`),U=e=>V({controlReportEnabled:e},`panel.shell.configSaved`),ee=(e,n)=>F(`lan`,async()=>{t(await iO(`/api/relay/config`,{lanPort:e,lanPortFixed:n})),b(!1),await M(),D(`soft`,$(`panel.shell.lanSaved`))}),te=e=>F(`lan`,async()=>{t(await iO(`/api/relay/config`,{preferredLanAddress:e})),await Promise.all([M(),N()]),D(`soft`,e?$(`panel.shell.preferredAddress`,{address:e}):$(`panel.shell.preferredAuto`))}),G=e?e.tunnel.state===`connected`||e.lan.state===`listening`?`ok`:e.enabled?`warn`:`off`:null;return e?(0,W.jsxs)(`main`,{className:`mx-auto flex w-full max-w-[1200px] flex-col gap-3 p-4 sm:p-5`,children:[(0,W.jsxs)(`header`,{className:`flex flex-wrap items-center gap-x-3 gap-y-2`,children:[(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2`,children:[G?(0,W.jsx)($O,{tone:G}):null,(0,W.jsx)(nD,{variant:`soft`,size:`sm`,children:e.appVersion||$(`panel.shell.unknownVersion`)}),(0,W.jsx)(wA,{compact:!0})]}),i?(0,W.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-xs text-foreground-muted`,children:[(0,W.jsx)(BE,{}),$(`panel.shell.busy`)]}):null,(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1`,children:[(0,W.jsx)(Eg,{}),(0,W.jsx)(i_,{}),(0,W.jsx)(Q,{variant:`ghost`,size:`icon-md`,"aria-label":$(`panel.inbox.title`),title:$(`panel.inbox.title`),onClick:()=>E(!0),children:(0,W.jsx)(LM,{})}),(0,W.jsx)(Ck,{})]})]}),n?(0,W.jsxs)(JE,{variant:`error`,children:[(0,W.jsx)(XE,{}),(0,W.jsx)(ZE,{children:$(`panel.shell.statusFailed`)}),(0,W.jsx)(QE,{children:n})]}):null,(0,W.jsxs)(`div`,{className:`grid grid-cols-1 gap-3`,children:[(0,W.jsxs)(cD,{frame:`solid`,children:[(0,W.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 p-4 lg:grid-cols-10 lg:gap-6`,children:[(0,W.jsx)(`div`,{className:`lg:col-span-6`,children:(0,W.jsx)(_j,{bare:!0,status:e,pairing:o,addressBook:u,addressError:f,onRetryAddresses:()=>void N(),version:e.appVersion||``,versionIssues:m,busy:i,error:c,onRetryPairing:()=>void M(),onSavePreferred:e=>void te(e),onEditPort:()=>b(!0)})}),(0,W.jsxs)(`div`,{className:`lg:col-span-4`,children:[(0,W.jsx)(rk,{className:nk,children:(0,W.jsx)(vj,{status:e,busy:i,onChangePolicy:e=>void H(e),onToggleRemote:e=>void I(e),onChangeControlReport:e=>void U(e)})}),(0,W.jsx)(DO,{})]})]}),(0,W.jsx)(`div`,{className:`mt-4 flex h-12 items-center justify-end border-t border-border-muted`,children:(0,W.jsx)(MM,{bare:!0,version:e.appVersion||``,busy:i,onRestartSidecar:()=>void L(),onIssues:h,extraActions:(0,W.jsx)(W.Fragment,{children:(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,onClick:()=>v(!0),children:$(`panel.pairing.openConfig`)})})})})]}),(0,W.jsxs)(`div`,{className:`grid grid-cols-1 gap-3 md:grid-cols-2`,children:[(0,W.jsx)(`div`,{ref:O,children:(0,W.jsx)(gk,{status:e,addressBook:u,busy:i,onStopFrp:B,onManageTailcat:()=>S(!0),onManageP2P:()=>w(!0),restartError:e.sidecar.restartError})}),(0,W.jsx)(`div`,{className:`min-h-0`,style:k>0?{height:`${k}px`}:void 0,children:(0,W.jsx)(Vk,{busy:i,fill:!0})})]}),(0,W.jsx)(`div`,{className:`columns-1 gap-3 md:columns-2 xl:columns-3 [&>*]:mb-3 [&>*]:break-inside-avoid`,children:e.webAccess?.enabled&&e.panelScope!==`loopback`?(0,W.jsx)(NM,{webAccess:e.webAccess,busy:i,onToggle:e=>void R(e)}):null})]}),(0,W.jsx)(vM,{open:_,onOpenChange:v,status:e,addressBook:u,addressError:f,onRetryAddresses:()=>void N(),lanUrls:o?.lanUrls??[],busy:i,onSave:(e,t)=>void z(e,t),onSavePreferred:e=>void te(e)}),(0,W.jsx)(xM,{open:x,onOpenChange:S,onChanged:()=>void j()}),(0,W.jsx)(Sj,{open:C,onOpenChange:w,onChanged:()=>void j()}),(0,W.jsx)(Bj,{open:y,onOpenChange:b,port:o?.lanPort??e.lan.requestedPort??e.lan.port,busy:i,fixed:e.lanPortFixed===!0,forwarding:e.lanPortLockReason===`forwarding`,onSave:(e,t)=>void ee(e,t)}),(0,W.jsx)(hD,{open:T,onOpenChange:E,children:(0,W.jsxs)(gD,{className:`max-w-md`,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.inbox.title`)})}),(0,W.jsx)(bD,{children:(0,W.jsx)(DA,{framed:!1})})]})}),(0,W.jsx)(Vj,{visible:qk(e.relayUrl),onOpenConfig:()=>v(!0)})]}):(0,W.jsx)(`main`,{className:`mx-auto flex w-full max-w-5xl flex-col gap-3 p-5`,children:n?(0,W.jsx)(`p`,{className:`text-sm text-error`,children:n}):(0,W.jsxs)(`p`,{className:`flex items-center gap-2 text-sm text-foreground-muted`,children:[(0,W.jsx)(BE,{}),$(`panel.shell.readingStatus`)]})})}var zM=[{textKey:`panel.onboarding.linuxStep1`},{text:`systemctl status firewalld`,cmd:!0},{text:`sudo ufw status`,cmd:!0},{textKey:`panel.onboarding.linuxStep2`},{text:`sudo firewall-cmd --permanent --add-port={port}/tcp
108
- sudo firewall-cmd --reload`,cmd:!0},{text:`sudo ufw allow {port}/tcp`,cmd:!0},{textKey:`panel.onboarding.linuxStep3`}],BM=[{textKey:`panel.onboarding.macStep1`},{text:`/usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate`,cmd:!0},{textKey:`panel.onboarding.macStep2`},{text:`sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off`,cmd:!0},{textKey:`panel.onboarding.macStep3`}],VM=[{textKey:`panel.onboarding.winStep1`},{text:`Get-NetFirewallProfile | Select-Object Name, Enabled`,cmd:!0},{textKey:`panel.onboarding.winStep2`},{text:`New-NetFirewallRule -DisplayName "DSH Mobile {port}" -Direction Inbound -LocalPort {port} -Protocol TCP -Action Allow`,cmd:!0},{textKey:`panel.onboarding.winStep3`}];function HM(){return[$(`panel.onboarding.prompt.intro`),``,$(`panel.onboarding.prompt.situation`),$(`panel.onboarding.prompt.address`),$(`panel.onboarding.prompt.guess`),``,$(`panel.onboarding.prompt.ask`),$(`panel.onboarding.prompt.ask1`),$(`panel.onboarding.prompt.ask2`),$(`panel.onboarding.prompt.ask3`),$(`panel.onboarding.prompt.ask4`),``,$(`panel.onboarding.prompt.extra`)].join(`
109
- `)}function UM({title:e,steps:t,port:n,onCopied:r}){async function i(){try{await navigator.clipboard.writeText(HM()),r(!0)}catch{r(!1)}}return(0,W.jsxs)(`section`,{className:`flex flex-col gap-1.5 rounded-lg border border-border-muted bg-background-muted p-3`,children:[(0,W.jsx)(`h3`,{className:`text-center text-sm font-semibold text-foreground-intense`,children:e}),t.map(e=>{let t=(e.text??(e.textKey?$(e.textKey):``)).replace(/\{port\}/g,n);return e.cmd?(0,W.jsx)(`pre`,{className:`rounded bg-background-subtle px-2 py-1.5 font-mono text-[11px] leading-5 break-words whitespace-pre-wrap text-foreground-strong`,children:t},t):(0,W.jsx)(`p`,{className:`text-xs leading-5 text-foreground-muted`,children:t},t)}),(0,W.jsx)(Q,{className:`mt-auto`,variant:`outline`,size:`sm`,onClick:()=>void i(),children:$(`panel.onboarding.copyPromptHint`)})]})}function WM({open:e,onOpenChange:t,port:n}){let[r,i]=(0,g.useState)(``),a=e=>i(e?`ok`:`failed`);return(0,W.jsx)(hD,{open:e,onOpenChange:e=>{e||i(``),t(e)},children:(0,W.jsxs)(gD,{className:`w-[min(1200px,92vw)] max-w-none`,backdropProps:{className:`z-[80]`},viewportProps:{className:`z-[80]`},children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.onboarding.firewallTitle`)})}),(0,W.jsxs)(bD,{className:`flex flex-col gap-4`,children:[(0,W.jsxs)(`p`,{className:`text-sm text-foreground-muted`,children:[$(`panel.onboarding.firewallIntro`),` `,(0,W.jsx)(`span`,{className:`font-mono`,children:n}),$(`panel.onboarding.firewallIntroTail`)]}),(0,W.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-3`,children:[(0,W.jsx)(UM,{title:`Linux`,steps:zM,port:n,onCopied:a}),(0,W.jsx)(UM,{title:`Mac`,steps:BM,port:n,onCopied:a}),(0,W.jsx)(UM,{title:`Windows`,steps:VM,port:n,onCopied:a})]})]}),r?(0,W.jsx)(xD,{className:`flex justify-end`,children:(0,W.jsx)(`span`,{className:`text-xs text-foreground-muted`,children:$(r===`ok`?`panel.onboarding.copiedOk`:`panel.onboarding.copiedFailed`)})}):null]})})}var GM=18e5,KM=3e5,qM=15e3,JM=null,YM=0,XM=0,ZM=null;function QM(e){return typeof e!=`number`||!Number.isFinite(e)?!1:e===0||Date.now()-e>GM}function $M(e){if(!e&&ZM)return ZM;let t=(async()=>{let t=await rO(e?`/api/relay/selfcheck?force=1`:`/api/relay/selfcheck`);return JM=t,YM=Date.now(),t})();return e||(ZM=t,t.finally(()=>{ZM===t&&(ZM=null)})),t}function eN(e,t=``){let[n,r]=(0,g.useState)(JM),[i,a]=(0,g.useState)(!1),[o,s]=(0,g.useState)(``),[c,l]=(0,g.useState)(!1),u=(0,g.useRef)(!0);(0,g.useEffect)(()=>(u.current=!0,()=>{u.current=!1}),[]);let d=(0,g.useCallback)(async e=>{if(!e&&JM&&Date.now()-YM<qM){r(JM);return}a(!0);try{let t=await $M(e);if(!u.current)return;r(t),s(``),l(!1)}catch(e){if(!u.current)return;l(e instanceof tO&&e.status===404),s(cO(e))}finally{u.current&&a(!1)}},[]);(0,g.useEffect)(()=>{e&&(Date.now()-XM<KM||JM&&Date.now()-YM<qM||(XM=Date.now(),d(!1)))},[e,d]);let f=(0,g.useRef)(null);return(0,g.useEffect)(()=>{if(t){if(f.current===null){f.current=t;return}f.current!==t&&(f.current=t,d(!0))}},[t,d]),{data:n,checking:i,error:o,missing:c,ensure:(0,g.useCallback)(()=>void d(!1),[d]),refresh:(0,g.useCallback)(()=>void d(!0),[d])}}function tN(e){return e===`ok`?`ok`:e===`unknown`?`warn`:`error`}var nN={ok:{long:`panel.selfcheck.verdict.ok`,short:`panel.selfcheck.short.ok`},"not-listening":{long:`panel.selfcheck.verdict.notListening`,short:`panel.selfcheck.short.notListening`},"firewall-blocked":{long:`panel.selfcheck.verdict.firewallBlocked`,short:`panel.selfcheck.short.firewallBlocked`},unknown:{long:`panel.selfcheck.verdict.unknown`,short:`panel.selfcheck.short.unknown`},network:{long:`panel.selfcheck.verdict.network`,short:`panel.selfcheck.short.network`}};function rN(e){return $(nN[e]?.long??`panel.selfcheck.verdict.unknown`)}function iN(e){if(!e)return{tone:`off`,text:$(`panel.selfcheck.notChecked`)};let t=e.firewall,n=aN(t.appPath);return!t.supported||t.enabled===null?{tone:`warn`,text:$(`panel.selfcheck.unknown`)}:t.enabled===!1?{tone:`ok`,text:$(`panel.selfcheck.firewallOff`),...n?{detail:n}:{}}:t.allowsApp===!1?{tone:`error`,text:$(`panel.selfcheck.blocked`),...n?{detail:n}:{}}:t.allowsApp===!0?{tone:`ok`,text:$(`panel.selfcheck.allowed`),...n?{detail:n}:{}}:{tone:`warn`,text:$(`panel.selfcheck.unknown`)}}function aN(e){let t=String(e??``).trim();if(!t)return``;let n=t.split(/[\\/]/);return n[n.length-1]??``}function oN(e){let t=(e.preferred||``).trim();return t&&e.lan.some(e=>e.address===t)?t:e.lan[0]?.address??``}function sN({onDone:e}){let[t,n]=(0,g.useState)(null),[r,i]=(0,g.useState)(``),[a,o]=(0,g.useState)(``),[s,c]=(0,g.useState)(!1),[l,u]=(0,g.useState)(!1),[d,f]=(0,g.useState)(null),[p,m]=(0,g.useState)(null),[h,_]=(0,g.useState)(``),[v,y]=(0,g.useState)(``),[b,x]=(0,g.useState)(!1),[S,C]=(0,g.useState)(!1),[w,T]=(0,g.useState)(!1),[E,D]=(0,g.useState)(``),O=eN(QM(t?.lastMobileAt),t?`${+!!t.enabled}|${+!!t.lan.enabled}|${t.lan.state}|${t.tunnel.state}|${+((t.lastMobileAt??0)>0)}`:``),k=iN(O.data),A=O.data?.verdict??``,j=(0,g.useRef)(!0);(0,g.useEffect)(()=>(j.current=!0,()=>{j.current=!1}),[]),(0,g.useEffect)(()=>{(async()=>{try{let e=await rO(`/api/relay/addresses`);f(e),y(oN(e))}catch{f(null),u(!0)}})()},[]),(0,g.useEffect)(()=>{(async()=>{try{let e=await rO(`/api/relay/status`);n(e),e.enabled&&u(!0)}catch(e){i(cO(e))}await N()})()},[]);let M=(0,g.useRef)(!1);(0,g.useEffect)(()=>{M.current||d!==null&&(M.current=!0,!(t&&t.enabled)&&z())},[d,t]);async function N(){_(``);try{m(await rO(`/api/relay/pairing`))}catch(e){_(cO(e))}}(0,g.useEffect)(()=>{let e=eO(p);if(e===null)return;let t=window.setTimeout(()=>{j.current&&N()},e);return()=>window.clearTimeout(t)},[p]);let P=String(t?.lan.port||d?.port||18787),F=t!==null&&(t.lan.state===`listening`||t.tunnel.state===`connected`),I=t!==null&&l&&!O.checking&&A!==`ok`&&!(A===`not-listening`&&F);async function L(){let e=Date.now();for(;j.current&&Date.now()-e<2e4;){if(await new Promise(e=>window.setTimeout(e,1500)),!j.current)return;let e;try{e=await rO(`/api/relay/status`)}catch{continue}if(n(e),e.lan.state===`listening`||e.tunnel.state===`connected`||e.lan.state===`error`&&e.tunnel.state===`error`)return}}async function R(e){if(s)return;c(!0),e&&u(!1),o(``);let t={relayUrls:Kk.map(e=>e.url),lanEnabled:!0,pairingPolicy:`code`};v&&(t.preferredLanAddress=v);try{n(await iO(`/api/relay/config`,t)),e&&(n(await iO(`/api/relay/toggle`,{enabled:!0})),await iO(`/api/relay/onboarded`,{}).catch(()=>void 0)),await N(),e&&L().finally(()=>{j.current&&u(!0)})}catch(t){e&&j.current&&u(!0),o(cO(t))}finally{c(!1)}}async function z(){await R(!0)}function B(){e?e():window.location.assign(`/`)}async function V(){let e=[$(`panel.onboarding.tailcatPrompt.intro`),``,$(`panel.onboarding.tailcatPrompt.situation`),$(`panel.onboarding.tailcatPrompt.state`,{state:G}),$(`panel.onboarding.tailcatPrompt.guess`),``,$(`panel.onboarding.tailcatPrompt.ask`),$(`panel.onboarding.tailcatPrompt.ask1`),$(`panel.onboarding.tailcatPrompt.ask2`),$(`panel.onboarding.tailcatPrompt.ask3`)].join(`
110
- `);try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}let H=p?.svg??``,U=t?.tailcat??null,ee=!U||!U.available?`unavailable`:U.enabled?U.error?`error`:U.ready?`ready`:`starting`:`disabled`,te=ee!==`ready`&&ee!==`starting`,G={ready:$(`panel.tailcat.ready`),starting:$(`panel.tailcat.starting`),disabled:$(`panel.tailcat.disabled`),error:$(`panel.tailcat.error`),unavailable:$(`panel.tailcat.unavailable`)}[ee],ne=ee===`ready`?`ok`:ee===`starting`?`warn`:`off`;return(0,W.jsxs)(`main`,{className:`flex min-h-screen flex-col items-center justify-center gap-4 px-6 pt-6 pb-24`,children:[r?(0,W.jsxs)(JE,{className:`w-full max-w-4xl`,variant:`error`,children:[(0,W.jsx)(XE,{}),(0,W.jsx)(ZE,{children:$(`panel.onboarding.statusFailed`)}),(0,W.jsx)(QE,{children:r})]}):null,a?(0,W.jsxs)(JE,{className:`w-full max-w-4xl`,variant:`error`,children:[(0,W.jsx)(XE,{}),(0,W.jsx)(ZE,{children:$(`panel.onboarding.stepFailed`)}),(0,W.jsx)(QE,{children:a})]}):null,(0,W.jsxs)(cD,{frame:`solid`,className:`w-full max-w-4xl`,children:[(0,W.jsxs)(`div`,{className:`grid items-center gap-6 px-4 pb-2 md:grid-cols-[minmax(320px,1fr)_minmax(0,1fr)]`,children:[(0,W.jsxs)(`div`,{className:`flex flex-col items-center gap-2 md:col-start-1 md:row-start-1`,children:[(0,W.jsxs)(`div`,{className:`flex h-5 w-full max-w-[320px] items-center justify-center gap-1.5`,children:[(0,W.jsx)(`p`,{className:`text-sm font-medium leading-5 text-foreground-strong`,children:$(`panel.onboarding.pairingHint`)}),H?(0,W.jsx)(`button`,{type:`button`,"aria-label":`${$(`panel.pairing.qrZoom`)}:${$(`panel.pairing.qr`)}`,title:$(`panel.pairing.qrZoom`),className:`cursor-pointer text-foreground-muted hover:text-foreground-strong focus-visible:outline-none`,onClick:()=>C(!0),children:(0,W.jsxs)(`svg`,{viewBox:`0 0 24 24`,className:`size-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,children:[(0,W.jsx)(`circle`,{cx:`10.5`,cy:`10.5`,r:`6`}),(0,W.jsx)(`path`,{d:`m15 15 4.5 4.5M8.5 10.5h4M10.5 8.5v4`})]})}):null]}),H?(0,W.jsx)(`button`,{type:`button`,className:`cursor-zoom-in rounded-lg focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none`,onClick:()=>C(!0),"aria-label":`${$(`panel.pairing.qrZoom`)}:${$(`panel.pairing.qr`)}`,children:(0,W.jsx)(`div`,{className:`size-[320px] max-w-full rounded-lg bg-white p-3 [&_svg]:h-full [&_svg]:w-full`,dangerouslySetInnerHTML:{__html:H}})}):(0,W.jsx)(`div`,{className:`flex size-[320px] max-w-full items-center justify-center rounded-lg border border-border-muted text-xs text-foreground-muted`,children:h?(0,W.jsxs)(`div`,{className:`flex flex-col items-center gap-2 p-3 text-center`,children:[(0,W.jsx)(`span`,{role:`alert`,children:h}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:s,onClick:()=>void N(),children:$(`panel.console.retryPairing`)})]}):s?(0,W.jsx)(BE,{}):$(`panel.onboarding.noQr`)}),(0,W.jsx)(`p`,{className:`min-h-4 max-w-[320px] text-center text-xs leading-4 text-foreground-muted`,children:!F&&H?$(`panel.onboarding.relayNotConnected`):``})]}),(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col justify-center gap-3 md:col-start-2 md:row-start-1`,children:[(0,W.jsx)(`p`,{className:`text-center text-sm font-medium text-foreground-strong`,children:$(`panel.download.title`)}),(0,W.jsx)(Zk,{})]}),(0,W.jsxs)(`div`,{className:`w-full md:col-span-2 md:row-start-2 [&_dt]:text-foreground-strong`,children:[(0,W.jsxs)(rk,{children:[(0,W.jsx)(ek,{label:$(`panel.onboarding.direct`),children:(0,W.jsx)(ik,{tone:vg(t?.lan.state??`off`,!0),text:yg(t?.lan.state??`off`,!0)})}),(0,W.jsx)(ek,{label:$(`panel.connection.tunnel`),children:(0,W.jsx)(ik,{tone:gg(t?.tunnel.state??`off`),text:_g(t?.tunnel.state??`off`)})}),(0,W.jsx)(ek,{label:$(`panel.tailcat.title`),children:(0,W.jsxs)(`span`,{className:`inline-flex items-center justify-end gap-1.5`,children:[(0,W.jsx)(ik,{tone:ne,text:G}),te?(0,W.jsx)(`button`,{type:`button`,"aria-label":$(`panel.onboarding.tailcatWhy`),title:$(`panel.onboarding.tailcatWhy`),className:`cursor-pointer text-foreground-muted hover:text-foreground-strong focus-visible:outline-none`,onClick:()=>T(!0),children:(0,W.jsx)(EO,{})}):null]})}),(0,W.jsx)(ek,{label:$(`panel.selfcheck.firewall`),children:(0,W.jsx)(ik,{tone:k.tone,text:k.text,detail:k.detail})})]}),I?(0,W.jsx)(`p`,{className:`mt-2 text-sm leading-relaxed break-words ${mg[tN(A)]}`,children:rN(A)}):null,t!==null&&(t.lan.state===`error`||t.tunnel.state===`error`)?(0,W.jsxs)(JE,{className:`mt-2`,variant:`error`,children:[(0,W.jsx)(XE,{}),(0,W.jsx)(ZE,{children:t.lan.state===`error`?$(`panel.onboarding.lanFailed`):$(`panel.onboarding.relayFailed`)}),(0,W.jsx)(QE,{children:t.lan.state===`error`?t.lan.error?$(`panel.onboarding.lanErrorWithPort`,{error:t.lan.error}):$(`panel.onboarding.lanNoStart`):t.tunnel.error?$(`panel.onboarding.tunnelErrorHint`,{error:t.tunnel.error}):$(`panel.onboarding.tunnelNoStart`)})]}):null]})]}),(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2 px-4 py-4`,children:[(0,W.jsx)(`button`,{type:`button`,className:`cursor-pointer text-sm text-foreground-intense underline underline-offset-2 hover:text-foreground-strong`,onClick:()=>x(!0),children:$(`panel.onboarding.checkFirewall`)}),F?(0,W.jsx)(Q,{variant:`primary`,onClick:B,children:$(`panel.onboarding.enterPlugin`)}):(0,W.jsx)(Q,{variant:`primary`,disabled:s||r!==``,onClick:()=>void z(),children:$(s?`panel.onboarding.opening`:`panel.onboarding.connectRelay`)})]})]}),(0,W.jsx)(WM,{open:b,onOpenChange:x,port:P}),(0,W.jsx)(hD,{open:S,onOpenChange:C,children:(0,W.jsxs)(gD,{className:`w-[min(680px,94vw)] max-w-none`,closeLabel:$(`panel.common.close`),children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.pairing.qr`)})}),(0,W.jsx)(bD,{children:(0,W.jsx)(`div`,{className:`flex flex-col items-center gap-3`,children:(0,W.jsx)(`div`,{className:`flex items-center justify-center rounded-md bg-white p-4`,children:H?(0,W.jsx)(`div`,{className:`size-[min(72vh,600px)] [&_svg]:h-full [&_svg]:w-full`,dangerouslySetInnerHTML:{__html:H}}):null})})})]})}),(0,W.jsx)(hD,{open:w,onOpenChange:T,children:(0,W.jsxs)(gD,{className:`max-w-md`,closeLabel:$(`panel.common.close`),children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.tailcat.title`)})}),(0,W.jsxs)(bD,{className:`flex flex-col gap-2.5`,children:[(0,W.jsx)(`p`,{className:`text-xs leading-5 text-foreground-muted`,children:$(`panel.onboarding.tailcatWhat`)}),(0,W.jsx)(`p`,{className:`text-sm text-foreground`,children:$(`panel.onboarding.tailcat.${ee}`)}),(0,W.jsx)(Q,{variant:`outline`,size:`sm`,onClick:()=>{V().then(e=>D($(e?`panel.onboarding.copiedOk`:`panel.onboarding.copiedFailed`)))},children:$(`panel.onboarding.copyPromptHint`)}),E?(0,W.jsx)(`p`,{className:`text-xs text-foreground-muted`,children:E}):null]})]})})]})}function cN(e){let t=typeof e==`string`?e:e instanceof tO?e.code:``,n={"credentials-unavailable":`errorAuth`,REMOTE_AUTH:`errorAuth`,REMOTE_REVOKED:`errorAuth`,REMOTE_EXPIRED:`errorExpired`,REMOTE_TIMEOUT:`errorTimeout`,REMOTE_CONNECT:`errorConnect`,REMOTE_PROXY:`errorProxy`,REMOTE_PROXY_CONFIGURED:`errorProxyConfigured`,REMOTE_INTERCEPTED:`errorIntercepted`,REMOTE_HELPER_RESTARTING:`errorHelperRestarting`,REMOTE_INVITATION:`errorInvitation`,REMOTE_OPEN_URL:`invalidOpenUrl`,REMOTE_POPUP:`popupBlocked`,REMOTE_EXTERNAL_OPEN:`externalOpenFailed`,REMOTE_VERSION:`errorVersion`,SHELL_UNAVAILABLE:`shellUnavailable`,REMOTE_UNAVAILABLE:`errorUnavailable`,REMOTE_NOT_FOUND:`errorNotFound`,"bad-invite":`errorInvitation`,"bad-id":`errorBadRequest`,"bad-mode":`errorBadRequest`};return $(n[t]?`panel.remote.${n[t]}`:`panel.remote.failed`)}var lN=`/api/relay/remote-computers`,uN={list:()=>rO(lN),invite:()=>iO(`${lN}/invite`,{}),add:e=>iO(`${lN}/add`,{invite:e}),open:e=>iO(`${lN}/open`,{id:e}),openShell:e=>iO(`${lN}/open-shell`,{id:e}),diagnose:e=>iO(`${lN}/diagnose`,{id:e}),remove:e=>iO(`${lN}/remove`,{id:e}),mode:(e,t)=>iO(`${lN}/mode`,{id:e,mode:t}),revoke:e=>iO(`${lN}/revoke`,{deviceId:e})};function dN(e){return[`auto`,...new Set(e.map(e=>e.channel).filter(e=>e&&e!==`auto`&&e!==`direct`))]}function fN(e){let t;try{t=new URL(e)}catch{throw new tO($(`panel.remote.invalidOpenUrl`),`REMOTE_OPEN_URL`,0)}if(t.protocol!==`http:`||t.hostname!==`127.0.0.1`||!t.port||t.username||t.password)throw new tO($(`panel.remote.invalidOpenUrl`),`REMOTE_OPEN_URL`,0);return t.href}function pN(e){return e instanceof tO?e.code===`SHELL_UNAVAILABLE`||e.status===404||e.status===405||e.status===0:e instanceof TypeError}async function mN(e){try{let t=await uN.openShell(e);return fN(t.url),t.shellOpened===!1?{...await hN(e),shellOpened:!1}:t}catch(t){if(!pN(t))throw t;return{...await hN(e),shellMissing:!0}}}async function hN(e){let t=window.location.protocol===`http:`||window.location.protocol===`https:`,n=t?window.open(`about:blank`,`_blank`):null;if(t&&!n)throw new tO($(`panel.remote.popupBlocked`),`REMOTE_POPUP`,0);try{n&&(n.opener=null);let t=await uN.open(e),r=fN(t.url);if(n)n.location.replace(r);else try{let e=window.top;if(!e||e.location.origin!==window.location.origin)throw Error(`origin`);e.location.href=r}catch{throw new tO($(`panel.remote.externalOpenFailed`),`REMOTE_EXTERNAL_OPEN`,0)}return t}catch(e){throw n?.close(),e}}function gN(){return(0,W.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`size-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`13`,rx:`2`}),(0,W.jsx)(`path`,{d:`M8 21h8M12 17v4`})]})}function _N(){return(0,W.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`size-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`path`,{d:`M4 7h16`}),(0,W.jsx)(`path`,{d:`M9 7V4.5A1.5 1.5 0 0 1 10.5 3h3A1.5 1.5 0 0 1 15 4.5V7`}),(0,W.jsx)(`path`,{d:`M6 7l1 12.5A2 2 0 0 0 9 21h6a2 2 0 0 0 2-1.5L18 7`}),(0,W.jsx)(`path`,{d:`M10 11v6M14 11v6`})]})}function vN(e,t){let n={auto:`auto`,lan:`lan`,direct:`direct`,ipv6:`ipv6`,relay:`relay`,tunnel:`tailcat`,tailcat:`tailcat`,p2p:`p2p`,tcp:`tcp`};return e?e===`relay`&&t&&qk(t)?$(`panel.remote.channel.publicRelay`):n[e]?$(`panel.remote.channel.${n[e]}`):e:$(`panel.common.none`)}function yN(e){try{return new URL(e).host}catch{return e}}function bN(){let e=uO(),[t,n]=(0,g.useState)(null),[r,i]=(0,g.useState)(!1),[a,o]=(0,g.useState)(!1),[s,c]=(0,g.useState)(``),[l,u]=(0,g.useState)([]),[d,f]=(0,g.useState)(null),[p,m]=(0,g.useState)(null),[h,_]=(0,g.useState)(``),[v,y]=(0,g.useState)(!1),[b,x]=(0,g.useState)(null),[S,C]=(0,g.useState)(`auto`),[w,T]=(0,g.useState)(null),[E,D]=(0,g.useState)(!1),[O,k]=(0,g.useState)(0),A=(0,g.useRef)(0),j=(0,g.useRef)(!1),M=(0,g.useRef)(!1),N=(0,g.useCallback)(async()=>{if(!j.current){j.current=!0;try{let e=await uN.list();if(!M.current)return;A.current=e.serverNow-Date.now(),k(e.serverNow),n(e),o(!1),c(``)}catch(e){if(!M.current)return;let t=e instanceof tO&&e.status===403;o(t),c(t?``:cN(e)),t&&n(null)}finally{j.current=!1,M.current&&i(!0)}}},[]);(0,g.useEffect)(()=>{M.current=!0;let e=()=>{c_()&&(k(Date.now()+A.current),N())};e();let t=window.setInterval(e,3e3);return document.addEventListener(`visibilitychange`,e),()=>{M.current=!1,window.clearInterval(t),document.removeEventListener(`visibilitychange`,e)}},[N]);let P=e=>l.includes(e),F=e=>l.some(t=>t.endsWith(`:${e}`));async function I(t,r,i){if(!l.includes(t)){u(e=>[...e,t]);try{await r(),i&&e(`ok`,$(i)),await N()}catch(t){t instanceof tO&&t.status===403&&(o(!0),n(null),f(null),x(null),m(null)),e(`error`,t instanceof tO&&t.status===403?$(`panel.remote.localOnly`):cN(t))}finally{u(e=>e.filter(e=>e!==t))}}}async function L(t){if(!E){D(!0);try{T((await uN.diagnose(t.id)).routes)}catch(t){e(`error`,cN(t))}finally{D(!1)}}}function R(){m(null),y(!1),f(`invite`),I(`invite`,async()=>{m(await uN.invite())})}async function z(){if(!(!p||p.expiresAt<=O))try{await navigator.clipboard.writeText(p.invite),y(!1),e(`ok`,$(`panel.remote.copied`))}catch{y(!0)}}function B(t){I(`open:${t.id}`,async()=>{let n=await mN(t.id);n.shellMissing?e(`ok`,$(`panel.remote.shellUnavailable`)):n.shellOpened===!1&&e(`ok`,$(`panel.remote.shellFellBack`))})}function V(e){window.confirm($(`panel.remote.removeConfirm`,{name:e.name||e.instanceId}))&&I(`remove:${e.id}`,()=>uN.remove(e.id),`panel.remote.removed`)}let H=t?.devices??[],U=t?.authorizedComputers??[],ee=r&&!a&&t!==null,te=p!==null&&p.expiresAt<=O,G=d===`invite`?P(`invite`):d===`add`&&P(`add`),ne=b!==null&&P(`mode:${b.id}`);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`header`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,W.jsx)(`h1`,{className:`text-lg font-semibold text-foreground-strong`,children:$(`panel.remote.title`)}),(0,W.jsx)(`div`,{className:`flex flex-wrap items-center gap-1`,children:ee?(0,W.jsxs)(`span`,{className:`flex flex-wrap items-center gap-1.5`,children:[(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,className:`px-2 text-xs xl:px-4 xl:text-sm xl:before:border xl:before:border-border xl:before:bg-background`,disabled:P(`invite`),onClick:R,children:$(`panel.remote.createInvite`)}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,className:`px-2 text-xs xl:px-4 xl:text-sm xl:before:border xl:before:border-border xl:before:bg-background`,disabled:P(`add`),onClick:()=>{_(``),f(`add`)},children:$(`panel.remote.add`)})]}):null})]}),(0,W.jsxs)(cD,{frame:`solid`,className:`flex h-full min-h-0 flex-col`,children:[ee?(0,W.jsx)(`p`,{className:`mt-2 text-xs leading-5 text-foreground-muted`,children:$(`panel.remote.hint`)}):null,r?null:(0,W.jsxs)(`div`,{className:`flex items-center gap-2 py-2 text-sm text-foreground-muted`,children:[(0,W.jsx)(BE,{}),$(`panel.shell.readingStatus`)]}),a?(0,W.jsx)(`p`,{className:`mt-2 text-sm text-foreground-muted`,children:$(`panel.remote.localOnly`)}):null,s?(0,W.jsx)(`p`,{className:`mt-2 text-xs text-error`,children:s}):null,ee?(0,W.jsxs)(W.Fragment,{children:[H.length===0?(0,W.jsx)(`p`,{className:`mt-3 text-xs text-foreground-muted`,children:$(`panel.remote.empty`)}):null,(0,W.jsx)(`div`,{className:`mt-1 flex min-h-0 flex-1 flex-col`,children:H.map(e=>{let t=e.expiresAt??0,n=e.state===`expired`||t>0&&t<=O,r=e.state===`revoked`?`revoked`:n?`expired`:e.state,i=e.attached&&e.state!==`revoked`,a=F(e.id);return(0,W.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col justify-between gap-2 border-b border-border-muted py-2 last:border-b-0`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,W.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,W.jsx)(`span`,{className:`truncate text-sm text-foreground-strong`,children:e.name||e.instanceId}),(0,W.jsx)(nD,{variant:`secondary`,size:`xs`,children:$(`panel.remote.state.${r}`)})]}),(0,W.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1.5`,children:[(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,className:`px-2 text-xs xl:px-2 xl:text-sm`,disabled:a,onClick:()=>{C(e.mode),T(null),x(e)},children:$(`panel.remote.route`)}),i?(0,W.jsxs)(`span`,{className:`whitespace-nowrap px-1 text-xs text-foreground-muted`,children:[vN(e.mode,e.url),` · `,vN(e.channel,e.url),e.latencyMs!==null&&Number.isFinite(e.latencyMs)?` · ${Math.round(e.latencyMs)} ms`:``]}):(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,className:`px-2`,"aria-label":$(`panel.remote.open`),disabled:a||e.state===`revoked`||e.state===`connecting`,onClick:()=>B(e),children:(0,W.jsx)(gN,{})}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,className:`px-2`,"aria-label":$(`panel.remote.remove`),disabled:a,onClick:()=>V(e),children:(0,W.jsx)(_N,{})}),a?(0,W.jsx)(BE,{}):null]})]}),n&&e.state!==`revoked`?(0,W.jsx)(`p`,{className:`text-xs text-foreground-muted`,children:$(`panel.remote.expiredHint`)}):null,e.lastError||e.lastErrorCode?(0,W.jsx)(`p`,{className:`text-xs break-all text-error`,children:cN(e.lastErrorCode)}):null]},e.id)})}),U.length>0?(0,W.jsxs)(`div`,{className:`mt-1 border-t border-border-muted pt-2`,children:[(0,W.jsx)(`p`,{className:`text-xs text-foreground-muted`,children:$(`panel.remote.authorizedTitle`)}),U.map(e=>(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-2 border-b border-border-muted py-3 last:border-b-0`,children:[(0,W.jsx)(`div`,{className:`min-w-0`,children:(0,W.jsx)(`p`,{className:`truncate text-sm text-foreground-strong`,children:e.name||$(`panel.remote.unknownComputer`)})}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,className:`px-2`,"aria-label":$(`panel.remote.revoke`),disabled:P(`revoke:${e.deviceId}`),onClick:()=>{window.confirm($(`panel.remote.revokeConfirm`,{name:e.name||$(`panel.remote.unknownComputer`)}))&&I(`revoke:${e.deviceId}`,()=>uN.revoke(e.deviceId),`panel.remote.revoked`)},children:(0,W.jsx)(_N,{})})]},e.deviceId))]}):null]}):null,(0,W.jsx)(hD,{open:d!==null,onOpenChange:e=>{!e&&!G&&(f(null),m(null))},children:(0,W.jsxs)(gD,{className:`max-w-md`,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(d===`invite`?`panel.remote.createInvite`:`panel.remote.add`)})}),(0,W.jsxs)(bD,{className:`flex flex-col gap-3`,children:[d===`invite`||d===`add`?(0,W.jsx)(`p`,{className:`text-xs leading-5 text-foreground-muted`,children:$(d===`invite`?`panel.remote.inviteHint`:`panel.remote.addHint`)}):null,d===`invite`?p?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(Mj,{children:[(0,W.jsx)(Nj,{htmlFor:`remote-computer-invite`,children:$(`panel.remote.inviteLabel`)}),(0,W.jsx)(Kj,{id:`remote-computer-invite`,rows:4,readOnly:!0,value:p.invite,onFocus:e=>e.target.select()})]}),(0,W.jsx)(`p`,{className:`text-xs text-foreground-muted`,children:$(te?`panel.remote.inviteExpired`:`panel.remote.inviteRemaining`,{minutes:Math.max(0,Math.ceil((p.expiresAt-O)/6e4))})}),v?(0,W.jsx)(`p`,{role:`status`,className:`text-xs text-foreground-muted`,children:$(`panel.remote.manualCopy`)}):null]}):G?(0,W.jsx)(BE,{}):null:(0,W.jsxs)(Mj,{children:[(0,W.jsx)(Nj,{htmlFor:`remote-computer-add`,children:$(`panel.remote.inviteLabel`)}),(0,W.jsx)(Kj,{id:`remote-computer-add`,rows:4,value:h,onChange:e=>_(e.target.value),autoComplete:`off`,spellCheck:!1})]})]}),(0,W.jsxs)(xD,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(Q,{variant:`outline`,disabled:G,onClick:()=>{f(null),m(null)},children:$(`panel.common.close`)}),d===`invite`?(0,W.jsx)(Q,{variant:`primary`,disabled:G||!p||te,onClick:()=>void z(),children:$(`panel.remote.copy`)}):(0,W.jsx)(Q,{variant:`primary`,disabled:G||!h.trim(),onClick:()=>void I(`add`,async()=>{await uN.add(h.trim()),_(``),f(null)},`panel.remote.added`),children:$(`panel.remote.add`)})]})]})}),(0,W.jsx)(hD,{open:b!==null,onOpenChange:e=>{!e&&!ne&&(x(null),T(null))},children:(0,W.jsxs)(gD,{className:`max-w-sm`,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.remote.route`)})}),(0,W.jsxs)(bD,{className:`flex flex-col gap-3 text-sm`,children:[(0,W.jsx)(`p`,{className:`text-xs leading-5 text-foreground-muted`,children:$(`panel.remote.routeHint`)}),b?.attached?(0,W.jsx)(`p`,{className:`text-xs leading-5 text-foreground-muted`,children:$(`panel.remote.routeReopenNote`)}):null,(0,W.jsx)(cj,{className:`flex flex-col gap-2`,value:S,onValueChange:e=>{typeof e==`string`&&C(e)},children:dN(b?.routes??[]).map(e=>{let t=(b?.routes??[]).find(t=>t.channel===e)?.url;return(0,W.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-2`,children:[(0,W.jsx)(KA,{value:e}),(0,W.jsx)(`span`,{children:vN(e,t)})]},e)})}),(0,W.jsxs)(`div`,{className:`border-t border-border-muted pt-2`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,W.jsx)(`span`,{className:`text-xs text-foreground-muted`,children:$(`panel.remote.diagnoseHint`)}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,className:`px-2 text-xs`,disabled:E,onClick:()=>{b&&L(b)},children:$(`panel.remote.diagnose`)})]}),E?(0,W.jsx)(BE,{}):null,w?(0,W.jsx)(`ul`,{className:`mt-1 flex flex-col gap-1`,children:w.map(e=>(0,W.jsxs)(`li`,{className:`flex items-center justify-between gap-2 text-xs`,children:[(0,W.jsxs)(`span`,{className:`truncate`,children:[vN(e.channel,e.url),` · `,yN(e.url)]}),(0,W.jsxs)(`span`,{className:`shrink-0 whitespace-nowrap text-foreground-muted`,children:[e.ok?$(`panel.remote.diagnoseOk`):$(`panel.remote.diagnoseFail`),e.ok&&e.latencyMs!==null?` · ${e.latencyMs} ms`:``,!e.ok&&e.errorCode?` · ${cN(e.errorCode)}`:``]})]},`${e.channel}:${e.url}`))}):null]})]}),(0,W.jsxs)(xD,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(Q,{variant:`outline`,disabled:ne,onClick:()=>x(null),children:$(`panel.common.cancel`)}),(0,W.jsx)(Q,{variant:`primary`,disabled:ne||!dN(b?.routes??[]).includes(S),onClick:()=>{b&&I(`mode:${b.id}`,async()=>{await uN.mode(b.id,S),x(null)},`panel.remote.modeSaved`)},children:$(`panel.common.save`)})]})]})})]})]})}function xN(){return(0,W.jsxs)(`main`,{className:`mx-auto flex w-full max-w-5xl flex-col gap-3 p-5`,children:[(0,W.jsx)(`div`,{className:`flex items-center justify-end`,children:(0,W.jsx)(Ck,{})}),(0,W.jsx)(bN,{})]})}function SN(){let e=window.location.pathname.replace(/\/+$/,``),t=e.endsWith(`/setup`),n=e.endsWith(`/settings`),r=e.endsWith(`/remote`),i=!t&&!n&&!r,[a,o]=(0,g.useState)(n?!0:null),[s,c]=(0,g.useState)(``),[l,u]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{s?PM(`error`,s):(!i||a!==null)&&PM(`ready`)},[a,s,i]),(0,g.useEffect)(()=>{if(!i)return;let e=!0;return(async()=>{try{let t=await rO(`/api/relay/status`);e&&o(t.onboarded===!0||t.enabled===!0)}catch(t){e&&c(cO(t))}})(),()=>{e=!1}},[i]),s?(0,W.jsxs)(`main`,{className:`mx-auto flex w-full max-w-5xl flex-col gap-3 p-5`,children:[(0,W.jsx)(`p`,{className:`text-sm text-error`,role:`alert`,children:s}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,onClick:()=>window.location.reload(),children:$(`panel.console.reload`)})]}):r?(0,W.jsx)(xN,{}):t?l?(0,W.jsx)(RM,{}):(0,W.jsx)(sN,{onDone:()=>u(!0)}):a===null?(0,W.jsxs)(`main`,{className:`flex min-h-screen items-center justify-center gap-2 p-6 text-sm text-foreground-muted`,children:[(0,W.jsx)(BE,{}),$(`panel.shell.loading`)]}):!a&&!l?(0,W.jsx)(sN,{onDone:()=>u(!0)}):(0,W.jsx)(RM,{})}function CN(){let e=xg();(0,g.useEffect)(()=>{typeof document<`u`&&(document.documentElement.lang=e,document.title=$(`panel.shell.title`))},[e]);let t=window.location.pathname.replace(/\/+$/,``),n=!/\/demo(\.html)?$/.test(t);return(0,g.useEffect)(()=>{if(n)return $g()},[n]),(0,g.useEffect)(()=>l_(),[]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(SN,{}),n?null:(0,W.jsx)(a_,{})]})}function wN(){if(!/Android/i.test(navigator.userAgent)||window.parent===window)return;let e=window.frameElement;e&&e.tagName===`IFRAME`&&e.classList.contains(`dshm_frame`)&&(e.style.transform=`translateZ(0)`,e.style.isolation=`isolate`,e.style.contain=`paint`)}wN();function TN(){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(CN,{}),(0,W.jsx)($u,{position:`top-right`})]})}(0,md.createRoot)(document.getElementById(`root`),{onUncaughtError:e=>PM(`error`,cO(e))}).render((0,W.jsx)(g.StrictMode,{children:(0,W.jsx)(Qu,{children:(0,W.jsx)(TN,{})})}));</script>
103
+ `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,W.jsx)(xw,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:g.cloneElement(e,{ref:u})})}var Cw=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=d_(ww),d=(0,g.useId)(),f=(0,g.useRef)(n),p=(0,g.useRef)(r);f_(()=>{f.current=n,p.current=r});let m=!0,h=(0,g.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!f.current&&!u.size&&p.current?.()})}),[n,u,r]);return a&&m&&(h={...h}),(0,g.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),g.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,W.jsx)(Sw,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,W.jsx)(p_.Provider,{value:h,children:e})};function ww(){return new Map}function Tw(e=!0){let t=(0,g.useContext)(p_);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,g.useId)();(0,g.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,g.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Ew=e=>e.key||``;function Dw(e){let t=[];return g.Children.forEach(e,e=>{(0,g.isValidElement)(e)&&t.push(e)}),t}var Ow=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=Tw(o),f=(0,g.useMemo)(()=>Dw(e),[e]),p=o&&!u?[]:f.map(Ew),m=(0,g.useRef)(!0),h=d_(()=>new Map),_=(0,g.useRef)(new Set),[v,y]=(0,g.useState)(f),[b,x]=(0,g.useState)(f);f_(()=>{o&&!u&&!b.length&&d?.()},[u,o,b.length,d]),f_(()=>{m.current=!1;for(let e=0;e<b.length;e++){let t=Ew(b[e]);p.includes(t)?(h.delete(t),_.current.delete(t)):h.get(t)!==!0&&h.set(t,!1)}},[b,p.length,p.join(`-`)]);let S=[];if(f!==v){let e=[...f],t=0;for(let n of b){let r=p.indexOf(Ew(n));r===-1?(e.splice(t++,0,n),S.push(n)):t=r+S.length+1}return S.every(e=>h.get(Ew(e)))?e=f:a===`wait`&&(e=S),x(Dw(e)),y(f),null}let{forceRender:C}=(0,g.useContext)(u_);return(0,W.jsx)(W.Fragment,{children:b.map(e=>{let g=Ew(e),v=o&&!u?!1:f===b||p.includes(g);return(0,W.jsx)(Cw,{isPresent:v,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:v?void 0:()=>{if(_.current.has(g))return;if(h.has(g))_.current.add(g),h.set(g,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(C?.(),y([]),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},g)})})},kw=(0,g.createContext)({strict:!1}),Aw={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},jw=!1;function Mw(){if(jw)return;let e={};for(let t in Aw)e[t]={isEnabled:e=>Aw[t].some(t=>!!e[t])};qC(e),jw=!0}function Nw(){return Mw(),JC()}function Pw(e){let t=Nw();for(let n in e)t[n]={...t[n],...e[n]};qC(t)}function Fw({children:e,features:t,strict:n=!1}){let[,r]=(0,g.useState)(!Iw(t)),i=(0,g.useRef)(void 0);if(!Iw(t)){let{renderer:e,...n}=t;i.current=e,Pw(n)}return(0,g.useEffect)(()=>{Iw(t)&&t().then(({renderer:e,...t})=>{Pw(t),i.current=e,r(!0)})},[]),(0,W.jsx)(kw.Provider,{value:{renderer:i.current,strict:n},children:e})}function Iw(e){return typeof e==`function`}var Lw=(0,g.createContext)({});function Rw(e,t){if(RC(e)){let{initial:t,animate:n}=e;return{initial:t===!1||FC(t)?t:void 0,animate:FC(n)?n:void 0}}return e.inherit===!1?{}:t}function zw(e){let{initial:t,animate:n}=Rw(e,(0,g.useContext)(Lw));return(0,g.useMemo)(()=>({initial:t,animate:n}),[Bw(t),Bw(n)])}function Bw(e){return Array.isArray(e)?e.join(` `):e}var Vw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Hw(e,t,n){for(let r in t)!rS(t[r])&&!ew(r,n)&&(e[r]=t[r])}function Uw({transformTemplate:e},t){return(0,g.useMemo)(()=>{let n=Vw();return qS(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ww(e,t){let n=e.style||{},r={};return Hw(r,n,e),Object.assign(r,Uw(e,t)),r}function Gw(e,t){let n={},r=Ww(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Kw=()=>({...Vw(),attrs:{}});function qw(e,t,n,r){let i=(0,g.useMemo)(()=>{let n=Kw();return QS(n,t,aw(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Hw(t,e.style,e),i.style={...t,...i.style}}return i}var Jw=new Set(`animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Yw(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Jw.has(e)}function Xw(e,t){return e.startsWith(`on`)?!Yw(e):t?.(e)??!Yw(e)}function Zw(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(rS(e[a])||(Xw(a,r)||n===!0&&Yw(a)||!t&&!Yw(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var Qw=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function $w(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Qw.indexOf(e)>-1||/[A-Z]/u.test(e))}function eT(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??$w(e)?qw:Gw)(t,r,i,e),l=Zw(t,typeof e==`string`,a,s),u=e===g.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,g.useMemo)(()=>rS(d)?d.get():d,[d]);return(0,g.createElement)(e,{...u,children:f})}function tT({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:nT(n,r,i,e),renderState:t()}}function nT(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=gw(a[e]);let{initial:o,animate:s}=e,c=RC(e),l=zC(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!PC(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Yx(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var rT=e=>(t,n)=>{let r=(0,g.useContext)(Lw),i=(0,g.useContext)(p_),a=()=>tT(e,t,r,i);return n?a():d_(a)},iT=rT({scrapeMotionValuesFromProps:tw,createRenderState:Vw}),aT=rT({scrapeMotionValuesFromProps:sw,createRenderState:Kw}),oT=Symbol.for(`motionComponentSymbol`);function sT(e,t,n){let r=(0,g.useRef)(n);(0,g.useInsertionEffect)(()=>{r.current=n});let i=(0,g.useRef)(null);return(0,g.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var cT=(0,g.createContext)({});function lT(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function uT(e,t,n,r,i,a){let{visualElement:o}=(0,g.useContext)(Lw),s=(0,g.useContext)(kw),c=(0,g.useContext)(p_),l=(0,g.useContext)(_w),u=l.reducedMotion,d=l.skipAnimations,f=(0,g.useRef)(null),p=(0,g.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,g.useContext)(cT);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&dT(f.current,n,i,h);let _=(0,g.useRef)(!1);(0,g.useInsertionEffect)(()=>{m&&_.current&&m.update(n,c)});let v=n[sS],y=(0,g.useRef)(!!v&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return f_(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),f_(()=>{p.current=!0,m&&(_.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),y.current&&m.animationState&&m.animationState.animateChanges())}),(0,g.useEffect)(()=>{m&&(!y.current&&m.animationState&&m.animationState.animateChanges(),y.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),!1),m.enteringChildren=void 0)}),m}function dT(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:fT(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&lT(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function fT(e){if(e)return e.options.allowProjection===!1?fT(e.parent):e.projection}function pT(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Pw(r);let a=n?n===`svg`:$w(e),o=a?aT:iT;function s(n,s){let c,l={...(0,g.useContext)(_w),...n,layoutId:mT(n)},{isStatic:u,isValidProp:d}=l,f=zw(n),p=o(n,u);if(!u&&typeof window<`u`){hT(l,r);let t=gT(l);c=t.MeasureLayout,f.visualElement=uT(e,p,l,i,t.ProjectionNode,a)}return(0,W.jsxs)(Lw.Provider,{value:f,children:[c&&f.visualElement?(0,W.jsx)(c,{visualElement:f.visualElement,...l}):null,eT(e,n,sT(p,f.visualElement,s),p,u,t,a,d)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,g.forwardRef)(s);return c[oT]=e,c}function mT({layoutId:e}){let t=(0,g.useContext)(u_).id;return t&&e!==void 0?t+`-`+e:e}function hT(e,t){(0,g.useContext)(kw).strict}function gT(e){let{drag:t,layout:n}=Nw();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function _T(e,t){if(typeof Proxy>`u`)return pT;let n=new Map,r=(n,r)=>pT(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,pT(a,void 0,e,t)),n.get(a))})}var vT=_T(),yT=(e,t)=>t.isSVG??$w(e)?new cw(t):new rw(t,{allowProjection:e!==g.Fragment}),bT=class extends ZC{constructor(e){super(e),e.animationState||=dw(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();PC(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},xT=0,ST={animation:{Feature:bT},exit:{Feature:class extends ZC{constructor(){super(...arguments),this.id=xT++}update(){let{presenceContext:e,prevPresenceContext:t,animationState:n}=this.node;if(!e||!n)return;let{isPresent:r,onExitComplete:i}=e,a=t?.isPresent;if(r===a)return;if(r&&a===!1){if(this.exit===!0){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:n,...r}=Xx(this.node,e)||{};for(let e in r)this.node.getValue(e)?.jump(r[e])}this.node.blockInitialAnimation=!1,n.reset(),n.animateChanges()}else n.setActive(`exit`,!1);this.exit=void 0;return}let o=this.exit=n.setActive(`exit`,!r);i&&!r&&o.then(()=>{this.exit===o&&(this.exit=!0,i(this.id))})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function CT(e){return{point:{x:e.pageX,y:e.pageY}}}function wT(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&xy.postRender(()=>i(t,CT(t)))}var TT=class extends ZC{mount(){let{current:e}=this.node;e&&(this.unmount=vC(e,(e,t)=>(wT(this.node,t,`Start`),e=>wT(this.node,e,`End`))))}unmount(){}},ET=class extends ZC{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=C_(hw(this.node.current,`focus`,()=>this.onFocus()),hw(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function DT(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&xy.postRender(()=>i(t,CT(t)))}var OT=class extends ZC{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=kC(e,(e,t)=>(DT(this.node,t,`Start`),(e,{success:t})=>DT(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},kT=new WeakMap,AT=new WeakMap,jT=e=>{let t=kT.get(e.target);t&&t(e)},MT=e=>{e.forEach(jT)};function NT({root:e,...t}){let n=e||document;AT.has(n)||AT.set(n,{});let r=AT.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(MT,{root:e,...t})),r[i]}function PT(e,t,n){let r=NT(t);return kT.set(e,n),r.observe(e),()=>{kT.delete(e),r.unobserve(e)}}var FT={some:0,all:1},IT=class extends ZC{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:FT[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=PT(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(LT(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function LT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var RT={inView:{Feature:IT},tap:{Feature:OT},focus:{Feature:ET},hover:{Feature:TT}};function zT(e){return(0,g.useEffect)(()=>()=>e(),[])}var BT={renderer:yT,...ST,...RT};function VT(e){let t=d_(()=>Px(e)),{isStatic:n}=(0,g.useContext)(_w);if(n){let[,n]=(0,g.useState)(e);(0,g.useEffect)(()=>t.on(`change`,n),[])}return t}function HT(e,t){let n=VT(t()),r=()=>n.set(t());return r(),f_(()=>{let t=()=>xy.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),Sy(r)}}),n}function UT(e){Mx.current=[],e();let t=HT(Mx.current,e);return Mx.current=void 0,t}function WT(e,t,n,r){if(typeof e==`function`)return UT(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return KT(e,t,n,r);let i=typeof t==`function`?t:AC(t,n,r),a=Array.isArray(e)?GT(e,i):GT([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;if(o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1){let e=r?.ease;a.accelerate={...o,times:[0,...t,1],keyframes:[n[0],...n,n[n.length-1]],isTransformed:!0,...e?{ease:Array.isArray(e)?[e[0],...e]:e}:{}}}return a}function GT(e,t){let n=d_(()=>[]);return HT(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function KT(e,t,n,r){let i=d_(()=>Object.keys(n)),a=d_(()=>({}));for(let o of i)a[o]=WT(e,t,n[o],r);return a}function qT(){!HC.current&&WC();let[e]=(0,g.useState)(VC.current);return e}function JT(){let e=qT(),{reducedMotion:t}=(0,g.useContext)(_w);return t===`never`?!1:t===`always`||e}function YT(e){return typeof e==`object`&&!Array.isArray(e)}function XT(e,t,n,r){return e==null?[]:typeof e==`string`&&YT(t)?MS(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function ZT(e,t,n){return e*(t+1)+n*t}function QT(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function $T(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(h_(e,i),r--)}}function eE(e,t,n,r,i,a){$T(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:ey(i,a,r[o]),easing:J_(n,o)})}function tE(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function nE(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var rE=`easeInOut`,iE=20;function aE(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}if(!Array.isArray(o)){l.set(o.name,QT(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=QT(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=cE(e),{delay:l=0,times:u=Gy(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=ox(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&dE(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=E_(b));let r=Oy(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&Wy(u,T),c.length===1&&c.unshift(null),m&&`${m}${iE}`,m&&m<iE){let e=b>0?_/b:0;b=ZT(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?I_(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:J_(f,e-1))}tE(u,m,e)}let E=w+b;eE(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(rS(p)){let e=oE(p,s);_(m,h,sE(`default`,e))}else{let e=XT(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=oE(r,s);for(let e in m)_(m[e],lE(h,e),sE(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(nE);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(w_(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(rE)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function oE(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function sE(e,t){return t[e]||(t[e]=[]),t[e]}function cE(e){return Array.isArray(e)?e:[e]}function lE(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var uE=e=>typeof e==`number`,dE=e=>e.every(uE);function fE(e,t){return rS(e)||typeof e==`number`||typeof e==`string`&&!YT(t)}function pE(e,t,n,r){let i=[];if(fE(e,t))i.push(mw(e,YT(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=XT(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...uC(r,t,s,NC.get(r))):i.push(...DS(TS(r)??dC,r,t,s))}}return i}function mE(e,t,n){let r=[];return aE(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=Px(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:By}).forEach(({keyframes:e,transition:t},n)=>{r.push(...pE(n,e,t))}),r}function hE(e){return Array.isArray(e)&&e.some(Array.isArray)}function gE(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),hE(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=mE(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=pE(e,i,{...c,...r},t)}let l=new Ox(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{h_(t.animations,l)})),l}return i}var _E=Object.assign(gE(),{addEffect:CS,removeEffect:wS});function vE(){let e=d_(()=>({current:null,animations:[]})),t=JT()??void 0,{skipAnimations:n}=(0,g.useContext)(_w),r=(0,g.useMemo)(()=>gE({scope:e,reduceMotion:t,skipAnimations:n}),[e,t,n]);return zT(()=>{e.animations.forEach(e=>e.stop()),e.animations.length=0}),[e,r]}var yE=vT,bE=`text-[2.5rem]`,xE={indicator:`text-primary`,track:`text-primary-soft`},SE={indicator:`text-current`,track:`text-current/20`};function CE({colors:e,reduced:t}){return(0,W.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 40 40`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`,"aria-hidden":`true`,className:Z(`size-[1em] stroke-4!`,e.indicator),children:[(0,W.jsx)(`circle`,{cx:`20`,cy:`20`,r:`16`,className:e.track}),t?(0,W.jsx)(`circle`,{cx:`20`,cy:`20`,r:`16`,pathLength:1,strokeDasharray:`0.25 0.75`}):(0,W.jsx)(yE.circle,{cx:`20`,cy:`20`,r:`16`,pathLength:1,strokeDasharray:`0.25 0.75`,initial:{strokeDashoffset:0},animate:{strokeDashoffset:-1},transition:{duration:.9,repeat:1/0,ease:`linear`}})]})}var wE=12,TE=1.2;function EE({colors:e,reduced:t}){return(0,W.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 40 40`,fill:`currentColor`,"aria-hidden":`true`,className:Z(`size-[1em]`,e.indicator),children:Array.from({length:wE},(e,n)=>{let r={x:18,y:2,width:4,height:6,rx:2,transform:`rotate(${360/wE*n} 20 20)`};return t?(0,W.jsx)(`rect`,{...r,opacity:.25},n):(0,W.jsx)(yE.rect,{...r,initial:{opacity:0},animate:{opacity:[0,1,.5,0]},transition:{duration:TE,repeat:1/0,ease:`linear`,delay:n/wE*TE-TE,times:[0,.1,.5,1]}},n)})})}var DE=`M12.846 3.581C12.711 3.231 12.375 3 12 3C11.625 3 11.278 3.263 11.154 3.581C10.604 5.011 10.054 6.442 9.504 7.872C8.752 8.16 8.159 8.752 7.871 9.504C6.441 10.054 5.011 10.604 3.581 11.154C3.41 11.22 3.263 11.336 3.159 11.487C3.055 11.638 3 11.817 3 12C3 12.183 3.056 12.362 3.159 12.513C3.262 12.664 3.41 12.78 3.581 12.846C5.011 13.396 6.442 13.946 7.872 14.496C8.16 15.248 8.752 15.841 9.504 16.129C10.054 17.559 10.604 18.989 11.154 20.419C11.22 20.59 11.336 20.737 11.487 20.841C11.638 20.945 11.817 21 12 21C12.183 21 12.362 20.945 12.513 20.841C12.664 20.737 12.78 20.59 12.846 20.419C13.396 18.989 13.946 17.559 14.496 16.129C15.248 15.841 15.841 15.248 16.129 14.496C17.559 13.946 18.989 13.396 20.419 12.846C20.59 12.78 20.737 12.664 20.841 12.513C20.945 12.362 21 12.183 21 12C21 11.817 20.945 11.638 20.841 11.487C20.737 11.336 20.59 11.22 20.419 11.154C18.989 10.604 17.559 10.054 16.129 9.504C15.841 8.752 15.248 8.16 14.496 7.871C13.946 6.441 13.396 5.011 12.846 3.581Z`,OE=`M12.704 5C12.469 5 12.235 5 12 5C11.765 5 11.531 5 11.296 5C10.161 5.053 9.025 5.106 7.889 5.159C6.979 6.069 6.069 6.979 5.159 7.889C5.106 9.025 5.053 10.161 5 11.296C5 11.395 5 11.494 5 11.593C5 11.729 5 11.864 5 12C5 12.136 5 12.271 5 12.407C5 12.506 5 12.605 5 12.704C5.053 13.839 5.106 14.975 5.159 16.111C6.069 17.021 6.979 17.931 7.889 18.841C9.025 18.894 10.161 18.947 11.296 19C11.395 19 11.494 19 11.593 19C11.729 19 11.864 19 12 19C12.136 19 12.271 19 12.407 19C12.506 19 12.605 19 12.704 19C13.839 18.947 14.975 18.894 16.111 18.841C17.021 17.931 17.931 17.021 18.841 16.111C18.894 14.975 18.947 13.839 19 12.704C19 12.605 19 12.506 19 12.407C19 12.271 19 12.136 19 12C19 11.864 19 11.729 19 11.593C19 11.494 19 11.395 19 11.296C18.947 10.161 18.894 9.025 18.841 7.889C17.931 6.979 17.021 6.069 16.111 5.159C14.975 5.106 13.839 5.053 12.704 5Z`;function kE(e){return e.match(/-?\d+(?:\.\d+)?/g)?.map(Number)??[]}var AE=kE(DE),jE=kE(OE),ME=(AE.length-2)/6;function NE(e){let t=`M${e[0]} ${e[1]}`;for(let n=0;n<ME;n++){let r=2+n*6;t+=`C${e[r]} ${e[r+1]} ${e[r+2]} ${e[r+3]} ${e[r+4]} ${e[r+5]}`}return t+`Z`}function PE(e,t,n){return e+(t-e)*n}function FE(e){return e<.5?2*e*e:1-(-2*e+2)**2/2}var IE=2.5,LE=.4;function RE({colors:e,reduced:t}){let n=VT(0);g.useEffect(()=>{if(t)return;let e=_E(n,1,{duration:IE,repeat:1/0,ease:`linear`});return()=>e.stop()},[t,n]);let r=WT(n,e=>{if(e<LE/2){let t=FE(e/(LE/2));return NE(AE.map((e,n)=>PE(e,jE[n],t)))}if(e<LE){let t=FE((e-LE/2)/(LE/2));return NE(jE.map((e,n)=>PE(e,AE[n],t)))}return DE}),i=WT(n,e=>e<LE?FE(e/LE)*360:360);return(0,W.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinejoin:`round`,strokeLinecap:`round`,"aria-hidden":`true`,className:Z(`size-[1em]`,e.indicator),children:t?(0,W.jsx)(`path`,{d:DE}):(0,W.jsx)(yE.path,{d:r,style:{transformOrigin:`12px 12px`,rotate:i}})})}var zE={circular:CE,dots:EE,sparkle:RE};function BE({variant:e=`circular`,currentColor:t=!1,"aria-label":n=`Loading`,className:r,...i}){let a=_h(),o=t?SE:xE,s=zE[e],c=(0,W.jsx)(s,{colors:o,reduced:a});return(0,W.jsx)(`span`,{"data-slot":`spinner`,role:`status`,"aria-label":n,className:Z(`inline-flex shrink-0 items-center justify-center align-middle`,bE,r),...i,children:a?c:(0,W.jsx)(Fw,{features:BT,strict:!0,children:c})})}function VE(e,{storage:t=`local`}={}){let[n,r,i]=Ig(t,e,``,{serializer:e=>e,deserializer:e=>e}),a=n!==`1`,o=(0,g.useCallback)(()=>r(`1`),[r]),s=(0,g.useCallback)(()=>i(),[i]);return(0,g.useMemo)(()=>({open:a,dismiss:o,reset:s}),[a,o,s])}var HE=Uu(Z(`group/alert relative rounded-xl border p-5 text-foreground backdrop-blur-xl`,`grid w-full items-start`,`[grid-template-columns:auto_1fr_auto] [grid-template-areas:'icon_title_close'_'._description_.'_'._actions_actions']`,`@min-[460px]:data-[layout=inline]:items-center`,`@min-[460px]:data-[layout=inline]:[grid-template-columns:auto_auto_1fr_auto_auto]`,`@min-[460px]:data-[layout=inline]:[grid-template-areas:'icon_title_description_actions_close']`),{variants:{variant:{default:`bg-background border-border`,primary:`bg-primary-subtle border-primary-soft`,secondary:`bg-secondary-subtle border-secondary-soft`,error:`bg-error-subtle border-error-soft`,success:`bg-success-subtle border-success-soft`,warning:`bg-warning-subtle border-warning-soft`,info:`bg-info-subtle border-info-soft`}},defaultVariants:{variant:`default`}}),UE={default:`text-foreground-intense`,primary:`text-primary`,secondary:`text-secondary-emphasis`,error:`text-error-emphasis`,success:`text-success-emphasis`,warning:`text-warning-emphasis`,info:`text-info-emphasis`},WE=g.createContext(`default`),GE={opacity:0,scale:.88,filter:`blur(12px)`,height:0},KE={opacity:0},qE={default:{duration:.32,ease:[.4,0,.2,1]},height:{duration:.3,ease:[.4,0,.2,1],delay:.18}};function JE({variant:e,layout:t=`block`,dismissible:n=!1,open:r,onOpenChange:i,persistKey:a,persistStorage:o=`local`,closeLabel:s=`Dismiss`,role:c=`alert`,className:l,children:u,style:d,...f}){let p=_h(),[m,h]=g.useState(!0),_=VE(a??``,{storage:o}),v=r!==void 0,y=!v&&a!=null,b=v?r:y?_.open:m,x=g.useCallback(()=>{if(v){i?.(!1);return}y?_.dismiss():h(!1),i?.(!1)},[v,y,_,i]);return(0,W.jsx)(WE.Provider,{value:e??`default`,children:(0,W.jsx)(Fw,{features:BT,strict:!0,children:(0,W.jsx)(Ow,{initial:!1,children:b&&(0,W.jsx)(yE.div,{initial:!1,exit:p?KE:GE,transition:p?{duration:0}:qE,className:`@container overflow-hidden`,children:(0,W.jsxs)(`div`,{role:c,"data-slot":`alert`,"data-layout":t,style:d,className:Z(HE({variant:e}),l),...f,children:[u,n&&(0,W.jsx)(`button`,{type:`button`,"aria-label":s,"data-slot":`alert-close`,onClick:x,className:Z(`text-foreground-muted cursor-pointer rounded-md p-1 transition-colors outline-none [grid-area:close]`,`hover:text-foreground-intense`,`focus-visible:ring-ring focus-visible:ring-2`,`self-start @min-[460px]:group-data-[layout=inline]/alert:self-center`,`ms-3 -me-1 -mt-1 @min-[460px]:group-data-[layout=inline]/alert:my-0`),children:(0,W.jsx)(YE,{})})]})},`alert`)})})})}function YE(){return(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,className:`size-4`,children:(0,W.jsx)(`path`,{d:`M11.523 3.522c.264-.264.691-.264.955 0s.264.691 0 .955L8.955 8l3.522 3.522c.264.264.264.691 0 .955s-.691.264-.955 0L8 8.955l-3.522 3.522c-.264.264-.691.264-.955 0s-.264-.691 0-.955L7.045 8 3.522 4.478c-.264-.264-.264-.691 0-.955s.691-.264.955 0L8 7.045l3.523-3.522z`})})}function XE({className:e,...t}){let n=g.useContext(WE);return(0,W.jsx)(`span`,{"data-slot":`alert-icon`,className:Z(`me-3 flex h-lh shrink-0 items-center [grid-area:icon] [&_svg:not([class*='size-'])]:size-5`,UE[n],e),...t})}function ZE({className:e,as:t=`h5`,...n}){return(0,W.jsx)(t,{"data-slot":`alert-title`,className:Z(`text-foreground-intense self-center font-semibold [grid-area:title]`,`text-base @min-[460px]:group-data-[layout=inline]/alert:me-3 @min-[460px]:group-data-[layout=inline]/alert:text-sm`,e),...n})}function QE({className:e,...t}){return(0,W.jsx)(`p`,{"data-slot":`alert-description`,className:Z(`text-foreground text-sm [grid-area:description]`,`mt-2 @min-[460px]:group-data-[layout=inline]/alert:mt-0`,e),...t})}function $E(e){return Hr(e.defaultTagName??`div`,e,e)}var eD=[`before:pointer-events-none`,`before:absolute`,`before:inset-0`,`before:-z-1`,`before:rounded-[inherit]`,`[a,button]:before:transition-[opacity,background-color,border-color]`,`[a,button]:before:duration-250`,`motion-reduce:[a,button]:before:transition-none`],tD=Uu(`relative isolate inline-flex shrink-0 items-center justify-center rounded-full whitespace-nowrap outline-offset-1 select-none [&_svg]:shrink-0 [a,button]:transform-gpu [a,button]:cursor-pointer [a,button]:transition [a,button]:duration-250 [a,button]:ease-[cubic-bezier(0.175,0.885,0.32,1.5)] [a,button]:not-data-popup-open:active:translate-y-px [a,button]:not-data-popup-open:active:scale-[0.97] [a,button]:not-data-popup-open:active:duration-100 [a,button]:not-data-popup-open:active:ease-in-out motion-reduce:[a,button]:transition-none`,{variants:{variant:{primary:Z(eD,`bg-primary text-primary-foreground outline-ring-primary [a,button]:before:bg-[radial-gradient(138.15%_78.13%_at_52.05%_50%,var(--primary)_0%,var(--primary-muted)_75%)] [a,button]:before:opacity-0`,`[a,button]:hover:before:opacity-100`,`[a,button]:data-pressed:before:opacity-100`,`[a,button]:data-popup-open:before:opacity-100`),"primary-outline":Z(eD,`text-primary before:border before:border-primary outline-ring-primary`,`[a,button]:hover:before:bg-primary [a,button]:hover:text-primary-foreground`,`[a,button]:data-pressed:before:bg-primary [a,button]:data-pressed:text-primary-foreground`,`[a,button]:data-popup-open:before:bg-primary [a,button]:data-popup-open:text-primary-foreground`),secondary:Z(eD,`bg-secondary-muted text-secondary-foreground outline-ring-secondary [a,button]:before:bg-[radial-gradient(138.15%_78.13%_at_52.05%_50%,var(--secondary)_0%,var(--secondary-muted)_95%)] [a,button]:before:opacity-0`,`[a,button]:hover:before:opacity-100`,`[a,button]:data-pressed:before:opacity-100`,`[a,button]:data-popup-open:before:opacity-100`),soft:Z(eD,`text-foreground-intense before:bg-background-muted before:backdrop-blur-md [a,button]:before:border [a,button]:before:border-transparent outline-ring`,`data-[slot=breadcrumb-link]:not-data-active:text-foreground-muted data-[slot=breadcrumb-link]:hover:text-foreground-intense`,`[a,button]:hover:before:bg-background-subtle [a,button]:hover:before:border-border`,`[a,button]:data-pressed:before:bg-background-subtle [a,button]:data-pressed:before:border-border`,`[a,button]:data-popup-open:before:bg-background-subtle [a,button]:data-popup-open:before:border-border`,`data-active:before:bg-background-subtle data-active:border data-active:before:border-border`),outline:Z(eD,`bg-background text-foreground-intense before:bg-background before:border-border before:border outline-ring`,`data-[slot=breadcrumb-link]:not-data-active:text-foreground-muted data-[slot=breadcrumb-link]:hover:text-foreground-intense`,`[a,button]:hover:before:bg-background-subtle [a,button]:hover:before:border-border-strong`,`[a,button]:data-pressed:before:bg-background-subtle [a,button]:data-pressed:before:border-border-strong`,`[a,button]:data-popup-open:before:bg-background-subtle [a,button]:data-popup-open:before:border-border-strong`,`data-active:before:bg-background-subtle data-active:before:border-border-strong`),error:Z(eD,`bg-error-muted text-error-foreground outline-ring-error [a,button]:before:bg-[radial-gradient(138.15%_78.13%_at_52.05%_50%,var(--error-muted)_0%,rgba(255,255,255,.5)_95%)] [a,button]:before:opacity-0`,`[a,button]:hover:before:opacity-100`,`[a,button]:data-pressed:before:opacity-100`,`[a,button]:data-popup-open:before:opacity-100`),success:Z(eD,`bg-success-muted text-success-foreground outline-ring-success [a,button]:before:bg-[radial-gradient(138.15%_78.13%_at_52.05%_50%,var(--success-muted)_0%,rgba(255,255,255,.5)_95%)] [a,button]:before:opacity-0`,`[a,button]:hover:before:opacity-100`,`[a,button]:data-pressed:before:opacity-100`,`[a,button]:data-popup-open:before:opacity-100`),warning:Z(eD,`bg-warning-muted text-warning-foreground outline-ring-warning [a,button]:before:bg-[radial-gradient(138.15%_78.13%_at_52.05%_50%,var(--warning-muted)_0%,rgba(255,255,255,.5)_95%)] [a,button]:before:opacity-0`,`[a,button]:hover:before:opacity-100`,`[a,button]:data-pressed:before:opacity-100`,`[a,button]:data-popup-open:before:opacity-100`),info:Z(eD,`bg-info-muted text-info-foreground outline-ring-info [a,button]:before:bg-[radial-gradient(138.15%_78.13%_at_52.05%_50%,var(--info-muted)_0%,rgba(255,255,255,.5)_95%)] [a,button]:before:opacity-0`,`[a,button]:hover:before:opacity-100`,`[a,button]:data-pressed:before:opacity-100`,`[a,button]:data-popup-open:before:opacity-100`),light:Z(eD,`text-white before:bg-white/10 before:border-white/10 before:border before:backdrop-blur-md outline-ring-light`,`[a,button]:hover:before:bg-white/15 [a,button]:hover:before:border-white/15`,`[a,button]:data-pressed:before:bg-white/15 [a,button]:data-pressed:before:border-white/15`,`[a,button]:data-popup-open:before:bg-white/15 [a,button]:data-popup-open:before:border-white/15`,`data-active:before:bg-white/15 data-active:before:border-white/15`)},size:{xs:`h-4 w-fit gap-0.5 px-1.5 text-[.625rem] has-data-[icon=end]:pe-1.25 has-data-[icon=start]:ps-1.25 [&_svg:not([class*='size-'])]:size-2.5 [&_svg:not([class*='stroke-'])]:stroke-2`,sm:`h-5 w-fit gap-0.5 px-2 text-xs has-data-[icon=end]:pe-1.5 has-data-[icon=start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3 [&_svg:not([class*='stroke-'])]:stroke-[1.85]`,md:`h-6 w-fit gap-0.75 px-2.5 text-xs has-data-[icon=end]:pe-1.75 has-data-[icon=start]:ps-1.75 [&_svg:not([class*='size-'])]:size-3.5 [&_svg:not([class*='stroke-'])]:stroke-[1.75]`,lg:`h-7 w-fit gap-1 px-3 text-sm has-data-[icon=end]:pe-2.25 has-data-[icon=start]:ps-2.25 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='stroke-'])]:stroke-[1.75]`,"icon-sm":`h-5 w-5 [&_svg:not([class*='size-'])]:size-3 [&_svg:not([class*='stroke-'])]:stroke-[1.85]`,"icon-md":`h-6 w-6 [&_svg:not([class*='size-'])]:size-3.5 [&_svg:not([class*='stroke-'])]:stroke-[1.75]`,"icon-lg":`h-7 w-7 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='stroke-'])]:stroke-[1.75]`}},defaultVariants:{variant:`primary`,size:`md`}});function nD({className:e,variant:t,size:n,render:r,...i}){let a=g.isValidElement(r)?r.props:void 0,o=g.isValidElement(r)&&(r.type===`a`||r.type===`button`)||i.onClick!=null||a?.href!=null||a?.onClick!=null||a?.tabIndex!=null;return $E({defaultTagName:`span`,render:r,state:{variant:t,size:n},props:Or({"data-slot":`badge`,...o?Bu():{},className:Z(tD({variant:t,size:n}),e)},i)})}function rD(e,t,n,r,i){return g.isValidElement(t)?g.cloneElement(t,{...i,...t.props,className:Z(n,t.props.className,r)}):g.createElement(e,{...i,className:Z(n,r)})}var iD=`[--card-radius:var(--radius-xl)]`,aD=`rounded-[calc(var(--card-radius)*4/3)]`,oD={none:`rounded-(--card-radius)`,solid:Z(aD,`bg-background-muted/60 p-2 backdrop-blur-xl dark:bg-background-subtle`),glass:Z(aD,`border border-white/15 bg-white/10 p-2 backdrop-blur-sm`)},sD={none:`border`,solid:`border-border-muted border`,glass:``};function cD({frame:e=!1,inset:t=!0,className:n,contentProps:r,render:i,children:a,...o}){let s=e===!0?`solid`:e===!1?`none`:e;return rD(`div`,i,Z(`group/card flex flex-col`,iD,oD[s]),n,{"data-slot":`card`,"data-frame":s,...t?{"data-inset":``}:{},...o,children:(0,W.jsx)(`div`,{"data-slot":`card-content`,...r,className:Z(`bg-background flex min-h-0 flex-1 flex-col overflow-hidden rounded-(--card-radius)`,t&&`p-2`,sD[s],r?.className),children:a})})}function lD({className:e,...t}){return(0,W.jsx)(`div`,{"data-slot":`card-header`,className:Z(`flex flex-1 flex-col gap-1.5 p-6 group-data-inset/card:px-4`,e),...t})}function uD({className:e,render:t,...n}){return rD(`h3`,t,`text-foreground-intense text-lg font-semibold`,e,{"data-slot":`card-title`,...n})}var dD=g.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=vd(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return Hr(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:It,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),fD=`--nested-dialogs`,pD=g.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=vd(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`);Ud(),ai({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?Gs(c.context.popupRef):o,w=g>0,T=c.useStateSetter(`popupElement`),E=Hr(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:w},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...Ws,hidden:!m,onKeyDown(e){Jd.has(e.key)&&e.stopPropagation()},style:{[fD]:g}},s],ref:[t,c.context.popupRef,T],stateAttributesMapping:Zf});return(0,W.jsx)(Oo,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:E})}),mD=F(function(e){return Lf(`dialog`,e)}),hD=Object.assign(function(e){return(0,W.jsx)(mD,{...e})},{createHandle:Fp});function gD({className:e,children:t,closeButton:n=!0,closeLabel:r=`Close`,backdrop:i=!0,frame:a=!0,backdropProps:o,viewportProps:s,...c}){let l=a&&i,{portal:u,popup:d}=zp(c);return(0,W.jsxs)(gf,{...u,children:[i&&(0,W.jsx)(dD,{"data-slot":`dialog-backdrop`,...o,className:Z(`fixed inset-0 z-50 bg-black/30 backdrop-blur-sm supports-[-webkit-touch-callout:none]:absolute`,`motion-safe:transition-opacity motion-safe:duration-250 motion-safe:ease-out`,`data-ending-style:motion-safe:opacity-0 data-starting-style:motion-safe:opacity-0`,o?.className)}),(0,W.jsx)(Qf,{"data-slot":`dialog-viewport`,...s,className:Z(`fixed inset-0 z-50 flex items-center justify-center overflow-hidden p-4`,s?.className),children:(0,W.jsx)(pD,{"data-slot":`dialog-popup`,...l?{"data-frame":``}:{},className:Z(`group/dialog-popup relative flex max-h-full min-h-0 w-150 max-w-full flex-col`,`rounded-2xl border`,l?`border-white/15 bg-white/10 p-1.5 backdrop-blur-sm`:`bg-background border-border-overlay`,!l&&`shadow-2xl`,`isolate transform-gpu outline-none`,`motion-safe:transition-[opacity,scale] motion-safe:duration-250 motion-safe:ease-[cubic-bezier(0.175,0.885,0.32,1.5)]`,`data-starting-style:motion-safe:scale-95 data-starting-style:motion-safe:opacity-0`,`data-ending-style:motion-safe:scale-95 data-ending-style:motion-safe:opacity-0 data-ending-style:motion-safe:duration-100 data-ending-style:motion-safe:ease-out`,`data-nested-dialog-open:pointer-events-none data-nested-dialog-open:scale-95 data-nested-dialog-open:opacity-0`,e),...d,children:(0,W.jsxs)(`div`,{"data-slot":`dialog-content`,className:Z(`relative flex min-h-0 flex-col overflow-hidden not-has-[>[data-slot=dialog-footer]]:pb-6 not-has-[>[data-slot=dialog-header]]:pt-6 [&>[data-slot=dialog-header]+[data-slot=dialog-footer]]:pt-0`,l&&`bg-background rounded-[calc(var(--radius-2xl)*5/6)]`),children:[t,n&&(0,W.jsx)(Od,{"aria-label":r,"data-slot":`dialog-close-button`,className:Z(Gu({variant:`outline`,size:`icon-sm`}),`absolute inset-e-3 top-3 z-10`),children:(0,W.jsx)(SD,{})})]})})})]})}function _D({className:e,...t}){return(0,W.jsx)(`div`,{"data-slot":`dialog-header`,className:Z(`flex shrink-0 flex-col gap-2 p-6`,e),...t})}function vD({className:e,...t}){return(0,W.jsx)(Uf,{"data-slot":`dialog-title`,className:Z(`text-foreground-intense text-2xl font-semibold`,e),...t})}function yD({className:e,...t}){return(0,W.jsx)(Nd,{"data-slot":`dialog-description`,className:Z(`text-foreground-muted text-sm`,e),...t})}function bD({className:e,...t}){return(0,W.jsx)(`div`,{"data-slot":`dialog-body`,className:Z(`min-h-0 flex-1 px-6`,e),...t})}function xD({className:e,...t}){return(0,W.jsx)(`div`,{"data-slot":`dialog-footer`,className:Z(`flex flex-col-reverse gap-2 p-6 sm:flex-row sm:justify-end`,e),...t})}function SD(e){return(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,...e,children:(0,W.jsx)(`path`,{d:`M11.594 3.594c.225-.225.588-.225.813 0s.225.588 0 .812L8.813 8l3.594 3.594c.225.225.225.588 0 .813s-.588.225-.812 0L8 8.812l-3.594 3.594c-.225.225-.588.225-.812 0s-.225-.588 0-.812L7.188 8 3.594 4.406c-.225-.225-.225-.588 0-.812s.588-.225.813 0L8 7.187l3.594-3.594z`})})}var CD=g.createContext(void 0);function wD(){let e=g.useContext(CD);if(e===void 0)throw Error(S(63));return e}var TD=`data-valid`,ED=`data-invalid`,DD={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},OD={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},kD={valid(e){return e===null?null:e?{[TD]:``}:{[ED]:``}}},AD=`data-checked`,jD=`data-unchecked`,MD={...kD,checked(e){return e?{[AD]:``}:{[jD]:``}}},ND={invalid:void 0,name:void 0,validityData:{state:DD,errors:[],error:``,value:``,initialValue:null},setValidityData:p,disabled:void 0,setTouched:p,setDirty:p,setFilled:p,setFocused:p,validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:OD,registerFieldControl:p,validation:{getValidationProps:(e,t=h)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:p,getInputControl:()=>null,commit:async()=>{},change:p}},PD=g.createContext(ND);function FD(e=!0){let t=g.useContext(PD);if(t.setValidityData===p&&!e)throw Error(S(28));return t}function ID(e,t,n,r,i=!0,a){let{registerFieldControl:o}=FD(),s=y(()=>Symbol());b(()=>{let c=s.current;if(!i){o(c,void 0);return}o(c,{controlRef:e,getValue:r,id:t,name:a,value:n})},[e,i,r,t,a,o,s,n]),b(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}var LD=g.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:p,validationMode:`onSubmit`,submitCountRef:{current:0}});function RD(){return g.useContext(LD)}var zD=g.createContext({controlId:void 0,registerControlId:p,resetControlId:p,labelId:void 0,setLabelId:p,messageIds:[],setMessageIds:p,getDescriptionProps:e=>e});function BD(){return g.useContext(zD)}function VD(e,t,n,r=!0,i){let[a,o]=g.useState(),s=Md(i?`${i}-label`:void 0),c=e??t??a;return b(()=>{let i=e||t||!r?void 0:HD(n.current,s);a!==i&&o(i)}),c}function HD(e,t){let n=UD(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function UD(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}function WD(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=BD(),o=Md(),s=y(()=>Symbol()),c=g.useRef(!1),l=g.useRef(!1),u=q(()=>{c.current&&i!==p&&(c.current=!1,i(s.current,void 0))});return b(()=>{if(!n||i===p){u();return}let e;if(t!==void 0)l.current=!0,e=t;else if(l.current)e=o;else{a();return}if(e===void 0){u();return}c.current=!0,i(s.current,e)},[t,n,i,a,o,s,u]),b(()=>u,[u]),(n?r:void 0)??t??o}var GD=g.forwardRef(function(e,t){let{checked:n,className:r,defaultChecked:i,"aria-labelledby":a,form:o,id:s,inputRef:c,name:l,nativeButton:u=!1,onCheckedChange:d,readOnly:f=!1,required:p=!1,disabled:m=!1,render:_,uncheckedValue:v,value:y,style:x,...S}=e,{clearErrors:C}=RD(),{state:w,setTouched:T,setDirty:E,validityData:D,setFilled:O,setFocused:k,validationMode:A,disabled:j,name:M,validation:N}=FD(),{labelId:P}=BD(),F=j||m,I=M??l,L=g.useRef(null),R=gr(L,c,N.inputRef),z=g.useRef(null),B=Md(),V=WD({id:s}),H=u?void 0:V,[U,ee]=vf({controlled:n,default:!!i,name:`Switch`,state:`checked`});ID(z,B,U,void 0,!F,l),b(()=>{O(U)},[U,O]),Kf(U,()=>{C(I),E(U!==D.initialValue),N.change(U)});let{getButtonProps:te,buttonRef:G}=ua({disabled:F,native:u}),ne=VD(a,P,L,!u,H),K={id:u?V:B,role:`switch`,"aria-checked":U,"aria-readonly":f||void 0,"aria-required":p||void 0,"aria-labelledby":ne,onFocus(){F||k(!0)},onBlur(){let e=L.current;e&&!F&&(T(!0),k(!1),A===`onBlur`&&N.commit(e.checked))},onClick(e){if(f||F)return;e.preventDefault();let t=L.current;t&&la(t,e)}},re={...N.getValidationProps(F),checked:U,disabled:F,form:o,id:H,name:I,required:p,style:I?mr:pr,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,ref:R,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(f){e.preventDefault();return}let t=e.currentTarget.checked,n=ja(ha,e.nativeEvent);d?.(t,n),!n.isCanceled&&ee(t)},onClick(e){e.stopPropagation()},onFocus(){z.current?.focus()},...y===void 0?h:{value:y}},ie=g.useMemo(()=>({...w,checked:U,disabled:F,readOnly:f,required:p}),[w,U,F,f,p]),ae=Hr(`span`,e,{state:ie,ref:[t,z,G],props:[K,S,te,e=>N.getValidationProps(F,e)],stateAttributesMapping:MD});return(0,W.jsxs)(CD.Provider,{value:ie,children:[ae,!U&&I&&v!==void 0&&(0,W.jsx)(`input`,{type:`hidden`,form:o,name:I,value:v,disabled:F}),(0,W.jsx)(`input`,{...re,suppressHydrationWarning:!0})]})}),KD=g.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return Hr(`span`,e,{state:wD(),ref:t,stateAttributesMapping:MD,props:a})}),qD={sm:{root:`h-4 w-7.5`,thumb:`size-3`,thumbWidthKeyframes:[`0.75rem`,`1.25rem`,`0.75rem`],thumbXKeyframes:[0,`0.3125rem`,`0.875rem`],check:`size-2.5`},md:{root:`h-5 w-9.5`,thumb:`size-4`,thumbWidthKeyframes:[`1rem`,`1.6875rem`,`1rem`],thumbXKeyframes:[0,`0.4375rem`,`1.125rem`],check:`size-3`},lg:{root:`h-6 w-11.5`,thumb:`size-5`,thumbWidthKeyframes:[`1.25rem`,`2.125rem`,`1.25rem`],thumbXKeyframes:[0,`0.5rem`,`1.375rem`],check:`size-4`}},JD={duration:.25,ease:[.4,0,.2,1]};function YD(e,t){return t===1?[...e]:e.map(e=>typeof e==`number`?-e:`-${e}`)}function XD({renderProps:e,state:t,dirSign:n,sizeConfig:r,reduced:i}){let{checked:a}=t,{ref:o,onDrag:s,onDragStart:c,onDragEnd:l,onAnimationStart:u,onAnimationEnd:d,...f}=e,p=g.useMemo(()=>{let e=YD(r.thumbXKeyframes,n);return a?e:e.reverse()},[a,n,r]),m=p[p.length-1],[h,_]=vE(),v=zu(o,h),y=g.useRef(a);return g.useEffect(()=>{let e=y.current!==a;y.current=a,e&&!i?_(h.current,{x:p,width:r.thumbWidthKeyframes},JD):_(h.current,{x:m},{duration:0})},[a,r,_,h,i,p,m]),(0,W.jsx)(yE.span,{...f,ref:v,initial:{x:m},children:(0,W.jsx)(yE.svg,{className:Z(`text-foreground-intense`,r.check),xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 12 12`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,style:{strokeDasharray:12},initial:!1,animate:{strokeDashoffset:a?0:12},transition:i?{duration:0}:{strokeDashoffset:{duration:a?.3:0,ease:`easeOut`,delay:a?.25:0}},children:(0,W.jsx)(`path`,{d:`M3 6l2 2 4-4`})})})}function ZD({className:e,size:t=`md`,...n}){let r=Uc()===`rtl`?-1:1,i=qD[t],a=_h(),o=n[`aria-invalid`],s=o===!0||o===`true`;return(0,W.jsx)(Fw,{features:BT,strict:!0,children:(0,W.jsx)(GD,{"data-slot":`switch`,className:Z(`bg-background-strong outline-ring flex shrink-0 rounded-full border border-transparent p-px outline-offset-1`,i.root,`transition-background duration-200 motion-reduce:transition-none`,`data-checked:bg-primary data-checked:outline-ring-primary`,`data-disabled:not-data-checked:border-border-strong data-disabled:opacity-disabled data-disabled:cursor-not-allowed data-disabled:not-data-checked:border-dashed`,`data-invalid:border-error data-invalid:not-data-checked:bg-error-subtle data-invalid:outline-ring-error`,e),...n,...s?{"data-invalid":``}:{},children:(0,W.jsx)(KD,{"data-slot":`switch-thumb`,className:Z(`group flex items-center justify-center rounded-full bg-white shadow-2xs`,i.thumb,`data-checked:bg-primary-foreground`),render:(e,t)=>(0,W.jsx)(XD,{renderProps:e,state:t,dirSign:r,sizeConfig:i,reduced:a})})})})}var QD=3e4,$D=1e3;function eO(e,t=Date.now()){let n=e?.tailcat?.expiresAt??0;if(!Number.isFinite(n)||n<=0)return null;let r=n*1e3-t;return r<=0?null:Math.max(r-QD,$D)}var tO=class extends Error{constructor(e,t,n){super(e),K(this,`code`,void 0),K(this,`status`,void 0),this.name=`ApiError`,this.code=t,this.status=n}};async function nO(e){let t=null;try{t=await e.json()}catch{t=null}let n=t?.error;if(typeof n==`string`&&n)return new tO(n,`http_${e.status}`,e.status);if(n&&typeof n==`object`){let t=n,r=typeof t.code==`string`&&t.code?t.code:`http_${e.status}`;return new tO(typeof t.message==`string`&&t.message?t.message:$(`panel.net.requestFailed`,{status:e.status}),r,e.status)}return new tO($(`panel.net.requestFailed`,{status:e.status}),`http_${e.status}`,e.status)}async function rO(e){let t=e.split(`?`)[0]===`/api/relay/pairing`,n=t?3e4:e===`/api/relay/status`?12e3:0,r=n?new AbortController:null,i=r?window.setTimeout(()=>r.abort(),n):null;try{let n=await fetch(e,{headers:{accept:`application/json`},...r?{signal:r.signal}:{}});if(!n.ok)throw await nO(n);let i=await n.json();if(t&&(i?.ok!==!0||typeof i.svg!=`string`||!i.svg.includes(`<svg`)))throw new tO($(`panel.pairing.qrFailed`),`pairing_invalid`,n.status);return i}catch(e){throw r?.signal.aborted?new tO($(t?`panel.console.pairingTimeout`:`panel.console.statusTimeout`),t?`pairing_timeout`:`status_timeout`,0):e}finally{i!==null&&window.clearTimeout(i)}}async function iO(e,t,n){let r=await fetch(e,{method:`POST`,headers:{"content-type":`application/json`,accept:`application/json`},body:JSON.stringify(t??{})});if(!r.ok)throw await nO(r);let i=await r.json();return n?.keepApplyError||aO(i),i}function aO(e){let t=e?.applyError;if(typeof t==`string`&&t)throw new tO($(`panel.shell.applyFailed`,{message:t}),`apply_failed`,200)}function oO(e){return iO(`/api/relay/frp/import`,{config:e})}function sO(){return iO(`/api/relay/frp/stop`)}function cO(e){return e instanceof tO?e.message:e instanceof Error?e.message||$(`panel.net.requestFailedNoStatus`):String(e)}var lO={ok:4e3,soft:6e3,error:9e3};function uO(){let e=(0,g.useRef)(ud());return e.current=ud(),(0,g.useCallback)((t,n)=>{e.current.add({title:n,type:t,timeout:lO[t],priority:t===`error`?`high`:`low`})},[])}var dO={status:`/api/relay/update/status`,check:`/api/relay/update/check`,apply:`/api/relay/update/apply`,auto:`/api/relay/update/auto`,otaStatus:`/api/relay/update/ota/status`,otaCheck:`/api/relay/update/ota/check`,otaApply:`/api/relay/update/ota/apply`},fO=e=>e&&typeof e==`object`?e:{},pO=e=>typeof e==`string`&&e!==``?e:null,mO=e=>typeof e==`boolean`?e:null,hO=e=>typeof e==`number`&&Number.isFinite(e)?e:null;async function gO(e,t){let n=await fetch(e,{credentials:`same-origin`,headers:{accept:`application/json`,...t?.body?{"content-type":`application/json`}:{}},...t}),r=null;try{r=await n.json()}catch{r=null}let i=fO(r),a=fO(i.error);if(!n.ok){let e=pO(a.code)??`http_${n.status}`;throw new tO(pO(a.message)??$(`panel.net.hostHttp`,{status:n.status}),e,n.status)}return i}function _O(e){return e instanceof tO?e.status===404:e instanceof SyntaxError}function vO(e){return e instanceof tO&&e.code===`update_unavailable`}function yO(e){let t=fO(e);return Object.keys(t).length===0?null:{installedVersion:pO(t.installedVersion),latestVersion:pO(t.latestVersion),updateAvailable:t.updateAvailable===!0,source:pO(t.source),checkedAt:pO(t.checkedAt)}}function bO(e){let t=fO(e),n=fO(t.failure),r=pO(n.code);return{installed:mO(t.installed),skipped:mO(t.skipped),state:pO(t.state),beforeVersion:pO(t.beforeVersion),installedVersion:pO(t.installedVersion),swapped:mO(t.swapped),restartRequired:mO(t.restartRequired),refreshRequired:mO(t.refreshRequired),failure:r?{code:r,message:pO(n.message)??r}:null}}function xO(e){let t=fO(e);return{available:t.available===!0,version:pO(t.version),installedVersion:pO(t.installedVersion),source:pO(t.source),previousVersion:pO(t.previousVersion),activatedAt:pO(t.activatedAt),lastError:pO(t.lastError),inFlight:hO(t.inFlight)??0,swapping:t.swapping===!0,autoUpdate:t.autoUpdate===!0,autoIntervalMs:hO(t.autoIntervalMs)??6e5,marketBase:pO(t.marketBase),marketLastCheckedAt:pO(t.marketLastCheckedAt),marketLastError:pO(t.marketLastError),marketResult:yO(t.marketResult),lastApply:t.lastApply?bO(t.lastApply):null,appliedAt:pO(t.appliedAt),runningShellHash:pO(t.runningShellHash),installedShellHash:pO(t.installedShellHash),shellChanged:t.shellChanged===!0}}async function SO(){return xO((await gO(dO.status)).data)}async function CO(){let e=fO((await gO(dO.check,{method:`POST`,body:JSON.stringify({})})).data);return{update:yO(e.update),status:e.status?xO(e.status):null}}async function wO(e=!1){let t=fO((await gO(dO.apply,{method:`POST`,body:JSON.stringify({force:e})})).data),n=fO(t.status);return{...bO(t),status:Object.keys(n).length>0?xO(n):null}}async function TO(e){let t=fO((await gO(dO.auto,{method:`POST`,body:JSON.stringify({enabled:e})})).data);return{enabled:t.enabled===!0,status:t.status?xO(t.status):null}}function EO({className:e}){return(0,W.jsxs)(`svg`,{viewBox:`0 0 16 16`,className:e??`size-3.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.3`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6.2`}),(0,W.jsx)(`path`,{d:`M6.3 6.1a1.75 1.75 0 0 1 3.4.55c0 1.15-1.7 1.35-1.7 2.55`}),(0,W.jsx)(`path`,{d:`M8 11.5h.01`})]})}function DO(){let[e,t]=(0,g.useState)(null),[n,r]=(0,g.useState)(!1),[i,a]=(0,g.useState)(!1),[o,s]=(0,g.useState)(!1),c=uO();(0,g.useEffect)(()=>{let e=!0;return SO().then(n=>{e&&t(n)}).catch(()=>{}),()=>{e=!1}},[]);let l=(0,g.useCallback)(async n=>{r(!0);try{let r=await TO(n);t(e=>r.status??(e&&{...e,autoUpdate:r.enabled}));let i=Math.round((r.status?.autoIntervalMs??e?.autoIntervalMs??6e5)/6e4);c(`soft`,r.enabled?$(`panel.update.autoOn`,{minutes:i}):$(`panel.update.autoOff`))}catch(e){c(`error`,$(`panel.update.autoToggleFailed`,{message:cO(e)}));try{t(await SO())}catch{}}finally{r(!1)}},[e?.autoIntervalMs,c]);if(!e)return null;let u=e.autoUpdate===!0,d=Math.round((e.autoIntervalMs??6e5)/6e4);return(0,W.jsxs)(`div`,{className:`mt-1 border-t border-border-muted pt-3`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,W.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1`,children:[(0,W.jsx)(`span`,{className:`text-sm text-foreground`,children:$(`panel.update.autoUpdate`)}),(0,W.jsx)(`button`,{type:`button`,"aria-label":$(`panel.update.autoHelp`),title:$(`panel.update.autoHelp`),className:`shrink-0 cursor-pointer text-foreground-muted transition-colors duration-200 hover:text-foreground-strong focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none`,onClick:()=>a(!0),children:(0,W.jsx)(EO,{})})]}),(0,W.jsxs)(`span`,{className:`flex shrink-0 items-center gap-2`,children:[n?(0,W.jsx)(BE,{}):null,(0,W.jsx)(ZD,{size:`md`,checked:u,disabled:n,onCheckedChange:e=>{e?l(!0):s(!0)},"aria-label":$(`panel.update.autoUpdate`)})]})]}),(0,W.jsx)(hD,{open:i,onOpenChange:a,children:(0,W.jsxs)(gD,{className:`max-w-md`,closeLabel:$(`panel.common.close`),children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.update.autoUpdate`)})}),(0,W.jsx)(bD,{className:`whitespace-pre-line text-sm leading-6 text-foreground-muted`,children:$(`panel.update.autoDetail`,{minutes:d})}),(0,W.jsx)(xD,{className:`flex justify-end`,children:(0,W.jsx)(Q,{variant:`outline`,onClick:()=>a(!1),children:$(`panel.common.close`)})})]})}),(0,W.jsx)(hD,{open:o,onOpenChange:s,children:(0,W.jsxs)(gD,{className:`max-w-md`,closeLabel:$(`panel.common.close`),children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.update.autoOffTitle`)})}),(0,W.jsx)(bD,{className:`text-sm leading-6 text-foreground-muted`,children:$(`panel.update.autoOffBody`)}),(0,W.jsxs)(xD,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(Q,{variant:`outline`,onClick:()=>{s(!1),l(!1)},children:$(`panel.update.autoOffConfirm`)}),(0,W.jsx)(Q,{variant:`primary`,onClick:()=>s(!1),children:$(`panel.update.autoOffKeep`)})]})]})})]})}var OO=g.createContext(void 0);function kO(e){let t=g.useContext(OO);if(t===void 0&&!e)throw Error(S(72));return t}var AO={...dc,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},jO=class extends le{constructor(e,t,n){let r=new ic;super(MO(e,r,t,n),NO(r),AO),K(this,`setOpen`,(e,t)=>{Qs(this,e,t,{extraState:{openChangeReason:t.reason}})})}cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,ja(ga,e))}};function MO(e,t,n,r=!1){return{...ac(t,n,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function NO(e){return{popupRef:g.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var PO=F(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=Ks((e,t)=>new jO({open:n,openProp:r,activeTriggerId:d,triggerIdProp:u},e,t));p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,_=p.useState(`activeTriggerId`),v=p.useState(`mounted`),y=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i,disabled:t}),ec(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:x,transitionStatus:S}=tc(h,p),C=p.useState(`isInstantPhase`),w=p.useState(`instantType`),T=p.useState(`lastOpenChangeReason`),E=g.useRef(null);b(()=>{m&&t&&p.setOpen(!1,ja(Oa))},[m,t,p]),b(()=>{S===`ending`&&T===`none`||S!==`ending`&&C?(w!==`delay`&&(E.current=w),p.set(`instantType`,`delay`)):E.current!==null&&(p.set(`instantType`,E.current),E.current=null)},[S,C,T,w,p]),b(()=>{h&&(_??p.set(`payload`,void 0))},[p,_,h]),g.useImperativeHandle(o,()=>({unmount:x,close:()=>p.setOpen(!1,ja(ka))}),[x,p]);let D=h||v||!t&&a!==`none`;return(0,W.jsxs)(OO.Provider,{value:p,children:[l&&(0,W.jsx)(qs,{handle:l,store:p}),D&&(0,W.jsx)(FO,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:y}):f]})});function FO({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=Fo(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=Mo(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=g.useMemo(()=>Or(a.reference,i.reference),[a.reference,i.reference]);return nc(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:i.floating??h}),null}var IO=g.createContext(void 0);function LO(){return g.useContext(IO)}var RO=`data-base-ui-tooltip-trigger`;function zO(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if(_e(n))return n}}let t=e.target;return _e(t)?t:null}function BO(e){let t=e;for(;t;){let e=t.closest(`[${RO}]`);if(e)return e;let n=t.getRootNode();t=`host`in n&&_e(n.host)?n.host:null}return null}var VO=I(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:u,id:d,...f}=e,p=kO(!0),m=fc(a)??p;if(!m)throw Error(S(82));let h=Md(d),_=m.useState(`isTriggerActive`,h),v=m.useState(`isOpenedByTrigger`,h),y=m.useState(`floatingRootContext`),b=g.useRef(null),x=u??0,{registerTrigger:C,isMountedByThisTrigger:w}=$s(h,b,m,{payload:o,closeOnClick:l,closeDelay:x}),T=LO(),{activeIdRef:E,delayRef:D,isInstantPhase:O,hasProvider:k}=Ya(y,{open:v}),A=xc(y);m.useSyncedValue(`isInstantPhase`,O);let j=m.useState(`disabled`),M=s??j,N=Ba(M),P=m.useState(`trackCursorAxis`),F=m.useState(`disableHoverablePopup`),I=g.useRef(!1),L=Ke(),R=g.useRef(void 0);function z(){return k&&E.current!=null?0:c??T??600}function B(e){let t=b.current;if(!t||!e)return!1;let n=BO(e);return n!==null&&n!==t&&J(t,n)}function V(e){let t=B(e);return I.current=t,t&&(A.openChangeTimeout.clear(),A.restTimeout.clear(),A.restTimeoutPending=!1,L.clear()),t}let H=wc(y,{enabled:!M,mouseOnly:!0,move:!1,handleClose:!F&&P!==`both`?Vc():null,restMs:z,delay(){return u==null&&k?{close:Ua(D.current,`close`)}:{close:x}},triggerElementRef:b,isActiveTrigger:_,isClosing:()=>m.select(`transitionStatus`)===`ending`,shouldOpen(){return!I.current}}),U=gc(y,{enabled:!M}).reference,ee=e=>{let t=I.current,n=zO(e),r=V(n),i=b.current,a=i&&n&&J(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,ja(_a,e));return}if(t&&!r&&a&&!N.current&&!m.select(`open`)&&i&&Qt(R.current)){let t=()=>{!I.current&&!N.current&&!m.select(`open`)&&m.setOpen(!0,ja(_a,e,i))},n=z();n===0?(L.clear(),t()):L.start(n,t)}},W=m.useState(`triggerProps`,w);return Hr(`button`,e,{state:{open:v},ref:[t,C,b],props:[H,U,w||P!==`none`?W:void 0,{onMouseOver(e){ee(e.nativeEvent)},onFocus(e){B(zO(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){I.current=!1,L.clear(),R.current=void 0},onPointerEnter(e){R.current=e.pointerType},onPointerDown(e){R.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[Lt]:M?``:void 0,[RO]:M?void 0:``},f],stateAttributesMapping:Nt})}),HO=g.createContext(void 0);function UO(){let e=g.useContext(HO);if(e===void 0)throw Error(S(70));return e}var WO=g.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return kO().useState(`mounted`)||n?(0,W.jsx)(HO.Provider,{value:n,children:(0,W.jsx)(Ra,{ref:t,...r})}):null}),GO=g.createContext(void 0);function KO(){let e=g.useContext(GO);if(e===void 0)throw Error(S(71));return e}var qO=g.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=pi,style:_,...v}=e,y=kO(),b=UO(),x=y.useState(`open`),S=y.useState(`mounted`),C=y.useState(`trackCursorAxis`),w=y.useState(`disableHoverablePopup`),T=y.useState(`floatingRootContext`),E=y.useState(`instantType`),D=y.useState(`transitionStatus`),O=rl({anchor:i,positionMethod:a,floatingRootContext:T,mounted:S,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:b,collisionAvoidance:h,adaptiveOrigin:y.useState(`adaptiveOrigin`)}),k=sl(e,g.useMemo(()=>({open:x,side:O.side,align:O.align,anchorHidden:O.anchorHidden,instant:C===`none`?E:`tracking-cursor`}),[x,O.side,O.align,O.anchorHidden,C,E]),{styles:O.positionerStyles,transitionStatus:D,props:v,refs:[t,y.useStateSetter(`positionerElement`)],hidden:!S,inert:!x||C===`both`||w});return(0,W.jsx)(GO.Provider,{value:O,children:k})}),JO=g.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=kO(),{side:s,align:c}=KO(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);ai({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),Sc(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return Hr(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[Ws,f,ol(d),a],stateAttributesMapping:It})}),YO=g.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=kO(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=KO();return Hr(`div`,e,{state:{open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:Ft})});function XO(e){return(0,W.jsx)(PO,{...e})}function ZO(e){return(0,W.jsx)(VO,{"data-slot":`tooltip-trigger`,...e})}function QO({className:e,arrow:t=!0,children:n,...r}){let{positioner:i,portal:a,popup:o}=bh(r);return(0,W.jsx)(WO,{...a,children:(0,W.jsx)(qO,{side:`top`,align:`center`,alignOffset:0,sideOffset:t?8:4,...i,className:Z(`isolate z-50`,i.className),children:(0,W.jsxs)(JO,{"data-slot":`tooltip-content`,className:Z(`bg-background-inverse text-foreground-inverse rounded-xs px-3 py-1.5 text-xs shadow-md`,`motion-safe:origin-(--transform-origin) motion-safe:transition-[opacity,scale] motion-safe:duration-200 motion-safe:ease-[cubic-bezier(0.175,0.885,0.32,1.5)]`,`data-starting-style:motion-safe:scale-90 data-starting-style:motion-safe:opacity-0`,`data-ending-style:motion-safe:scale-95 data-ending-style:motion-safe:opacity-0 data-ending-style:motion-safe:duration-100 data-ending-style:motion-safe:ease-out`,`data-instant:motion-safe:transition-none`,e),...o,children:[n,t&&(0,W.jsx)(YO,{"data-slot":`tooltip-arrow`,className:Z(`bg-background-inverse fill-background-inverse size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px]`,`data-[side=top]:-bottom-2.5`,`data-[side=bottom]:top-1`,`data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2`,`data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2`,`data-[side=inline-start]:-inset-e-1 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-translate-y-1/2`,`data-[side=inline-end]:-inset-s-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-translate-y-1/2`)})]})})})}function $O({tone:e}){return(0,W.jsx)(`span`,{className:fg(`inline-block size-2 shrink-0 rounded-full`,pg[e]),"aria-hidden":!0})}function ek({label:e,hint:t,labelExtra:n,tone:r,mono:i,nowrap:a,children:o}){return(0,W.jsxs)(`div`,{className:fg(`flex justify-between gap-4 border-b border-border-muted py-2 last:border-b-0`,a?`items-center whitespace-nowrap`:`items-baseline`),children:[(0,W.jsx)(`dt`,{className:a?`shrink-0 text-xs text-foreground-muted`:`min-w-[5.5rem] flex-1 text-sm text-foreground-muted`,children:t||n?(0,W.jsxs)(`span`,{className:`inline-flex items-center gap-1`,children:[e,n,t?(0,W.jsxs)(XO,{children:[(0,W.jsx)(ZO,{delay:250,render:(0,W.jsx)(`button`,{type:`button`,"aria-label":t,title:t,className:`shrink-0 cursor-pointer text-foreground-muted transition-colors duration-200 hover:text-foreground-strong focus-visible:outline-none motion-reduce:transition-none`,children:(0,W.jsx)(EO,{})})}),(0,W.jsx)(QO,{className:`max-w-72`,children:(0,W.jsx)(`p`,{children:t})})]}):null]}):e}),(0,W.jsx)(`dd`,{className:fg(`text-right text-sm`,a?`shrink-0 whitespace-nowrap text-xs`:`min-w-0 max-w-[62%] break-words`,i?`font-mono text-xs text-foreground-strong`:`text-foreground`,r&&mg[r]),children:o})]})}var tk=`[&>div]:min-h-9`,nk=`[&>div]:min-h-12 [&>div]:py-0 [&>div]:items-center`;function rk({children:e,className:t}){return(0,W.jsx)(`dl`,{className:fg(`mt-1`,t),children:e})}function ik({tone:e,text:t,detail:n}){return(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-center justify-end gap-x-2`,children:[(0,W.jsx)($O,{tone:e}),(0,W.jsx)(`span`,{children:t}),n?(0,W.jsx)(`span`,{className:`line-clamp-2 text-xs text-foreground-muted`,title:n,children:n}):null]})}var ak=`M4.3 12.55 L9.25 17.5 L19.7 6.5`,ok={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0};async function sk(e){if(typeof e==`string`)return e;if(typeof e==`function`)return await e();let t=e.current;if(!t)throw Error("CopyButton: the `value` ref is not attached to an element");return t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?t.value:t.textContent??``}async function ck(e){if(navigator.clipboard?.writeText){await navigator.clipboard.writeText(e);return}let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();try{if(!document.execCommand(`copy`))throw Error(`Copying to clipboard is not supported`)}finally{t.remove()}}function lk({value:e,timeout:t=2e3,label:n=`Copy`,copiedLabel:r=`Copied`,onCopy:i,onCopyError:a,icon:o,onClick:s,variant:c=`ghost`,size:l=`icon-sm`,className:u,children:d,...f}){let[p,m]=g.useState(!1),h=g.useRef(void 0);return g.useEffect(()=>()=>clearTimeout(h.current),[]),(0,W.jsxs)(Q,{"data-slot":`copy-button`,"data-copied":p||void 0,type:`button`,variant:c,size:l,"aria-label":p?r:n,onClick:async n=>{if(s?.(n),n.defaultPrevented)return;let r;try{r=await sk(e),await ck(r)}catch(e){a?.(e);return}i?.(r),m(!0),clearTimeout(h.current),h.current=setTimeout(()=>m(!1),t)},className:Z(`group/copy`,u),...f,children:[(0,W.jsxs)(`span`,{"data-icon":d==null?void 0:`start`,className:`grid place-items-center *:[grid-area:1/1]`,children:[(0,W.jsx)(`span`,{className:Z(`grid place-items-center transition-[opacity,scale] delay-150 duration-150 ease-out group-data-copied/copy:delay-0`,`group-data-copied/copy:scale-50 group-data-copied/copy:opacity-0`,`motion-reduce:transition-none`),children:o??(0,W.jsx)(`svg`,{...ok,children:(0,W.jsx)(`path`,{d:`M4.012 16.737c-.307-.175-.562-.427-.739-.732S3.001 15.353 3 15V5c0-1.1.9-2 2-2h10c.75 0 1.158.385 1.5 1M7 9.667c0-.707.281-1.386.781-1.886S8.96 7 9.667 7h8.666c.35 0 .697.069 1.021.203s.618.33.865.578.444.542.578.865A2.67 2.67 0 0 1 21 9.667v8.666a2.67 2.67 0 0 1-.781 1.886 2.67 2.67 0 0 1-1.886.781H9.667a2.67 2.67 0 0 1-1.021-.203c-.324-.134-.618-.331-.865-.578s-.444-.542-.578-.865S7 18.683 7 18.333V9.667z`})})}),(0,W.jsx)(`svg`,{...ok,children:(0,W.jsx)(`path`,{d:ak,pathLength:1,strokeDasharray:`1 2`,className:Z(`[stroke-dashoffset:1.02] group-data-copied/copy:[stroke-dashoffset:0]`,`transition-[stroke-dashoffset] duration-200 ease-in`,`group-data-copied/copy:delay-100 group-data-copied/copy:duration-350 group-data-copied/copy:ease-out`,`motion-reduce:transition-none`)})})]}),typeof d==`string`&&p?r:d,(0,W.jsx)(`span`,{role:`status`,className:`sr-only`,children:p?r:``})]})}function uk({className:e}){return(0,W.jsxs)(`svg`,{viewBox:`0 0 16 16`,className:e??`size-3.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.3`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6.2`}),(0,W.jsx)(`path`,{d:`M8 4.8v4.4`}),(0,W.jsx)(`path`,{d:`M8 11.4h.01`})]})}function dk({issue:e}){let[t,n]=(0,g.useState)(!1),r=uO();return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`button`,{type:`button`,"aria-label":e.title,title:e.title,className:`shrink-0 cursor-pointer rounded text-error transition-colors duration-200 hover:text-foreground-strong focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none`,onClick:()=>n(!0),children:(0,W.jsx)(uk,{})}),(0,W.jsx)(hD,{open:t,onOpenChange:n,children:(0,W.jsxs)(gD,{className:`max-w-md`,closeLabel:$(`panel.common.close`),children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:e.title})}),(0,W.jsx)(bD,{children:(0,W.jsx)(`p`,{className:`whitespace-pre-wrap break-all text-sm leading-6 text-foreground-muted`,children:e.detail})}),(0,W.jsxs)(xD,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(lk,{value:e.detail,label:$(`panel.common.copy`),copiedLabel:$(`panel.links.sponsorCopied`),size:`sm`,variant:`outline`,onCopyError:()=>r(`error`,$(`panel.onboarding.copiedFailed`)),children:$(`panel.common.copy`)}),(0,W.jsx)(Q,{variant:`ghost`,onClick:()=>n(!1),children:$(`panel.common.close`)})]})]})})]})}function fk(e){return e.available?e.enabled?e.error?`panel.tailcat.error`:e.ready?`panel.tailcat.ready`:`panel.tailcat.starting`:`panel.tailcat.disabled`:`panel.tailcat.unavailableShort`}function pk(e){return e.available?e.enabled?e.path===`direct`&&e.active?`panel.p2p.open`:e.error?`panel.p2p.error`:e.path===`failed`?`panel.p2p.blocked`:e.ready?e.path===`waiting`?`panel.p2p.waiting`:`panel.p2p.punching`:e.started?`panel.p2p.punching`:`panel.p2p.waiting`:`panel.p2p.disabled`:`panel.p2p.unavailableShort`}function mk(e){return!e.available||!e.enabled?`off`:e.path===`direct`&&e.active?`ok`:e.error||e.path===`failed`?`error`:`warn`}function hk(e){return!e.available||!e.enabled?`off`:e.error?`error`:e.ready?`ok`:`warn`}function gk({status:e,addressBook:t,busy:n,onStopFrp:r,onManageTailcat:i,onManageP2P:a,restartError:o}){let s=e.tunnel,c=e.tailcat??null,l=e.p2p??null,u=(t?.manualTcp??``).trim(),d=e.frp??null,f=d?.enabled===!0||d?.enabled===void 0&&d?.configPresent===!0,p=d?.configPresent===!0||f||!!(d?.running||d?.starting||d?.retrying),m,h;return d?.running?(m=`ok`,h=$(`panel.connection.tcpRunning`)):d?.starting||d?.retrying?(m=`warn`,h=$(`panel.frp.retrying`)):d?.error?(m=`error`,h=$(`panel.connection.tcpFailed`)):f?(m=`warn`,h=$(`panel.connection.tcpEnabledNotRunning`)):p?(m=`off`,h=$(`panel.connection.tcpSet`)):u?(m=`ok`,h=$(`panel.connection.tcpManual`)):(m=`off`,h=$(`panel.connection.tcpOff`)),(0,W.jsxs)(cD,{frame:`solid`,children:[(0,W.jsxs)(rk,{children:[(0,W.jsxs)(ek,{label:$(`panel.connection.platform`),children:[e.platform,` `,e.osVersion,` · `,e.arch]}),(0,W.jsx)(ek,{label:$(`panel.connection.tunnel`),tone:gg(s.state),labelExtra:s.error?(0,W.jsx)(dk,{issue:{title:$(`panel.connection.tunnel`),detail:s.error}}):void 0,children:(0,W.jsx)(ik,{tone:gg(s.state),text:_g(s.state)})}),c?(0,W.jsx)(ek,{label:$(`panel.tailcat.title`),tone:hk(c),labelExtra:!c.available||c.error?(0,W.jsx)(dk,{issue:{title:$(`panel.tailcat.title`),detail:c.available?c.error??``:$(`panel.tailcat.unavailable`)}}):void 0,children:(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-center justify-end gap-x-2`,children:[(0,W.jsx)(ik,{tone:hk(c),text:$(fk(c))}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,onClick:i,children:$(`panel.tailcat.manage`)})]})}):null,l?(0,W.jsx)(ek,{label:$(`panel.p2p.title`),tone:mk(l),labelExtra:!l.available||l.error?(0,W.jsx)(dk,{issue:{title:$(`panel.p2p.title`),detail:l.available?l.error??``:$(`panel.p2p.unavailable`)}}):void 0,children:(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-center justify-end gap-x-2`,children:[(0,W.jsx)(ik,{tone:mk(l),text:$(pk(l))}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,onClick:a,children:$(`panel.p2p.manage`)})]})}):null,(0,W.jsx)(ek,{label:$(`panel.connection.tcp`),tone:m,labelExtra:d?.error?(0,W.jsx)(dk,{issue:{title:$(`panel.connection.tcp`),detail:d.error}}):void 0,children:(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-center justify-end gap-x-2`,children:[(0,W.jsx)(ik,{tone:m,text:h}),d&&(d.enabled||d.running||d.starting||d.retrying||d.enabled===void 0&&d.configPresent)?(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:n!==``,onClick:r,children:$(`panel.frp.stop`)}):null]})}),(0,W.jsx)(ek,{label:$(`panel.connection.sidecar`),labelExtra:o?(0,W.jsx)(dk,{issue:{title:$(`panel.connection.sidecar`),detail:o}}):void 0,children:(0,W.jsx)(ik,{tone:o||e.sidecar.state!==`healthy`?`error`:`ok`,text:o?$(`panel.pairing.sidecarRestartFailed`):bg(e.sidecar.state),...!o&&e.sidecar.restarts>0?{detail:$(`panel.connection.sidecarRestarts`,{count:e.sidecar.restarts})}:{}})}),(0,W.jsx)(ek,{label:$(`panel.connection.mirror`),labelExtra:e.mirror.error?(0,W.jsx)(dk,{issue:{title:$(`panel.connection.mirror`),detail:e.mirror.error}}):void 0,children:(0,W.jsx)(ik,{tone:e.mirror.ok?`ok`:e.mirror.error?`error`:`warn`,text:e.mirror.ok?$(`panel.connection.mirrorOk`):$(`panel.connection.mirrorOff`),detail:hg(e.mirror.pushedAt)})})]}),e.lan.recovery?.state===`awaiting-device`?(0,W.jsx)(rk,{children:(0,W.jsx)(ek,{label:$(`panel.connection.lan`),children:(0,W.jsx)(ik,{tone:`warn`,text:$(`panel.connection.lanWaiting`)})})}):e.lan.recovery?.state===`verified`?(0,W.jsx)(rk,{children:(0,W.jsx)(ek,{label:$(`panel.connection.lan`),children:(0,W.jsx)(ik,{tone:`ok`,text:$(`panel.connection.lanVerified`)})})}):null,e.lan.enabled&&(e.lan.error||e.lan.discovery?.error)?(0,W.jsx)(rk,{children:(0,W.jsx)(ek,{label:$(`panel.connection.lan`),labelExtra:(0,W.jsx)(dk,{issue:{title:$(`panel.connection.lan`),detail:(e.lan.error||e.lan.discovery?.error)??``}}),children:(0,W.jsx)(ik,{tone:`warn`,text:$(`panel.lan.error`)})})}):null,(0,W.jsx)(_k,{status:e})]})}function _k({status:e}){let t=e.tunnel.admissionHint;return t?t===`register-secret`?(0,W.jsx)(rk,{children:(0,W.jsx)(ek,{label:$(`panel.connection.relayNeedsSecret`),children:(0,W.jsx)(ik,{tone:`warn`,text:$(`panel.connection.relayNeedsSecret`),detail:$(`panel.connection.relayNeedsSecretBody`)})})}):(0,W.jsx)(rk,{children:(0,W.jsx)(ek,{label:$(`panel.connection.relayRejected`),children:(0,W.jsx)(ik,{tone:`warn`,text:$(`panel.connection.relayRejected`),detail:$(`panel.connection.relayRejectedBody`)})})}):null}var vk=`dsh-mobile-plugin:panel-action`;function yk(){return typeof window<`u`&&window.parent!==window}function bk(e){yk()&&window.parent.postMessage({type:vk,action:e},`*`)}function xk(){return(0,W.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`size-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`path`,{d:`M13 5H5.8A1.8 1.8 0 0 0 4 6.8v11.4A1.8 1.8 0 0 0 5.8 20h11.4a1.8 1.8 0 0 0 1.8-1.8V11`}),(0,W.jsx)(`path`,{d:`M14 4h6v6`}),(0,W.jsx)(`path`,{d:`M20 4l-8.5 8.5`})]})}function Sk(){return(0,W.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`size-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`path`,{d:`M6 6l12 12`}),(0,W.jsx)(`path`,{d:`M18 6L6 18`})]})}function Ck(){return yk()?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(Q,{variant:`ghost`,size:`icon-md`,"aria-label":$(`panel.console.openBrowser`),title:$(`panel.console.openBrowser`),onClick:()=>bk(`open-browser`),children:(0,W.jsx)(xk,{})}),(0,W.jsx)(Q,{variant:`ghost`,size:`icon-md`,"aria-label":$(`panel.common.close`),title:$(`panel.common.close`),onClick:()=>bk(`close`),children:(0,W.jsx)(Sk,{})})]}):null}function wk(e){return Lf(`alert-dialog`,e)}var Tk=class extends Pp{};function Ek(){return new Tk}var Dk=Object.assign(function(e){return(0,W.jsx)(wk,{...e})},{createHandle:Ek});function Ok({className:e,children:t,backdrop:n=!0,frame:r=!0,backdropProps:i,viewportProps:a,...o}){let{portal:s,popup:c}=zp(o),l=i?.forceRender===!0,u=r&&n;return(0,W.jsxs)(gf,{...s,children:[n&&(0,W.jsx)(dD,{"data-slot":`alert-dialog-backdrop`,...i,className:Z(`fixed inset-0 z-50 bg-black/30 backdrop-blur-sm supports-[-webkit-touch-callout:none]:absolute`,`motion-safe:transition-opacity motion-safe:duration-250 motion-safe:ease-out`,`data-ending-style:motion-safe:opacity-0 data-starting-style:motion-safe:opacity-0`,i?.className)}),(0,W.jsx)(Qf,{"data-slot":`alert-dialog-viewport`,...a,className:Z(`fixed inset-0 z-50 flex items-center justify-center overflow-hidden p-4`,a?.className),children:(0,W.jsx)(pD,{"data-slot":`alert-dialog-popup`,...u?{"data-frame":``}:{},className:Z(`group/alert-dialog-popup relative flex max-h-full min-h-0 w-100 max-w-full flex-col`,`rounded-2xl border`,u?Z(`border-white/15 bg-white/10 p-1.5 backdrop-blur-sm`,!l&&`data-nested:border-border-overlay data-nested:bg-background data-nested:p-0 data-nested:shadow-2xl data-nested:backdrop-blur-none`):`bg-background border-border-overlay`,!u&&`shadow-2xl`,`isolate transform-gpu outline-none`,`motion-safe:transition-[opacity,scale] motion-safe:duration-250 motion-safe:ease-[cubic-bezier(0.175,0.885,0.32,1.5)]`,`data-starting-style:motion-safe:scale-95 data-starting-style:motion-safe:opacity-0`,`data-ending-style:motion-safe:scale-95 data-ending-style:motion-safe:opacity-0 data-ending-style:motion-safe:duration-100 data-ending-style:motion-safe:ease-out`,e),...c,children:(0,W.jsx)(`div`,{"data-slot":`alert-dialog-content`,className:Z(`flex min-h-0 flex-col overflow-hidden not-has-[>[data-slot=alert-dialog-footer]]:pb-6 not-has-[>[data-slot=alert-dialog-header]]:pt-6 [&>[data-slot=alert-dialog-header]+[data-slot=alert-dialog-footer]]:pt-0`,u&&Z(`bg-background rounded-[calc(var(--radius-2xl)*5/6)]`,!l&&`group-data-nested/alert-dialog-popup:rounded-none group-data-nested/alert-dialog-popup:bg-transparent`)),children:t})})})]})}function kk({className:e,...t}){return(0,W.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:Z(`flex shrink-0 flex-col gap-2 p-6`,e),...t})}function Ak({className:e,...t}){return(0,W.jsx)(Uf,{"data-slot":`alert-dialog-title`,className:Z(`text-foreground-intense text-xl font-semibold`,e),...t})}function jk({className:e,...t}){return(0,W.jsx)(Nd,{"data-slot":`alert-dialog-description`,className:Z(`text-foreground-muted text-sm`,e),...t})}function Mk({className:e,...t}){return(0,W.jsx)(`div`,{"data-slot":`alert-dialog-body`,className:Z(`min-h-0 flex-1 px-6`,e),...t})}function Nk({className:e,...t}){return(0,W.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:Z(`flex flex-col-reverse gap-2 p-6 sm:flex-row sm:justify-end`,e),...t})}function Pk(e,t){if(!e)return``;let n=Math.max(0,t-e);if(n<6e4)return $(`panel.devices.justNow`);let r=Math.floor(n/6e4);if(r<60)return $(`panel.devices.minutesAgo`,{count:r});let i=Math.floor(r/60);return i<24?$(`panel.devices.hoursAgo`,{count:i}):$(`panel.devices.daysAgo`,{count:Math.floor(i/24)})}function Fk(e,t){return e?Ik(e,t)?$(`panel.devices.online`):Pk(e,t):$(`panel.devices.noRecord`)}function Ik(e,t){return e>0&&t-e<=3e5}function Lk(e){return{ios:`iOS`,android:`Android`,linux:`Linux`,darwin:`macOS`,win32:`Windows`}[e]??(e||$(`panel.devices.unknownPlatform`))}function Rk(e){return $(e===`relay`?`panel.devices.channelRelay`:e===`lan`?`panel.devices.channelLan`:e===`tunnel`?`panel.devices.channelTunnel`:e===`p2p`?`panel.devices.channelP2p`:e===`direct`?`panel.devices.channelDirect`:e===`ipv6`?`panel.devices.channelIpv6`:e===`tcp`?`panel.devices.channelTcp`:e===`mux`?`panel.devices.channelMux`:`panel.devices.channelUnknown`)}function zk(e){let t=e?.model||e?.name||$(`panel.devices.unknown`);return e?.suffix?`${t} · ${e.suffix}`:t}function Bk(){return(0,W.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`size-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`path`,{d:`M9 15l6-6`}),(0,W.jsx)(`path`,{d:`M7 17l-1 1a3 3 0 0 1-4-4l2-2a3 3 0 0 1 4 0`}),(0,W.jsx)(`path`,{d:`M17 7l1-1a3 3 0 0 1 4 4l-2 2a3 3 0 0 1-4 0`})]})}function Vk({busy:e,fill:t=!1}){let n=uO(),[r,i]=(0,g.useState)(null),[a,o]=(0,g.useState)(null),[s,c]=(0,g.useState)(!1),l=(0,g.useRef)(!1),u=(0,g.useRef)(null),[d,f]=(0,g.useState)(!1),[p,m]=(0,g.useState)(null),[h,_]=(0,g.useState)(!1),[v,y]=(0,g.useState)(!1),[b,x]=(0,g.useState)(!1),S=(0,g.useRef)(0),C=(0,g.useCallback)(async()=>{let e=++S.current;_(!1);try{let t=await rO(`/api/relay/devices?history=1`);e===S.current&&m(t)}catch{e===S.current&&_(!0)}},[]),w=(0,g.useCallback)(async()=>{try{let e=await rO(`/api/relay/devices`),t=e.revokedCount??0,n=u.current!==null&&u.current!==t;u.current=t,i(e),n&&l.current&&C()}catch{}},[C]);(0,g.useEffect)(()=>{let e=()=>{c_()&&w()};e();let t=window.setInterval(e,3e3);return document.addEventListener(`visibilitychange`,e),()=>{window.clearInterval(t),document.removeEventListener(`visibilitychange`,e)}},[w]);let T=r?.devices??[],E=r?.serverNow??0,D=r?.revokedCount??0;(0,g.useEffect)(()=>{l.current=d},[d]),(0,g.useEffect)(()=>{d&&C()},[d,C]);function O(e){let t=Pk(e.revokedAt||e.expiresAt,E)||`—`;return $(e.kind===`revoked`?`panel.devices.historyRevoked`:`panel.devices.historyExpired`,{time:t})}let k=(p?.devices??[]).filter(e=>e.kind===`revoked`||e.kind===`expired`),A=h||(p?.devices.length??0)>0&&k.length===0;async function j(e){c(!0);try{let t=await iO(`/api/relay/devices/revoke`,{deviceId:e.deviceId});o(null),await w(),d&&C(),n(`soft`,$(t.closed>0?`panel.devices.unbindDoneClosed`:`panel.devices.unbindDone`,{name:zk(e),count:t.revoked,closed:t.closed}))}catch(e){n(`error`,$(`panel.devices.unbindFailed`,{message:cO(e)}))}finally{c(!1)}}async function M(){x(!0);try{let e=await iO(`/api/relay/devices/history/clear`,{});y(!1),await w(),d&&C(),n(`soft`,$(`panel.devices.historyClearDone`,{count:e.cleared}))}catch(e){n(`error`,$(`panel.devices.historyClearFailed`,{message:cO(e)}))}finally{x(!1)}}return T.length===0&&D===0?null:(0,W.jsxs)(cD,{frame:`solid`,className:t?`flex h-full min-h-0 flex-col`:void 0,children:[(0,W.jsxs)(`div`,{className:t?`hvscroll mt-1 min-h-0 flex-1`:`hscroll mt-1`,children:[(0,W.jsx)(`div`,{className:`min-w-max`,children:T.map(e=>{let t=Ik(e.lastSeenAt,E);return(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-2 border-b border-border-muted py-2 whitespace-nowrap last:border-b-0`,children:[(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2`,children:[(0,W.jsx)(`span`,{className:`text-sm text-foreground-strong`,children:zk(e)}),(0,W.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1 whitespace-nowrap text-xs text-foreground-muted`,children:[(0,W.jsx)(`span`,{children:Lk(e.platform)}),(0,W.jsx)(`span`,{"aria-hidden":!0,children:`·`}),(0,W.jsx)(`span`,{children:Rk(e.lastChannel)}),(0,W.jsx)(`span`,{"aria-hidden":!0,children:`·`}),t?(0,W.jsx)($O,{tone:`ok`}):null,(0,W.jsx)(`span`,{children:Fk(e.lastSeenAt,E)})]})]}),(0,W.jsx)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:(0,W.jsx)(Q,{variant:`ghost`,size:`icon-md`,"aria-label":$(`panel.devices.unbind`),title:$(`panel.devices.unbind`),onClick:()=>o(e),children:(0,W.jsx)(Bk,{})})})]},e.deviceId)})}),(0,W.jsxs)(`div`,{className:`mt-1 border-t border-border-muted pt-2`,children:[(0,W.jsxs)(`div`,{className:`flex w-full items-center justify-between gap-2`,children:[(0,W.jsxs)(`button`,{type:`button`,"aria-expanded":d,className:`flex min-w-0 cursor-pointer items-center gap-2 text-xs text-foreground-muted focus-visible:outline-none`,onClick:()=>f(e=>!e),children:[(0,W.jsxs)(`span`,{className:`flex items-center gap-2`,children:[$(`panel.devices.historyTitle`),(0,W.jsx)(nD,{variant:`secondary`,size:`xs`,children:$(`panel.devices.historyCount`,{count:D})})]}),(0,W.jsx)(`svg`,{viewBox:`0 0 12 12`,className:`size-3 shrink-0 transition-transform ${d?`rotate-90`:``}`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:`m4.5 2.5 3.5 3.5-3.5 3.5`})})]}),D>0?(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,className:`shrink-0`,disabled:b||e!==``,onClick:()=>y(!0),children:$(`panel.devices.historyClear`)}):null]}),d?(0,W.jsxs)(`div`,{className:`mt-2`,children:[k.map(e=>(0,W.jsxs)(`div`,{className:`flex flex-col gap-1 py-2`,children:[(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,W.jsx)(`span`,{className:`text-xs text-foreground`,children:zk(e)}),(0,W.jsxs)(`span`,{className:`text-xs text-foreground-muted`,children:[Lk(e.platform),e.osVersion?` ${e.osVersion}`:``,e.appVersion?$(`panel.devices.appVersion`,{version:e.appVersion}):``]})]}),(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-foreground-muted`,children:[(0,W.jsx)(`span`,{children:$(`panel.devices.historyBoundAt`,{time:Pk(e.boundAt,E)||`—`})}),(0,W.jsx)(`span`,{children:$(`panel.devices.historyLastSeen`,{time:e.lastSeenAt?Pk(e.lastSeenAt,E):$(`panel.devices.noRecord`)})}),(0,W.jsx)(`span`,{children:O(e)})]})]},e.deviceId)),A?(0,W.jsx)(`p`,{className:`py-2 text-xs text-foreground-muted`,children:$(`panel.devices.historyFailed`)}):null,(0,W.jsx)(`p`,{className:`py-2 text-xs text-foreground-muted`,children:$(`panel.devices.historyRetention`,{days:30})})]}):null]})]}),(0,W.jsx)(Dk,{open:a!==null,onOpenChange:e=>{!e&&!s&&o(null)},children:(0,W.jsxs)(Ok,{children:[(0,W.jsx)(kk,{children:(0,W.jsx)(Ak,{children:$(`panel.devices.unbindTitle`)})}),(0,W.jsxs)(Mk,{className:`flex flex-col gap-2 text-sm`,children:[(0,W.jsx)(jk,{children:$(`panel.devices.unbindConfirm`,{name:zk(a)})}),(0,W.jsx)(`p`,{className:`text-foreground-muted`,children:$(a?.legacy?`panel.devices.effectLegacy`:`panel.devices.effectIdentity`)})]}),(0,W.jsxs)(Nk,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(Q,{variant:`outline`,disabled:s,onClick:()=>o(null),children:$(`panel.devices.cancel`)}),(0,W.jsx)(Q,{variant:`destructive`,disabled:s,onClick:()=>{a&&j(a)},children:s?(0,W.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,W.jsx)(BE,{}),$(`panel.devices.unbinding`)]}):$(`panel.devices.unbind`)})]})]})}),(0,W.jsx)(Dk,{open:v,onOpenChange:e=>{!e&&!b&&y(!1)},children:(0,W.jsxs)(Ok,{children:[(0,W.jsx)(kk,{children:(0,W.jsx)(Ak,{children:$(`panel.devices.historyClearTitle`)})}),(0,W.jsxs)(Mk,{className:`flex flex-col gap-2 text-sm`,children:[(0,W.jsx)(jk,{children:$(`panel.devices.historyClearConfirm`,{count:D})}),(0,W.jsx)(`p`,{className:`text-foreground-muted`,children:$(`panel.devices.historyClearHint`)})]}),(0,W.jsxs)(Nk,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(Q,{variant:`outline`,disabled:b,onClick:()=>y(!1),children:$(`panel.devices.cancel`)}),(0,W.jsx)(Q,{variant:`destructive`,disabled:b,onClick:()=>void M(),children:b?(0,W.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,W.jsx)(BE,{}),$(`panel.devices.historyClearing`)]}):$(`panel.devices.historyClear`)})]})]})})]})}var Hk=`data:image/png;base64,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`,Uk=`https://github.com/WNLUO/dsh-mobile-server`,Wk=`https://github.com/WNLUO/dsh-mobile-plugin`,Gk=[{platform:`android`,channels:[{nameKey:`panel.links.distPlatform`,hintKey:`panel.links.domesticRecommended`,url:`https://app.wnluo.com/api/public/apps/14/download-latest`},{name:`GitHub`,hintKey:`panel.links.overseasRecommended`,url:`https://github.com/WNLUO/dsh-mobile-plugin/releases/latest/download/ai-hub-android.apk`}]},{platform:`apple`,channels:[{name:`App Store`,hintKey:`panel.links.appStore`,url:`https://apps.apple.com/cn/app/ai-hub/id6821681438`},{name:`TestFlight`,hintKey:`panel.links.testFlight`,url:`https://testflight.apple.com/join/4fn5PCMD`}]}],Kk=[{nameKey:`panel.links.publicRelay`,url:`https://ai-hub-de-1.wnluo.com`}];Kk[0].url;function qk(e){let t=e=>e.trim().replace(/\/+$/,``),n=t(e);return!!n&&Kk.some(e=>t(e.url)===n)}function Jk(e){return e.name===`GitHub`?(0,W.jsx)(tA,{}):e.name===`App Store`||e.name===`TestFlight`?(0,W.jsx)(eA,{}):(0,W.jsx)(rA,{})}function Yk(e){return e===`android`?(0,W.jsx)($k,{}):(0,W.jsx)(eA,{})}function Xk({channel:e}){return(0,W.jsxs)(`a`,{className:`flex items-center gap-3 rounded-lg border border-border-muted px-3 py-2.5 transition-colors hover:bg-background-muted`,href:e.url,target:`_blank`,rel:`noreferrer noopener`,children:[(0,W.jsx)(`span`,{className:`flex size-9 shrink-0 items-center justify-center rounded-lg bg-background-muted text-foreground`,children:Jk(e)}),(0,W.jsxs)(`span`,{className:`flex min-w-0 flex-col gap-0.5`,children:[(0,W.jsx)(`span`,{className:`text-sm text-foreground-intense`,children:e.name??(e.nameKey?$(e.nameKey):``)}),(0,W.jsx)(`span`,{className:`truncate text-xs text-foreground-muted`,children:$(e.hintKey)})]})]})}function Zk(){return(0,W.jsx)(`div`,{className:`grid grid-cols-1 gap-4 sm:grid-cols-2`,children:Gk.map(e=>(0,W.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-center gap-1.5 pb-0.5 text-xs text-foreground-muted`,children:[Yk(e.platform),(0,W.jsx)(`span`,{children:$(e.platform===`android`?`panel.links.android`:`panel.links.apple`)})]}),e.channels.map(e=>(0,W.jsx)(Xk,{channel:e},e.url))]},e.platform))})}function Qk({size:e=`md`,variant:t=`outline`,className:n}){let[r,i]=(0,g.useState)(!1),a=(0,g.useRef)(null);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(Q,{variant:t,size:e,className:n,onClick:()=>i(!0),children:[(0,W.jsx)(nA,{}),$(`panel.download.open`)]}),(0,W.jsx)(hD,{open:r,onOpenChange:i,children:(0,W.jsxs)(gD,{className:`max-w-xl`,closeLabel:$(`panel.common.close`),initialFocus:a,children:[(0,W.jsx)(_D,{children:(0,W.jsxs)(vD,{className:`flex flex-wrap items-center gap-2.5 pr-8`,children:[(0,W.jsx)(`img`,{src:Hk,alt:``,className:`size-8 rounded-lg bg-white p-0.5`}),(0,W.jsx)(`span`,{className:`min-w-0 break-words`,children:$(`panel.download.title`)})]})}),(0,W.jsx)(`div`,{ref:a,tabIndex:-1,className:`outline-none`,children:(0,W.jsx)(bD,{children:(0,W.jsx)(Zk,{})})})]})})]})}function $k(){return(0,W.jsx)(`svg`,{viewBox:`0 0 24 24`,className:`size-3.5 stroke-0`,fill:`currentColor`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:`M17.523 15.3414c-.5511 0-.9993-.4486-.9993-.9997s.4483-.9993.9993-.9993c.5511 0 .9993.4483.9993.9993.0001.5511-.4482.9997-.9993.9997m-11.046 0c-.5511 0-.9993-.4486-.9993-.9997s.4482-.9993.9993-.9993c.551 0 .9993.4483.9993.9993 0 .5511-.4483.9997-.9993.9997m11.4045-6.02 1.9973-3.4592a.416.416 0 0 0-.1521-.5676.416.416 0 0 0-.5676.1521l-2.0223 3.503C15.5902 8.2439 13.8533 7.8508 12 7.8508s-3.5902.3931-5.1367 1.0989L4.841 5.4467a.4161.4161 0 0 0-.5677-.1521.4157.4157 0 0 0-.1521.5676l1.9973 3.4592C2.6889 11.1867.3432 14.6589 0 18.761h24c-.3435-4.1021-2.6892-7.5743-6.1185-9.4396`})})}function eA(){return(0,W.jsx)(`svg`,{viewBox:`0 0 24 24`,className:`size-4 stroke-0`,fill:`currentColor`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:`M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701`})})}function tA(){return(0,W.jsx)(`svg`,{viewBox:`0 0 24 24`,className:`size-[18px] stroke-0`,fill:`currentColor`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`})})}function nA(){return(0,W.jsxs)(`svg`,{viewBox:`0 0 24 24`,className:`size-[18px]`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.85`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`rect`,{x:`5`,y:`2`,width:`14`,height:`20`,rx:`2.5`}),(0,W.jsx)(`path`,{d:`M12 6v9m-3-3 3 3 3-3M10 19h4`})]})}function rA(){return(0,W.jsxs)(`svg`,{viewBox:`0 0 24 24`,className:`size-[18px]`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.85`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`path`,{d:`M12 4v10`}),(0,W.jsx)(`path`,{d:`m8 10.5 4 4 4-4`}),(0,W.jsx)(`path`,{d:`M4 18.5h16`})]})}var iA=`data:image/png;base64,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`,aA=()=>$(`panel.links.wechatQrAlt`);function oA(){return(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`stroke-0`,fill:`currentColor`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:`M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178A1.17 1.17 0 0 1 4.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178 1.17 1.17 0 0 1-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786-1.72 1.428-2.687 3.72-1.78 6.22.942 2.453 3.666 4.229 6.884 4.229.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.047c.134 0 .24-.111.24-.247 0-.06-.023-.12-.038-.177l-.327-1.233a.582.582 0 0 1-.023-.156.49.49 0 0 1 .201-.398C23.024 18.48 24 16.82 24 14.98c0-3.21-2.931-5.837-6.656-6.088V8.89c-.135-.01-.27-.027-.407-.03zm-2.53 3.274c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.97-.982zm4.844 0c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.969-.982z`})})}function sA({compact:e=!1}={}){let[t,n]=(0,g.useState)(!1),r=xg();return r!==`zh-Hans`&&r!==`zh-Hant`?null:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(Q,{variant:`ghost`,size:e?`sm`:`lg`,className:`pointer-events-auto`,onClick:()=>n(!0),children:[(0,W.jsx)(oA,{}),$(`panel.links.joinGroup`)]}),(0,W.jsx)(hD,{open:t,onOpenChange:n,children:(0,W.jsxs)(gD,{className:`max-w-sm`,children:[(0,W.jsx)(vD,{className:`sr-only`,children:$(`panel.links.joinGroup`)}),(0,W.jsx)(bD,{className:`flex justify-center`,children:(0,W.jsx)(`img`,{src:iA,alt:aA(),className:`w-full rounded-md`})})]})})]})}var cA=Uu(``,{variants:{size:{sm:`h-6 gap-0.75 rounded-xs px-2 text-xs has-data-[icon=end]:pe-1.5 has-data-[icon=start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3.5`,md:`h-8 gap-1 rounded-sm px-3 text-sm has-data-[icon=end]:pe-2 has-data-[icon=start]:ps-2 [&_svg:not([class*='size-'])]:size-4`,lg:`h-10 gap-1.25 rounded-md px-3.5 text-base has-data-[icon=end]:pe-2.5 has-data-[icon=start]:ps-2.5 [&_svg:not([class*='size-'])]:size-4.5`}},defaultVariants:{size:`md`}}),lA=g.createContext(null),uA={opacity:0,scale:.85,filter:`blur(8px)`},dA={opacity:0},fA={duration:.28,ease:[.4,0,.2,1]},pA={duration:0},mA={sm:`size-3`,md:`size-3.5`,lg:`size-4`};function hA({className:e,variant:t,size:n,render:r,dismissible:i=!1,open:a,onOpenChange:o,onDismiss:s,closeLabel:c=`Dismiss`,children:l,onClick:u,...d}){let f=g.useContext(lA),p=t??f?.variant??`soft`,m=n??f?.size??`md`,h=_h(),[_,v]=g.useState(!0),y=a!==void 0,b=y?a:_,x=g.useCallback(()=>{y||v(!1),o?.(!1)},[y,o]);g.useEffect(()=>{if(f&&i)return f.register(x)},[f,i,x]);let S=e=>{u?.(e),!e.defaultPrevented&&i&&x()},C=i?(0,W.jsxs)(W.Fragment,{children:[l,(0,W.jsx)(gA,{size:m}),(0,W.jsx)(`span`,{className:`sr-only`,children:c})]}):l,w=$E({defaultTagName:`button`,render:r,state:{variant:p,size:m,dismissible:i},props:Or({"data-slot":`chip`,"data-dismissible":i||void 0,type:r?void 0:`button`,...Bu(d.disabled),className:Z(Gu({variant:p}),cA({size:m}),i&&`group/chip`,e),onClick:S,children:C},d)});return i?(0,W.jsx)(Fw,{features:BT,strict:!0,children:(0,W.jsx)(Ow,{initial:!1,onExitComplete:()=>s?.(),children:b&&(0,W.jsx)(yE.span,{initial:!1,exit:h?dA:uA,transition:h?pA:fA,className:`inline-flex align-middle`,children:w},`chip`)})}):w}function gA({size:e}){return(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,"data-slot":`chip-close-icon`,"data-icon":`end`,className:Z(mA[e],`opacity-60 transition-opacity duration-200 group-hover/chip:opacity-100 motion-reduce:transition-none`),children:(0,W.jsx)(`path`,{d:`M11.523 3.522c.264-.264.691-.264.955 0s.264.691 0 .955L8.955 8l3.522 3.522c.264.264.264.691 0 .955s-.691.264-.955 0L8 8.955l-3.522 3.522c-.264.264-.691.264-.955 0s-.264-.691 0-.955L7.045 8 3.522 4.478c-.264-.264-.264-.691 0-.955s.691-.264.955 0L8 7.045l3.523-3.522z`})})}var _A=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAewAAAHsAQAAAAA4UaPNAAACeUlEQVR42u2dQW7DMAwEhX5A//+lfsA2sU0umRg9BChKYQwfDNlzEVbKkqKUYZ9ca4CDg4OD/398+DXt5360zOvtcT+vn/flY1tf46MLHPzv8REKfz48Wi6dn89P8R/PPihOCs2Dt9V8muTLW/8JuL6Jj9E8eH/Nx7O/mmJ1DM2Db6d5fbVOP+PennkefE8/b5ba1/CxUD5G8+BdNZ/zNr/c5G3A+2v+Lo2pI8In//wNPQ/eVvNXfHpI/TDz48pPapY+t9Pz4D01v8ZrWsYv179nMmWA0PPgjf18Cl2XCNvD25LMRPPgnb3N8MxkdjWh/7e/AmgevLXmtfYgx7AlOU8MC76Bt0lpmVxjE2r38jO392gevHPextM1teQml1aqsUfz4F3neamoOa/s2+9TPfQ8eGNv46l4jVvVvetbvA14b2+T0+9j1PWpVGY5IquD5sFb5200/a55mzD8MyV20Dx4b2/jlqbYezH2Ec/ibcC3mOfTDpFQdQ5azTS9g+bBW8ewVerTSngbQ2Dh58H7x7BZzyr+aJl5xQrNgzf387EaNWtCPlpyaSWaB288z4uko7Ty7dE3Q2vp6XnwtjFsOehDqmsiq2MS4VJ7AN7a20yTsFTqykYsxeoQkAVZeh68q7fR/VBpJ+xMu6VeBgg9D941hq0HGljdA6uFB/EZmgdv6+ff7H7Nx4BouhLNg+8wz4eMo/G25Ib6efANYtibauF0XqVZqb1E8+B9Ne8K1xTNq8iT1UHz4FtoPkSuZcOl8JL6efC95nldgS2nfNQt4WgefAM/b/Us4pHrE/IJCfQ8+C55m5XWqkpUy5oUeHfN8/dz4ODg4Pvi3/5iKXEUjwVUAAAAAElFTkSuQmCC`,vA=`0x62744c084c272ddba4680920edc3239cb7180718`;function yA(){return(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`stroke-0`,fill:`currentColor`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:`M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z`})})}function bA({compact:e=!1}={}){let[t,n]=(0,g.useState)(!1),[r,i]=(0,g.useState)(!1);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(Q,{variant:`ghost`,size:e?`sm`:`lg`,className:`pointer-events-auto`,onClick:()=>{i(!1),n(!0)},children:[(0,W.jsx)(yA,{}),$(`panel.links.sponsor`)]}),(0,W.jsx)(xA,{open:t,onOpenChange:n,copyFailed:r,setCopyFailed:i})]})}function xA({open:e,onOpenChange:t,copyFailed:n,setCopyFailed:r}){return(0,W.jsx)(hD,{open:e,onOpenChange:t,children:(0,W.jsxs)(gD,{className:`max-w-sm`,children:[(0,W.jsxs)(_D,{className:`gap-1.5`,children:[(0,W.jsx)(vD,{className:`text-xl`,children:$(`panel.links.sponsorTitle`)}),(0,W.jsx)(yD,{children:$(`panel.links.sponsorIntro`)})]}),(0,W.jsxs)(bD,{className:`flex flex-col gap-4`,children:[(0,W.jsx)(`div`,{className:`flex justify-center`,children:(0,W.jsx)(`img`,{src:_A,alt:$(`panel.links.sponsorQrAlt`),className:`size-44 rounded-lg border border-border-muted bg-white p-2`})}),(0,W.jsxs)(`div`,{className:`flex justify-center gap-2`,children:[(0,W.jsx)(hA,{variant:`soft`,size:`sm`,children:`USDT`}),(0,W.jsx)(hA,{variant:`soft`,size:`sm`,children:`Polygon`})]}),(0,W.jsxs)(`div`,{className:`flex flex-col gap-2 rounded-lg border border-border-muted bg-background-muted p-3`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,W.jsx)(`span`,{className:`text-xs text-foreground-muted`,children:$(`panel.links.sponsorAddress`)}),(0,W.jsx)(lk,{value:vA,label:$(`panel.links.sponsorCopy`),copiedLabel:$(`panel.links.sponsorCopied`),size:`sm`,variant:`outline`,onCopyError:()=>r(!0),onCopy:()=>r(!1),children:$(`panel.links.sponsorCopy`)})]}),(0,W.jsx)(`code`,{className:`block select-all break-all font-mono text-[11px] leading-4 text-foreground-strong`,children:vA}),n?(0,W.jsx)(`p`,{className:`text-[11px] leading-4 text-foreground-strong`,children:$(`panel.links.sponsorCopyFailed`)}):null]})]}),(0,W.jsx)(`div`,{className:`px-6 pt-4 pb-6`,children:(0,W.jsx)(`p`,{className:`text-center text-sm text-foreground-muted`,children:$(`panel.links.sponsorNote`)})})]})})}function SA(){return(0,W.jsx)(`svg`,{viewBox:`0 0 24 24`,className:`size-[18px] stroke-0`,fill:`currentColor`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`})})}function CA({compact:e=!1}={}){return(0,W.jsxs)(`a`,{href:Wk,target:`_blank`,rel:`noreferrer noopener`,className:`${Gu({variant:`ghost`,size:e?`sm`:`lg`})} pointer-events-auto`,children:[(0,W.jsx)(SA,{}),$(`panel.links.star`)]})}function wA({compact:e=!1}){return(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[(0,W.jsx)(CA,{compact:e}),(0,W.jsx)(bA,{compact:e}),(0,W.jsx)(sA,{compact:e}),(0,W.jsx)(Qk,{size:`sm`,variant:`ghost`,className:`px-2`})]})}function TA(e){let t=Number.isFinite(e)&&e>0?e:0;return t===0?`0 MB`:t<1048576?`${Math.max(1,Math.round(t/1024))} KB`:`${(t/1024/1024).toFixed(1)} MB`}function EA(e,t=Date.now()){if(!e)return``;let n=Math.floor((t-e)/36e5);return n<1?$(`panel.inbox.ageLessThanHour`):n<24?$(`panel.inbox.ageHours`,{hours:n}):$(`panel.inbox.ageDays`,{days:Math.floor(n/24)})}function DA({framed:e=!0}){let t=uO(),[n,r]=(0,g.useState)(null),[i,a]=(0,g.useState)(!1),[o,s]=(0,g.useState)(!1),[c,l]=(0,g.useState)(!1),u=(0,g.useCallback)(async()=>{try{r(await rO(`/api/relay/inbox/status`))}catch{r(null)}finally{a(!0)}},[]);(0,g.useEffect)(()=>{u()},[u]);let d=n?.deletableFiles??0,f=EA(n?.oldestAt??null),p=n?.stagingFiles??0;async function m(e){if(!c){l(!0);try{let t=await iO(`/api/relay/inbox/auto`,{enabled:e});r(e=>e&&{...e,autoClear:t.data.autoClear})}catch(e){t(`error`,$(`panel.inbox.autoFailed`,{message:cO(e)}))}finally{l(!1)}}}async function h(){if(o)return;let e=d>0?$(`panel.inbox.confirmDetail`,{count:d,hours:n?.keepHours??24,bytes:TA(n?.deletableBytes??0)}):$(`panel.inbox.confirmNothing`,{hours:n?.keepHours??24});if(window.confirm(`${$(`panel.inbox.confirmTitle`)}\n\n${e}\n\n${$(`panel.inbox.confirmIrreversible`)}`)){s(!0);try{let e=await iO(`/api/relay/inbox/clear`),n=TA(e.freedBytes);t(e.failedFiles>0?`soft`:`ok`,e.deletedFiles>0?`${$(`panel.inbox.cleared`,{bytes:n,count:e.deletedFiles})}${e.failedFiles>0?$(`panel.inbox.clearedSomeFailed`,{count:e.failedFiles}):``}`:$(`panel.inbox.nothingToClear`)),await u()}catch(e){t(`error`,$(`panel.inbox.clearFailed`,{message:cO(e)}))}finally{s(!1)}}}let _=(0,W.jsxs)(W.Fragment,{children:[i?null:(0,W.jsxs)(`div`,{className:`flex items-center gap-2 py-2 text-sm text-foreground-muted`,children:[(0,W.jsx)(BE,{}),$(`panel.inbox.reading`)]}),i&&n===null?(0,W.jsx)(rk,{children:(0,W.jsx)(ek,{label:$(`panel.inbox.unreadableTitle`),children:(0,W.jsx)(ik,{tone:`warn`,text:$(`panel.inbox.unreadableTitle`),detail:$(`panel.inbox.unreadableBody`)})})}):null,n===null?null:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`dl`,{className:`mt-1`,children:[(0,W.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 border-b border-border-muted py-2`,children:[(0,W.jsx)(`dt`,{className:`shrink-0 text-sm text-foreground-muted`,children:$(`panel.inbox.used`)}),(0,W.jsx)(`dd`,{className:`min-w-0 text-right text-sm break-all`,children:$(`panel.inbox.usedValue`,{bytes:TA(n.bytes),count:n.files})})]}),(0,W.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 border-b border-border-muted py-2`,children:[(0,W.jsx)(`dt`,{className:`shrink-0 text-sm text-foreground-muted`,children:$(`panel.inbox.deletable`)}),(0,W.jsx)(`dd`,{className:`min-w-0 text-right text-sm break-all`,children:d>0?$(`panel.inbox.deletableValue`,{bytes:TA(n.deletableBytes),count:d}):$(`panel.common.none`)})]}),(0,W.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 py-2`,children:[(0,W.jsx)(`dt`,{className:`shrink-0 text-sm text-foreground-muted`,children:$(`panel.inbox.keep`)}),(0,W.jsx)(`dd`,{className:`min-w-0 text-right text-sm break-all`,children:f?$(`panel.inbox.keepValueOldest`,{hours:n.keepHours,age:f}):$(`panel.inbox.keepValue`,{hours:n.keepHours})})]})]}),p>0?(0,W.jsx)(`p`,{className:`mt-1 text-xs text-foreground-muted`,children:$(`panel.inbox.staging`,{bytes:TA(n.stagingBytes??0),count:n.stagingFiles??0})}):null,(0,W.jsxs)(`label`,{className:`mt-3 flex items-center justify-between gap-4 border-t border-border-muted pt-3`,children:[(0,W.jsx)(`span`,{className:`block text-sm text-foreground`,children:$(`panel.inbox.auto`)}),(0,W.jsxs)(`span`,{className:`flex shrink-0 items-center gap-2`,children:[c?(0,W.jsx)(BE,{}):null,(0,W.jsx)(ZD,{size:`md`,checked:n.autoClear===!0,disabled:o||c,onCheckedChange:e=>void m(e),"aria-label":$(`panel.inbox.autoA11y`)})]})]}),(0,W.jsx)(`div`,{className:`mt-3 flex justify-center`,children:(0,W.jsx)(Q,{variant:d>0?`primary`:`outline`,size:`md`,disabled:o,onClick:()=>void h(),children:$(o?`panel.inbox.clearing`:`panel.inbox.clear`)})})]})]});return e?(0,W.jsxs)(cD,{frame:`solid`,children:[(0,W.jsx)(lD,{className:`px-4 py-3`,children:(0,W.jsx)(uD,{className:`flex items-center gap-2`,children:(0,W.jsx)(`span`,{children:$(`panel.inbox.title`)})})}),_]}):_}function OA(e,t){let n=(0,g.useRef)(e);(0,g.useEffect)(()=>{if(e===void 0)return;let r=n.current;r===void 0?n.current=e:e>r&&(n.current=e,t())},[e,t])}var kA=`data-checked`,AA=`data-unchecked`,jA={checked(e){return e?{[kA]:``}:{[AA]:``}},...St,...kD},MA=`data-composite-item-active`,NA=g.createContext({disabled:!1});function PA(){return g.useContext(NA)}var FA=g.createContext(void 0);function IA(){return g.useContext(FA)}function LA(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}var RA=g.createContext(void 0);function zA(){let e=g.useContext(RA);if(e===void 0)throw Error(S(52));return e}var BA=g.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,readOnly:a=!1,required:o=!1,"aria-labelledby":s,value:c,inputRef:l,nativeButton:u=!1,id:d,style:f,...m}=e,_=IA(),{disabled:v,readOnly:y,required:x,form:S,checkedValue:C,touched:w=!1,validation:T,name:E,setCheckedValue:D=p,setTouched:O=p,registerInputRef:k=p}=_??{},{setTouched:A,setFilled:j,state:M,disabled:N}=FD(),P=PA(),{labelId:F,getDescriptionProps:I}=BD(),L=N||P.disabled||v||i,R=y||a,z=x||o,B=S,V=_?C===c:c===``,H=g.useRef(null),U=g.useRef(null),ee=T?.registerInput,te=gr(l,U,k,g.useCallback(e=>ee?.(e,{controlRef:H,value:void 0}),[ee]));b(()=>{U.current?.checked&&j(!0)},[j]),b(()=>{if(U.current){if(L&&V){k(null);return}k(U.current)}},[V,L,k]);let G=Md(),ne=WD({id:d}),K=u?void 0:ne,re={role:`radio`,"aria-checked":V,"aria-labelledby":VD(s,F,U,!u,K),[MA]:V?``:void 0,id:u?ne:G,onKeyDown(e){e.key===`Enter`&&e.preventDefault()},onClick(e){if(e.defaultPrevented||L||R)return;e.preventDefault();let t=U.current;t&&la(t,e)},onFocus(e){e.defaultPrevented||L||R||!w||(U.current?.click(),O(!1))}},{getButtonProps:ie,buttonRef:ae}=ua({disabled:L,native:u,composite:!1}),oe={type:`radio`,ref:te,form:B,id:K,name:E,tabIndex:-1,style:E?mr:pr,"aria-hidden":!0,...c===void 0?h:{value:LA(c)},disabled:L,checked:V,required:z,readOnly:R,onChange(e){if(e.nativeEvent.defaultPrevented||L||R||c===void 0)return;let t=ja(ha,e.nativeEvent);D(c,t),!t.isCanceled&&A(!0)},onClick(e){e.stopPropagation()},onFocus(){H.current?.focus()}},q=g.useMemo(()=>({...M,required:z,disabled:L,readOnly:R,checked:V}),[M,L,R,V,z]),se=q,ce=_!==void 0,le=[t,H,ae],ue=[re,m,ie,I,T?e=>T.getValidationProps(L,e):h],de=Hr(`span`,e,{enabled:!ce,state:q,ref:le,props:ue,stateAttributesMapping:jA});return(0,W.jsxs)(RA.Provider,{value:se,children:[ce?(0,W.jsx)(ih,{tag:`span`,render:n,className:r,style:f,state:q,refs:le,props:ue,stateAttributesMapping:jA}):de,(0,W.jsx)(`input`,{...oe,suppressHydrationWarning:!0})]})}),VA=g.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=zA(),c=s.checked,{mounted:l,transitionStatus:u,setMounted:d}=Us(c),f={...s,transitionStatus:u},p=g.useRef(null),m=a||l,h=Hr(`span`,e,{ref:[t,p],state:f,props:o,stateAttributesMapping:jA});return ai({batch:!0,enabled:!c,open:c,ref:p,onComplete(){c||d(!1)}}),m?h:null}),HA={duration:.3,ease:[.4,0,.2,1]},UA={duration:.3,ease:[.4,0,.2,1]},WA={duration:0};function GA({checked:e,reduced:t}){return(0,W.jsx)(VA,{"data-slot":`radio-indicator`,className:`flex items-center justify-center`,keepMounted:!0,children:(0,W.jsx)(yE.span,{className:`bg-primary-foreground size-[0.5em] min-h-2 min-w-2 rounded-full`,initial:!1,animate:{scale:+!!e},transition:t?WA:UA})})}function KA({renderProps:e,state:t,reduced:n}){let{checked:r}=t,{ref:i,...a}=e,[o,s]=vE(),c=zu(i,o),l=g.useRef(r);return g.useEffect(()=>{let e=l.current!==r;l.current=r,e&&!n&&s(o.current,{scale:[1,.8,1.1,1]},HA)},[r,s,o,n]),(0,W.jsx)(`span`,{"data-slot":`radio`,...a,ref:c,children:(0,W.jsx)(GA,{checked:r,reduced:n})})}function qA({className:e,...t}){let n=_h(),r=t[`aria-invalid`],i=r===!0||r===`true`;return(0,W.jsx)(Fw,{features:BT,strict:!0,children:(0,W.jsx)(BA,{...t,...i?{"data-invalid":``}:{},className:Z(`flex size-[1em] min-h-4 min-w-4 shrink-0 cursor-default items-center justify-center`,`bg-background border-border-strong outline-ring-input rounded-full border outline-offset-1`,`transition-[background-color,border-color,box-shadow] duration-200 motion-reduce:transition-none`,`hover:not-data-checked:not-data-disabled:not-data-invalid:border-border-emphasis`,`data-checked:bg-primary data-checked:outline-ring-primary data-checked:border-transparent`,`data-disabled:not-data-checked:bg-background-subtle data-disabled:data-checked:opacity-disabled data-disabled:cursor-not-allowed data-disabled:not-data-checked:border-dashed`,`data-invalid:border-error data-invalid:not-data-checked:bg-error-subtle data-invalid:outline-ring-error`,e),render:(e,t)=>(0,W.jsx)(KA,{renderProps:e,state:t,reduced:n})})})}function JA(e){let{loopFocus:t=!0,orientation:n=`both`,grid:r,onLoop:i,direction:a,highlightedIndex:o,onHighlightedIndexChange:s,rootRef:c,enableHomeAndEndKeys:l=!1,stopEventPropagation:u,disabledIndices:d,modifierKeys:f=m}=e,[p,h]=g.useState(0),_=r!=null,v=g.useRef(null),y=gr(v,c),x=g.useRef([]),S=g.useRef(!1),C=g.useRef(null),w=o??p,T=q((e,t=!1)=>{if(C.current=x.current[e]??null,(s??h)(e),t){let t=x.current[e];$d(v.current,t,a,n)}}),E=q(e=>{if(e.size===0)return;if(S.current){let e=x.current,t=e.indexOf(C.current);if(t===-1){let t=e[w];!t||Mn(e,w,d)?T(YA(e,d)):C.current=t}else t!==w&&T(t);return}S.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,i=r?e.get(r)?.index??-1:-1;if(i!==-1)T(i);else if(Mn(t,w,d)){let e=jn(t,{disabledIndices:d});On(t,e)||T(e)}$d(v.current,r,a,n)});b(()=>{if(d==null||o!=null||!S.current)return;let e=x.current;if(Mn(e,w,d)){let t=jn(e,{disabledIndices:d});On(e,t)||T(t)}},[d,o,w,x,T]);let D=q((e,t,n)=>i?i(e,t,n,x):n),O=q(e=>{let o=e.key===`Home`||e.key===`End`;if(!Jd.has(e.key)||!l&&o||XA(e,f)||!v.current)return;let s=a===`rtl`,c=s?Kd:qd,p=s?qd:Kd,m=n===`vertical`?Gd:c,h=n===`vertical`?Wd:p,g=dt(e.nativeEvent);if(g!=null&&Qd(g)&&!fh(g)){let t=g.selectionStart,n=g.selectionEnd,r=g.value;if(t==null||e.shiftKey||t!==n||e.key!==h&&t<r.length||e.key!==m&&t>0)return}let y=w,b=kn(x,d),S=An(x,d);r!=null&&(y=r({disabledIndices:d,elementsRef:x,event:e,highlightedIndex:w,loopFocus:t,maxIndex:S,minIndex:b,onLoop:D,orientation:n,rtl:s}));let C=n!==`vertical`&&e.key===c||n!==`horizontal`&&e.key===`ArrowDown`,E=n!==`vertical`&&e.key===p||n!==`horizontal`&&e.key===`ArrowUp`;l&&(e.key===`Home`?y=b:e.key===`End`&&(y=S)),y===w&&(C||E)&&(t&&y===S&&C?(y=b,i&&(y=i(e,w,y,x))):t&&y===b&&E?(y=S,i&&(y=i(e,w,y,x))):y=jn(x.current,{startingIndex:y,decrement:E,disabledIndices:d})),y!==w&&!On(x.current,y)&&(u&&e.stopPropagation(),(_||o||C||E)&&e.preventDefault(),T(y,!0),queueMicrotask(()=>{x.current[y]?.focus()}))});return{props:{ref:y,onFocus(e){let t=v.current,n=dt(e.nativeEvent);t&&n!=null&&Qd(n)&&n.setSelectionRange(0,n.value.length)},onKeyDown:O},highlightedIndex:w,onHighlightedIndexChange:T,elementsRef:x,onMapChange:E,relayKeyboardEvent:O}}function YA(e,t){let n=-1;for(let r=0;r<e.length;r+=1){let i=e[r];if(i&&!Mn(e,r,t)){if(i.hasAttribute(`data-composite-item-active`))return r;n===-1&&(n=r)}}return Math.max(n,0)}function XA(e,t){for(let n of Xd)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function ZA(e){let{render:t,className:n,style:r,refs:i=m,props:a=m,state:o=h,stateAttributesMapping:s,highlightedIndex:c,onHighlightedIndexChange:l,orientation:u,grid:d,loopFocus:f,onLoop:p,enableHomeAndEndKeys:_,onMapChange:v,stopEventPropagation:y=!0,rootRef:b,disabledIndices:x,modifierKeys:S,highlightItemOnHover:C=!1,tag:w=`div`,...T}=e,{props:E,highlightedIndex:D,onHighlightedIndexChange:O,elementsRef:k,onMapChange:A,relayKeyboardEvent:j}=JA({grid:d,loopFocus:f,onLoop:p,orientation:u,highlightedIndex:c,onHighlightedIndexChange:l,rootRef:b,stopEventPropagation:y,enableHomeAndEndKeys:_,direction:Uc(),disabledIndices:x,modifierKeys:S}),M=Hr(w,e,{state:o,ref:i,props:[E,...a,T],stateAttributesMapping:s}),N=g.useMemo(()=>({highlightedIndex:D,onHighlightedIndexChange:O,highlightItemOnHover:C,relayKeyboardEvent:j}),[D,O,C,j]);return(0,W.jsx)(oa.Provider,{value:N,children:(0,W.jsx)(Dm,{elementsRef:k,onMapChange:e=>{v?.(e),A(e)},children:M})})}function QA(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var $A=Object.keys(DD);function ej(e,t){return e.matches(`:disabled`)?!1:!t||e.form===t||e.form===null&&!e.hasAttribute(`form`)}function tj(e,t){let n=null;for(let r of e.keys())if(ej(r,t)){if(!r.validity.valid)return r;n??=r}return n}function nj(e){return{...DD,valid:!e,customError:e}}function rj(e){return e&&e.validationMessage?[e.validationMessage]:[]}function ij(e){let{elementRef:t,formRef:n}=RD(),{setValidityData:r,validate:i,validityData:a,validationDebounceTime:o,invalid:s,markedDirtyRef:c,state:l,shouldValidateOnChange:u,validationMode:d,registeredFieldIdRef:f}=e,{controlId:p,getDescriptionProps:m}=BD(),_=Ke(),v=g.useRef(null),b=y(()=>new Map).current,x=g.useRef(0),S=g.useRef(null),C=g.useCallback((e,t)=>(b.set(e,t),()=>{b.delete(e)}),[b]),w=q(()=>{let e=tj(b,t.current);return e&&b.get(e)?.controlRef.current||null}),T=q(async(e,o=!1)=>{x.current+=1;let m=x.current;function h(e,t=s){let r=f.current??p;if(r==null)return;let i=n.current.fields.get(r);if(!i)return;let a=QA(e,t);n.current.fields.set(r,{...i,validityData:a})}function g(t,n){let r=t.valid===!1?n:[];return{value:e,state:t,error:r[0]??``,errors:r,initialValue:a.initialValue}}function y(e,t){let n=e.validity.customError?e.validationMessage:``,r=t.replace(/\r\n?/g,`
104
+ `);e.setCustomValidity(r),S.current=[e,r,n]}function C(){let e=S.current;S.current=null,e&&(!e[0].willValidate||e[0].validationMessage===e[1])&&e[0].setCustomValidity(e[2])}function w(e,t,n){let i=g(e,t);h(i,n),r(i)}function T(e){let t=$A.reduce((t,n)=>(t[n]=e.validity[n],t),{}),n=!1;for(let e of $A)if(e!==`valid`){if(e===`valueMissing`&&t[e])n=!0;else if(t[e])return t}return n&&!c.current&&(t.valid=!0,t.valueMissing=!1),t}function E(){return b.size>0?tj(b,t.current):v.current}let D=E();function O(){return D=E(),D?.willValidate?T(D):nj(!1)}if(o){if(l.valid!==!1||!D)return;if(!D.validity.valueMissing){C();let e=E(),t=e?.validity.customError?rj(e):[];w(nj(t.length>0),t,!1);return}for(let e of $A)if(e!==`valid`&&e!==`valueMissing`&&e!==`customError`&&D.validity[e])return}_.clear(),C();let k=O(),A=rj(D),j=u();if(A.length===0||j){let t=Array.from(n.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}),r=i(e,t),o;if(typeof r==`object`&&r&&`then`in r){if(k.valid===!1?w(k,A):(d===`onSubmit`||!a.state.customError)&&(k.valid=null,w(k,A)),o=await r,m!==x.current)return;k=O()}else o=r;A=o?[].concat(o).filter(Boolean):[],A.length>0?(k.valid=!1,k.customError=!0,D?.willValidate&&y(D,A.join(`
105
+ `))):A=rj(D)}w(k,A)}),E=q((e,t=!1)=>{if(_.clear(),x.current+=1,t)return;let n=u();n&&e!==``&&o?_.start(o,()=>{T(e)}):T(e,!n)}),D=g.useCallback((e,t={})=>Or(m(t),l.valid===!1&&!l.disabled&&!e?{"aria-invalid":!0}:h),[m,l.disabled,l.valid]);return g.useMemo(()=>({getValidationProps:D,inputRef:v,registeredInputs:b,registerInput:C,getInputControl:w,commit:T,change:E}),[D,b,C,w,T,E])}var aj=g.createContext(void 0);function oj(e=!1){let t=g.useContext(aj);if(!t&&!e)throw Error(S(86));return t}var sj=[Yd],cj=g.forwardRef(function(e,t){let{render:n,className:r,disabled:i,readOnly:a,required:o,onValueChange:s,value:c,defaultValue:l,form:u,name:d,inputRef:f,id:p,style:m,...h}=e,{setTouched:_,setFocused:v,validationMode:y,name:b,disabled:x,state:S,validation:C,setDirty:w,setFilled:T,validityData:E}=FD(),{labelId:D}=BD(),{clearErrors:O,elementRef:k}=RD(),A=oj(!0),j=x||i,M=b??d,N=Md(p),[P,F]=vf({controlled:c,default:l,name:`RadioGroup`,state:`value`}),[I,L]=g.useState(!1),R=q((e,t)=>{s?.(e,t),!t.isCanceled&&F(e)}),z=C.getInputControl,B=g.useMemo(()=>({get current(){return z()}}),[z]),V=g.useRef(null),H=g.useRef(null);function U(e){let t;return f&&(typeof f==`function`?t=f(e):f.current=e),V.current=e,t}let ee=q(e=>{if(!e||e.disabled)return;H.current||=e;let t=V.current,n=e.checked||t==null||t.disabled?U(e):void 0;return()=>{H.current===e&&(H.current=null),V.current===e?n?(n(),V.current=null):U(null):n?.()}}),te=q(()=>{let e=k.current;if(!e)return P??null;for(let t of C.registeredInputs.keys())if(t.checked&&ej(t,e))return P??null;return null});ID(B,N,P??null,te,!j,d),Kf(P,()=>{O(M),w(P!==E.initialValue),T(P!=null),C.change(P);let e=H.current;P==null&&e&&!e.disabled&&U(e)});let G=D??A?.legendId,ne={...S,disabled:j??!1,required:o??!1,readOnly:a??!1},K=g.useMemo(()=>({checkedValue:P,disabled:j,form:u,validation:C,name:M,readOnly:a,registerInputRef:ee,required:o,setCheckedValue:R,setTouched:L,touched:I}),[P,j,u,C,M,a,ee,o,R,L,I]),re={id:p,role:`radiogroup`,"aria-required":o||void 0,"aria-disabled":j||void 0,"aria-readonly":a||void 0,"aria-labelledby":G,onFocus(){v(!0)},onBlur(e){J(e.currentTarget,e.relatedTarget)||(_(!0),v(!1),y===`onBlur`&&C.commit(P))},onKeyDownCapture(e){e.key.startsWith(`Arrow`)&&(L(!0),v(!0))}};return(0,W.jsx)(FA.Provider,{value:K,children:(0,W.jsx)(ZA,{render:n,className:r,style:m,state:ne,props:[re,h,e=>C.getValidationProps(j??!1,e)],refs:[t],stateAttributesMapping:kD,enableHomeAndEndKeys:!1,modifierKeys:sj})})});function lj({className:e,orientation:t=`vertical`,...n}){return(0,W.jsx)(cj,{"data-slot":`radio-group`,"aria-orientation":t,className:Z(`flex`,t===`horizontal`?`flex-wrap gap-4`:`flex-col gap-2`,e),...n})}function uj(e){return e?e.lan.length>0?e.lan:e.public:[]}function dj(e){return!e||e.lan.length===0?[]:e.public}function fj(e){return e?.ipv6??[]}function pj(e,t){let n=$(e===`lan`?`panel.address.lan`:e===`ipv6`?`panel.address.ipv6`:`panel.address.public`);return t?`${n} · ${t}`:n}function mj(e,t){return`http://${e.includes(`:`)?`[${e}]`:e}:${String(t??``)}`}function hj({book:e,error:t=``,onRetry:n,port:r,value:i,busy:a=!1,onChange:o,fallbackUrls:s=[],align:c=`end`}){let l=c===`start`?`items-start`:`items-end`,u=c===`start`?`justify-start`:`justify-end`,d=c===`start`?`text-start`:`text-end`,f=String(r??``),p=uj(e),m=dj(e),h=fj(e),g=e&&e.lan.length>0?`lan`:`public`,_=p.some(e=>e.address===i)?i:p[0]?.address??``;return t?(0,W.jsxs)(`span`,{className:`flex flex-col gap-0.5 ${l}`,children:[(0,W.jsx)(`span`,{className:`font-sans text-foreground-muted`,children:$(`panel.address.loadFailed`)}),n?(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,onClick:n,children:$(`panel.address.retry`)}):null]}):p.length===0?h.length===0&&s.length>0?(0,W.jsxs)(`span`,{className:`flex flex-col gap-0.5 ${l}`,children:[s.map(e=>(0,W.jsx)(`span`,{children:e},e)),e?(0,W.jsx)(`span`,{className:`font-sans text-xs text-foreground-muted`,children:$(`panel.address.natHint`)}):null]}):h.length===0?(0,W.jsxs)(`span`,{className:`flex flex-col gap-0.5 ${l}`,children:[(0,W.jsx)(`span`,{className:`font-sans text-foreground-muted`,children:$(e?`panel.address.none`:`panel.address.empty`)}),e?(0,W.jsx)(`span`,{className:`font-sans text-xs text-foreground-muted`,children:$(`panel.address.natHint`)}):null]}):(0,W.jsx)(`span`,{className:`flex w-full flex-col gap-1 ${l}`,children:h.map(e=>(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-baseline gap-x-2 ${u}`,children:[(0,W.jsx)(`span`,{className:`font-mono text-xs text-foreground-muted`,children:mj(e.address,f)}),(0,W.jsx)(`span`,{className:`shrink-0 font-sans text-xs text-foreground-subtle`,children:`${pj(`ipv6`,e.interface)}${$(`panel.address.ipv6Hint`)}`})]},e.address))}):(0,W.jsxs)(`span`,{className:`flex w-full flex-col gap-1 ${l}`,children:[p.length>1?(0,W.jsx)(lj,{className:fg(`w-full gap-1`,l,a&&`pointer-events-none opacity-60`),value:_,onValueChange:e=>{typeof e==`string`&&e!==_&&o(e)},children:p.map(e=>(0,W.jsxs)(`label`,{className:`flex w-full cursor-pointer flex-wrap items-baseline gap-x-2 ${u}`,children:[(0,W.jsx)(qA,{value:e.address,"aria-label":mj(e.address,f)}),(0,W.jsx)(`span`,{className:`font-mono text-xs text-foreground`,children:mj(e.address,f)}),(0,W.jsx)(`span`,{className:`shrink-0 font-sans text-xs text-foreground-muted`,children:pj(g,e.interface)})]},e.address))}):(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-baseline gap-x-2 ${u}`,children:[(0,W.jsx)(`span`,{className:`font-mono`,children:mj(p[0].address,f)}),(0,W.jsx)(`span`,{className:`shrink-0 font-sans text-xs text-foreground-muted`,children:pj(g,p[0].interface)})]}),m.map(e=>(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-baseline gap-x-2 ${u}`,children:[(0,W.jsx)(`span`,{className:`font-mono text-xs text-foreground-muted`,children:mj(e.address,f)}),(0,W.jsx)(`span`,{className:`shrink-0 font-sans text-xs text-foreground-subtle`,children:`${pj(`public`,e.interface)}${$(`panel.address.publicHint`)}`})]},e.address)),h.map(e=>(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-baseline gap-x-2 ${u}`,children:[(0,W.jsx)(`span`,{className:`font-mono text-xs text-foreground-muted`,children:mj(e.address,f)}),(0,W.jsx)(`span`,{className:`shrink-0 font-sans text-xs text-foreground-subtle`,children:$(`panel.address.ipv6Pick`,{kind:pj(`ipv6`,e.interface)})})]},e.address)),e&&e.lan.length>0&&e.public.length===0&&h.length===0?(0,W.jsx)(`span`,{className:`font-sans text-xs text-foreground-muted ${d}`,children:$(`panel.address.natHint`)}):null,p.length>1?(0,W.jsx)(`span`,{className:`font-sans text-xs text-foreground-muted ${d}`,children:$(`panel.address.hint`)}):null]})}function gj({on:e,what:t,label:n,className:r,disabled:i,onClick:a}){let o=n??$(e?`panel.common.hide`:`panel.common.show`);return(0,W.jsx)(Q,{variant:`ghost`,size:`icon-sm`,className:r,"aria-label":`${o}${t}`,title:`${o}${t}`,disabled:i,onClick:a,children:(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:e?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`path`,{d:`m3 3 18 18M10.58 10.59a2 2 0 0 0 2.83 2.82`}),(0,W.jsx)(`path`,{d:`M9.88 5.09A10.94 10.94 0 0 1 12 5c7 0 10 7 10 7a14.5 14.5 0 0 1-3.17 4.36M6.61 6.61A16.77 16.77 0 0 0 2 12s3 7 10 7a10.94 10.94 0 0 0 5.39-1.39`})]}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`path`,{d:`M2 12s3-7 10-7 10 7 10 7-3 7-10 7S2 12 2 12Z`}),(0,W.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`})]})})})}function _j(){return(0,W.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`size-6`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`rect`,{x:`3`,y:`3`,width:`7`,height:`7`,rx:`1`}),(0,W.jsx)(`rect`,{x:`14`,y:`3`,width:`7`,height:`7`,rx:`1`}),(0,W.jsx)(`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`}),(0,W.jsx)(`path`,{d:`M14 14h3v3M21 14v.01M14 21h.01M17 21h4v-4`})]})}function vj({status:e,pairing:t,addressBook:n,addressError:r=``,onRetryAddresses:i,version:a,versionIssues:o=[],busy:s,error:c,onRetryPairing:l,onSavePreferred:u,onEditPort:d,bare:f=!1}){let p=s!==``,m=t?.relayUrl||e.relayUrl||`—`,h=r?`error`:bj(n,t),[_,v]=g.useState({relay:!1}),[y,b]=g.useState(!1),[x,S]=g.useState(!1);OA(e.lastPairingAt,()=>S(!1));let C=t?.pairingCode===e.pairingCode,w=g.useRef(null),[T,E]=g.useState(0);g.useEffect(()=>{let e=w.current;if(!e||typeof ResizeObserver>`u`)return;let t=()=>E(Math.round(e.getBoundingClientRect().height));t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]);let D=e=>v(t=>({...t,[e]:!t[e]})),O=(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`div`,{className:`${f?``:`mt-3`} flex flex-col gap-4 sm:flex-row sm:items-stretch`,children:[(0,W.jsx)(`div`,{className:`relative mx-auto aspect-square w-full max-w-[200px] shrink-0 self-center sm:mx-0 sm:h-[var(--qr-size)] sm:w-[var(--qr-size)] sm:max-w-none sm:self-start`,style:T>0?{"--qr-size":`${T}px`}:void 0,children:!t?.svg||!C?(0,W.jsx)(`div`,{className:`absolute inset-0 flex flex-col items-center justify-center gap-2 rounded-md border border-border-muted bg-background-muted p-3 text-foreground-subtle`,children:c?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`span`,{className:`text-xs`,children:$(`panel.pairing.qrFailed`)}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:p,onClick:l,children:$(`panel.console.retryPairing`)})]}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(BE,{}),(0,W.jsx)(`span`,{className:`text-xs`,children:$(`panel.pairing.noQr`)})]})}):(0,W.jsxs)(`button`,{type:`button`,className:`absolute inset-0 flex cursor-zoom-in flex-col items-center justify-center gap-2 rounded-md border border-border-muted bg-background-muted p-3 text-foreground-subtle transition-colors hover:bg-background-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,onClick:()=>S(!0),"aria-label":`${$(`panel.pairing.qrZoom`)}:${$(`panel.pairing.qr`)}`,children:[(0,W.jsx)(_j,{}),(0,W.jsx)(`span`,{className:`text-xs`,children:$(`panel.pairing.qrHidden`)}),(0,W.jsx)(`span`,{className:`text-xs`,children:$(`panel.common.show`)})]})}),(0,W.jsx)(`div`,{ref:w,className:`flex min-w-0 flex-1 flex-col`,children:(0,W.jsxs)(rk,{className:nk,children:[(0,W.jsx)(ek,{label:$(`panel.connection.relayUrl`),nowrap:!0,children:(0,W.jsxs)(`span`,{className:`inline-flex min-w-0 flex-wrap items-center justify-end gap-x-2 gap-y-1`,children:[_.relay?(0,W.jsx)(`span`,{className:`min-w-0 font-mono text-xs text-foreground-strong`,children:m}):(0,W.jsx)(`span`,{className:`text-xs text-foreground-subtle`,children:$(`panel.pairing.hidden`)}),(0,W.jsx)(gj,{on:_.relay,what:$(`panel.connection.relayUrl`),label:_.relay?$(`panel.common.hide`):$(`panel.common.show`),onClick:()=>D(`relay`)})]})}),(0,W.jsx)(ek,{label:$(`panel.pairing.port`),mono:!0,nowrap:!0,children:(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-center justify-end gap-x-2 gap-y-1`,children:[(0,W.jsxs)(`span`,{children:[t?.lanPort??e.lan.port,t?.lanPortAdjusted?(0,W.jsx)(`span`,{className:`ml-2 font-sans text-xs text-foreground-muted`,children:$(`panel.pairing.portFallback`)}):null]}),(0,W.jsx)(Q,{variant:`ghost`,size:`icon-sm`,"aria-label":$(`panel.pairing.portTitle`),title:$(`panel.pairing.portTitle`),disabled:p,onClick:d,children:(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:`m16 3 5 5M4 15 16 3a3.54 3.54 0 0 1 5 5L9 20l-6 1 1-6Z`})})})]})}),(0,W.jsx)(ek,{label:$(`panel.pairing.phoneAddress`),nowrap:!0,children:(0,W.jsxs)(`span`,{className:`inline-flex flex-wrap items-center justify-end gap-x-2 gap-y-1`,children:[h?null:(0,W.jsx)(`span`,{className:`text-xs text-foreground-subtle`,children:$(`panel.pairing.noAddress`)}),(0,W.jsx)(gj,{on:!1,what:$(`panel.pairing.phoneAddress`),label:$(`panel.common.show`),onClick:()=>b(!0)})]})}),(0,W.jsx)(ek,{label:$(`panel.update.runningVersion`),mono:!0,labelExtra:o.length>0?(0,W.jsx)(dk,{issue:o[0]}):void 0,children:a||$(`panel.update.unknownVersion`)})]})})]}),(0,W.jsx)(hD,{open:x,onOpenChange:S,children:(0,W.jsxs)(gD,{className:`w-[min(680px,94vw)] max-h-[90vh] max-w-none`,closeLabel:$(`panel.common.close`),children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.pairing.qr`)})}),(0,W.jsx)(bD,{children:(0,W.jsx)(`div`,{className:`flex items-center justify-center overflow-auto rounded-md bg-white p-2 sm:p-4`,children:t?.svg&&C?(0,W.jsx)(`div`,{className:`aspect-square h-[min(64vh,560px)] w-auto max-w-full [&_svg]:h-full [&_svg]:w-full`,dangerouslySetInnerHTML:{__html:t.svg}}):null})})]})}),(0,W.jsx)(hD,{open:y,onOpenChange:b,children:(0,W.jsxs)(gD,{className:`max-w-xl`,closeLabel:$(`panel.common.close`),children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.pairing.phoneAddress`)})}),(0,W.jsx)(bD,{children:(0,W.jsx)(hj,{book:n,error:r,onRetry:i,port:t?.lanPort??e.lan.port,value:n?.preferred??``,busy:p,onChange:u,fallbackUrls:t?.lanUrls??[]})}),(0,W.jsx)(xD,{className:`flex justify-end`,children:(0,W.jsx)(Q,{variant:`outline`,onClick:()=>b(!1),children:$(`panel.common.close`)})})]})})]});return f?O:(0,W.jsxs)(cD,{frame:`solid`,children:[(0,W.jsx)(lD,{className:`flex-none px-4 py-3`,children:(0,W.jsx)(uD,{className:`text-base lg:text-lg`,children:$(`panel.pairing.cardTitle`)})}),O]})}function yj({status:e,busy:t,onChangePolicy:n,onToggleRemote:r,onChangeControlReport:i}){let a=t!==``,o=e.pairingPolicy===`code`,s=e.controlReportEnabled!==!1,[c,l]=g.useState(!1);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(ek,{label:$(`panel.pairing.policy`),children:(0,W.jsx)(ZD,{size:`md`,checked:o,disabled:a,onCheckedChange:e=>n(e?`code`:`deny`),"aria-label":$(`panel.devices.allowTitle`)})}),(0,W.jsx)(ek,{label:$(`panel.connection.remoteControl`),children:(0,W.jsx)(ZD,{size:`md`,checked:e.enabled,disabled:a,onCheckedChange:e=>r(e),"aria-label":$(`panel.connection.remoteControl`)})}),(0,W.jsx)(ek,{label:$(`panel.pairing.controlReport`),nowrap:!0,labelExtra:(0,W.jsx)(`button`,{type:`button`,"aria-label":$(`panel.pairing.controlReportInfo`),title:$(`panel.pairing.controlReportInfo`),className:`shrink-0 cursor-pointer rounded text-foreground-muted transition-colors duration-200 hover:text-foreground-strong focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none`,onClick:()=>l(!0),children:(0,W.jsx)(uk,{})}),children:(0,W.jsx)(ZD,{size:`md`,checked:s,disabled:a,"aria-label":$(`panel.pairing.controlReport`),onCheckedChange:e=>{e!==s&&i(e)}})}),(0,W.jsx)(hD,{open:c,onOpenChange:l,children:(0,W.jsxs)(gD,{className:`max-w-md`,closeLabel:$(`panel.common.close`),children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.pairing.controlReport`)})}),(0,W.jsxs)(bD,{className:`whitespace-pre-line text-sm leading-6 text-foreground-muted`,children:[$(`panel.pairing.controlReportDetail`),`
106
+
107
+ `,$(`panel.pairing.controlReportTarget`,{target:e.controlReportTargetUrl||$(`panel.pairing.controlReportUnknown`)}),e.relayUrl&&!qk(e.relayUrl)?`\n\n${$(`panel.pairing.controlReportSelfHosted`)}`:``]}),(0,W.jsx)(xD,{className:`flex justify-end`,children:(0,W.jsx)(Q,{variant:`outline`,onClick:()=>l(!1),children:$(`panel.common.close`)})})]})})]})}function bj(e,t){return e&&e.lan.length+e.public.length>0?`book`:t?.lanUrls?.[0]??``}function xj(e){return e.available?e.enabled?e.path===`direct`&&e.active?`panel.p2p.open`:e.error?`panel.p2p.error`:e.path===`failed`?`panel.p2p.blocked`:e.ready?e.path===`waiting`?`panel.p2p.waiting`:`panel.p2p.punching`:e.started?`panel.p2p.punching`:`panel.p2p.waiting`:`panel.p2p.disabled`:`panel.p2p.unavailable`}function Sj(e){return e.length>16?`${e.slice(0,12)}…${e.slice(-4)}`:e}function Cj({open:e,onOpenChange:t,onChanged:n}){let r=uO(),[i,a]=(0,g.useState)(null),[o,s]=(0,g.useState)(``),[c,l]=(0,g.useState)(``),u=(0,g.useCallback)(async()=>{try{let e=await rO(`/api/relay/p2p`);a(e.status??null),s(``)}catch(e){s(cO(e))}},[]),d=async e=>{l(`toggle`);try{let t=await iO(`/api/relay/p2p/enabled`,{enabled:e});a(t.status??null),r(`soft`,$(e?`panel.p2p.enabledToast`:`panel.p2p.disabledToast`)),n?.()}catch(e){r(`error`,cO(e))}finally{l(``)}};(0,g.useEffect)(()=>{if(!e)return;let t=()=>{c_()&&u()};t();let n=window.setInterval(t,2e3);return document.addEventListener(`visibilitychange`,t),()=>{window.clearInterval(n),document.removeEventListener(`visibilitychange`,t)}},[e,u]);let f=i,p=Array.isArray(f?.candidates)?f.candidates:[];return(0,W.jsx)(hD,{open:e,onOpenChange:t,children:(0,W.jsxs)(gD,{className:`max-w-md`,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.p2p.title`)})}),(0,W.jsxs)(bD,{className:`flex flex-col gap-3`,children:[(0,W.jsx)(`p`,{className:`text-xs leading-5 text-foreground-muted`,children:$(`panel.p2p.hint`)}),o?(0,W.jsx)(`p`,{className:`text-xs text-error`,children:o}):null,f===null?(0,W.jsxs)(`div`,{className:`flex items-center gap-2 py-2 text-sm text-foreground-muted`,children:[(0,W.jsx)(BE,{}),$(`panel.shell.readingStatus`)]}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 border-b border-border-muted py-2`,children:[(0,W.jsx)(`span`,{className:`shrink-0 text-sm text-foreground-muted`,children:$(`panel.p2p.stateLabel`)}),(0,W.jsxs)(`span`,{className:`min-w-0 text-right text-sm break-all`,children:[$(xj(f)),f.error?(0,W.jsx)(`span`,{className:`ml-1 text-xs text-foreground-muted`,children:f.error}):null]})]}),(0,W.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 border-b border-border-muted py-2`,children:[(0,W.jsx)(`span`,{className:`shrink-0 text-sm text-foreground-muted`,children:$(`panel.p2p.addressLabel`)}),(0,W.jsx)(`span`,{className:`min-w-0 text-right font-mono text-xs break-all text-foreground-strong`,children:f.url||$(`panel.p2p.noAddress`)})]}),(0,W.jsxs)(`label`,{className:`flex items-center justify-between gap-4 border-b border-border-muted py-2`,children:[(0,W.jsx)(`span`,{className:`text-sm text-foreground-muted`,children:$(`panel.p2p.enableLabel`)}),(0,W.jsx)(ZD,{size:`md`,checked:f.enabled,disabled:!f.available||c!==``,onCheckedChange:e=>void d(e),"aria-label":$(`panel.p2p.enableLabel`)})]}),(0,W.jsxs)(`div`,{className:`flex flex-col gap-1 border-b border-border-muted py-2`,children:[(0,W.jsxs)(`span`,{className:`text-sm text-foreground-muted`,children:[$(`panel.p2p.candidatesLabel`),` (`,p.length,`)`]}),p.length===0?(0,W.jsx)(`span`,{className:`text-xs text-foreground-muted`,children:$(`panel.p2p.noCandidates`)}):(0,W.jsx)(`ul`,{className:`flex flex-col gap-1`,children:p.map(e=>(0,W.jsx)(`li`,{className:`font-mono text-xs break-all text-foreground-strong`,children:e},e))})]}),(0,W.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 py-2`,children:[(0,W.jsx)(`span`,{className:`shrink-0 text-sm text-foreground-muted`,children:$(`panel.p2p.keyLabel`)}),(0,W.jsx)(`span`,{className:`min-w-0 text-right font-mono text-xs break-all text-foreground-strong`,children:f.publicKey?Sj(f.publicKey):$(`panel.p2p.noKey`)})]})]})]}),(0,W.jsx)(xD,{className:`flex justify-end gap-2`,children:(0,W.jsx)(Q,{variant:`outline`,disabled:c!==``,onClick:()=>t(!1),children:$(`panel.common.close`)})})]})})}var wj=function(e){let t=Md(),[n,r]=g.useState(t),[i,a]=g.useState(),[o,s]=g.useState([]),c=n===void 0?t:n,l=y(()=>new Map),{messageIds:u}=BD(),d=q((e,t)=>{let n=l.current;t===void 0?n.delete(e):n.set(e,t),r(e=>{if(n.size===0)return e;let t;for(let r of n.values()){if(r===e)return e;t===void 0&&(t=r)}return t})}),f=q(()=>{l.current.size===0&&r(t)}),p=g.useCallback(e=>{let t=e[`aria-describedby`]?e[`aria-describedby`].split(` `):[];return t.push(...u,...o),{...e,"aria-describedby":Array.from(new Set(t)).join(` `)||void 0}},[u,o]),m=g.useMemo(()=>({controlId:c,registerControlId:d,resetControlId:f,labelId:i,setLabelId:a,messageIds:o,setMessageIds:s,getDescriptionProps:p}),[c,d,f,i,a,o,s,p]);return(0,W.jsx)(zD.Provider,{value:m,children:e.children})};function Tj(e,t){let n=Md(e);return b(()=>(t(n),()=>{t(e=>e===n?void 0:e)}),[n,t]),n}function Ej(e={}){let{id:t,fallbackControlId:n,native:r=!1,setLabelId:i,focusControl:a}=e,{controlId:o,setLabelId:s}=BD(),c=Tj(t,q(e=>{s(e),i?.(e)})),l=o??n;function u(e){if(a){a(e,l);return}if(!l)return;let t=Re(e.currentTarget).getElementById(l);ve(t)&&Dj(t)}function d(e){dt(e.nativeEvent)?.closest(`button,input,select,textarea`)||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),!r&&u(e))}return r?{id:c,htmlFor:l,onMouseDown:d}:{id:c,onClick:d,onPointerDown(e){e.preventDefault()}}}function Dj(e){e.focus({focusVisible:!0})}function Oj(e){let{change:t,commit:n,invalid:r,markedDirtyRef:i,name:a,setRegisteredFieldName:o,registeredFieldIdRef:s,setValidityData:c,validityData:l}=e,{formRef:u}=RD(),d=g.useRef(null),f=g.useRef(null),p=g.useRef(!1),m=q(()=>{let e=f.current;if(e)return e.getValue?e.getValue():e.value});function h(e){return e.value===void 0?m():e.value}let _=q(()=>{let e=f.current;if(i.current=!0,!e){n(l.value);return}n(h(e))});function v(){let e=f.current;e&&e.id&&u.current.fields.set(e.id,{getValue:m,name:a??e.name,controlRef:e.controlRef,validityData:QA(l,r),validate:_})}function y(e=f.current?.id){e&&u.current.fields.delete(e)}function x(e){if(p.current)return;p.current=!0;let t=h(e);c(e=>e.initialValue===t?e:{...e,initialValue:t})}return b(()=>{let e=f.current;e&&e.id&&(o(a?void 0:e.name),u.current.fields.set(e.id,{getValue:m,name:a??e.name,controlRef:e.controlRef,validityData:QA(l,r),validate:_}))},[u,m,r,a,o,_,l]),b(()=>{let e=u.current.fields;return()=>{let t=f.current?.id;t&&e.delete(t)}},[u]),[_,q((e,n)=>{if(!n){d.current===e&&(d.current=null,t(void 0,!0),y(),f.current=null,o(void 0),s.current=void 0);return}let r=f.current?.id,i=d.current;i&&i!==e&&t(void 0,!0),d.current=e,f.current=n,a||o(n.name),s.current=n.id,r&&r!==n.id&&y(r),x(n),v()})]}var kj=g.forwardRef(function(e,t){let{errors:n,validationMode:r,submitCountRef:i}=RD(),{render:a,className:o,validate:s,validationDebounceTime:c=0,validationMode:l=r,name:u,disabled:d=!1,invalid:f,dirty:p,touched:m,actionsRef:h,style:_,...v}=e,y=oj(!0)?.disabled,x=q(s||(()=>null)),S=y||d,[C,w]=g.useState(!1),[T,E]=g.useState(!1),[D,O]=g.useState(!1),[k,A]=g.useState(!1),j=p??T,M=m??C,N=g.useRef(j),P=g.useRef(void 0),[F,I]=g.useState(),L=u??F;b(()=>{p!==void 0&&(N.current=p)},[p]);let R=q(e=>{p===void 0&&(e&&(N.current=!0),E(e))}),z=q(e=>{m===void 0&&w(e)}),B=q(()=>l===`onChange`||l===`onSubmit`&&i.current>0),V=L&&Object.hasOwn(n,L)?n[L]:null,H=!!(Array.isArray(V)?V.length:V),U=f===!0||H,[ee,te]=g.useState({state:DD,error:``,errors:[],value:null,initialValue:null}),G=!U&&(S?null:ee.state.valid),ne=g.useMemo(()=>({disabled:S,touched:M,dirty:j,valid:G,filled:D,focused:k}),[S,M,j,G,D,k]),K=ij({setValidityData:te,validate:x,validityData:ee,validationDebounceTime:c,invalid:U,markedDirtyRef:N,state:ne,shouldValidateOnChange:B,validationMode:l,registeredFieldIdRef:P}),[re,ie]=Oj({change:K.change,commit:K.commit,invalid:U,markedDirtyRef:N,name:u,setRegisteredFieldName:I,registeredFieldIdRef:P,setValidityData:te,validityData:ee});g.useImperativeHandle(h,()=>({validate:re}),[re]);let ae=g.useMemo(()=>({invalid:U,name:L,validityData:ee,setValidityData:te,disabled:S,setTouched:z,setDirty:R,setFilled:O,setFocused:A,validationMode:l,shouldValidateOnChange:B,state:ne,registerFieldControl:ie,validation:K}),[U,L,ee,S,z,R,O,A,l,B,ne,ie,K]),oe=Hr(`div`,e,{ref:t,state:ne,props:v,stateAttributesMapping:kD});return(0,W.jsx)(PD.Provider,{value:ae,children:oe})}),Aj=g.forwardRef(function(e,t){return(0,W.jsx)(wj,{children:(0,W.jsx)(kj,{...e,ref:t})})}),jj=g.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,nativeLabel:o=!0,...s}=e,c=FD(!1),l=PA(),{labelId:u}=BD(),d={...c.state,disabled:c.disabled||l.disabled},f=g.useRef(null),p=Ej({id:u??a,native:o});return Hr(`label`,e,{ref:[t,f],state:d,props:[p,s],stateAttributesMapping:kD})}),Mj=g.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:_,setDirty:v,validityData:y,setFocused:x,setFilled:S,validationMode:C,validation:w}=FD(),{clearErrors:T,elementRef:E,submitCountRef:D}=RD(),O=h||s,k=m??a,A={...p,disabled:O},{labelId:j}=BD(),M=WD({id:i}),[N]=vf({controlled:o,default:l,name:`FieldControl`,state:`value`}),P=o!==void 0,F=P?N:void 0,I=F==null?void 0:String(F),L=q(()=>w.inputRef.current?.value);ID(w.inputRef,M,I,L,!O,a),b(()=>{let e=I??w.inputRef.current?.value;e!==void 0&&S(e!==``)},[I,w.inputRef,S]),Kf(I,()=>{I!==void 0&&(T(k),v(I!==(y.initialValue??``)),w.change(I))});let R=g.useRef(null),z=Ke();return b(()=>{u&&R.current===ut(Re(R.current))&&x(!0)},[u,x]),Hr(`input`,e,{ref:[t,R],state:A,props:[{id:M,disabled:O,name:k,ref:w.inputRef,"aria-labelledby":j,autoFocus:u,...P?{value:F}:{defaultValue:l},onChange(e){let t=e.currentTarget.value,n=ja(ha,e.nativeEvent);c?.(t,n),!P&&(v(t!==(y.initialValue??``)),S(t!==``),!e.nativeEvent.defaultPrevented&&!n.isCanceled&&(T(k),w.change(t)))},onFocus(){x(!0)},onBlur(e){if(_(!0),x(!1),C===`onBlur`){let t=e.currentTarget.value;w.commit(t),P&&queueMicrotask(()=>{let e=w.inputRef.current?.value;e!==void 0&&e!==t&&e!==(y.initialValue??``)&&w.commit(e)})}},onKeyDown(e){if(e.currentTarget.tagName===`INPUT`&&e.key===`Enter`){_(!0);let t=e.currentTarget.value,n=e.currentTarget.form;if(n&&n===E.current&&!e.defaultPrevented){let t=e.currentTarget,n=D.current;z.start(0,()=>{D.current===n&&w.commit(t.value)})}else w.commit(t)}}},f,e=>w.getValidationProps(O,e)],stateAttributesMapping:kD})});function Nj({className:e,...t}){return(0,W.jsx)(Aj,{"data-slot":`field`,className:Z(e),...t})}function Pj({className:e,...t}){return(0,W.jsx)(jj,{"data-slot":`field-label`,className:Z(`text-foreground-intense mb-1.5 flex w-fit items-center text-sm font-medium select-none`,`data-disabled:opacity-disabled`,e),...t})}var Fj=g.forwardRef(function(e,t){return(0,W.jsx)(Mj,{ref:t,...e})}),Ij=Uu(`w-full border text-foreground outline-none transition-[background-color,border-color,box-shadow] duration-200 motion-reduce:transition-none [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{outline:`bg-background border-border-strong hover:not-focus:not-focus-visible:not-has-focus:not-has-focus-visible:not-data-popup-open:not-has-data-popup-open:not-data-pressed:not-has-data-pressed:not-data-invalid:not-has-data-invalid:border-border-emphasis`,soft:`bg-background-muted border-transparent hover:not-focus:not-focus-visible:not-has-focus:not-has-focus-visible:not-data-popup-open:not-has-data-popup-open:not-data-pressed:not-has-data-pressed:not-data-invalid:not-has-data-invalid:border-border-strong`},size:{sm:`h-8 px-3 text-xs pointer-coarse:text-base rounded-sm gap-1.5 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='stroke-'])]:stroke-[1.75]`,md:`h-10 px-3.5 text-sm pointer-coarse:text-base rounded-md gap-2 [&_svg:not([class*='size-'])]:size-4.5 [&_svg:not([class*='stroke-'])]:stroke-[1.65]`,lg:`h-12 px-4 text-base rounded-lg gap-2 [&_svg:not([class*='size-'])]:size-5 [&_svg:not([class*='stroke-'])]:stroke-[1.65]`},state:{self:Z(`focus-visible:ring-3 focus-visible:ring-ring-input focus-visible:border-transparent focus-visible:bg-background`,`data-popup-open:ring-3 data-popup-open:ring-ring-input data-popup-open:border-transparent data-popup-open:bg-background`,`data-pressed:ring-3 data-pressed:ring-ring-input data-pressed:border-transparent data-pressed:bg-background`,`data-invalid:bg-error-subtle data-invalid:border-error`,`data-invalid:focus-visible:border-transparent data-invalid:focus-visible:ring-ring-error data-invalid:focus-visible:bg-background`,`data-invalid:data-popup-open:border-transparent data-invalid:data-popup-open:ring-ring-error data-invalid:data-popup-open:bg-background`,`data-invalid:data-pressed:border-transparent data-invalid:data-pressed:ring-ring-error data-invalid:data-pressed:bg-background`,`data-disabled:border-border-strong! data-disabled:bg-background-subtle! data-disabled:cursor-not-allowed data-disabled:border-dashed data-disabled:opacity-disabled`),within:Z(`flex items-center`,`has-focus:ring-[3px] has-focus:ring-ring-input has-focus:border-transparent has-focus:bg-background`,`has-data-popup-open:ring-3 has-data-popup-open:ring-ring-input has-data-popup-open:border-transparent has-data-popup-open:bg-background`,`has-data-pressed:ring-3 has-data-pressed:ring-ring-input has-data-pressed:border-transparent has-data-pressed:bg-background`,`data-invalid:bg-error-subtle data-invalid:border-error data-invalid:has-focus:border-transparent data-invalid:has-focus:ring-ring-error data-invalid:has-focus:bg-background`,`data-invalid:has-data-popup-open:border-transparent data-invalid:has-data-popup-open:ring-ring-error data-invalid:has-data-popup-open:bg-background`,`data-invalid:has-data-pressed:border-transparent data-invalid:has-data-pressed:ring-ring-error data-invalid:has-data-pressed:bg-background`,`has-data-invalid:bg-error-subtle has-data-invalid:border-error has-data-invalid:has-focus:border-transparent has-data-invalid:has-focus:ring-ring-error has-data-invalid:has-focus:bg-background`,`has-data-invalid:has-data-popup-open:border-transparent has-data-invalid:has-data-popup-open:ring-ring-error has-data-invalid:has-data-popup-open:bg-background`,`has-data-invalid:has-data-pressed:border-transparent has-data-invalid:has-data-pressed:ring-ring-error has-data-invalid:has-data-pressed:bg-background`,`has-[input:disabled]:border-border-strong! has-[input:disabled]:bg-background-subtle! has-[input:disabled]:cursor-not-allowed has-[input:disabled]:border-dashed has-[input:disabled]:opacity-disabled`)}},defaultVariants:{variant:`outline`,size:`md`,state:`self`}});function Lj(e,t){(Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,`value`)?.set)?.call(e,t),e.dispatchEvent(new Event(`input`,{bubbles:!0}))}function Rj({className:e,variant:t=`outline`,inputSize:n=`md`,clearable:r,startSlot:i,endSlot:a,onClear:o,inputProps:s,ref:c,...l}){let u=g.useRef(null),d=!!(r||i||a),f=l[`aria-invalid`],p=f===!0||f===`true`,m=zu(c,u),h=()=>{u.current&&l.value===void 0&&Lj(u.current,``),u.current?.focus(),o?.()};return d?(0,W.jsxs)(`div`,{"data-slot":`input-wrapper`,className:Z(Ij({variant:t,size:n,state:`within`}),e),...p?{"data-invalid":``}:{},children:[i&&(0,W.jsx)(`div`,{"data-slot":`input-start`,className:`-ms-1 flex shrink-0 items-center`,children:i}),(0,W.jsx)(Fj,{"data-slot":`input`,ref:m,placeholder:l.placeholder??` `,...s,className:Z(`peer text-foreground placeholder:text-foreground-subtle h-full min-w-0 flex-1 bg-transparent outline-none disabled:cursor-not-allowed`,s?.className),...l}),r&&(0,W.jsx)(`button`,{"data-slot":`input-clear`,type:`button`,onClick:h,className:`text-foreground-subtle hover:text-foreground pointer-events-none shrink-0 cursor-pointer opacity-0 transition-[opacity,color] duration-200 peer-not-placeholder-shown:pointer-events-auto peer-not-placeholder-shown:opacity-100`,tabIndex:-1,"aria-label":`Clear input`,children:(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`2 2 16 16`,fill:`currentColor`,className:`size-[1em]`,children:(0,W.jsx)(`path`,{d:`M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z`})})}),a&&(0,W.jsx)(`div`,{"data-slot":`input-end`,className:`-me-1 flex shrink-0 items-center`,children:a})]}):(0,W.jsx)(Fj,{"data-slot":`input`,ref:m,...s,className:Z(Ij({variant:t,size:n,state:`self`}),`placeholder:text-foreground-subtle`,s?.className,e),...l,...p?{"data-invalid":``}:{}})}var zj=1024,Bj=65535;function Vj({open:e,onOpenChange:t,port:n,busy:r,fixed:i,forwarding:a,onSave:o}){let[s,c]=(0,g.useState)(String(n)),[l,u]=(0,g.useState)(i);(0,g.useEffect)(()=>{e&&(c(String(n)),u(i))},[e]);let d=s.trim(),f=Number(d),p=d!==``&&Number.isInteger(f)&&f>=zj&&f<=Bj&&r===``;return(0,W.jsx)(hD,{open:e,onOpenChange:t,children:(0,W.jsxs)(gD,{className:`max-w-sm`,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.pairing.portTitle`)})}),(0,W.jsxs)(bD,{className:`flex flex-col gap-2`,children:[(0,W.jsxs)(Nj,{children:[(0,W.jsx)(Pj,{htmlFor:`relay-lan-port`,children:$(`panel.pairing.port`)}),(0,W.jsx)(Rj,{inputProps:{id:`relay-lan-port`,inputMode:`numeric`},value:s,onChange:e=>c(e.target.value)})]}),(0,W.jsx)(`p`,{className:`text-xs text-foreground-muted`,children:$(`panel.pairing.portHint`)}),(0,W.jsxs)(Nj,{children:[(0,W.jsx)(Pj,{htmlFor:`relay-port-fixed`,children:$(`panel.pairing.portFixed`)}),(0,W.jsx)(ZD,{id:`relay-port-fixed`,size:`md`,checked:l,disabled:r!==``,onCheckedChange:u,"aria-label":$(`panel.pairing.portFixed`)})]}),(0,W.jsx)(`p`,{className:`text-xs text-foreground-muted`,children:$(a?`panel.pairing.portForwarding`:`panel.pairing.portFixedHint`)})]}),(0,W.jsxs)(xD,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(Q,{variant:`outline`,disabled:r!==``,onClick:()=>t(!1),children:$(`panel.common.cancel`)}),(0,W.jsx)(Q,{variant:`primary`,disabled:!p,onClick:()=>o(f,l),children:$(`panel.common.save`)})]})]})})}function Hj({visible:e,onOpenConfig:t}){let[n,r]=(0,g.useState)(!1);return!e||n?null:(0,W.jsx)(hD,{open:!0,onOpenChange:e=>{e||r(!0)},children:(0,W.jsxs)(gD,{className:`max-w-md`,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.publicRelayNotice.title`)})}),(0,W.jsx)(bD,{className:`whitespace-pre-line text-sm leading-6 text-foreground-muted`,children:$(`panel.publicRelayNotice.body`)}),(0,W.jsxs)(xD,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(Q,{variant:`outline`,onClick:()=>{r(!0),t()},children:$(`panel.pairing.openConfig`)}),(0,W.jsx)(Q,{variant:`primary`,onClick:()=>r(!0),children:$(`panel.publicRelayNotice.action`)})]})]})})}var Uj={sm:`py-2`,md:`py-2.5`,lg:`py-3`},Wj={sm:`min-h-16`,md:`min-h-20`,lg:`min-h-24`},Gj={sm:`0.5rem`,md:`0.625rem`,lg:`0.75rem`};function Kj(e,t){(Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,`value`)?.set)?.call(e,t),e.dispatchEvent(new Event(`input`,{bubbles:!0}))}function qj({className:e,variant:t=`outline`,inputSize:n=`md`,clearable:r,startSlot:i,endSlot:a,onClear:o,ref:s,rows:c=3,...l}){let u=g.useRef(null),d=zu(s,u),f=!!(r||i||a),p=l[`aria-invalid`],m=p===!0||p===`true`,h=()=>{u.current&&l.value===void 0&&Kj(u.current,``),u.current?.focus(),o?.()};return f?(0,W.jsxs)(`div`,{"data-slot":`textarea-wrapper`,"data-invalid":m?``:void 0,style:{"--textarea-h":`calc(${c} * 1lh + 2 * ${Gj[n]} + 2px)`},className:Z(Ij({variant:t,size:n,state:`within`}),`h-(--textarea-h) resize-y items-start overflow-hidden`,Wj[n],Uj[n],`has-[textarea:disabled]:border-border-strong! has-[textarea:disabled]:bg-background-subtle! has-[textarea:disabled]:opacity-disabled has-[textarea:disabled]:cursor-not-allowed has-[textarea:disabled]:border-dashed`,e),children:[i&&(0,W.jsx)(`div`,{"data-slot":`textarea-start`,className:`-ms-1 inline-flex h-lh shrink-0 items-center`,children:i}),(0,W.jsx)(Mj,{"data-slot":`textarea`,ref:d,render:(0,W.jsx)(`textarea`,{rows:c}),placeholder:l.placeholder??` `,className:`peer text-foreground placeholder:text-foreground-subtle min-w-0 flex-1 resize-none self-stretch bg-transparent outline-none disabled:cursor-not-allowed`,...l}),r&&(0,W.jsx)(`button`,{"data-slot":`textarea-clear`,type:`button`,onClick:h,className:`text-foreground-subtle hover:text-foreground pointer-events-none inline-flex h-lh shrink-0 cursor-pointer items-center opacity-0 transition-[opacity,color] duration-200 peer-not-placeholder-shown:pointer-events-auto peer-not-placeholder-shown:opacity-100 motion-reduce:transition-none`,tabIndex:-1,"aria-label":`Clear input`,children:(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`2 2 16 16`,fill:`currentColor`,className:`size-[1em]`,children:(0,W.jsx)(`path`,{d:`M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z`})})}),a&&(0,W.jsx)(`div`,{"data-slot":`textarea-end`,className:`-me-1 inline-flex h-lh shrink-0 items-center`,children:a})]}):(0,W.jsx)(Mj,{"data-slot":`textarea`,ref:d,render:(0,W.jsx)(`textarea`,{rows:c}),className:Z(Ij({variant:t,size:n,state:`self`}),`placeholder:text-foreground-subtle h-auto resize-y`,Uj[n],Wj[n],e),...l,...m?{"data-invalid":``}:{}})}function Jj(e){return String(e||``).replace(/\s+#.*$/,``).trim().replace(/^["']/,``).replace(/["']$/,``).trim()}function Yj(e){let t={};for(let n of String(e||``).split(/\r?\n/)){let e=n.trim();if(!e||e.startsWith(`#`)||e.startsWith(`;`)||e.startsWith(`[`))continue;let r=/^([A-Za-z0-9_.]+)\s*[=:]\s*(.+)$/.exec(e);if(!r)continue;let i=r[1].toLowerCase();i in t||(t[i]=Jj(r[2]))}return t}function Xj(e){let t=String(e||``).trim();if(!t)return[];let n=[...t.matchAll(/["']([^"']+)["']/g)].map(e=>e[1].trim()).filter(Boolean);return n.length?n:t.replace(/^\[|\]$/g,``).split(/[,\s]+/).map(e=>e.trim()).filter(Boolean)}function Zj(e){let t=(...t)=>{for(let n of t)if(e[n])return e[n];return``};return{type:(t(`type`)||``).toLowerCase(),remotePort:t(`remoteport`,`remote_port`),localPort:t(`localport`,`local_port`),domains:Xj(t(`customdomains`,`custom_domains`))}}function Qj(e){let t=e.split(/\[\[\s*proxies\s*\]\]/i),n=Yj(t[0]);return{serverAddr:n.serveraddr||n.server_addr||``,proxies:t.slice(1).map(e=>Zj(Yj(e)))}}function $j(e){let t=[{name:`__global__`,pairs:{}}];for(let n of e.split(/\r?\n/)){let e=n.trim();if(!e||e.startsWith(`#`)||e.startsWith(`;`))continue;let r=/^\[([^\]]+)\]$/.exec(e);if(r){t.push({name:r[1].trim().toLowerCase(),pairs:{}});continue}let i=/^([A-Za-z0-9_.]+)\s*[=:]\s*(.+)$/.exec(e);if(!i)continue;let a=t[t.length-1],o=i[1].toLowerCase();o in a.pairs||(a.pairs[o]=Jj(i[2]))}let n=t.find(e=>e.name===`common`)||t[0];return{serverAddr:n.pairs.server_addr||n.pairs.serveraddr||``,proxies:t.filter(e=>e.name!==`__global__`&&e.name!==`common`).map(e=>Zj(e.pairs))}}function eM(e){let t;try{t=JSON.parse(e)}catch{return null}let n=t&&typeof t==`object`?t:{};return{serverAddr:typeof n.serverAddr==`string`?n.serverAddr:typeof n.server_addr==`string`?n.server_addr:``,proxies:(Array.isArray(n.proxies)?n.proxies:[]).map(e=>{let t=e&&typeof e==`object`?e:{},n=e=>typeof e==`string`||typeof e==`number`?String(e):``,r=t.customDomains??t.custom_domains;return{type:n(t.type).toLowerCase(),remotePort:n(t.remotePort??t.remote_port),localPort:n(t.localPort??t.local_port),domains:Array.isArray(r)?r.map(e=>String(e)):Xj(n(r))}})}}function tM(e){if(!/^\d+$/.test(String(e||``)))return null;let t=Number(e);return Number.isInteger(t)&&t>=1&&t<=65535?t:null}function nM(e,t){for(let n of t){if(n.type&&n.type!==`tcp`)continue;let t=tM(n.remotePort);if(e&&t!==null)return{ok:!0,field:`tcp`,value:`${e}:${t}`,kind:`tcp`}}for(let e of t)if((e.type===`https`||e.type===`http`)&&e.domains.length)return{ok:!0,field:`direct`,value:`https://${e.domains[0]}`,kind:`https`};for(let n of t){if(n.type&&n.type!==`tcp`)continue;let t=tM(n.localPort);if(e&&t!==null)return{ok:!0,field:`tcp`,value:`${e}:${t}`,kind:`tcp`,note:`inferred-local-port`,port:t}}return{ok:!1,reason:`no-address`}}function rM(e){let t=String(e||``).trim();if(!t)return{ok:!1,reason:`empty`};let n=t.replace(/^[a-z][a-z0-9+.-]*:\/\//i,``).replace(/\/+$/,``).trim(),r=/^(\[[^\]]+\]|[^\s/:?#]+):(\d+)$/.exec(n);if(r){let e=Number(r[2]);return Number.isInteger(e)&&e>=1&&e<=65535?{ok:!0,field:`tcp`,value:`${r[1]}:${e}`,kind:`tcp`}:{ok:!1,reason:`bad-tcp`}}let i;return i=t.startsWith(`{`)?eM(t)||{serverAddr:``,proxies:[]}:/\[\[\s*proxies\s*\]\]/i.test(t)?Qj(t):/^\s*\[common\]\s*$/im.test(t)||/(?:^|[\r\n])\s*server_addr\s*=/i.test(t)?$j(t):Qj(t),nM(i.serverAddr,i.proxies)}function iM(e){return/serverAddr|server_addr|\[\[\s*proxies\s*\]\]|\[common\]/i.test(e)}function aM({open:e,onOpenChange:t,onImport:n}){let[r,i]=(0,g.useState)(``),[a,o]=(0,g.useState)(``),s=(0,g.useMemo)(()=>rM(r),[r]);(0,g.useEffect)(()=>{e&&o(``)},[e]);function c(){if(!s.ok)return;if(/^\s*\[common\]\s*$/im.test(r)||/^\s*server_addr\s*=/im.test(r)){o($(`panel.frp.iniUnsupported`));return}let e=s.value;n({field:s.field,value:e,...iM(r)?{config:r}:{}}),t(!1)}return(0,W.jsx)(hD,{open:e,onOpenChange:t,children:(0,W.jsxs)(gD,{className:`w-[min(560px,92vw)]`,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.frp.title`)})}),(0,W.jsxs)(bD,{className:`flex flex-col gap-3`,children:[(0,W.jsx)(`p`,{className:`text-xs leading-5 text-foreground-muted`,children:$(`panel.frp.hint`)}),(0,W.jsxs)(Nj,{children:[(0,W.jsx)(Pj,{htmlFor:`frp-import`,children:$(`panel.frp.label`)}),(0,W.jsx)(qj,{id:`frp-import`,rows:6,value:r,onChange:e=>i(e.target.value),autoComplete:`off`,spellCheck:!1})]}),r.trim()?s.ok?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`p`,{role:`status`,className:`text-xs text-foreground-muted`,children:$(s.field===`tcp`?`panel.frp.detectedTcp`:`panel.frp.detectedDirect`,{address:s.value})}),s.note===`inferred-local-port`?(0,W.jsx)(`p`,{className:`text-xs text-foreground-muted`,children:$(`panel.frp.inferredPort`,{port:s.port??``})}):null]}):(0,W.jsx)(`p`,{className:`text-xs text-error`,children:$(s.reason===`empty`?`panel.frp.empty`:`panel.frp.badFormat`)}):null,a?(0,W.jsx)(`p`,{className:`text-xs text-error`,children:a}):null]}),(0,W.jsxs)(xD,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(Q,{variant:`outline`,onClick:()=>t(!1),children:$(`panel.common.cancel`)}),(0,W.jsx)(Q,{variant:`primary`,disabled:!s.ok,onClick:c,children:$(`panel.frp.fill`)})]})]})})}var oM=.7,sM=2;function cM(e){let t=Number.isFinite(e)&&e>0?e:0;return t>=600?1:t<=100?t/100*oM:oM+(t-100)/500*.30000000000000004}function lM(e,t,n){let r=e.map(e=>typeof e==`number`&&Number.isFinite(e)&&e>=0?e:null);if(!r.some(e=>e!==null))return``;let i=r.length>1?t/(r.length-1):0,a=Math.max(1,n-4),o=[],s=!1;return r.forEach((e,n)=>{if(e===null){s=!1;return}let c=r.length>1?n*i:t/2,l=sM+cM(e)*a;o.push(`${s?`L`:`M`}${c.toFixed(1)} ${l.toFixed(1)}`),s=!0}),o.join(` `)}function uM(e){return typeof e!=`number`||!Number.isFinite(e)?`none`:e<=100?`fast`:e<=600?`ok`:`slow`}var dM=5e3,fM=132,pM=28;function mM(e){return e===`fast`?`text-success`:e===`ok`?`text-warning`:e===`slow`?`text-destructive`:`text-foreground-muted`}function hM(e){return e===`fast`?`#16a34a`:e===`ok`?`#d97706`:e===`slow`?`#dc2626`:`#9ca3af`}function gM(e){return typeof e!=`number`||!Number.isFinite(e)?`—`:`${Math.round(e)} ms`}function _M({open:e,onOpenChange:t,activeUrl:n}){let[r,i]=(0,g.useState)({}),[a,o]=(0,g.useState)(``),s=(0,g.useRef)(!1),c=n.trim().replace(/\/+$/,``),l=[...new Set([...Kk.map(e=>e.url),.../^https?:\/\//i.test(c)?[c]:[]])],u=(0,g.useRef)(null);return(0,g.useEffect)(()=>{if(!e){u.current!==null&&(clearInterval(u.current),u.current=null);return}let t=!0;o(``);let n=[...new Set([...Kk.map(e=>e.url),.../^https?:\/\//i.test(c)?[c]:[]])];i(Object.fromEntries(n.map(e=>[e,[null]])));async function r(){if(t&&!s.current){s.current=!0;try{let e=await iO(`/api/relay/probe-relays`,{urls:n});if(!t)return;let r=new Map((e.results||[]).map(e=>[e.url,e.ms]));i(e=>{let t={};for(let i of n)t[i]=[...e[i]||[],r.get(i)??null].slice(-14);return t}),o(``)}catch(e){t&&(i(e=>Object.fromEntries(n.map(t=>[t,[...e[t]||[],null].slice(-14)]))),o(cO(e)))}finally{s.current=!1}}}return r(),u.current=setInterval(()=>{r()},dM),()=>{t=!1,u.current!==null&&(clearInterval(u.current),u.current=null)}},[e,c]),(0,W.jsx)(hD,{open:e,onOpenChange:t,children:(0,W.jsxs)(gD,{children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.relay.panelTitle`)})}),(0,W.jsxs)(bD,{className:`flex max-h-[60vh] flex-col gap-1 overflow-y-auto`,children:[(0,W.jsx)(`p`,{className:`mb-2 text-xs text-foreground-muted`,children:$(`panel.relay.panelHint`)}),l.map(e=>{let t={url:e},i=r[t.url]||[null],a=i[i.length-1]??null,o=uM(a),s=lM(i,fM,pM),c=t.url===n;return(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-md border border-border-muted px-3 py-2`,children:[(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,W.jsx)(`span`,{className:`truncate font-mono text-sm`,children:t.url}),c?(0,W.jsx)(`span`,{className:`text-xs text-primary`,children:$(`panel.relay.selected`)}):null]}),(0,W.jsxs)(`div`,{className:`flex shrink-0 items-center gap-3`,children:[s?(0,W.jsx)(`svg`,{width:fM,height:pM,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:s,stroke:hM(o),strokeWidth:1.5,fill:`none`})}):null,(0,W.jsx)(`span`,{className:`w-16 text-right text-sm tabular-nums ${mM(o)}`,children:gM(a)})]})]},t.url)}),a?(0,W.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:a}):null]}),(0,W.jsx)(xD,{children:(0,W.jsx)(Q,{variant:`outline`,onClick:()=>t(!1),children:$(`panel.common.close`)})})]})})}function vM({id:e,value:t,placeholder:n,ariaLabel:r,options:i,emptyText:a,onChange:o}){return(0,W.jsx)(Rj,{inputProps:{id:e,className:`font-mono`},value:t,placeholder:n,onChange:e=>o(e.target.value),endSlot:(0,W.jsxs)(kh,{children:[(0,W.jsx)(Ah,{"aria-label":r,className:`-mr-1 flex h-7 w-7 shrink-0 cursor-pointer items-center justify-center rounded text-foreground-muted hover:text-foreground-strong focus-visible:outline-none`,children:(0,W.jsx)(`svg`,{viewBox:`0 0 24 24`,className:`size-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,W.jsx)(`path`,{d:`m6 9 6 6 6-6`})})}),(0,W.jsx)(Nh,{align:`end`,style:{width:`auto`,minWidth:`18rem`,maxWidth:`32rem`},children:i.length===0?(0,W.jsx)(`div`,{className:`px-3 py-2 text-xs text-foreground-muted`,children:a}):i.map(e=>(0,W.jsx)(Ih,{onClick:()=>o(e.value),children:(0,W.jsx)(`span`,{className:`font-mono text-xs break-all`,children:e.label})},e.value))})]})})}function yM({open:e,onOpenChange:t,status:n,addressBook:r,addressError:i=``,onRetryAddresses:a,lanUrls:o,busy:s,onSave:c,onSavePreferred:l}){let[u,d]=(0,g.useState)(n.relayUrl),[f,p]=(0,g.useState)(``),[m,h]=(0,g.useState)(``),[_,v]=(0,g.useState)(``),[y,b]=(0,g.useState)(``),[x,S]=(0,g.useState)(``),[C,w]=(0,g.useState)(!1),[T,E]=(0,g.useState)(!1),[D,O]=(0,g.useState)(),[k,A]=(0,g.useState)(!1),j=(0,g.useRef)(null),M=(0,g.useRef)(null),N=(0,g.useRef)(!1),P=(0,g.useRef)(!1),F=(0,g.useRef)(!1),I=(0,g.useRef)(!1),L=r?r.lan.length>0?r.lan:r.public:[];(0,g.useEffect)(()=>{e&&d(n.relayUrl)},[e]),(0,g.useEffect)(()=>{e||(w(!1),E(!1),O(void 0))},[e]),(0,g.useEffect)(()=>{if(!e){N.current=!1,P.current=!1,F.current=!1,I.current=!1,S(``);return}if(N.current||p(r?.manual??``),P.current||h(r?.manualIpv6||r?.ipv6?.[0]?.url||``),F.current||v(r?.manualTcp??``),!I.current){let e=r?r.lan.length>0?r.lan:r.public:[];b((r?.preferred||``).trim()||(e[0]?.address??``))}},[e,r]);let R=s===``,z=Kk.find(e=>e.url===u.trim())??null,B=n.publicRelayBlocked===!0,V=e=>e.trim().replace(/\/+$/,``);function H(){if(!R)return;let e={};z?e.relayUrls=Kk.map(e=>e.url):u.trim()!==n.relayUrl&&(e.relayUrl=u.trim());let t=V(f);t!==V(r?.manual??``)&&(e.manualLanUrl=t);let i=V(m);i!==V(r?.manualIpv6||r?.ipv6?.[0]?.url||``)&&(e.manualIpv6Url=i);let a=V(_);a!==V(r?.manualTcp??``)&&(e.manualTcpUrl=a);let o=y.trim();if(I.current&&o!==(r?.preferred??``).trim()){if(o&&!L.some(e=>e.address===o)){S($(`panel.address.lanUnknown`));return}e.preferredLanAddress=o}c(e,D)}return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(hD,{open:e,onOpenChange:e=>{s!==`config`&&t(e)},children:(0,W.jsxs)(gD,{className:`w-[min(1100px,92vw)]`,initialFocus:M,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.pairing.openConfig`)})}),(0,W.jsx)(`div`,{ref:M,tabIndex:-1,className:`outline-none`,children:(0,W.jsxs)(bD,{className:`grid max-h-[calc(100vh-13rem)] grid-cols-2 items-start gap-x-8 gap-y-4 overflow-y-auto`,children:[(0,W.jsxs)(Nj,{children:[(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-1`,children:[(0,W.jsx)(Pj,{children:$(`panel.relay.publicKind`)}),(0,W.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,onClick:()=>A(!0),children:$(`panel.relay.viewPanel`)}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:!R||B,onClick:()=>d(z?``:Kk[0].url),children:$(z?`panel.relay.disablePublic`:`panel.relay.enablePublic`)})]})]}),B?(0,W.jsx)(Rj,{inputProps:{className:`text-foreground-muted`,readOnly:!0,"aria-label":$(`panel.relay.publicKind`)},value:$(`panel.relay.publicDisabled`)}):(0,W.jsx)(`div`,{className:`flex flex-col gap-1`,children:Kk.map(e=>(0,W.jsx)(Rj,{inputProps:{className:`font-mono`,readOnly:!0,"aria-label":$(`panel.relay.publicKind`)},value:e.url},e.url))})]}),(0,W.jsxs)(Nj,{children:[(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-1`,children:[(0,W.jsx)(Pj,{htmlFor:`relay-url`,children:$(`panel.relay.selfKind`)}),(0,W.jsx)(`a`,{href:Uk,target:`_blank`,rel:`noreferrer noopener`,className:Gu({variant:`ghost`,size:`sm`}),children:$(`panel.relay.selfRepo`)})]}),(0,W.jsx)(Rj,{inputProps:{id:`relay-url`,className:`font-mono`},value:z?``:u,placeholder:`https://example.com`,onChange:e=>d(e.target.value)})]}),(0,W.jsxs)(Nj,{children:[(0,W.jsx)(Pj,{htmlFor:`relay-manual-lan`,children:$(`panel.address.direct`)}),(0,W.jsx)(Rj,{inputProps:{id:`relay-manual-lan`,className:`font-mono`},value:f,placeholder:$(`panel.address.directPlaceholder`),onChange:e=>{N.current=!0,p(e.target.value)}})]}),(0,W.jsxs)(Nj,{children:[(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-1`,children:[(0,W.jsx)(Pj,{htmlFor:`relay-manual-tcp`,children:$(`panel.address.tcp`)}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,onClick:()=>E(!0),children:$(`panel.address.frpImport`)})]}),(0,W.jsx)(Rj,{inputProps:{id:`relay-manual-tcp`,className:`font-mono`},value:_,placeholder:$(`panel.address.tcpPlaceholder`),onChange:e=>{F.current=!0,v(e.target.value)}})]}),(0,W.jsxs)(Nj,{children:[(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-1`,children:[(0,W.jsx)(Pj,{htmlFor:`relay-preferred-lan`,children:$(`panel.address.lan`)}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,onClick:()=>w(!0),children:$(`panel.onboarding.chooseAddress`)})]}),(0,W.jsx)(vM,{id:`relay-preferred-lan`,value:y,placeholder:$(`panel.address.lanPlaceholder`),ariaLabel:$(`panel.address.lan`),options:L.map(e=>({value:e.address,label:e.url})),emptyText:$(`panel.address.empty`),onChange:e=>{I.current=!0,S(``),b(e)}}),x?(0,W.jsx)(`p`,{className:`text-xs text-error`,children:x}):null,i?(0,W.jsxs)(`p`,{className:`text-xs text-error`,children:[$(`panel.address.loadFailed`),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,onClick:a,children:$(`panel.address.retry`)})]}):null]}),(0,W.jsxs)(Nj,{children:[(0,W.jsx)(Pj,{htmlFor:`relay-manual-ipv6`,children:$(`panel.address.ipv6Url`)}),(0,W.jsx)(vM,{id:`relay-manual-ipv6`,value:m,placeholder:$(`panel.address.ipv6Placeholder`),ariaLabel:$(`panel.address.ipv6Url`),options:(r?.ipv6??[]).map(e=>({value:e.url,label:e.interface?`${e.url} · ${e.interface}`:e.url})),emptyText:$(`panel.address.empty`),onChange:e=>{P.current=!0,h(e)}})]})]})}),(0,W.jsxs)(xD,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(Q,{variant:`outline`,disabled:s===`config`,onClick:()=>t(!1),children:$(`panel.common.cancel`)}),(0,W.jsx)(Q,{variant:`primary`,disabled:!R,onClick:H,children:$(`panel.relay.saveConfig`)})]})]})}),(0,W.jsx)(hD,{open:C,onOpenChange:w,children:(0,W.jsxs)(gD,{className:`w-[min(560px,92vw)]`,initialFocus:j,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.address.lan`)})}),(0,W.jsx)(`div`,{ref:j,tabIndex:-1,className:`outline-none`,children:(0,W.jsx)(bD,{className:`max-h-[60vh] overflow-y-auto px-1 py-2`,children:(0,W.jsx)(hj,{align:`start`,book:r,error:i,onRetry:a,port:n.lan.port,value:r?.preferred??``,busy:s!==``,fallbackUrls:o,onChange:e=>{l(e),w(!1)}})})}),(0,W.jsx)(xD,{className:`flex justify-end`,children:(0,W.jsx)(Q,{variant:`outline`,onClick:()=>w(!1),children:$(`panel.common.close`)})})]})}),(0,W.jsx)(aM,{open:T,onOpenChange:E,onImport:e=>{O(e.config?{config:e.config,field:e.field,value:e.value}:void 0),e.field===`tcp`?(F.current=!0,v(e.value)):(N.current=!0,p(e.value))}}),(0,W.jsx)(_M,{open:k,onOpenChange:A,activeUrl:n.relayUrl})]})}function bM(e){return e.available?e.enabled?e.error?`panel.tailcat.error`:e.ready?`panel.tailcat.ready`:`panel.tailcat.starting`:`panel.tailcat.disabled`:`panel.tailcat.unavailable`}function xM(e){return e.length>16?`${e.slice(0,12)}…${e.slice(-4)}`:e}function SM({open:e,onOpenChange:t,onChanged:n}){let r=uO(),[i,a]=(0,g.useState)(null),[o,s]=(0,g.useState)(``),[c,l]=(0,g.useState)(``),u=(0,g.useCallback)(async()=>{try{a(await rO(`/api/relay/tailcat`)),s(``)}catch(e){s(cO(e))}},[]);(0,g.useEffect)(()=>{if(!e)return;let t=()=>{c_()&&u()};t();let n=window.setInterval(t,2e3);return document.addEventListener(`visibilitychange`,t),()=>{window.clearInterval(n),document.removeEventListener(`visibilitychange`,t)}},[e,u]);let d=(0,g.useCallback)(async(e,t,i)=>{l(e);try{a(await t()),r(`soft`,i),n?.()}catch(e){r(`error`,cO(e))}finally{l(``)}},[r,n]),f=e=>void d(`toggle`,()=>iO(`/api/relay/tailcat/enabled`,{enabled:e}),$(e?`panel.tailcat.enabledToast`:`panel.tailcat.disabledToast`)),p=e=>{window.confirm($(`panel.tailcat.revokeConfirm`))&&d(`revoke`,()=>iO(`/api/relay/tailcat/revoke`,{client:e}),$(`panel.tailcat.revokedToast`))},m=i?.status??null,h=i?.allowedClients??[];return(0,W.jsx)(hD,{open:e,onOpenChange:t,children:(0,W.jsxs)(gD,{className:`max-w-md`,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.tailcat.title`)})}),(0,W.jsxs)(bD,{className:`flex flex-col gap-3`,children:[(0,W.jsx)(`p`,{className:`text-xs leading-5 text-foreground-muted`,children:$(`panel.tailcat.hint`)}),o?(0,W.jsx)(`p`,{className:`text-xs text-error`,children:o}):null,i===null?(0,W.jsxs)(`div`,{className:`flex items-center gap-2 py-2 text-sm text-foreground-muted`,children:[(0,W.jsx)(BE,{}),$(`panel.shell.readingStatus`)]}):m===null?(0,W.jsx)(`p`,{className:`text-sm text-foreground-muted`,children:$(`panel.tailcat.unavailable`)}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 border-b border-border-muted py-2`,children:[(0,W.jsx)(`span`,{className:`shrink-0 text-sm text-foreground-muted`,children:$(`panel.tailcat.title`)}),(0,W.jsxs)(`span`,{className:`min-w-0 text-right text-sm break-all`,children:[$(bM(m)),m.error?(0,W.jsx)(`span`,{className:`ml-1 text-xs text-foreground-muted`,children:m.error}):null]})]}),(0,W.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 border-b border-border-muted py-2`,children:[(0,W.jsx)(`span`,{className:`shrink-0 text-sm text-foreground-muted`,children:$(`panel.tailcat.addressLabel`)}),(0,W.jsx)(`span`,{className:`min-w-0 text-right font-mono text-xs break-all text-foreground-strong`,children:m.address||$(`panel.tailcat.noAddress`)})]}),(0,W.jsxs)(`label`,{className:`flex items-center justify-between gap-4 border-b border-border-muted py-2`,children:[(0,W.jsx)(`span`,{className:`text-sm text-foreground-muted`,children:$(`panel.tailcat.enableLabel`)}),(0,W.jsx)(ZD,{size:`md`,checked:m.enabled,disabled:!m.available||c!==``,onCheckedChange:e=>f(e),"aria-label":$(`panel.tailcat.enableLabel`)})]}),(0,W.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,W.jsxs)(`span`,{className:`text-sm text-foreground-muted`,children:[$(`panel.tailcat.pairedLabel`),` (`,m.paired,`)`]}),h.length===0?(0,W.jsx)(`span`,{className:`text-xs text-foreground-muted`,children:$(`panel.tailcat.noClients`)}):(0,W.jsx)(`ul`,{className:`flex flex-col`,children:h.map(e=>(0,W.jsxs)(`li`,{className:`flex items-center justify-between gap-3 border-b border-border-muted py-1.5 last:border-b-0`,children:[(0,W.jsx)(`span`,{className:`min-w-0 font-mono text-xs break-all text-foreground-strong`,children:xM(e)}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:c!==``,onClick:()=>p(e),children:$(`panel.tailcat.revoke`)})]},e))})]})]})]}),(0,W.jsx)(xD,{className:`flex justify-end gap-2`,children:(0,W.jsx)(Q,{variant:`outline`,disabled:c!==``,onClick:()=>t(!1),children:$(`panel.common.close`)})})]})})}var CM=`/dsh-market/api/v1`,wM=`dsh-mobile-plugin`,TM=class extends Error{constructor(e,t,n){super(n),K(this,`status`,void 0),K(this,`code`,void 0),this.name=`MarketError`,this.status=e,this.code=t}},EM=e=>e&&typeof e==`object`?e:{},DM=e=>typeof e==`string`&&e!==``?e:null;async function OM(e,t){let n;try{n=await fetch(`${CM}${e}`,{credentials:`same-origin`,...t})}catch(e){throw new TM(0,`market_unreachable`,$(`panel.net.marketUnreachable`,{message:String(e?.message||e)}))}let r=await n.json().catch(()=>null);if(!n.ok){let e=EM(r),t=EM(e.failure),i=DM(t.code)??(typeof e.error==`string`?e.error:`HTTP ${n.status}`),a=DM(t.message)??DM(e.error)??$(`panel.net.marketHttp`,{status:n.status});throw new TM(n.status,i,a)}return r}async function kM(){try{return{available:!0,restartSupported:EM(EM(await OM(`/capabilities`)).restart).supported===!0}}catch{return{available:!1,restartSupported:!1}}}async function AM(e=wM,t=!1){let n=EM(await OM(`/updates${`?name=${encodeURIComponent(e)}${t?`&force=1`:``}`}`)),r=EM(n.package??n);return{installedVersion:DM(r.installedVersion),latestVersion:DM(r.latestVersion),updateAvailable:r.updateAvailable===!0,source:DM(r.source)}}var jM=new Set([`OPERATION_BUSY`,`RELEASE_TOO_FRESH`,`VERSION_UNCHANGED`,`PLUGIN_NOT_INSTALLED`,`AGENTS_RUNNING`]);function MM(e){let t=e.installedVersion??e.beforeVersion;return e.failure?{text:$(`panel.update.applyFailed`,{message:e.failure.message}),ok:!1}:e.installed===!1?e.skipped?{text:t?$(`panel.update.applyUpToDate`,{version:t}):$(`panel.update.applyUpToDatePlain`),ok:!0}:{text:t?$(`panel.update.applyDiskUnchanged`,{version:t}):$(`panel.update.applyFailedRetry`),ok:!1}:{text:t?$(`panel.update.applySwitched`,{version:t}):$(`panel.update.applySwitchedPlain`),ok:!0}}function NM({version:e,busy:t,onRestartSidecar:n,extraActions:r,onIssues:i,bare:a=!1}){let[o,s]=(0,g.useState)(null),[c,l]=(0,g.useState)(!1),[u,d]=(0,g.useState)(!1),[f,p]=(0,g.useState)(null),[m,h]=(0,g.useState)(null),[_,v]=(0,g.useState)(``),y=uO(),b=(0,g.useCallback)(e=>{e&&s(t=>({...e,available:e.available===!0||t?.available===!0}))},[]),x=o!==null&&o.available&&!u,S=t!==``||_!==``,C=(0,g.useCallback)(async()=>{try{let e=await SO();s(e),d(e.available!==!0)}catch(e){s(null),d(vO(e))}finally{l(!0)}},[]);(0,g.useEffect)(()=>{C()},[C]),(0,g.useEffect)(()=>{if(!c)return;let e=!0;return CO().then(t=>{e&&(t.update&&h(t.update),t.status&&b(t.status))}).catch(()=>{}),()=>{e=!1}},[c]);let w=o?.swapping===!0;(0,g.useEffect)(()=>{if(!w)return;let e=window.setInterval(()=>void C(),1500);return()=>window.clearInterval(e)},[w,C]),(0,g.useEffect)(()=>{if(x||!c)return;let e=!0;return kM().then(t=>{e&&p(t)}),()=>{e=!1}},[x,c]);let T=(0,g.useCallback)(e=>{if(e instanceof TM&&jM.has(e.code)){y(`soft`,`${e.message}(${e.code})`);return}y(`error`,cO(e))},[]),E=(0,g.useCallback)(async()=>{v(`check`);try{let e=await CO();e.status&&b(e.status),e.update&&h(e.update)}catch(e){_O(e)||vO(e)?await C():y(`error`,cO(e))}finally{v(``)}},[C]),D=(0,g.useCallback)(async e=>{v(`apply`);try{let t=await wO(e);t.status&&b(t.status);let n=MM(t),r=t.failure!==null&&jM.has(t.failure.code);n.ok||r?y(`soft`,n.text):y(`error`,n.text)}catch(e){_O(e)||vO(e)?await C():y(`error`,cO(e))}finally{v(``)}},[C]),O=(0,g.useCallback)(async()=>{v(`check`);try{let e=await CO();e.status&&b(e.status),h(e.update)}catch(e){if(!_O(e))h(null),y(`error`,cO(e));else try{h(await AM(void 0,!0))}catch(e){h(null),T(e)}}finally{v(``)}},[T]),k=m?.source??o?.marketResult?.source??null,A=k===`linked`||k===`file`||k===`workspace`,j=m?.updateAvailable??o?.marketResult?.updateAvailable??!1,M=o?.lastApply?MM(o.lastApply):null,N=o?.version??null,P=x&&!!N&&!!e&&N!==e,F=o?.installedVersion??null,I=x&&!!F&&!!e&&F!==e;(0,g.useEffect)(()=>{if(!i)return;let t=[];P&&t.push({title:$(`panel.update.runningVersion`),detail:$(`panel.update.versionDrift`,{version:e??``,shell:N??``})}),I&&t.push({title:$(`panel.update.diskVersion`),detail:$(`panel.update.diskDrift`,{disk:F??``,running:e??``})}),i(t)},[i,P,I,e,N,F]);let L=(0,W.jsxs)(W.Fragment,{children:[c?null:(0,W.jsxs)(`div`,{className:`flex items-center gap-2 py-2 text-sm text-foreground-muted`,children:[(0,W.jsx)(BE,{}),$(`panel.update.reading`)]}),u?(0,W.jsx)(W.Fragment,{children:(0,W.jsxs)(`p`,{className:`mt-3 text-xs text-foreground-muted`,children:[j?$(`panel.update.hasNew`):``,$(`panel.update.nothingToInstall`)]})}):null,c&&!x&&!u&&f!==null&&!f.available?(0,W.jsxs)(JE,{variant:`info`,className:`mt-3`,children:[(0,W.jsx)(XE,{}),(0,W.jsx)(ZE,{children:$(`panel.update.noMarketTitle`)}),(0,W.jsx)(QE,{children:$(`panel.update.noMarketBody`)})]}):null,x&&o?(0,W.jsxs)(W.Fragment,{children:[o.lastError?(0,W.jsx)(`p`,{className:`mt-2 text-xs text-foreground-muted`,children:$(`panel.update.lastErrorLine`,{message:o.lastError})}):null,(0,W.jsxs)(`div`,{className:`flex flex-wrap justify-end gap-1 lg:flex-nowrap`,children:[r,(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:S,onClick:n,children:$(`panel.update.restartSidecar`)}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:S,onClick:()=>void E(),children:$(_===`check`?`panel.update.checking`:`panel.update.check`)}),A?null:(0,W.jsx)(Q,{variant:`primary`,size:`sm`,disabled:S,onClick:()=>void D(!1),children:$(_===`apply`?`panel.update.updating`:`panel.update.updateNow`)})]}),!A&&(j||M!==null&&!M.ok)?(0,W.jsx)(`div`,{className:`mt-2 flex justify-end`,children:(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:S,onClick:()=>void D(!0),children:$(`panel.update.forceHint`)})}):null]}):null,c&&!x&&!u&&f?.available?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(rk,{className:tk,children:(0,W.jsx)(ek,{label:$(`panel.update.checkResult`),children:$(j?`panel.update.resultHasNew`:`panel.update.resultUpToDate`)})}),(0,W.jsxs)(`div`,{className:`flex flex-wrap justify-end gap-1 lg:flex-nowrap`,children:[r,(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:S,onClick:n,children:$(`panel.update.restartSidecar`)}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:S,onClick:()=>void O(),children:$(_===`check`?`panel.update.checking`:`panel.update.check`)}),o!==null&&!A?(0,W.jsx)(Q,{variant:`primary`,size:`sm`,disabled:S,onClick:()=>void D(!1),children:$(_===`apply`?`panel.update.updating`:`panel.update.updateNow`)}):null]})]}):null]});return a?L:(0,W.jsxs)(cD,{frame:`solid`,children:[(0,W.jsx)(lD,{className:`px-4 py-3`,children:(0,W.jsxs)(uD,{className:`flex items-center gap-2 text-base lg:text-lg`,children:[(0,W.jsx)(`span`,{children:$(`panel.update.title`)}),(0,W.jsx)(nD,{variant:`soft`,size:`sm`,children:e||$(`panel.update.unknownVersion`)})]})}),L]})}function PM({webAccess:e,busy:t,onToggle:n}){let r=e?.enabled===!0,i=typeof e?.expiresAt==`number`?e.expiresAt:0;return(0,W.jsxs)(cD,{frame:`solid`,children:[(0,W.jsx)(lD,{className:`px-4 py-3`,children:(0,W.jsx)(uD,{className:`text-base lg:text-lg`,children:$(`panel.webAccess.title`)})}),(0,W.jsx)(rk,{children:(0,W.jsx)(ek,{label:$(`panel.webAccess.state`),tone:r?`ok`:`off`,children:r?$(`panel.webAccess.expires`,{time:hg(i)}):$(`panel.webAccess.closed`)})}),(0,W.jsx)(`p`,{className:`mt-2 text-xs leading-5 text-foreground-muted`,children:$(`panel.webAccess.hint`)}),(0,W.jsx)(`div`,{className:`mt-3 flex flex-wrap gap-2`,children:r?(0,W.jsx)(Q,{variant:`outline`,size:`sm`,disabled:t===`webAccess`,onClick:()=>n(!1),children:$(`panel.webAccess.close`)}):(0,W.jsx)(Q,{variant:`outline`,size:`sm`,disabled:t===`webAccess`,onClick:()=>n(!0),children:$(`panel.webAccess.open`)})})]})}function FM(e,t=``){let n=document.documentElement;n.setAttribute(`data-dshm-panel-state`,e),t?n.setAttribute(`data-dshm-panel-error`,t):n.removeAttribute(`data-dshm-panel-error`),window.parent!==window&&window.parent.postMessage({type:`dsh-mobile-plugin:panel-state`,state:e,message:t},`*`)}var IM=1500,LM=600;function RM(){return(0,W.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`size-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`path`,{d:`M4 7h16`}),(0,W.jsx)(`path`,{d:`M9 7V4.5A1.5 1.5 0 0 1 10.5 3h3A1.5 1.5 0 0 1 15 4.5V7`}),(0,W.jsx)(`path`,{d:`M6 7l1 12.5A2 2 0 0 0 9 21h6a2 2 0 0 0 2-1.5L18 7`}),(0,W.jsx)(`path`,{d:`M10 11v6M14 11v6`})]})}function zM(){let[e,t]=(0,g.useState)(null),[n,r]=(0,g.useState)(``),[i,a]=(0,g.useState)(``),[o,s]=(0,g.useState)(null),[c,l]=(0,g.useState)(``),[u,d]=(0,g.useState)(null),[f,p]=(0,g.useState)(``),[m,h]=(0,g.useState)([]),[_,v]=(0,g.useState)(!1),[y,b]=(0,g.useState)(!1),[x,S]=(0,g.useState)(!1),[C,w]=(0,g.useState)(!1),[T,E]=(0,g.useState)(!1),D=uO();(0,g.useEffect)(()=>{e?FM(`ready`):n&&FM(`error`,n)},[e,n]);let O=(0,g.useRef)(null),[k,A]=(0,g.useState)(0);(0,g.useEffect)(()=>{let e=O.current;if(!e||typeof ResizeObserver>`u`)return;let t=()=>A(e.getBoundingClientRect().height);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[e]);let j=(0,g.useCallback)(async()=>{try{t(await rO(`/api/relay/status`)),r(``)}catch(e){r(cO(e))}},[]),M=(0,g.useCallback)(async()=>{l(``);try{s(await rO(`/api/relay/pairing`)),l(``)}catch(e){s(null),l(cO(e))}},[]),N=(0,g.useCallback)(async()=>{try{d(await rO(`/api/relay/addresses`)),p(``)}catch(e){d(null),p(cO(e))}},[]);(0,g.useEffect)(()=>{let e=()=>{c_()&&j()};e();let t=0,n=window.setTimeout(()=>{t=window.setInterval(e,3e3)},IM);return document.addEventListener(`visibilitychange`,e),()=>{window.clearTimeout(n),t&&window.clearInterval(t),document.removeEventListener(`visibilitychange`,e)}},[j]),(0,g.useEffect)(()=>{if(!e?.enabled)return;let t=window.setTimeout(()=>void M(),LM);return()=>window.clearTimeout(t)},[e?.enabled,M]),(0,g.useEffect)(()=>{e?.enabled&&o&&e.pairingCode&&o.pairingCode!==e.pairingCode&&M()},[e?.pairingCode,e?.enabled,o,M]);let P=(0,g.useCallback)(async()=>{try{s(await rO(`/api/relay/pairing`)),l(``)}catch{}},[]);(0,g.useEffect)(()=>{if(!e?.enabled)return;let t=eO(o);if(t===null)return;let n=window.setTimeout(()=>void P(),t);return()=>window.clearTimeout(n)},[o,e?.enabled,P]),(0,g.useEffect)(()=>{if(!e?.enabled)return;let t=window.setTimeout(()=>void N(),LM);return()=>window.clearTimeout(t)},[e?.enabled,o,N]),(0,g.useEffect)(()=>{_&&e?.enabled&&(M(),N())},[_,e?.enabled,M,N]);let F=(0,g.useCallback)(async(e,t)=>{a(e);try{await t()}catch(e){D(`error`,cO(e))}finally{a(``)}},[D]),I=e=>F(`toggle`,async()=>{t(await iO(`/api/relay/toggle`,{enabled:e})),e?await M():(s(null),l(``)),D(`soft`,$(e?`panel.shell.remoteEnabled`:`panel.shell.remoteDisabled`))}),L=()=>F(`restart`,async()=>{let e=await iO(`/api/relay/restart-sidecar`);t(e.status),D(`soft`,$(`panel.shell.sidecarRestarted`))}),R=e=>F(`webAccess`,async()=>{let n=await iO(`/api/relay/web-access`,{enabled:e});t(e=>e&&{...e,webAccess:n.webAccess}),D(`soft`,$(e?`panel.webAccess.opened`:`panel.webAccess.closedNotice`))}),z=(e,n)=>F(`config`,async()=>{let r={...e};if(n){let e=await oO(n.config);if(!e.ok||!e.status?.running||e.status.error)throw await j(),Error(e.status?.error||$(`panel.connection.tcpFailed`));n.field===`tcp`&&(r.manualTcpUrl===void 0||r.manualTcpUrl===n.value)&&(r.manualTcpUrl=e.status.remoteAddress||n.value)}t(await iO(`/api/relay/config`,r)),v(!1),await Promise.all([M(),N()]),D(`soft`,$(`panel.shell.configSaved`))}),B=()=>{window.confirm($(`panel.frp.stopConfirm`))&&F(`frp`,async()=>{await sO(),await Promise.all([j(),N(),M()])})},V=(e,n)=>F(`config`,async()=>{let r=await iO(`/api/relay/config`,e,{keepApplyError:!0});t(r),r.applyError?D(`error`,$(`panel.shell.applyFailed`,{message:r.applyError})):D(`soft`,$(n))}),H=e=>V({pairingPolicy:e},e===`code`?`panel.shell.deviceAllowed`:`panel.shell.deviceDenied`),U=e=>V({controlReportEnabled:e},`panel.shell.configSaved`),ee=(e,n)=>F(`lan`,async()=>{t(await iO(`/api/relay/config`,{lanPort:e,lanPortFixed:n})),b(!1),await M(),D(`soft`,$(`panel.shell.lanSaved`))}),te=e=>F(`lan`,async()=>{t(await iO(`/api/relay/config`,{preferredLanAddress:e})),await Promise.all([M(),N()]),D(`soft`,e?$(`panel.shell.preferredAddress`,{address:e}):$(`panel.shell.preferredAuto`))}),G=e?e.tunnel.state===`connected`||e.lan.state===`listening`?`ok`:e.enabled?`warn`:`off`:null;return e?(0,W.jsxs)(`main`,{className:`mx-auto flex w-full max-w-[1200px] flex-col gap-3 p-4 sm:p-5`,children:[(0,W.jsxs)(`header`,{className:`flex flex-wrap items-center gap-x-3 gap-y-2`,children:[(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2`,children:[G?(0,W.jsx)($O,{tone:G}):null,(0,W.jsx)(nD,{variant:`soft`,size:`sm`,children:e.appVersion||$(`panel.shell.unknownVersion`)}),(0,W.jsx)(wA,{compact:!0})]}),i?(0,W.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-xs text-foreground-muted`,children:[(0,W.jsx)(BE,{}),$(`panel.shell.busy`)]}):null,(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1`,children:[(0,W.jsx)(Eg,{}),(0,W.jsx)(i_,{}),(0,W.jsx)(Q,{variant:`ghost`,size:`icon-md`,"aria-label":$(`panel.inbox.title`),title:$(`panel.inbox.title`),onClick:()=>E(!0),children:(0,W.jsx)(RM,{})}),(0,W.jsx)(Ck,{})]})]}),n?(0,W.jsxs)(JE,{variant:`error`,children:[(0,W.jsx)(XE,{}),(0,W.jsx)(ZE,{children:$(`panel.shell.statusFailed`)}),(0,W.jsx)(QE,{children:n})]}):null,(0,W.jsxs)(`div`,{className:`grid grid-cols-1 gap-3`,children:[(0,W.jsxs)(cD,{frame:`solid`,children:[(0,W.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 p-4 lg:grid-cols-10 lg:gap-6`,children:[(0,W.jsx)(`div`,{className:`lg:col-span-6`,children:(0,W.jsx)(vj,{bare:!0,status:e,pairing:o,addressBook:u,addressError:f,onRetryAddresses:()=>void N(),version:e.appVersion||``,versionIssues:m,busy:i,error:c,onRetryPairing:()=>void M(),onSavePreferred:e=>void te(e),onEditPort:()=>b(!0)})}),(0,W.jsxs)(`div`,{className:`lg:col-span-4`,children:[(0,W.jsx)(rk,{className:nk,children:(0,W.jsx)(yj,{status:e,busy:i,onChangePolicy:e=>void H(e),onToggleRemote:e=>void I(e),onChangeControlReport:e=>void U(e)})}),(0,W.jsx)(DO,{})]})]}),(0,W.jsx)(`div`,{className:`mt-4 flex h-12 items-center justify-end border-t border-border-muted`,children:(0,W.jsx)(NM,{bare:!0,version:e.appVersion||``,busy:i,onRestartSidecar:()=>void L(),onIssues:h,extraActions:(0,W.jsx)(W.Fragment,{children:(0,W.jsx)(Q,{variant:`primary`,size:`sm`,onClick:()=>v(!0),children:$(`panel.pairing.openConfig`)})})})})]}),(0,W.jsxs)(`div`,{className:`grid grid-cols-1 gap-3 md:grid-cols-2`,children:[(0,W.jsx)(`div`,{ref:O,children:(0,W.jsx)(gk,{status:e,addressBook:u,busy:i,onStopFrp:B,onManageTailcat:()=>S(!0),onManageP2P:()=>w(!0),restartError:e.sidecar.restartError})}),(0,W.jsx)(`div`,{className:`min-h-0`,style:k>0?{height:`${k}px`}:void 0,children:(0,W.jsx)(Vk,{busy:i,fill:!0})})]}),(0,W.jsx)(`div`,{className:`columns-1 gap-3 md:columns-2 xl:columns-3 [&>*]:mb-3 [&>*]:break-inside-avoid`,children:e.webAccess?.enabled&&e.panelScope!==`loopback`?(0,W.jsx)(PM,{webAccess:e.webAccess,busy:i,onToggle:e=>void R(e)}):null})]}),(0,W.jsx)(yM,{open:_,onOpenChange:v,status:e,addressBook:u,addressError:f,onRetryAddresses:()=>void N(),lanUrls:o?.lanUrls??[],busy:i,onSave:(e,t)=>void z(e,t),onSavePreferred:e=>void te(e)}),(0,W.jsx)(SM,{open:x,onOpenChange:S,onChanged:()=>void j()}),(0,W.jsx)(Cj,{open:C,onOpenChange:w,onChanged:()=>void j()}),(0,W.jsx)(Vj,{open:y,onOpenChange:b,port:o?.lanPort??e.lan.requestedPort??e.lan.port,busy:i,fixed:e.lanPortFixed===!0,forwarding:e.lanPortLockReason===`forwarding`,onSave:(e,t)=>void ee(e,t)}),(0,W.jsx)(hD,{open:T,onOpenChange:E,children:(0,W.jsxs)(gD,{className:`max-w-md`,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.inbox.title`)})}),(0,W.jsx)(bD,{children:(0,W.jsx)(DA,{framed:!1})})]})}),(0,W.jsx)(Hj,{visible:qk(e.relayUrl),onOpenConfig:()=>v(!0)})]}):(0,W.jsx)(`main`,{className:`mx-auto flex w-full max-w-5xl flex-col gap-3 p-5`,children:n?(0,W.jsx)(`p`,{className:`text-sm text-error`,children:n}):(0,W.jsxs)(`p`,{className:`flex items-center gap-2 text-sm text-foreground-muted`,children:[(0,W.jsx)(BE,{}),$(`panel.shell.readingStatus`)]})})}var BM=[{textKey:`panel.onboarding.linuxStep1`},{text:`systemctl status firewalld`,cmd:!0},{text:`sudo ufw status`,cmd:!0},{textKey:`panel.onboarding.linuxStep2`},{text:`sudo firewall-cmd --permanent --add-port={port}/tcp
108
+ sudo firewall-cmd --reload`,cmd:!0},{text:`sudo ufw allow {port}/tcp`,cmd:!0},{textKey:`panel.onboarding.linuxStep3`}],VM=[{textKey:`panel.onboarding.macStep1`},{text:`/usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate`,cmd:!0},{textKey:`panel.onboarding.macStep2`},{text:`sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off`,cmd:!0},{textKey:`panel.onboarding.macStep3`}],HM=[{textKey:`panel.onboarding.winStep1`},{text:`Get-NetFirewallProfile | Select-Object Name, Enabled`,cmd:!0},{textKey:`panel.onboarding.winStep2`},{text:`New-NetFirewallRule -DisplayName "DSH Mobile {port}" -Direction Inbound -LocalPort {port} -Protocol TCP -Action Allow`,cmd:!0},{textKey:`panel.onboarding.winStep3`}];function UM(){return[$(`panel.onboarding.prompt.intro`),``,$(`panel.onboarding.prompt.situation`),$(`panel.onboarding.prompt.address`),$(`panel.onboarding.prompt.guess`),``,$(`panel.onboarding.prompt.ask`),$(`panel.onboarding.prompt.ask1`),$(`panel.onboarding.prompt.ask2`),$(`panel.onboarding.prompt.ask3`),$(`panel.onboarding.prompt.ask4`),``,$(`panel.onboarding.prompt.extra`)].join(`
109
+ `)}function WM({title:e,steps:t,port:n,onCopied:r}){async function i(){try{await navigator.clipboard.writeText(UM()),r(!0)}catch{r(!1)}}return(0,W.jsxs)(`section`,{className:`flex flex-col gap-1.5 rounded-lg border border-border-muted bg-background-muted p-3`,children:[(0,W.jsx)(`h3`,{className:`text-center text-sm font-semibold text-foreground-intense`,children:e}),t.map(e=>{let t=(e.text??(e.textKey?$(e.textKey):``)).replace(/\{port\}/g,n);return e.cmd?(0,W.jsx)(`pre`,{className:`rounded bg-background-subtle px-2 py-1.5 font-mono text-[11px] leading-5 break-words whitespace-pre-wrap text-foreground-strong`,children:t},t):(0,W.jsx)(`p`,{className:`text-xs leading-5 text-foreground-muted`,children:t},t)}),(0,W.jsx)(Q,{className:`mt-auto`,variant:`outline`,size:`sm`,onClick:()=>void i(),children:$(`panel.onboarding.copyPromptHint`)})]})}function GM({open:e,onOpenChange:t,port:n}){let[r,i]=(0,g.useState)(``),a=e=>i(e?`ok`:`failed`);return(0,W.jsx)(hD,{open:e,onOpenChange:e=>{e||i(``),t(e)},children:(0,W.jsxs)(gD,{className:`w-[min(1200px,92vw)] max-w-none`,backdropProps:{className:`z-[80]`},viewportProps:{className:`z-[80]`},children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.onboarding.firewallTitle`)})}),(0,W.jsxs)(bD,{className:`flex flex-col gap-4`,children:[(0,W.jsxs)(`p`,{className:`text-sm text-foreground-muted`,children:[$(`panel.onboarding.firewallIntro`),` `,(0,W.jsx)(`span`,{className:`font-mono`,children:n}),$(`panel.onboarding.firewallIntroTail`)]}),(0,W.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-3`,children:[(0,W.jsx)(WM,{title:`Linux`,steps:BM,port:n,onCopied:a}),(0,W.jsx)(WM,{title:`Mac`,steps:VM,port:n,onCopied:a}),(0,W.jsx)(WM,{title:`Windows`,steps:HM,port:n,onCopied:a})]})]}),r?(0,W.jsx)(xD,{className:`flex justify-end`,children:(0,W.jsx)(`span`,{className:`text-xs text-foreground-muted`,children:$(r===`ok`?`panel.onboarding.copiedOk`:`panel.onboarding.copiedFailed`)})}):null]})})}var KM=18e5,qM=3e5,JM=15e3,YM=null,XM=0,ZM=0,QM=null;function $M(e){return typeof e!=`number`||!Number.isFinite(e)?!1:e===0||Date.now()-e>KM}function eN(e){if(!e&&QM)return QM;let t=(async()=>{let t=await rO(e?`/api/relay/selfcheck?force=1`:`/api/relay/selfcheck`);return YM=t,XM=Date.now(),t})();return e||(QM=t,t.finally(()=>{QM===t&&(QM=null)})),t}function tN(e,t=``){let[n,r]=(0,g.useState)(YM),[i,a]=(0,g.useState)(!1),[o,s]=(0,g.useState)(``),[c,l]=(0,g.useState)(!1),u=(0,g.useRef)(!0);(0,g.useEffect)(()=>(u.current=!0,()=>{u.current=!1}),[]);let d=(0,g.useCallback)(async e=>{if(!e&&YM&&Date.now()-XM<JM){r(YM);return}a(!0);try{let t=await eN(e);if(!u.current)return;r(t),s(``),l(!1)}catch(e){if(!u.current)return;l(e instanceof tO&&e.status===404),s(cO(e))}finally{u.current&&a(!1)}},[]);(0,g.useEffect)(()=>{e&&(Date.now()-ZM<qM||YM&&Date.now()-XM<JM||(ZM=Date.now(),d(!1)))},[e,d]);let f=(0,g.useRef)(null);return(0,g.useEffect)(()=>{if(t){if(f.current===null){f.current=t;return}f.current!==t&&(f.current=t,d(!0))}},[t,d]),{data:n,checking:i,error:o,missing:c,ensure:(0,g.useCallback)(()=>void d(!1),[d]),refresh:(0,g.useCallback)(()=>void d(!0),[d])}}function nN(e){return e===`ok`?`ok`:e===`unknown`?`warn`:`error`}var rN={ok:{long:`panel.selfcheck.verdict.ok`,short:`panel.selfcheck.short.ok`},"not-listening":{long:`panel.selfcheck.verdict.notListening`,short:`panel.selfcheck.short.notListening`},"firewall-blocked":{long:`panel.selfcheck.verdict.firewallBlocked`,short:`panel.selfcheck.short.firewallBlocked`},unknown:{long:`panel.selfcheck.verdict.unknown`,short:`panel.selfcheck.short.unknown`},network:{long:`panel.selfcheck.verdict.network`,short:`panel.selfcheck.short.network`}};function iN(e){return $(rN[e]?.long??`panel.selfcheck.verdict.unknown`)}function aN(e){if(!e)return{tone:`off`,text:$(`panel.selfcheck.notChecked`)};let t=e.firewall,n=oN(t.appPath);return!t.supported||t.enabled===null?{tone:`warn`,text:$(`panel.selfcheck.unknown`)}:t.enabled===!1?{tone:`ok`,text:$(`panel.selfcheck.firewallOff`),...n?{detail:n}:{}}:t.allowsApp===!1?{tone:`error`,text:$(`panel.selfcheck.blocked`),...n?{detail:n}:{}}:t.allowsApp===!0?{tone:`ok`,text:$(`panel.selfcheck.allowed`),...n?{detail:n}:{}}:{tone:`warn`,text:$(`panel.selfcheck.unknown`)}}function oN(e){let t=String(e??``).trim();if(!t)return``;let n=t.split(/[\\/]/);return n[n.length-1]??``}function sN(e){let t=(e.preferred||``).trim();return t&&e.lan.some(e=>e.address===t)?t:e.lan[0]?.address??``}function cN({onDone:e}){let[t,n]=(0,g.useState)(null),[r,i]=(0,g.useState)(``),[a,o]=(0,g.useState)(``),[s,c]=(0,g.useState)(!1),[l,u]=(0,g.useState)(!1),[d,f]=(0,g.useState)(null),[p,m]=(0,g.useState)(null),[h,_]=(0,g.useState)(``),[v,y]=(0,g.useState)(``),[b,x]=(0,g.useState)(!1),[S,C]=(0,g.useState)(!1),[w,T]=(0,g.useState)(!1),[E,D]=(0,g.useState)(``),O=tN($M(t?.lastMobileAt),t?`${+!!t.enabled}|${+!!t.lan.enabled}|${t.lan.state}|${t.tunnel.state}|${+((t.lastMobileAt??0)>0)}`:``),k=aN(O.data),A=O.data?.verdict??``,j=(0,g.useRef)(!0);(0,g.useEffect)(()=>(j.current=!0,()=>{j.current=!1}),[]),(0,g.useEffect)(()=>{let e=!0,t=async()=>{if(c_())try{let t=await rO(`/api/relay/status`);e&&n(t)}catch{}},r=window.setInterval(()=>void t(),3e3);return document.addEventListener(`visibilitychange`,t),()=>{e=!1,window.clearInterval(r),document.removeEventListener(`visibilitychange`,t)}},[]),OA(t?.lastPairingAt,()=>{C(!1),B()}),(0,g.useEffect)(()=>{(async()=>{try{let e=await rO(`/api/relay/addresses`);f(e),y(sN(e))}catch{f(null),u(!0)}})()},[]),(0,g.useEffect)(()=>{(async()=>{try{let e=await rO(`/api/relay/status`);n(e),e.enabled&&u(!0)}catch(e){i(cO(e))}await N()})()},[]);let M=(0,g.useRef)(!1);(0,g.useEffect)(()=>{M.current||d!==null&&(M.current=!0,!(t&&t.enabled)&&z())},[d,t]);async function N(){_(``);try{m(await rO(`/api/relay/pairing`))}catch(e){_(cO(e))}}(0,g.useEffect)(()=>{let e=eO(p);if(e===null)return;let t=window.setTimeout(()=>{j.current&&N()},e);return()=>window.clearTimeout(t)},[p]);let P=String(t?.lan.port||d?.port||18787),F=t!==null&&(t.lan.state===`listening`||t.tunnel.state===`connected`),I=t!==null&&l&&!O.checking&&A!==`ok`&&!(A===`not-listening`&&F);async function L(){let e=Date.now();for(;j.current&&Date.now()-e<2e4;){if(await new Promise(e=>window.setTimeout(e,1500)),!j.current)return;let e;try{e=await rO(`/api/relay/status`)}catch{continue}if(n(e),e.lan.state===`listening`||e.tunnel.state===`connected`||e.lan.state===`error`&&e.tunnel.state===`error`)return}}async function R(e){if(s)return;c(!0),e&&u(!1),o(``);let t={relayUrls:Kk.map(e=>e.url),lanEnabled:!0,pairingPolicy:`code`};v&&(t.preferredLanAddress=v);try{n(await iO(`/api/relay/config`,t)),e&&(n(await iO(`/api/relay/toggle`,{enabled:!0})),await iO(`/api/relay/onboarded`,{}).catch(()=>void 0)),await N(),e&&L().finally(()=>{j.current&&u(!0)})}catch(t){e&&j.current&&u(!0),o(cO(t))}finally{c(!1)}}async function z(){await R(!0)}function B(){e?e():window.location.assign(`/`)}async function V(){let e=[$(`panel.onboarding.tailcatPrompt.intro`),``,$(`panel.onboarding.tailcatPrompt.situation`),$(`panel.onboarding.tailcatPrompt.state`,{state:G}),$(`panel.onboarding.tailcatPrompt.guess`),``,$(`panel.onboarding.tailcatPrompt.ask`),$(`panel.onboarding.tailcatPrompt.ask1`),$(`panel.onboarding.tailcatPrompt.ask2`),$(`panel.onboarding.tailcatPrompt.ask3`)].join(`
110
+ `);try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}let H=p?.svg??``,U=t?.tailcat??null,ee=!U||!U.available?`unavailable`:U.enabled?U.error?`error`:U.ready?`ready`:`starting`:`disabled`,te=ee!==`ready`&&ee!==`starting`,G={ready:$(`panel.tailcat.ready`),starting:$(`panel.tailcat.starting`),disabled:$(`panel.tailcat.disabled`),error:$(`panel.tailcat.error`),unavailable:$(`panel.tailcat.unavailable`)}[ee],ne=ee===`ready`?`ok`:ee===`starting`?`warn`:`off`;return(0,W.jsxs)(`main`,{className:`flex min-h-screen flex-col items-center justify-center gap-4 px-6 pt-6 pb-24`,children:[r?(0,W.jsxs)(JE,{className:`w-full max-w-4xl`,variant:`error`,children:[(0,W.jsx)(XE,{}),(0,W.jsx)(ZE,{children:$(`panel.onboarding.statusFailed`)}),(0,W.jsx)(QE,{children:r})]}):null,a?(0,W.jsxs)(JE,{className:`w-full max-w-4xl`,variant:`error`,children:[(0,W.jsx)(XE,{}),(0,W.jsx)(ZE,{children:$(`panel.onboarding.stepFailed`)}),(0,W.jsx)(QE,{children:a})]}):null,(0,W.jsxs)(cD,{frame:`solid`,className:`w-full max-w-4xl`,children:[(0,W.jsxs)(`div`,{className:`grid items-center gap-6 px-4 pb-2 md:grid-cols-[minmax(320px,1fr)_minmax(0,1fr)]`,children:[(0,W.jsxs)(`div`,{className:`flex flex-col items-center gap-2 md:col-start-1 md:row-start-1`,children:[(0,W.jsxs)(`div`,{className:`flex h-5 w-full max-w-[320px] items-center justify-center gap-1.5`,children:[(0,W.jsx)(`p`,{className:`text-sm font-medium leading-5 text-foreground-strong`,children:$(`panel.onboarding.pairingHint`)}),H?(0,W.jsx)(`button`,{type:`button`,"aria-label":`${$(`panel.pairing.qrZoom`)}:${$(`panel.pairing.qr`)}`,title:$(`panel.pairing.qrZoom`),className:`cursor-pointer text-foreground-muted hover:text-foreground-strong focus-visible:outline-none`,onClick:()=>C(!0),children:(0,W.jsxs)(`svg`,{viewBox:`0 0 24 24`,className:`size-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,children:[(0,W.jsx)(`circle`,{cx:`10.5`,cy:`10.5`,r:`6`}),(0,W.jsx)(`path`,{d:`m15 15 4.5 4.5M8.5 10.5h4M10.5 8.5v4`})]})}):null]}),H?(0,W.jsx)(`button`,{type:`button`,className:`cursor-zoom-in rounded-lg focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none`,onClick:()=>C(!0),"aria-label":`${$(`panel.pairing.qrZoom`)}:${$(`panel.pairing.qr`)}`,children:(0,W.jsx)(`div`,{className:`size-[320px] max-w-full rounded-lg bg-white p-3 [&_svg]:h-full [&_svg]:w-full`,dangerouslySetInnerHTML:{__html:H}})}):(0,W.jsx)(`div`,{className:`flex size-[320px] max-w-full items-center justify-center rounded-lg border border-border-muted text-xs text-foreground-muted`,children:h?(0,W.jsxs)(`div`,{className:`flex flex-col items-center gap-2 p-3 text-center`,children:[(0,W.jsx)(`span`,{role:`alert`,children:h}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,disabled:s,onClick:()=>void N(),children:$(`panel.console.retryPairing`)})]}):s?(0,W.jsx)(BE,{}):$(`panel.onboarding.noQr`)}),(0,W.jsx)(`p`,{className:`min-h-4 max-w-[320px] text-center text-xs leading-4 text-foreground-muted`,children:!F&&H?$(`panel.onboarding.relayNotConnected`):``})]}),(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col justify-center gap-3 md:col-start-2 md:row-start-1`,children:[(0,W.jsx)(`p`,{className:`text-center text-sm font-medium text-foreground-strong`,children:$(`panel.download.title`)}),(0,W.jsx)(Zk,{})]}),(0,W.jsxs)(`div`,{className:`w-full md:col-span-2 md:row-start-2 [&_dt]:text-foreground-strong`,children:[(0,W.jsxs)(rk,{children:[(0,W.jsx)(ek,{label:$(`panel.onboarding.direct`),children:(0,W.jsx)(ik,{tone:vg(t?.lan.state??`off`,!0),text:yg(t?.lan.state??`off`,!0)})}),(0,W.jsx)(ek,{label:$(`panel.connection.tunnel`),children:(0,W.jsx)(ik,{tone:gg(t?.tunnel.state??`off`),text:_g(t?.tunnel.state??`off`)})}),(0,W.jsx)(ek,{label:$(`panel.tailcat.title`),children:(0,W.jsxs)(`span`,{className:`inline-flex items-center justify-end gap-1.5`,children:[(0,W.jsx)(ik,{tone:ne,text:G}),te?(0,W.jsx)(`button`,{type:`button`,"aria-label":$(`panel.onboarding.tailcatWhy`),title:$(`panel.onboarding.tailcatWhy`),className:`cursor-pointer text-foreground-muted hover:text-foreground-strong focus-visible:outline-none`,onClick:()=>T(!0),children:(0,W.jsx)(EO,{})}):null]})}),(0,W.jsx)(ek,{label:$(`panel.selfcheck.firewall`),children:(0,W.jsx)(ik,{tone:k.tone,text:k.text,detail:k.detail})})]}),I?(0,W.jsx)(`p`,{className:`mt-2 text-sm leading-relaxed break-words ${mg[nN(A)]}`,children:iN(A)}):null,t!==null&&(t.lan.state===`error`||t.tunnel.state===`error`)?(0,W.jsxs)(JE,{className:`mt-2`,variant:`error`,children:[(0,W.jsx)(XE,{}),(0,W.jsx)(ZE,{children:t.lan.state===`error`?$(`panel.onboarding.lanFailed`):$(`panel.onboarding.relayFailed`)}),(0,W.jsx)(QE,{children:t.lan.state===`error`?t.lan.error?$(`panel.onboarding.lanErrorWithPort`,{error:t.lan.error}):$(`panel.onboarding.lanNoStart`):t.tunnel.error?$(`panel.onboarding.tunnelErrorHint`,{error:t.tunnel.error}):$(`panel.onboarding.tunnelNoStart`)})]}):null]})]}),(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2 px-4 py-4`,children:[(0,W.jsx)(`button`,{type:`button`,className:`cursor-pointer text-sm text-foreground-intense underline underline-offset-2 hover:text-foreground-strong`,onClick:()=>x(!0),children:$(`panel.onboarding.checkFirewall`)}),F?(0,W.jsx)(Q,{variant:`primary`,onClick:B,children:$(`panel.onboarding.enterPlugin`)}):(0,W.jsx)(Q,{variant:`primary`,disabled:s||r!==``,onClick:()=>void z(),children:$(s?`panel.onboarding.opening`:`panel.onboarding.connectRelay`)})]})]}),(0,W.jsx)(GM,{open:b,onOpenChange:x,port:P}),(0,W.jsx)(hD,{open:S,onOpenChange:C,children:(0,W.jsxs)(gD,{className:`w-[min(680px,94vw)] max-w-none`,closeLabel:$(`panel.common.close`),children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.pairing.qr`)})}),(0,W.jsx)(bD,{children:(0,W.jsx)(`div`,{className:`flex flex-col items-center gap-3`,children:(0,W.jsx)(`div`,{className:`flex items-center justify-center rounded-md bg-white p-4`,children:H?(0,W.jsx)(`div`,{className:`size-[min(72vh,600px)] [&_svg]:h-full [&_svg]:w-full`,dangerouslySetInnerHTML:{__html:H}}):null})})})]})}),(0,W.jsx)(hD,{open:w,onOpenChange:T,children:(0,W.jsxs)(gD,{className:`max-w-md`,closeLabel:$(`panel.common.close`),children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.tailcat.title`)})}),(0,W.jsxs)(bD,{className:`flex flex-col gap-2.5`,children:[(0,W.jsx)(`p`,{className:`text-xs leading-5 text-foreground-muted`,children:$(`panel.onboarding.tailcatWhat`)}),(0,W.jsx)(`p`,{className:`text-sm text-foreground`,children:$(`panel.onboarding.tailcat.${ee}`)}),(0,W.jsx)(Q,{variant:`outline`,size:`sm`,onClick:()=>{V().then(e=>D($(e?`panel.onboarding.copiedOk`:`panel.onboarding.copiedFailed`)))},children:$(`panel.onboarding.copyPromptHint`)}),E?(0,W.jsx)(`p`,{className:`text-xs text-foreground-muted`,children:E}):null]})]})})]})}function lN(e){let t=typeof e==`string`?e:e instanceof tO?e.code:``,n={"credentials-unavailable":`errorAuth`,REMOTE_AUTH:`errorAuth`,REMOTE_REVOKED:`errorAuth`,REMOTE_EXPIRED:`errorExpired`,REMOTE_TIMEOUT:`errorTimeout`,REMOTE_CONNECT:`errorConnect`,REMOTE_PROXY:`errorProxy`,REMOTE_PROXY_CONFIGURED:`errorProxyConfigured`,REMOTE_INTERCEPTED:`errorIntercepted`,REMOTE_HELPER_RESTARTING:`errorHelperRestarting`,REMOTE_INVITATION:`errorInvitation`,REMOTE_OPEN_URL:`invalidOpenUrl`,REMOTE_POPUP:`popupBlocked`,REMOTE_EXTERNAL_OPEN:`externalOpenFailed`,REMOTE_VERSION:`errorVersion`,SHELL_UNAVAILABLE:`shellUnavailable`,REMOTE_UNAVAILABLE:`errorUnavailable`,REMOTE_NOT_FOUND:`errorNotFound`,"bad-invite":`errorInvitation`,"bad-id":`errorBadRequest`,"bad-mode":`errorBadRequest`};return $(n[t]?`panel.remote.${n[t]}`:`panel.remote.failed`)}var uN=`/api/relay/remote-computers`,dN={list:()=>rO(uN),invite:()=>iO(`${uN}/invite`,{}),add:e=>iO(`${uN}/add`,{invite:e}),open:e=>iO(`${uN}/open`,{id:e}),openShell:e=>iO(`${uN}/open-shell`,{id:e}),diagnose:e=>iO(`${uN}/diagnose`,{id:e}),remove:e=>iO(`${uN}/remove`,{id:e}),mode:(e,t)=>iO(`${uN}/mode`,{id:e,mode:t}),revoke:e=>iO(`${uN}/revoke`,{deviceId:e})};function fN(e){return[`auto`,...new Set(e.map(e=>e.channel).filter(e=>e&&e!==`auto`&&e!==`direct`))]}function pN(e){let t;try{t=new URL(e)}catch{throw new tO($(`panel.remote.invalidOpenUrl`),`REMOTE_OPEN_URL`,0)}if(t.protocol!==`http:`||t.hostname!==`127.0.0.1`||!t.port||t.username||t.password)throw new tO($(`panel.remote.invalidOpenUrl`),`REMOTE_OPEN_URL`,0);return t.href}function mN(e){return e instanceof tO?e.code===`SHELL_UNAVAILABLE`||e.status===404||e.status===405||e.status===0:e instanceof TypeError}async function hN(e){try{let t=await dN.openShell(e);return pN(t.url),t.shellOpened===!1?{...await gN(e),shellOpened:!1}:t}catch(t){if(!mN(t))throw t;return{...await gN(e),shellMissing:!0}}}async function gN(e){let t=window.location.protocol===`http:`||window.location.protocol===`https:`,n=t?window.open(`about:blank`,`_blank`):null;if(t&&!n)throw new tO($(`panel.remote.popupBlocked`),`REMOTE_POPUP`,0);try{n&&(n.opener=null);let t=await dN.open(e),r=pN(t.url);if(n)n.location.replace(r);else try{let e=window.top;if(!e||e.location.origin!==window.location.origin)throw Error(`origin`);e.location.href=r}catch{throw new tO($(`panel.remote.externalOpenFailed`),`REMOTE_EXTERNAL_OPEN`,0)}return t}catch(e){throw n?.close(),e}}function _N(){return(0,W.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`size-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`13`,rx:`2`}),(0,W.jsx)(`path`,{d:`M8 21h8M12 17v4`})]})}function vN(){return(0,W.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`size-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`path`,{d:`M4 7h16`}),(0,W.jsx)(`path`,{d:`M9 7V4.5A1.5 1.5 0 0 1 10.5 3h3A1.5 1.5 0 0 1 15 4.5V7`}),(0,W.jsx)(`path`,{d:`M6 7l1 12.5A2 2 0 0 0 9 21h6a2 2 0 0 0 2-1.5L18 7`}),(0,W.jsx)(`path`,{d:`M10 11v6M14 11v6`})]})}function yN(e,t){let n={auto:`auto`,lan:`lan`,direct:`direct`,ipv6:`ipv6`,relay:`relay`,tunnel:`tailcat`,tailcat:`tailcat`,p2p:`p2p`,tcp:`tcp`};return e?e===`relay`&&t&&qk(t)?$(`panel.remote.channel.publicRelay`):n[e]?$(`panel.remote.channel.${n[e]}`):e:$(`panel.common.none`)}function bN(e){try{return new URL(e).host}catch{return e}}function xN(){let e=uO(),[t,n]=(0,g.useState)(null),[r,i]=(0,g.useState)(!1),[a,o]=(0,g.useState)(!1),[s,c]=(0,g.useState)(``),[l,u]=(0,g.useState)([]),[d,f]=(0,g.useState)(null),[p,m]=(0,g.useState)(null),[h,_]=(0,g.useState)(``),[v,y]=(0,g.useState)(!1),[b,x]=(0,g.useState)(null),[S,C]=(0,g.useState)(`auto`),[w,T]=(0,g.useState)(null),[E,D]=(0,g.useState)(!1),[O,k]=(0,g.useState)(0),A=(0,g.useRef)(0),j=(0,g.useRef)(!1),M=(0,g.useRef)(!1),N=(0,g.useCallback)(async()=>{if(!j.current){j.current=!0;try{let e=await dN.list();if(!M.current)return;A.current=e.serverNow-Date.now(),k(e.serverNow),n(e),o(!1),c(``)}catch(e){if(!M.current)return;let t=e instanceof tO&&e.status===403;o(t),c(t?``:lN(e)),t&&n(null)}finally{j.current=!1,M.current&&i(!0)}}},[]);(0,g.useEffect)(()=>{M.current=!0;let e=()=>{c_()&&(k(Date.now()+A.current),N())};e();let t=window.setInterval(e,3e3);return document.addEventListener(`visibilitychange`,e),()=>{M.current=!1,window.clearInterval(t),document.removeEventListener(`visibilitychange`,e)}},[N]);let P=e=>l.includes(e),F=e=>l.some(t=>t.endsWith(`:${e}`));async function I(t,r,i){if(!l.includes(t)){u(e=>[...e,t]);try{await r(),i&&e(`ok`,$(i)),await N()}catch(t){t instanceof tO&&t.status===403&&(o(!0),n(null),f(null),x(null),m(null)),e(`error`,t instanceof tO&&t.status===403?$(`panel.remote.localOnly`):lN(t))}finally{u(e=>e.filter(e=>e!==t))}}}async function L(t){if(!E){D(!0);try{T((await dN.diagnose(t.id)).routes)}catch(t){e(`error`,lN(t))}finally{D(!1)}}}function R(){m(null),y(!1),f(`invite`),I(`invite`,async()=>{m(await dN.invite())})}async function z(){if(!(!p||p.expiresAt<=O))try{await navigator.clipboard.writeText(p.invite),y(!1),e(`ok`,$(`panel.remote.copied`))}catch{y(!0)}}function B(t){I(`open:${t.id}`,async()=>{let n=await hN(t.id);n.shellMissing?e(`ok`,$(`panel.remote.shellUnavailable`)):n.shellOpened===!1&&e(`ok`,$(`panel.remote.shellFellBack`))})}function V(e){window.confirm($(`panel.remote.removeConfirm`,{name:e.name||e.instanceId}))&&I(`remove:${e.id}`,()=>dN.remove(e.id),`panel.remote.removed`)}let H=t?.devices??[],U=t?.authorizedComputers??[],ee=r&&!a&&t!==null,te=p!==null&&p.expiresAt<=O,G=d===`invite`?P(`invite`):d===`add`&&P(`add`),ne=b!==null&&P(`mode:${b.id}`);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`header`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,W.jsx)(`h1`,{className:`text-lg font-semibold text-foreground-strong`,children:$(`panel.remote.title`)}),(0,W.jsx)(`div`,{className:`flex flex-wrap items-center gap-1`,children:ee?(0,W.jsxs)(`span`,{className:`flex flex-wrap items-center gap-1.5`,children:[(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,className:`px-2 text-xs xl:px-4 xl:text-sm xl:before:border xl:before:border-border xl:before:bg-background`,disabled:P(`invite`),onClick:R,children:$(`panel.remote.createInvite`)}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,className:`px-2 text-xs xl:px-4 xl:text-sm xl:before:border xl:before:border-border xl:before:bg-background`,disabled:P(`add`),onClick:()=>{_(``),f(`add`)},children:$(`panel.remote.add`)})]}):null})]}),(0,W.jsxs)(cD,{frame:`solid`,className:`flex h-full min-h-0 flex-col`,children:[ee?(0,W.jsx)(`p`,{className:`mt-2 text-xs leading-5 text-foreground-muted`,children:$(`panel.remote.hint`)}):null,r?null:(0,W.jsxs)(`div`,{className:`flex items-center gap-2 py-2 text-sm text-foreground-muted`,children:[(0,W.jsx)(BE,{}),$(`panel.shell.readingStatus`)]}),a?(0,W.jsx)(`p`,{className:`mt-2 text-sm text-foreground-muted`,children:$(`panel.remote.localOnly`)}):null,s?(0,W.jsx)(`p`,{className:`mt-2 text-xs text-error`,children:s}):null,ee?(0,W.jsxs)(W.Fragment,{children:[H.length===0?(0,W.jsx)(`p`,{className:`mt-3 text-xs text-foreground-muted`,children:$(`panel.remote.empty`)}):null,(0,W.jsx)(`div`,{className:`mt-1 flex min-h-0 flex-1 flex-col`,children:H.map(e=>{let t=e.expiresAt??0,n=e.state===`expired`||t>0&&t<=O,r=e.state===`revoked`?`revoked`:n?`expired`:e.state,i=e.attached&&e.state!==`revoked`,a=F(e.id);return(0,W.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col justify-between gap-2 border-b border-border-muted py-2 last:border-b-0`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,W.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,W.jsx)(`span`,{className:`truncate text-sm text-foreground-strong`,children:e.name||e.instanceId}),(0,W.jsx)(nD,{variant:`secondary`,size:`xs`,children:$(`panel.remote.state.${r}`)})]}),(0,W.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1.5`,children:[(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,className:`px-2 text-xs xl:px-2 xl:text-sm`,disabled:a,onClick:()=>{C(e.mode),T(null),x(e)},children:$(`panel.remote.route`)}),i?(0,W.jsxs)(`span`,{className:`whitespace-nowrap px-1 text-xs text-foreground-muted`,children:[yN(e.mode,e.url),` · `,yN(e.channel,e.url),e.latencyMs!==null&&Number.isFinite(e.latencyMs)?` · ${Math.round(e.latencyMs)} ms`:``]}):(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,className:`px-2`,"aria-label":$(`panel.remote.open`),disabled:a||e.state===`revoked`||e.state===`connecting`,onClick:()=>B(e),children:(0,W.jsx)(_N,{})}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,className:`px-2`,"aria-label":$(`panel.remote.remove`),disabled:a,onClick:()=>V(e),children:(0,W.jsx)(vN,{})}),a?(0,W.jsx)(BE,{}):null]})]}),n&&e.state!==`revoked`?(0,W.jsx)(`p`,{className:`text-xs text-foreground-muted`,children:$(`panel.remote.expiredHint`)}):null,e.lastError||e.lastErrorCode?(0,W.jsx)(`p`,{className:`text-xs break-all text-error`,children:lN(e.lastErrorCode)}):null]},e.id)})}),U.length>0?(0,W.jsxs)(`div`,{className:`mt-1 border-t border-border-muted pt-2`,children:[(0,W.jsx)(`p`,{className:`text-xs text-foreground-muted`,children:$(`panel.remote.authorizedTitle`)}),U.map(e=>(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-2 border-b border-border-muted py-3 last:border-b-0`,children:[(0,W.jsx)(`div`,{className:`min-w-0`,children:(0,W.jsx)(`p`,{className:`truncate text-sm text-foreground-strong`,children:e.name||$(`panel.remote.unknownComputer`)})}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,className:`px-2`,"aria-label":$(`panel.remote.revoke`),disabled:P(`revoke:${e.deviceId}`),onClick:()=>{window.confirm($(`panel.remote.revokeConfirm`,{name:e.name||$(`panel.remote.unknownComputer`)}))&&I(`revoke:${e.deviceId}`,()=>dN.revoke(e.deviceId),`panel.remote.revoked`)},children:(0,W.jsx)(vN,{})})]},e.deviceId))]}):null]}):null,(0,W.jsx)(hD,{open:d!==null,onOpenChange:e=>{!e&&!G&&(f(null),m(null))},children:(0,W.jsxs)(gD,{className:`max-w-md`,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(d===`invite`?`panel.remote.createInvite`:`panel.remote.add`)})}),(0,W.jsxs)(bD,{className:`flex flex-col gap-3`,children:[d===`invite`||d===`add`?(0,W.jsx)(`p`,{className:`text-xs leading-5 text-foreground-muted`,children:$(d===`invite`?`panel.remote.inviteHint`:`panel.remote.addHint`)}):null,d===`invite`?p?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(Nj,{children:[(0,W.jsx)(Pj,{htmlFor:`remote-computer-invite`,children:$(`panel.remote.inviteLabel`)}),(0,W.jsx)(qj,{id:`remote-computer-invite`,rows:4,readOnly:!0,value:p.invite,onFocus:e=>e.target.select()})]}),(0,W.jsx)(`p`,{className:`text-xs text-foreground-muted`,children:$(te?`panel.remote.inviteExpired`:`panel.remote.inviteRemaining`,{minutes:Math.max(0,Math.ceil((p.expiresAt-O)/6e4))})}),v?(0,W.jsx)(`p`,{role:`status`,className:`text-xs text-foreground-muted`,children:$(`panel.remote.manualCopy`)}):null]}):G?(0,W.jsx)(BE,{}):null:(0,W.jsxs)(Nj,{children:[(0,W.jsx)(Pj,{htmlFor:`remote-computer-add`,children:$(`panel.remote.inviteLabel`)}),(0,W.jsx)(qj,{id:`remote-computer-add`,rows:4,value:h,onChange:e=>_(e.target.value),autoComplete:`off`,spellCheck:!1})]})]}),(0,W.jsxs)(xD,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(Q,{variant:`outline`,disabled:G,onClick:()=>{f(null),m(null)},children:$(`panel.common.close`)}),d===`invite`?(0,W.jsx)(Q,{variant:`primary`,disabled:G||!p||te,onClick:()=>void z(),children:$(`panel.remote.copy`)}):(0,W.jsx)(Q,{variant:`primary`,disabled:G||!h.trim(),onClick:()=>void I(`add`,async()=>{await dN.add(h.trim()),_(``),f(null)},`panel.remote.added`),children:$(`panel.remote.add`)})]})]})}),(0,W.jsx)(hD,{open:b!==null,onOpenChange:e=>{!e&&!ne&&(x(null),T(null))},children:(0,W.jsxs)(gD,{className:`max-w-sm`,children:[(0,W.jsx)(_D,{children:(0,W.jsx)(vD,{children:$(`panel.remote.route`)})}),(0,W.jsxs)(bD,{className:`flex flex-col gap-3 text-sm`,children:[(0,W.jsx)(`p`,{className:`text-xs leading-5 text-foreground-muted`,children:$(`panel.remote.routeHint`)}),b?.attached?(0,W.jsx)(`p`,{className:`text-xs leading-5 text-foreground-muted`,children:$(`panel.remote.routeReopenNote`)}):null,(0,W.jsx)(lj,{className:`flex flex-col gap-2`,value:S,onValueChange:e=>{typeof e==`string`&&C(e)},children:fN(b?.routes??[]).map(e=>{let t=(b?.routes??[]).find(t=>t.channel===e)?.url;return(0,W.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-2`,children:[(0,W.jsx)(qA,{value:e}),(0,W.jsx)(`span`,{children:yN(e,t)})]},e)})}),(0,W.jsxs)(`div`,{className:`border-t border-border-muted pt-2`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,W.jsx)(`span`,{className:`text-xs text-foreground-muted`,children:$(`panel.remote.diagnoseHint`)}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,className:`px-2 text-xs`,disabled:E,onClick:()=>{b&&L(b)},children:$(`panel.remote.diagnose`)})]}),E?(0,W.jsx)(BE,{}):null,w?(0,W.jsx)(`ul`,{className:`mt-1 flex flex-col gap-1`,children:w.map(e=>(0,W.jsxs)(`li`,{className:`flex items-center justify-between gap-2 text-xs`,children:[(0,W.jsxs)(`span`,{className:`truncate`,children:[yN(e.channel,e.url),` · `,bN(e.url)]}),(0,W.jsxs)(`span`,{className:`shrink-0 whitespace-nowrap text-foreground-muted`,children:[e.ok?$(`panel.remote.diagnoseOk`):$(`panel.remote.diagnoseFail`),e.ok&&e.latencyMs!==null?` · ${e.latencyMs} ms`:``,!e.ok&&e.errorCode?` · ${lN(e.errorCode)}`:``]})]},`${e.channel}:${e.url}`))}):null]})]}),(0,W.jsxs)(xD,{className:`flex justify-end gap-2`,children:[(0,W.jsx)(Q,{variant:`outline`,disabled:ne,onClick:()=>x(null),children:$(`panel.common.cancel`)}),(0,W.jsx)(Q,{variant:`primary`,disabled:ne||!fN(b?.routes??[]).includes(S),onClick:()=>{b&&I(`mode:${b.id}`,async()=>{await dN.mode(b.id,S),x(null)},`panel.remote.modeSaved`)},children:$(`panel.common.save`)})]})]})})]})]})}function SN(){return(0,W.jsxs)(`main`,{className:`mx-auto flex w-full max-w-5xl flex-col gap-3 p-5`,children:[(0,W.jsx)(`div`,{className:`flex items-center justify-end`,children:(0,W.jsx)(Ck,{})}),(0,W.jsx)(xN,{})]})}function CN(){let e=window.location.pathname.replace(/\/+$/,``),t=e.endsWith(`/setup`),n=e.endsWith(`/settings`),r=e.endsWith(`/remote`),i=!t&&!n&&!r,[a,o]=(0,g.useState)(n?!0:null),[s,c]=(0,g.useState)(``),[l,u]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{s?FM(`error`,s):(!i||a!==null)&&FM(`ready`)},[a,s,i]),(0,g.useEffect)(()=>{if(!i)return;let e=!0;return(async()=>{try{let t=await rO(`/api/relay/status`);e&&o(t.onboarded===!0||t.enabled===!0)}catch(t){e&&c(cO(t))}})(),()=>{e=!1}},[i]),s?(0,W.jsxs)(`main`,{className:`mx-auto flex w-full max-w-5xl flex-col gap-3 p-5`,children:[(0,W.jsx)(`p`,{className:`text-sm text-error`,role:`alert`,children:s}),(0,W.jsx)(Q,{variant:`ghost`,size:`sm`,onClick:()=>window.location.reload(),children:$(`panel.console.reload`)})]}):r?(0,W.jsx)(SN,{}):t?l?(0,W.jsx)(zM,{}):(0,W.jsx)(cN,{onDone:()=>u(!0)}):a===null?(0,W.jsxs)(`main`,{className:`flex min-h-screen items-center justify-center gap-2 p-6 text-sm text-foreground-muted`,children:[(0,W.jsx)(BE,{}),$(`panel.shell.loading`)]}):!a&&!l?(0,W.jsx)(cN,{onDone:()=>u(!0)}):(0,W.jsx)(zM,{})}function wN(){let e=xg();(0,g.useEffect)(()=>{typeof document<`u`&&(document.documentElement.lang=e,document.title=$(`panel.shell.title`))},[e]);let t=window.location.pathname.replace(/\/+$/,``),n=!/\/demo(\.html)?$/.test(t);return(0,g.useEffect)(()=>{if(n)return $g()},[n]),(0,g.useEffect)(()=>l_(),[]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(CN,{}),n?null:(0,W.jsx)(a_,{})]})}function TN(){if(!/Android/i.test(navigator.userAgent)||window.parent===window)return;let e=window.frameElement;e&&e.tagName===`IFRAME`&&e.classList.contains(`dshm_frame`)&&(e.style.transform=`translateZ(0)`,e.style.isolation=`isolate`,e.style.contain=`paint`)}TN();function EN(){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(wN,{}),(0,W.jsx)($u,{position:`top-right`})]})}(0,md.createRoot)(document.getElementById(`root`),{onUncaughtError:e=>FM(`error`,cO(e))}).render((0,W.jsx)(g.StrictMode,{children:(0,W.jsx)(Qu,{children:(0,W.jsx)(EN,{})})}));</script>
111
111
  <style>/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
112
112
  @supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-content:"";--gradient-glow-rotation:0deg;--border-beam-angle:0deg}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-content:"";--gradient-glow-rotation:0deg;--border-beam-angle:0deg}}:root:not(#\#),:host:not(#\#){--font-sans:var(--font-sans);--font-mono:var(--font-mono);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-xl:36rem;--container-4xl:56rem;--container-5xl:64rem;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--leading-relaxed:1.625;--radius-xs:var(--radius-xs);--radius-sm:var(--radius-sm);--radius-md:var(--radius-md);--radius-lg:var(--radius-lg);--radius-xl:var(--radius-xl);--radius-2xl:var(--radius-2xl);--radius-3xl:var(--radius-3xl);--radius-4xl:var(--radius-4xl);--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-sm:8px;--blur-md:12px;--blur-lg:16px;--blur-xl:24px;--blur-2xl:40px;--blur-3xl:64px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--radius:var(--radius);--color-border-intense:var(--border-intense);--radius-4xs:var(--radius-4xs);--radius-3xs:var(--radius-3xs);--radius-2xs:var(--radius-2xs);--opacity-disabled:var(--opacity-disabled)}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){:not(#\#):not(#\#)::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){:not(#\#):not(#\#)::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}:not(#\#):not(#\#),:not(#\#):not(#\#):after,:not(#\#):not(#\#):before{box-sizing:border-box;border:0 solid;margin:0;padding:0}:not(#\#):not(#\#)::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}:not(#\#):not(#\#)::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html:not(#\#):not(#\#),:host:not(#\#):not(#\#){-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr:not(#\#):not(#\#){height:0;color:inherit;border-top-width:1px}abbr:where([title]):not(#\#):not(#\#){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1:not(#\#):not(#\#),h2:not(#\#):not(#\#),h3:not(#\#):not(#\#),h4:not(#\#):not(#\#),h5:not(#\#):not(#\#),h6:not(#\#):not(#\#){font-size:inherit;font-weight:inherit}a:not(#\#):not(#\#){color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b:not(#\#):not(#\#),strong:not(#\#):not(#\#){font-weight:bolder}code:not(#\#):not(#\#),kbd:not(#\#):not(#\#),samp:not(#\#):not(#\#),pre:not(#\#):not(#\#){font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small:not(#\#):not(#\#){font-size:80%}sub:not(#\#):not(#\#),sup:not(#\#):not(#\#){vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub:not(#\#):not(#\#){bottom:-.25em}sup:not(#\#):not(#\#){top:-.5em}table:not(#\#):not(#\#){text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)):not(#\#):not(#\#){outline:auto}progress:not(#\#):not(#\#){vertical-align:baseline}summary:not(#\#):not(#\#){display:list-item}ol:not(#\#):not(#\#),ul:not(#\#):not(#\#),menu:not(#\#):not(#\#){list-style:none}img:not(#\#):not(#\#),svg:not(#\#):not(#\#),video:not(#\#):not(#\#),canvas:not(#\#):not(#\#),audio:not(#\#):not(#\#),iframe:not(#\#):not(#\#),embed:not(#\#):not(#\#),object:not(#\#):not(#\#){vertical-align:middle;display:block}img:not(#\#):not(#\#),video:not(#\#):not(#\#){max-width:100%;height:auto}button:not(#\#):not(#\#),input:not(#\#):not(#\#),select:not(#\#):not(#\#),optgroup:not(#\#):not(#\#),textarea:not(#\#):not(#\#){font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:not(#\#):not(#\#)::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])):not(#\#):not(#\#) optgroup{font-weight:bolder}:where(select:is([multiple],[size])):not(#\#):not(#\#) optgroup option{padding-inline-start:20px}:not(#\#):not(#\#)::file-selector-button{margin-inline-end:4px}:not(#\#):not(#\#)::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){:not(#\#):not(#\#)::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){:not(#\#):not(#\#)::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea:not(#\#):not(#\#){resize:vertical}:not(#\#):not(#\#)::-webkit-search-decoration{-webkit-appearance:none}:not(#\#):not(#\#)::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}:not(#\#):not(#\#)::-webkit-datetime-edit{display:inline-flex}:not(#\#):not(#\#)::-webkit-datetime-edit-fields-wrapper{padding:0}:not(#\#):not(#\#)::-webkit-datetime-edit{padding-block:0}:not(#\#):not(#\#)::-webkit-datetime-edit-year-field{padding-block:0}:not(#\#):not(#\#)::-webkit-datetime-edit-month-field{padding-block:0}:not(#\#):not(#\#)::-webkit-datetime-edit-day-field{padding-block:0}:not(#\#):not(#\#)::-webkit-datetime-edit-hour-field{padding-block:0}:not(#\#):not(#\#)::-webkit-datetime-edit-minute-field{padding-block:0}:not(#\#):not(#\#)::-webkit-datetime-edit-second-field{padding-block:0}:not(#\#):not(#\#)::-webkit-datetime-edit-millisecond-field{padding-block:0}:not(#\#):not(#\#)::-webkit-datetime-edit-meridiem-field{padding-block:0}:not(#\#):not(#\#)::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid:not(#\#):not(#\#){box-shadow:none}button:not(#\#):not(#\#),input:where([type=button],[type=reset],[type=submit]):not(#\#):not(#\#){-webkit-appearance:button;appearance:button}:not(#\#):not(#\#)::file-selector-button{-webkit-appearance:button;appearance:button}:not(#\#):not(#\#)::-webkit-inner-spin-button{height:auto}:not(#\#):not(#\#)::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])):not(#\#):not(#\#):not(#\#){display:none!important}:not(#\#):not(#\#){border-color:var(--border)}:focus-visible:not(#\#):not(#\#){outline-style:var(--tw-outline-style);outline-width:3px}:not(#\#):not(#\#)::selection{background-color:var(--selection-color)}body:not(#\#):not(#\#){background-color:var(--background);min-height:100dvh;color:var(--foreground);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:relative}.\@container:not(#\#):not(#\#):not(#\#):not(#\#){container-type:inline-size}.pointer-events-auto:not(#\#):not(#\#):not(#\#):not(#\#){pointer-events:auto}.pointer-events-none:not(#\#):not(#\#):not(#\#):not(#\#){pointer-events:none}.invisible:not(#\#):not(#\#):not(#\#):not(#\#){visibility:hidden}.visible:not(#\#):not(#\#):not(#\#):not(#\#){visibility:visible}.skeleton-shimmer:not(#\#):not(#\#):not(#\#):not(#\#){position:relative;overflow:hidden}.skeleton-shimmer:not(#\#):not(#\#):not(#\#):not(#\#):after{content:"";background:linear-gradient(90deg, transparent, var(--skeleton-highlight,currentColor), transparent);position:absolute;inset:0;transform:translate(-100%)}@supports (color:color-mix(in lab, red, red)){.skeleton-shimmer:not(#\#):not(#\#):not(#\#):not(#\#):after{background:linear-gradient(90deg, transparent, var(--skeleton-highlight,color-mix(in oklab, currentColor 12%, transparent)), transparent)}}.skeleton-shimmer:not(#\#):not(#\#):not(#\#):not(#\#):after{animation:1.6s ease-in-out infinite skeleton-shimmer}.sr-only:not(#\#):not(#\#):not(#\#):not(#\#){clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute:not(#\#):not(#\#):not(#\#):not(#\#){position:absolute}.fixed:not(#\#):not(#\#):not(#\#):not(#\#){position:fixed}.relative:not(#\#):not(#\#):not(#\#):not(#\#){position:relative}.static:not(#\#):not(#\#):not(#\#):not(#\#){position:static}.sticky:not(#\#):not(#\#):not(#\#):not(#\#){position:sticky}.inset-0:not(#\#):not(#\#):not(#\#):not(#\#){inset:0}.inset-x-0:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline:0}.inset-y-0:not(#\#):not(#\#):not(#\#):not(#\#){inset-block:0}.inset-s-0:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline-start:0}.start-5:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline-start:calc(var(--spacing) * 5)}.end-6:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline-end:calc(var(--spacing) * 6)}.inset-e-0:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline-end:0}.inset-e-3:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline-end:calc(var(--spacing) * 3)}.top-0:not(#\#):not(#\#):not(#\#):not(#\#){top:0}.top-3:not(#\#):not(#\#):not(#\#):not(#\#){top:calc(var(--spacing) * 3)}.top-4:not(#\#):not(#\#):not(#\#):not(#\#){top:calc(var(--spacing) * 4)}.top-6:not(#\#):not(#\#):not(#\#):not(#\#){top:calc(var(--spacing) * 6)}.top-px:not(#\#):not(#\#):not(#\#):not(#\#){top:1px}.right-0:not(#\#):not(#\#):not(#\#):not(#\#){right:0}.right-4:not(#\#):not(#\#):not(#\#):not(#\#){right:calc(var(--spacing) * 4)}.bottom-0:not(#\#):not(#\#):not(#\#):not(#\#){bottom:0}.bottom-4:not(#\#):not(#\#):not(#\#):not(#\#){bottom:calc(var(--spacing) * 4)}.bottom-px:not(#\#):not(#\#):not(#\#):not(#\#){bottom:1px}.left-0:not(#\#):not(#\#):not(#\#):not(#\#){left:0}.left-1\/2:not(#\#):not(#\#):not(#\#):not(#\#){left:50%}.left-4:not(#\#):not(#\#):not(#\#):not(#\#){left:calc(var(--spacing) * 4)}.isolate:not(#\#):not(#\#):not(#\#):not(#\#){isolation:isolate}.-z-10:not(#\#):not(#\#):not(#\#):not(#\#){z-index:calc(10 * -1)}.z-0:not(#\#):not(#\#):not(#\#):not(#\#){z-index:0}.z-1:not(#\#):not(#\#):not(#\#):not(#\#){z-index:1}.z-10:not(#\#):not(#\#):not(#\#):not(#\#){z-index:10}.z-40:not(#\#):not(#\#):not(#\#):not(#\#){z-index:40}.z-50:not(#\#):not(#\#):not(#\#):not(#\#){z-index:50}.z-\[80\]:not(#\#):not(#\#):not(#\#):not(#\#){z-index:80}.z-\[calc\(1000-var\(--toast-index\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){z-index:calc(1000 - var(--toast-index))}.container:not(#\#):not(#\#):not(#\#):not(#\#){width:100%}@media (min-width:40rem){.container:not(#\#):not(#\#):not(#\#):not(#\#){max-width:40rem}}@media (min-width:48rem){.container:not(#\#):not(#\#):not(#\#):not(#\#){max-width:48rem}}@media (min-width:64rem){.container:not(#\#):not(#\#):not(#\#):not(#\#){max-width:64rem}}@media (min-width:80rem){.container:not(#\#):not(#\#):not(#\#):not(#\#){max-width:80rem}}@media (min-width:96rem){.container:not(#\#):not(#\#):not(#\#):not(#\#){max-width:96rem}}.-m-0\.5:not(#\#):not(#\#):not(#\#):not(#\#){margin:calc(var(--spacing) * -.5)}.m-0\.5:not(#\#):not(#\#):not(#\#):not(#\#){margin:calc(var(--spacing) * .5)}.-mx-2:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline:calc(var(--spacing) * -2)}.-mx-5:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline:calc(var(--spacing) * -5)}.mx-auto:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline:auto}.my-1:not(#\#):not(#\#):not(#\#):not(#\#){margin-block:var(--spacing)}.my-1\.5:not(#\#):not(#\#):not(#\#):not(#\#){margin-block:calc(var(--spacing) * 1.5)}.-ms-0\.5:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-start:calc(var(--spacing) * -.5)}.-ms-1:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-start:calc(var(--spacing) * -1)}.-ms-2\.5:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-start:calc(var(--spacing) * -2.5)}.-ms-3:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-start:calc(var(--spacing) * -3)}.-ms-3\.5:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-start:calc(var(--spacing) * -3.5)}.-ms-4:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-start:calc(var(--spacing) * -4)}.ms-0:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-start:0}.ms-3:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-start:calc(var(--spacing) * 3)}.ms-auto:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-start:auto}.-me-0\.5:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-end:calc(var(--spacing) * -.5)}.-me-1:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-end:calc(var(--spacing) * -1)}.-me-1\.25:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-end:calc(var(--spacing) * -1.25)}.-me-1\.75:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-end:calc(var(--spacing) * -1.75)}.-me-2\.5:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-end:calc(var(--spacing) * -2.5)}.-me-2\.25:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-end:calc(var(--spacing) * -2.25)}.-me-3:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-end:calc(var(--spacing) * -3)}.-me-3\.5:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-end:calc(var(--spacing) * -3.5)}.me-0\.5:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-end:calc(var(--spacing) * .5)}.me-3:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-end:calc(var(--spacing) * 3)}.-mt-1:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:calc(var(--spacing) * -1)}.-mt-4:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:calc(var(--spacing) * -4)}.mt-0:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:0}.mt-1:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:var(--spacing)}.mt-1\.5:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:calc(var(--spacing) * 1.5)}.mt-2:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:calc(var(--spacing) * 2)}.mt-3:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:calc(var(--spacing) * 3)}.mt-4:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:calc(var(--spacing) * 4)}.mt-auto:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:auto}.-mr-1:not(#\#):not(#\#):not(#\#):not(#\#){margin-right:calc(var(--spacing) * -1)}.mr-1:not(#\#):not(#\#):not(#\#):not(#\#){margin-right:var(--spacing)}.-mb-3\.5:not(#\#):not(#\#):not(#\#):not(#\#){margin-bottom:calc(var(--spacing) * -3.5)}.-mb-5:not(#\#):not(#\#):not(#\#):not(#\#){margin-bottom:calc(var(--spacing) * -5)}.mb-1\.5:not(#\#):not(#\#):not(#\#):not(#\#){margin-bottom:calc(var(--spacing) * 1.5)}.mb-2:not(#\#):not(#\#):not(#\#):not(#\#){margin-bottom:calc(var(--spacing) * 2)}.ml-1:not(#\#):not(#\#):not(#\#):not(#\#){margin-left:var(--spacing)}.ml-2:not(#\#):not(#\#):not(#\#):not(#\#){margin-left:calc(var(--spacing) * 2)}.line-clamp-2:not(#\#):not(#\#):not(#\#):not(#\#){-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block:not(#\#):not(#\#):not(#\#):not(#\#){display:block}.contents:not(#\#):not(#\#):not(#\#):not(#\#){display:contents}.flex:not(#\#):not(#\#):not(#\#):not(#\#){display:flex}.grid:not(#\#):not(#\#):not(#\#):not(#\#){display:grid}.hidden:not(#\#):not(#\#):not(#\#):not(#\#){display:none}.inline:not(#\#):not(#\#):not(#\#):not(#\#){display:inline}.inline-block:not(#\#):not(#\#):not(#\#):not(#\#){display:inline-block}.inline-flex:not(#\#):not(#\#):not(#\#):not(#\#){display:inline-flex}.table:not(#\#):not(#\#):not(#\#):not(#\#){display:table}.table-caption:not(#\#):not(#\#):not(#\#):not(#\#){display:table-caption}.table-cell:not(#\#):not(#\#):not(#\#):not(#\#){display:table-cell}.table-row:not(#\#):not(#\#):not(#\#):not(#\#){display:table-row}.aspect-square:not(#\#):not(#\#):not(#\#):not(#\#){aspect-ratio:1}.size-\(--cell-size\):not(#\#):not(#\#):not(#\#):not(#\#){width:var(--cell-size);height:var(--cell-size)}.size-\(--rating-size\):not(#\#):not(#\#):not(#\#):not(#\#){width:var(--rating-size);height:var(--rating-size)}.size-2:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\.5:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-4\.5:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 4.5);height:calc(var(--spacing) * 4.5)}.size-5:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-11:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 11);height:calc(var(--spacing) * 11)}.size-12:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-44:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 44);height:calc(var(--spacing) * 44)}.size-56:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 56);height:calc(var(--spacing) * 56)}.size-\[0\.5em\]:not(#\#):not(#\#):not(#\#):not(#\#){width:.5em;height:.5em}.size-\[1\.12em\]:not(#\#):not(#\#):not(#\#):not(#\#){width:1.12em;height:1.12em}.size-\[1\.125em\]:not(#\#):not(#\#):not(#\#):not(#\#){width:1.125em;height:1.125em}.size-\[1\.778em\]:not(#\#):not(#\#):not(#\#):not(#\#){width:1.778em;height:1.778em}.size-\[1em\]:not(#\#):not(#\#):not(#\#):not(#\#){width:1em;height:1em}.size-\[18px\]:not(#\#):not(#\#):not(#\#):not(#\#){width:18px;height:18px}.size-\[30\%\]:not(#\#):not(#\#):not(#\#):not(#\#){width:30%;height:30%}.size-\[50\%\]:not(#\#):not(#\#):not(#\#):not(#\#){width:50%;height:50%}.size-\[56\%\]:not(#\#):not(#\#):not(#\#):not(#\#){width:56%;height:56%}.size-\[66\%\]:not(#\#):not(#\#):not(#\#):not(#\#){width:66%;height:66%}.size-\[320px\]:not(#\#):not(#\#):not(#\#):not(#\#){width:320px;height:320px}.size-\[min\(72vh\,600px\)\]:not(#\#):not(#\#):not(#\#):not(#\#){width:min(72vh,600px);height:min(72vh,600px)}.size-auto:not(#\#):not(#\#):not(#\#):not(#\#){width:auto;height:auto}.size-full:not(#\#):not(#\#):not(#\#):not(#\#){width:100%;height:100%}.\[height\:var\(--drawer-height\,auto\)\]:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--drawer-height,auto)}.h-\(--accordion-panel-height\):not(#\#):not(#\#):not(#\#):not(#\#){height:var(--accordion-panel-height)}.h-\(--cell-size\):not(#\#):not(#\#):not(#\#):not(#\#){height:var(--cell-size)}.h-\(--collapsible-panel-height\):not(#\#):not(#\#):not(#\#):not(#\#){height:var(--collapsible-panel-height)}.h-\(--popup-height\):not(#\#):not(#\#):not(#\#):not(#\#){height:var(--popup-height)}.h-\(--positioner-height\):not(#\#):not(#\#):not(#\#):not(#\#){height:var(--positioner-height)}.h-\(--textarea-h\):not(#\#):not(#\#):not(#\#):not(#\#){height:var(--textarea-h)}.h-1:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--spacing)}.h-1\.5:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(var(--spacing) * 1.5)}.h-4:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(var(--spacing) * 4)}.h-5:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(var(--spacing) * 5)}.h-6:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(var(--spacing) * 6)}.h-7:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(var(--spacing) * 7)}.h-8:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(var(--spacing) * 8)}.h-10:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(var(--spacing) * 10)}.h-12:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(var(--spacing) * 12)}.h-\[0\.2em\]\!:not(#\#){height:.2em!important}.h-\[0\.35em\]\!:not(#\#){height:.35em!important}.h-\[1em\]:not(#\#):not(#\#):not(#\#):not(#\#){height:1em}.h-\[calc\(100\%\+\(--spacing\(1\)\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(100% + (var(--spacing)))}.h-\[calc\(100dvh-1\.5rem-var\(--snap-offset\,0\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(100dvh - 1.5rem - var(--snap-offset,0))}.h-\[calc\(100dvh-1rem\)\]:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(100dvh - 1rem)}.h-\[min\(64vh\,560px\)\]:not(#\#):not(#\#):not(#\#):not(#\#){height:min(64vh,560px)}.h-\[var\(--height\)\]:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--height)}.h-auto:not(#\#):not(#\#):not(#\#):not(#\#){height:auto}.h-full:not(#\#):not(#\#):not(#\#):not(#\#){height:100%}.h-lh:not(#\#):not(#\#):not(#\#):not(#\#){height:1lh}.h-px:not(#\#):not(#\#):not(#\#):not(#\#){height:1px}.max-h-\(--available-height\):not(#\#):not(#\#):not(#\#):not(#\#){max-height:var(--available-height)}.max-h-\[60vh\]:not(#\#):not(#\#):not(#\#):not(#\#){max-height:60vh}.max-h-\[90vh\]:not(#\#):not(#\#):not(#\#):not(#\#){max-height:90vh}.max-h-\[calc\(100vh-13rem\)\]:not(#\#):not(#\#):not(#\#):not(#\#){max-height:calc(100vh - 13rem)}.max-h-full:not(#\#):not(#\#):not(#\#):not(#\#){max-height:100%}.min-h-0:not(#\#):not(#\#):not(#\#):not(#\#){min-height:0}.min-h-2:not(#\#):not(#\#):not(#\#):not(#\#){min-height:calc(var(--spacing) * 2)}.min-h-4:not(#\#):not(#\#):not(#\#):not(#\#){min-height:calc(var(--spacing) * 4)}.min-h-16:not(#\#):not(#\#):not(#\#):not(#\#){min-height:calc(var(--spacing) * 16)}.min-h-20:not(#\#):not(#\#):not(#\#):not(#\#){min-height:calc(var(--spacing) * 20)}.min-h-24:not(#\#):not(#\#):not(#\#):not(#\#){min-height:calc(var(--spacing) * 24)}.min-h-screen:not(#\#):not(#\#):not(#\#):not(#\#){min-height:100vh}.w-\(--active-tab-width\):not(#\#):not(#\#):not(#\#):not(#\#){width:var(--active-tab-width)}.w-\(--anchor-width\):not(#\#):not(#\#):not(#\#):not(#\#){width:var(--anchor-width)}.w-\(--popup-width\):not(#\#):not(#\#):not(#\#):not(#\#){width:var(--popup-width)}.w-\(--positioner-width\):not(#\#):not(#\#):not(#\#):not(#\#){width:var(--positioner-width)}.w-1\.5:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 1.5)}.w-3:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 3)}.w-4:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 4)}.w-5:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 5)}.w-6:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 6)}.w-7:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 7)}.w-7\.5:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 7.5)}.w-8:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 8)}.w-9\.5:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 9.5)}.w-10:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 10)}.w-11\.5:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 11.5)}.w-12:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 12)}.w-16:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 16)}.w-18:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 18)}.w-24:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 24)}.w-30:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 30)}.w-35:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 35)}.w-90:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 90)}.w-96:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 96)}.w-100:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 100)}.w-150:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 150)}.w-\[0\.8em\]\!:not(#\#){width:.8em!important}.w-\[1\.4em\]\!:not(#\#){width:1.4em!important}.w-\[calc\(100\%-var\(--border-width\)\*2\)\]:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(100% - var(--border-width) * 2)}.w-\[calc\(var\(--anchor-width\)\+1rem\)\]:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--anchor-width) + 1rem)}.w-\[min\(560px\,92vw\)\]:not(#\#):not(#\#):not(#\#):not(#\#){width:min(560px,92vw)}.w-\[min\(680px\,94vw\)\]:not(#\#):not(#\#):not(#\#):not(#\#){width:min(680px,94vw)}.w-\[min\(1100px\,92vw\)\]:not(#\#):not(#\#):not(#\#):not(#\#){width:min(1100px,92vw)}.w-\[min\(1200px\,92vw\)\]:not(#\#):not(#\#):not(#\#):not(#\#){width:min(1200px,92vw)}.w-auto:not(#\#):not(#\#):not(#\#):not(#\#){width:auto}.w-fit:not(#\#):not(#\#):not(#\#):not(#\#){width:fit-content}.w-full:not(#\#):not(#\#):not(#\#):not(#\#){width:100%}.w-max:not(#\#):not(#\#):not(#\#):not(#\#){width:max-content}.w-px:not(#\#):not(#\#):not(#\#):not(#\#){width:1px}.max-w-\(--available-width\):not(#\#):not(#\#):not(#\#):not(#\#){max-width:var(--available-width)}.max-w-4xl:not(#\#):not(#\#):not(#\#):not(#\#){max-width:var(--container-4xl)}.max-w-5xl:not(#\#):not(#\#):not(#\#):not(#\#){max-width:var(--container-5xl)}.max-w-60:not(#\#):not(#\#):not(#\#):not(#\#){max-width:calc(var(--spacing) * 60)}.max-w-72:not(#\#):not(#\#):not(#\#):not(#\#){max-width:calc(var(--spacing) * 72)}.max-w-80:not(#\#):not(#\#):not(#\#):not(#\#){max-width:calc(var(--spacing) * 80)}.max-w-\[62\%\]:not(#\#):not(#\#):not(#\#):not(#\#){max-width:62%}.max-w-\[200px\]:not(#\#):not(#\#):not(#\#):not(#\#){max-width:200px}.max-w-\[320px\]:not(#\#):not(#\#):not(#\#):not(#\#){max-width:320px}.max-w-\[1200px\]:not(#\#):not(#\#):not(#\#):not(#\#){max-width:1200px}.max-w-\[calc\(100vw-2rem\)\]:not(#\#):not(#\#):not(#\#):not(#\#){max-width:calc(100vw - 2rem)}.max-w-full:not(#\#):not(#\#):not(#\#):not(#\#){max-width:100%}.max-w-md:not(#\#):not(#\#):not(#\#):not(#\#){max-width:var(--container-md)}.max-w-none:not(#\#):not(#\#):not(#\#):not(#\#){max-width:none}.max-w-sm:not(#\#):not(#\#):not(#\#):not(#\#){max-width:var(--container-sm)}.max-w-xl:not(#\#):not(#\#):not(#\#):not(#\#){max-width:var(--container-xl)}.min-w-0:not(#\#):not(#\#):not(#\#):not(#\#){min-width:0}.min-w-2:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 2)}.min-w-3\.5:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 3.5)}.min-w-4:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 4)}.min-w-5:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 5)}.min-w-6:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 6)}.min-w-6\.5:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 6.5)}.min-w-7:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 7)}.min-w-8:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 8)}.min-w-8\.5:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 8.5)}.min-w-10:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 10)}.min-w-10\.5:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 10.5)}.min-w-12:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 12)}.min-w-15:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 15)}.min-w-36:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 36)}.min-w-40:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 40)}.min-w-48:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 48)}.min-w-50:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 50)}.min-w-56:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 56)}.min-w-\[5\.5rem\]:not(#\#):not(#\#):not(#\#):not(#\#){min-width:5.5rem}.min-w-max:not(#\#):not(#\#):not(#\#):not(#\#){min-width:max-content}.flex-1:not(#\#):not(#\#):not(#\#):not(#\#){flex:1}.flex-none:not(#\#):not(#\#):not(#\#):not(#\#){flex:none}.shrink:not(#\#):not(#\#):not(#\#):not(#\#){flex-shrink:1}.shrink-0:not(#\#):not(#\#):not(#\#):not(#\#){flex-shrink:0}.grow:not(#\#):not(#\#):not(#\#):not(#\#){flex-grow:1}.grow-0:not(#\#):not(#\#):not(#\#):not(#\#){flex-grow:0}.basis-full:not(#\#):not(#\#):not(#\#):not(#\#){flex-basis:100%}.caption-bottom:not(#\#):not(#\#):not(#\#):not(#\#){caption-side:bottom}.caption-top:not(#\#):not(#\#):not(#\#):not(#\#){caption-side:top}.border-collapse:not(#\#):not(#\#):not(#\#):not(#\#){border-collapse:collapse}.border-separate:not(#\#):not(#\#):not(#\#):not(#\#){border-collapse:separate}.border-spacing-0:not(#\#):not(#\#):not(#\#):not(#\#){--tw-border-spacing-x:0px;--tw-border-spacing-y:0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.origin-\(--transform-origin\):not(#\#):not(#\#):not(#\#):not(#\#){transform-origin:var(--transform-origin)}.origin-bottom:not(#\#):not(#\#):not(#\#):not(#\#){transform-origin:bottom}.origin-center:not(#\#):not(#\#):not(#\#):not(#\#){transform-origin:50%}.origin-left:not(#\#):not(#\#):not(#\#):not(#\#){transform-origin:0}.origin-right:not(#\#):not(#\#):not(#\#):not(#\#){transform-origin:100%}.origin-top:not(#\#):not(#\#):not(#\#):not(#\#){transform-origin:top}.-translate-x-1\/2:not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2:not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-full:not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[calc\(-50\%-2px\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90:not(#\#):not(#\#):not(#\#):not(#\#){rotate:-90deg}.rotate-45:not(#\#):not(#\#):not(#\#):not(#\#){rotate:45deg}.rotate-90:not(#\#):not(#\#):not(#\#):not(#\#){rotate:90deg}.rotate-180:not(#\#):not(#\#):not(#\#):not(#\#){rotate:180deg}.\[transform\:translateX\(calc\(var\(--drawer-swipe-movement-x\)\+var\(--stack-offset\)\)\)_scale\(var\(--stack-scale\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(calc(var(--drawer-swipe-movement-x) + var(--stack-offset))) scale(var(--stack-scale))}.\[transform\:translateX\(calc\(var\(--drawer-swipe-movement-x\)-var\(--stack-offset\)\)\)_scale\(var\(--stack-scale\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(calc(var(--drawer-swipe-movement-x) - var(--stack-offset))) scale(var(--stack-scale))}.\[transform\:translateX\(var\(--toast-swipe-movement-x\)\)_translateY\(calc\(var\(--toast-swipe-movement-y\)\+\(var\(--toast-index\)\*var\(--peek\)\)\+\(var\(--shrink\)\*var\(--height\)\)\)\)_scale\(var\(--scale\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(var(--toast-swipe-movement-x)) translateY(calc(var(--toast-swipe-movement-y) + (var(--toast-index) * var(--peek)) + (var(--shrink) * var(--height)))) scale(var(--scale))}.\[transform\:translateX\(var\(--toast-swipe-movement-x\)\)_translateY\(calc\(var\(--toast-swipe-movement-y\)-\(var\(--toast-index\)\*var\(--peek\)\)-\(var\(--shrink\)\*var\(--height\)\)\)\)_scale\(var\(--scale\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(var(--toast-swipe-movement-x)) translateY(calc(var(--toast-swipe-movement-y) - (var(--toast-index) * var(--peek)) - (var(--shrink) * var(--height)))) scale(var(--scale))}.\[transform\:translateY\(calc\(var\(--drawer-snap-point-offset\,0px\)\+var\(--drawer-swipe-movement-y\)\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateY(calc(var(--drawer-snap-point-offset,0px) + var(--drawer-swipe-movement-y)))}.\[transform\:translateY\(calc\(var\(--drawer-swipe-movement-y\)\+var\(--stack-offset\)\)\)_scale\(var\(--stack-scale\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateY(calc(var(--drawer-swipe-movement-y) + var(--stack-offset))) scale(var(--stack-scale))}.\[transform\:translateY\(calc\(var\(--drawer-swipe-movement-y\)-var\(--stack-offset\)\)\)_scale\(var\(--stack-scale\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateY(calc(var(--drawer-swipe-movement-y) - var(--stack-offset))) scale(var(--stack-scale))}.transform:not(#\#):not(#\#):not(#\#):not(#\#){transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.transform-gpu:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateZ(0) var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-\[toast-progress_linear_forwards\]:not(#\#):not(#\#):not(#\#):not(#\#){animation:linear forwards toast-progress}.animate-ping-paced:not(#\#):not(#\#):not(#\#):not(#\#){animation:2.5s cubic-bezier(0,0,.2,1) infinite ping-paced}.cursor-default:not(#\#):not(#\#):not(#\#):not(#\#){cursor:default}.cursor-not-allowed:not(#\#):not(#\#):not(#\#):not(#\#){cursor:not-allowed}.cursor-pointer:not(#\#):not(#\#):not(#\#):not(#\#){cursor:pointer}.cursor-zoom-in:not(#\#):not(#\#):not(#\#):not(#\#){cursor:zoom-in}.touch-pan-x:not(#\#):not(#\#):not(#\#):not(#\#){--tw-pan-x:pan-x;touch-action:var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)}.touch-pan-y:not(#\#):not(#\#):not(#\#):not(#\#){--tw-pan-y:pan-y;touch-action:var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)}.touch-pinch-zoom:not(#\#):not(#\#):not(#\#):not(#\#){--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)}.touch-none:not(#\#):not(#\#):not(#\#):not(#\#){touch-action:none}.resize:not(#\#):not(#\#):not(#\#):not(#\#){resize:both}.resize-none:not(#\#):not(#\#):not(#\#):not(#\#){resize:none}.resize-y:not(#\#):not(#\#):not(#\#):not(#\#){resize:vertical}.scrollbar-none:not(#\#):not(#\#):not(#\#):not(#\#){scrollbar-width:none}.columns-1:not(#\#):not(#\#):not(#\#):not(#\#){columns:1}.break-inside-avoid:not(#\#):not(#\#):not(#\#):not(#\#){break-inside:avoid}.\[grid-template-columns\:auto_1fr_auto\]:not(#\#):not(#\#):not(#\#):not(#\#){grid-template-columns:auto 1fr auto}.grid-cols-1:not(#\#):not(#\#):not(#\#):not(#\#){grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2:not(#\#):not(#\#):not(#\#):not(#\#){grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[1fr_auto\]:not(#\#):not(#\#):not(#\#):not(#\#){grid-template-columns:1fr auto}.grid-cols-\[auto_1fr_auto\]:not(#\#):not(#\#):not(#\#):not(#\#){grid-template-columns:auto 1fr auto}.grid-rows-\[0fr\]:not(#\#):not(#\#):not(#\#):not(#\#){grid-template-rows:0fr}.flex-col:not(#\#):not(#\#):not(#\#):not(#\#){flex-direction:column}.flex-col-reverse:not(#\#):not(#\#):not(#\#):not(#\#){flex-direction:column-reverse}.flex-row:not(#\#):not(#\#):not(#\#):not(#\#){flex-direction:row}.flex-row-reverse:not(#\#):not(#\#):not(#\#):not(#\#){flex-direction:row-reverse}.flex-wrap:not(#\#):not(#\#):not(#\#):not(#\#){flex-wrap:wrap}.place-items-center:not(#\#):not(#\#):not(#\#):not(#\#){place-items:center}.items-baseline:not(#\#):not(#\#):not(#\#):not(#\#){align-items:baseline}.items-center:not(#\#):not(#\#):not(#\#):not(#\#){align-items:center}.items-end:not(#\#):not(#\#):not(#\#):not(#\#){align-items:flex-end}.items-start:not(#\#):not(#\#):not(#\#):not(#\#){align-items:flex-start}.items-stretch:not(#\#):not(#\#):not(#\#):not(#\#){align-items:stretch}.justify-between:not(#\#):not(#\#):not(#\#):not(#\#){justify-content:space-between}.justify-center:not(#\#):not(#\#):not(#\#):not(#\#){justify-content:center}.justify-end:not(#\#):not(#\#):not(#\#):not(#\#){justify-content:flex-end}.justify-start:not(#\#):not(#\#):not(#\#):not(#\#){justify-content:flex-start}.gap-0\.5:not(#\#):not(#\#):not(#\#):not(#\#){gap:calc(var(--spacing) * .5)}.gap-0\.75:not(#\#):not(#\#):not(#\#):not(#\#){gap:calc(var(--spacing) * .75)}.gap-1:not(#\#):not(#\#):not(#\#):not(#\#){gap:var(--spacing)}.gap-1\.5:not(#\#):not(#\#):not(#\#):not(#\#){gap:calc(var(--spacing) * 1.5)}.gap-1\.25:not(#\#):not(#\#):not(#\#):not(#\#){gap:calc(var(--spacing) * 1.25)}.gap-2:not(#\#):not(#\#):not(#\#):not(#\#){gap:calc(var(--spacing) * 2)}.gap-2\.5:not(#\#):not(#\#):not(#\#):not(#\#){gap:calc(var(--spacing) * 2.5)}.gap-3:not(#\#):not(#\#):not(#\#):not(#\#){gap:calc(var(--spacing) * 3)}.gap-3\.5:not(#\#):not(#\#):not(#\#):not(#\#){gap:calc(var(--spacing) * 3.5)}.gap-4:not(#\#):not(#\#):not(#\#):not(#\#){gap:calc(var(--spacing) * 4)}.gap-4\.5:not(#\#):not(#\#):not(#\#):not(#\#){gap:calc(var(--spacing) * 4.5)}.gap-6:not(#\#):not(#\#):not(#\#):not(#\#){gap:calc(var(--spacing) * 6)}.gap-7:not(#\#):not(#\#):not(#\#):not(#\#){gap:calc(var(--spacing) * 7)}.gap-\[3\%\]:not(#\#):not(#\#):not(#\#):not(#\#){gap:3%}:where(.-space-y-\(--border-width\)>:not(:last-child)):not(#\#):not(#\#):not(#\#):not(#\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--border-width) * -1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--border-width) * -1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-\(--border-width\)>:not(:last-child)):not(#\#):not(#\#):not(#\#):not(#\#){--tw-space-y-reverse:0;margin-block-start:calc(var(--border-width) * var(--tw-space-y-reverse));margin-block-end:calc(var(--border-width) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-\[-0\.2em\]>:not(:last-child)):not(#\#):not(#\#):not(#\#):not(#\#){--tw-space-y-reverse:0;margin-block-start:calc(-.2em * var(--tw-space-y-reverse));margin-block-end:calc(-.2em * calc(1 - var(--tw-space-y-reverse)))}.gap-x-0:not(#\#):not(#\#):not(#\#):not(#\#){column-gap:0}.gap-x-2:not(#\#):not(#\#):not(#\#):not(#\#){column-gap:calc(var(--spacing) * 2)}.gap-x-3:not(#\#):not(#\#):not(#\#):not(#\#){column-gap:calc(var(--spacing) * 3)}.gap-x-6:not(#\#):not(#\#):not(#\#):not(#\#){column-gap:calc(var(--spacing) * 6)}.gap-x-8:not(#\#):not(#\#):not(#\#):not(#\#){column-gap:calc(var(--spacing) * 8)}:where(.-space-x-\(--border-width\)>:not(:last-child)):not(#\#):not(#\#):not(#\#):not(#\#){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--border-width) * -1) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--border-width) * -1) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-\(--border-width\)>:not(:last-child)):not(#\#):not(#\#):not(#\#):not(#\#){--tw-space-x-reverse:0;margin-inline-start:calc(var(--border-width) * var(--tw-space-x-reverse));margin-inline-end:calc(var(--border-width) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-\[-0\.2em\]>:not(:last-child)):not(#\#):not(#\#):not(#\#):not(#\#){--tw-space-x-reverse:0;margin-inline-start:calc(-.2em * var(--tw-space-x-reverse));margin-inline-end:calc(-.2em * calc(1 - var(--tw-space-x-reverse)))}.gap-y-1:not(#\#):not(#\#):not(#\#):not(#\#){row-gap:var(--spacing)}.gap-y-1\.5:not(#\#):not(#\#):not(#\#):not(#\#){row-gap:calc(var(--spacing) * 1.5)}.gap-y-2:not(#\#):not(#\#):not(#\#):not(#\#){row-gap:calc(var(--spacing) * 2)}.gap-y-4:not(#\#):not(#\#):not(#\#):not(#\#){row-gap:calc(var(--spacing) * 4)}.self-center:not(#\#):not(#\#):not(#\#):not(#\#){align-self:center}.self-start:not(#\#):not(#\#):not(#\#):not(#\#){align-self:flex-start}.self-stretch:not(#\#):not(#\#):not(#\#):not(#\#){align-self:stretch}.truncate:not(#\#):not(#\#):not(#\#):not(#\#){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto:not(#\#):not(#\#):not(#\#):not(#\#){overflow:auto}.overflow-hidden:not(#\#):not(#\#):not(#\#):not(#\#){overflow:hidden}.overflow-visible:not(#\#):not(#\#):not(#\#):not(#\#){overflow:visible}.overflow-x-hidden:not(#\#):not(#\#):not(#\#):not(#\#){overflow-x:hidden}.overflow-y-auto:not(#\#):not(#\#):not(#\#):not(#\#){overflow-y:auto}.overscroll-contain:not(#\#):not(#\#):not(#\#):not(#\#){overscroll-behavior:contain}.rounded:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:var(--radius)}.rounded-\(--card-radius\):not(#\#):not(#\#):not(#\#):not(#\#){border-radius:var(--card-radius)}.rounded-2xl:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:var(--radius-2xl)}.rounded-2xs:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:var(--radius-2xs)}.rounded-3xs:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:var(--radius-3xs)}.rounded-4xs:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:var(--radius-4xs)}.rounded-\[2px\]:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:2px}.rounded-\[3px\]:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:3px}.rounded-\[calc\(tan\(atan2\(var\(--radius-3xs\)\,1rem\)\)\*100\%\)\]:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:calc(tan(atan2(var(--radius-3xs), 1rem)) * 100%)}.rounded-\[calc\(tan\(atan2\(var\(--radius-md\)\,2\.5rem\)\)\*100\%\)\]:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:calc(tan(atan2(var(--radius-md), 2.5rem)) * 100%)}.rounded-\[calc\(tan\(atan2\(var\(--radius-sm\)\,2rem\)\)\*100\%\)\]:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:calc(tan(atan2(var(--radius-sm), 2rem)) * 100%)}.rounded-\[calc\(var\(--card-radius\)\*4\/3\)\]:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:calc(var(--card-radius) * 4 / 3)}.rounded-\[calc\(var\(--radius-2xl\)\*5\/6\)\]:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:calc(var(--radius-2xl) * 5 / 6)}.rounded-\[calc\(var\(--radius-xs\)-0\.0625rem\)\]:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:calc(var(--radius-xs) - .0625rem)}.rounded-\[inherit\]:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:inherit}.rounded-full:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:2147483647px}.rounded-lg:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:var(--radius-lg)}.rounded-md:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:var(--radius-md)}.rounded-none:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:0}.rounded-sm:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:var(--radius-sm)}.rounded-xl:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:var(--radius-xl)}.rounded-xs:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:var(--radius-xs)}.rounded-s-md:not(#\#):not(#\#):not(#\#):not(#\#){border-start-start-radius:var(--radius-md);border-end-start-radius:var(--radius-md)}.rounded-s-sm:not(#\#):not(#\#):not(#\#):not(#\#){border-start-start-radius:var(--radius-sm);border-end-start-radius:var(--radius-sm)}.rounded-s-xs:not(#\#):not(#\#):not(#\#):not(#\#){border-start-start-radius:var(--radius-xs);border-end-start-radius:var(--radius-xs)}.rounded-e-md:not(#\#):not(#\#):not(#\#):not(#\#){border-start-end-radius:var(--radius-md);border-end-end-radius:var(--radius-md)}.rounded-e-sm:not(#\#):not(#\#):not(#\#):not(#\#){border-start-end-radius:var(--radius-sm);border-end-end-radius:var(--radius-sm)}.rounded-e-xs:not(#\#):not(#\#):not(#\#):not(#\#){border-start-end-radius:var(--radius-xs);border-end-end-radius:var(--radius-xs)}.rounded-t-\[min\(var\(--radius-3xs\)\,35\%\)\]:not(#\#):not(#\#):not(#\#):not(#\#){border-top-left-radius:min(var(--radius-3xs), 35%);border-top-right-radius:min(var(--radius-3xs), 35%)}.rounded-t-none:not(#\#):not(#\#):not(#\#):not(#\#){border-top-left-radius:0;border-top-right-radius:0}.rounded-b-\[inherit\]:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.rounded-b-\[min\(var\(--radius-3xs\)\,35\%\)\]:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-right-radius:min(var(--radius-3xs), 35%);border-bottom-left-radius:min(var(--radius-3xs), 35%)}.rounded-b-none:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-right-radius:0;border-bottom-left-radius:0}.border:not(#\#):not(#\#):not(#\#):not(#\#){border-style:var(--tw-border-style);border-width:var(--border-width)}.border-2:not(#\#):not(#\#):not(#\#):not(#\#){border-style:var(--tw-border-style);border-width:2px}.border-3:not(#\#):not(#\#):not(#\#):not(#\#){border-style:var(--tw-border-style);border-width:3px}.border-s:not(#\#):not(#\#):not(#\#):not(#\#){border-inline-start-style:var(--tw-border-style);border-inline-start-width:var(--border-width)}.border-t:not(#\#):not(#\#):not(#\#):not(#\#){border-top-style:var(--tw-border-style);border-top-width:var(--border-width)}.border-b:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-style:var(--tw-border-style);border-bottom-width:var(--border-width)}.border-dashed:not(#\#):not(#\#):not(#\#):not(#\#){--tw-border-style:dashed;border-style:dashed}.border-double:not(#\#):not(#\#):not(#\#):not(#\#){--tw-border-style:double;border-style:double}.border-solid:not(#\#):not(#\#):not(#\#):not(#\#){--tw-border-style:solid;border-style:solid}.border-border:not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--border)}.border-border-inverse:not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--border-inverse)}.border-border-muted:not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--border-muted)}.border-border-overlay:not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--border-overlay)}.border-border-strong:not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--border-strong)}.border-current:not(#\#):not(#\#):not(#\#):not(#\#){border-color:currentColor}.border-error-soft:not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--error-soft)}.border-info-soft:not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--info-soft)}.border-primary:not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--primary)}.border-primary-soft:not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--primary-soft)}.border-secondary-soft:not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--secondary-soft)}.border-success-soft:not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--success-soft)}.border-transparent:not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.border-warning-soft:not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--warning-soft)}.border-white:not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--color-white)}.border-white\/15:not(#\#):not(#\#):not(#\#):not(#\#){border-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.border-white\/15:not(#\#):not(#\#):not(#\#):not(#\#){border-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.border-white\/25:not(#\#):not(#\#):not(#\#):not(#\#){border-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.border-white\/25:not(#\#):not(#\#):not(#\#):not(#\#){border-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}.bg-\(--progress-color\):not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--progress-color)}.bg-\(--sparkline-color\):not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--sparkline-color)}.bg-background:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background)}.bg-background-inverse:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background-inverse)}.bg-background-muted:not(#\#):not(#\#):not(#\#):not(#\#),.bg-background-muted\/60:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background-muted)}@supports (color:color-mix(in lab, red, red)){.bg-background-muted\/60:not(#\#):not(#\#):not(#\#):not(#\#){background-color:color-mix(in oklab, var(--background-muted) 60%, transparent)}}.bg-background-strong:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background-strong)}.bg-background-subtle:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background-subtle)}.bg-black\/30:not(#\#):not(#\#):not(#\#):not(#\#){background-color:#0000004d}@supports (color:color-mix(in lab, red, red)){.bg-black\/30:not(#\#):not(#\#):not(#\#):not(#\#){background-color:color-mix(in oklab, var(--color-black) 30%, transparent)}}.bg-border:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--border)}.bg-border-strong:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--border-strong)}.bg-current:not(#\#):not(#\#):not(#\#):not(#\#),.bg-current\/5:not(#\#):not(#\#):not(#\#):not(#\#){background-color:currentColor}@supports (color:color-mix(in lab, red, red)){.bg-current\/5:not(#\#):not(#\#):not(#\#):not(#\#){background-color:color-mix(in oklab, currentcolor 5%, transparent)}}.bg-current\/9:not(#\#):not(#\#):not(#\#):not(#\#){background-color:currentColor}@supports (color:color-mix(in lab, red, red)){.bg-current\/9:not(#\#):not(#\#):not(#\#):not(#\#){background-color:color-mix(in oklab, currentcolor 9%, transparent)}}.bg-current\/10:not(#\#):not(#\#):not(#\#):not(#\#){background-color:currentColor}@supports (color:color-mix(in lab, red, red)){.bg-current\/10:not(#\#):not(#\#):not(#\#):not(#\#){background-color:color-mix(in oklab, currentcolor 10%, transparent)}}.bg-current\/12:not(#\#):not(#\#):not(#\#):not(#\#){background-color:currentColor}@supports (color:color-mix(in lab, red, red)){.bg-current\/12:not(#\#):not(#\#):not(#\#):not(#\#){background-color:color-mix(in oklab, currentcolor 12%, transparent)}}.bg-current\/14:not(#\#):not(#\#):not(#\#):not(#\#){background-color:currentColor}@supports (color:color-mix(in lab, red, red)){.bg-current\/14:not(#\#):not(#\#):not(#\#):not(#\#){background-color:color-mix(in oklab, currentcolor 14%, transparent)}}.bg-current\/32:not(#\#):not(#\#):not(#\#):not(#\#){background-color:currentColor}@supports (color:color-mix(in lab, red, red)){.bg-current\/32:not(#\#):not(#\#):not(#\#):not(#\#){background-color:color-mix(in oklab, currentcolor 32%, transparent)}}.bg-current\/62:not(#\#):not(#\#):not(#\#):not(#\#){background-color:currentColor}@supports (color:color-mix(in lab, red, red)){.bg-current\/62:not(#\#):not(#\#):not(#\#):not(#\#){background-color:color-mix(in oklab, currentcolor 62%, transparent)}}.bg-error:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--error)}.bg-error-emphasis:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--error-emphasis)}.bg-error-muted:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--error-muted)}.bg-error-subtle:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--error-subtle)}.bg-foreground-intense:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--foreground-intense)}.bg-foreground-subtle:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--foreground-subtle)}.bg-info-muted:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--info-muted)}.bg-info-subtle:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--info-subtle)}.bg-primary:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--primary)}.bg-primary-foreground:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--primary-foreground)}.bg-primary-subtle:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--primary-subtle)}.bg-secondary:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--secondary)}.bg-secondary-muted:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--secondary-muted)}.bg-secondary-subtle:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--secondary-subtle)}.bg-success:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--success)}.bg-success-emphasis:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--success-emphasis)}.bg-success-muted:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--success-muted)}.bg-success-subtle:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--success-subtle)}.bg-transparent:not(#\#):not(#\#):not(#\#):not(#\#){background-color:#0000}.bg-warning:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--warning)}.bg-warning-emphasis:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--warning-emphasis)}.bg-warning-muted:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--warning-muted)}.bg-warning-subtle:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--warning-subtle)}.bg-white:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--color-white)}.bg-white\/10:not(#\#):not(#\#):not(#\#):not(#\#){background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.bg-white\/10:not(#\#):not(#\#):not(#\#):not(#\#){background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.bg-white\/25:not(#\#):not(#\#):not(#\#):not(#\#){background-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.bg-white\/25:not(#\#):not(#\#):not(#\#):not(#\#){background-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}.mask-intersect:not(#\#):not(#\#):not(#\#):not(#\#){-webkit-mask-composite:source-in;-webkit-mask-composite:source-in;-webkit-mask-composite:source-in;mask-composite:intersect}.mask-no-repeat:not(#\#):not(#\#):not(#\#):not(#\#){-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.fill-background-inverse:not(#\#):not(#\#):not(#\#):not(#\#){fill:var(--background-inverse)}.stroke-background-strong:not(#\#):not(#\#):not(#\#):not(#\#){stroke:var(--background-strong)}.stroke-border:not(#\#):not(#\#):not(#\#):not(#\#){stroke:var(--border)}.stroke-border-strong:not(#\#):not(#\#):not(#\#):not(#\#){stroke:var(--border-strong)}.stroke-primary:not(#\#):not(#\#):not(#\#):not(#\#){stroke:var(--primary)}.stroke-white:not(#\#):not(#\#):not(#\#):not(#\#){stroke:var(--color-white)}.stroke-white\/25:not(#\#):not(#\#):not(#\#):not(#\#){stroke:#ffffff40}@supports (color:color-mix(in lab, red, red)){.stroke-white\/25:not(#\#):not(#\#):not(#\#):not(#\#){stroke:color-mix(in oklab, var(--color-white) 25%, transparent)}}.stroke-0:not(#\#):not(#\#):not(#\#):not(#\#){stroke-width:0}.stroke-2:not(#\#):not(#\#):not(#\#):not(#\#){stroke-width:2px}.stroke-4\!:not(#\#){stroke-width:4px!important}.object-cover:not(#\#):not(#\#):not(#\#):not(#\#){object-fit:cover}.p-0:not(#\#):not(#\#):not(#\#):not(#\#){padding:0}.p-0\.5:not(#\#):not(#\#):not(#\#):not(#\#){padding:calc(var(--spacing) * .5)}.p-1:not(#\#):not(#\#):not(#\#):not(#\#){padding:var(--spacing)}.p-1\.5:not(#\#):not(#\#):not(#\#):not(#\#){padding:calc(var(--spacing) * 1.5)}.p-1\.25:not(#\#):not(#\#):not(#\#):not(#\#){padding:calc(var(--spacing) * 1.25)}.p-2:not(#\#):not(#\#):not(#\#):not(#\#){padding:calc(var(--spacing) * 2)}.p-2\.5:not(#\#):not(#\#):not(#\#):not(#\#){padding:calc(var(--spacing) * 2.5)}.p-3:not(#\#):not(#\#):not(#\#):not(#\#){padding:calc(var(--spacing) * 3)}.p-4:not(#\#):not(#\#):not(#\#):not(#\#){padding:calc(var(--spacing) * 4)}.p-5:not(#\#):not(#\#):not(#\#):not(#\#){padding:calc(var(--spacing) * 5)}.p-6:not(#\#):not(#\#):not(#\#):not(#\#){padding:calc(var(--spacing) * 6)}.p-\[calc\(var\(--rating-size\)\/6\)\]:not(#\#):not(#\#):not(#\#):not(#\#){padding:calc(var(--rating-size) / 6)}.p-px:not(#\#):not(#\#):not(#\#):not(#\#){padding:1px}.px-0:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:0}.px-0\.5:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * .5)}.px-1:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:var(--spacing)}.px-1\.5:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 1.5)}.px-1\.25:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 1.25)}.px-1\.75:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 1.75)}.px-2:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 2)}.px-2\.5:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 2.5)}.px-3:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 3)}.px-3\.5:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 3.5)}.px-4:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 4)}.px-4\.5:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 4.5)}.px-5:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 5)}.px-5\.5:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 5.5)}.px-6:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 6)}.px-\[calc\(var\(--cell-size\)\+0\.5rem\)\]:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--cell-size) + .5rem)}.py-0\.5:not(#\#):not(#\#):not(#\#):not(#\#){padding-block:calc(var(--spacing) * .5)}.py-1:not(#\#):not(#\#):not(#\#):not(#\#){padding-block:var(--spacing)}.py-1\.5:not(#\#):not(#\#):not(#\#):not(#\#){padding-block:calc(var(--spacing) * 1.5)}.py-2:not(#\#):not(#\#):not(#\#):not(#\#){padding-block:calc(var(--spacing) * 2)}.py-2\.5:not(#\#):not(#\#):not(#\#):not(#\#){padding-block:calc(var(--spacing) * 2.5)}.py-3:not(#\#):not(#\#):not(#\#):not(#\#){padding-block:calc(var(--spacing) * 3)}.py-3\.5:not(#\#):not(#\#):not(#\#):not(#\#){padding-block:calc(var(--spacing) * 3.5)}.py-4:not(#\#):not(#\#):not(#\#):not(#\#){padding-block:calc(var(--spacing) * 4)}.py-8:not(#\#):not(#\#):not(#\#):not(#\#){padding-block:calc(var(--spacing) * 8)}.ps-4:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 4)}.ps-4\!:not(#\#){padding-inline-start:calc(var(--spacing) * 4)!important}.ps-7:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 7)}.ps-10:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 10)}.ps-13:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 13)}.ps-16:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 16)}.pe-4\!:not(#\#){padding-inline-end:calc(var(--spacing) * 4)!important}.pt-1:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--spacing)}.pt-1\.5:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:calc(var(--spacing) * 1.5)}.pt-2:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:calc(var(--spacing) * 2)}.pt-2\.5:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:calc(var(--spacing) * 2.5)}.pt-3:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:calc(var(--spacing) * 3)}.pt-4:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:calc(var(--spacing) * 4)}.pt-4\!:not(#\#){padding-top:calc(var(--spacing) * 4)!important}.pt-6:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:calc(var(--spacing) * 6)}.pr-8:not(#\#):not(#\#):not(#\#):not(#\#){padding-right:calc(var(--spacing) * 8)}.pb-0\.5:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--spacing) * .5)}.pb-1:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:var(--spacing)}.pb-1\.5:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--spacing) * 1.5)}.pb-1\.25:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--spacing) * 1.25)}.pb-2:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--spacing) * 2)}.pb-3:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--spacing) * 3)}.pb-3\.5:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--spacing) * 3.5)}.pb-4:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--spacing) * 4)}.pb-4\!:not(#\#){padding-bottom:calc(var(--spacing) * 4)!important}.pb-5:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--spacing) * 5)}.pb-6:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--spacing) * 6)}.pb-24:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--spacing) * 24)}.text-center:not(#\#):not(#\#):not(#\#):not(#\#){text-align:center}.text-end:not(#\#):not(#\#):not(#\#):not(#\#){text-align:end}.text-left:not(#\#):not(#\#):not(#\#):not(#\#){text-align:left}.text-right:not(#\#):not(#\#):not(#\#):not(#\#){text-align:right}.text-start:not(#\#):not(#\#):not(#\#):not(#\#){text-align:start}.align-middle:not(#\#):not(#\#):not(#\#):not(#\#){vertical-align:middle}.font-mono:not(#\#):not(#\#):not(#\#):not(#\#){font-family:var(--font-mono)}.font-sans:not(#\#):not(#\#):not(#\#):not(#\#){font-family:var(--font-sans)}.text-2xl:not(#\#):not(#\#):not(#\#):not(#\#){font-size:1.5rem;line-height:var(--tw-leading,1.875rem)}.text-base:not(#\#):not(#\#):not(#\#):not(#\#){font-size:1rem;line-height:var(--tw-leading,1.5rem)}.text-lg:not(#\#):not(#\#):not(#\#):not(#\#){font-size:1.125rem;line-height:var(--tw-leading,1.625rem)}.text-sm:not(#\#):not(#\#):not(#\#):not(#\#){font-size:.875rem;line-height:var(--tw-leading,1.25rem)}.text-xl:not(#\#):not(#\#):not(#\#):not(#\#){font-size:1.25rem;line-height:var(--tw-leading,1.75rem)}.text-xs:not(#\#):not(#\#):not(#\#):not(#\#){font-size:.75rem;line-height:var(--tw-leading,1rem)}.text-\[\.625rem\]:not(#\#):not(#\#):not(#\#):not(#\#){font-size:.625rem}.text-\[0\.4em\]:not(#\#):not(#\#):not(#\#):not(#\#){font-size:.4em}.text-\[0\.8em\]:not(#\#):not(#\#):not(#\#):not(#\#){font-size:.8em}.text-\[1\.5rem\]:not(#\#):not(#\#):not(#\#):not(#\#){font-size:1.5rem}.text-\[1\.25rem\]:not(#\#):not(#\#):not(#\#):not(#\#){font-size:1.25rem}.text-\[1rem\]:not(#\#):not(#\#):not(#\#):not(#\#){font-size:1rem}.text-\[2\.5rem\]:not(#\#):not(#\#):not(#\#):not(#\#){font-size:2.5rem}.text-\[2rem\]:not(#\#):not(#\#):not(#\#):not(#\#){font-size:2rem}.text-\[3rem\]:not(#\#):not(#\#):not(#\#):not(#\#){font-size:3rem}.text-\[4rem\]:not(#\#):not(#\#):not(#\#):not(#\#){font-size:4rem}.text-\[5rem\]:not(#\#):not(#\#):not(#\#):not(#\#){font-size:5rem}.text-\[11px\]:not(#\#):not(#\#):not(#\#):not(#\#){font-size:11px}.leading-4:not(#\#):not(#\#):not(#\#):not(#\#){--tw-leading:calc(var(--spacing) * 4);line-height:calc(var(--spacing) * 4)}.leading-5:not(#\#):not(#\#):not(#\#):not(#\#){--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-6:not(#\#):not(#\#):not(#\#):not(#\#){--tw-leading:calc(var(--spacing) * 6);line-height:calc(var(--spacing) * 6)}.leading-none:not(#\#):not(#\#):not(#\#):not(#\#){--tw-leading:1;line-height:1}.leading-relaxed:not(#\#):not(#\#):not(#\#):not(#\#){--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-medium:not(#\#):not(#\#):not(#\#):not(#\#){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal:not(#\#):not(#\#):not(#\#):not(#\#){--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold:not(#\#):not(#\#):not(#\#):not(#\#){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-words:not(#\#):not(#\#):not(#\#):not(#\#),.wrap-break-word:not(#\#):not(#\#):not(#\#):not(#\#){overflow-wrap:break-word}.break-all:not(#\#):not(#\#):not(#\#):not(#\#){word-break:break-all}.whitespace-nowrap:not(#\#):not(#\#):not(#\#):not(#\#){white-space:nowrap}.whitespace-pre:not(#\#):not(#\#):not(#\#):not(#\#){white-space:pre}.whitespace-pre-line:not(#\#):not(#\#):not(#\#):not(#\#){white-space:pre-line}.whitespace-pre-wrap:not(#\#):not(#\#):not(#\#):not(#\#){white-space:pre-wrap}.text-\(--pattern-color\):not(#\#):not(#\#):not(#\#):not(#\#){color:var(--pattern-color)}.text-background:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--background)}.text-background-muted:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--background-muted)}.text-border:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--border)}.text-border-overlay:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--border-overlay)}.text-border-strong:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--border-strong)}.text-current:not(#\#):not(#\#):not(#\#):not(#\#),.text-current\/20:not(#\#):not(#\#):not(#\#):not(#\#){color:currentColor}@supports (color:color-mix(in lab, red, red)){.text-current\/20:not(#\#):not(#\#):not(#\#):not(#\#){color:color-mix(in oklab, currentcolor 20%, transparent)}}.text-error:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--error)}.text-error-emphasis:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--error-emphasis)}.text-error-foreground:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--error-foreground)}.text-foreground:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground)}.text-foreground-emphasis:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground-emphasis)}.text-foreground-intense:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground-intense)}.text-foreground-inverse:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground-inverse)}.text-foreground-muted:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground-muted)}.text-foreground-strong:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground-strong)}.text-foreground-subtle:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground-subtle)}.text-info-emphasis:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--info-emphasis)}.text-info-foreground:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--info-foreground)}.text-primary:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--primary)}.text-primary-foreground:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--primary-foreground)}.text-primary-soft:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--primary-soft)}.text-secondary-emphasis:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--secondary-emphasis)}.text-secondary-foreground:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--secondary-foreground)}.text-success:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--success)}.text-success-emphasis:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--success-emphasis)}.text-success-foreground:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--success-foreground)}.text-warning:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--warning)}.text-warning-emphasis:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--warning-emphasis)}.text-warning-foreground:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--warning-foreground)}.text-white:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--color-white)}.uppercase:not(#\#):not(#\#):not(#\#):not(#\#){text-transform:uppercase}.tabular-nums:not(#\#):not(#\#):not(#\#):not(#\#){--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through:not(#\#):not(#\#):not(#\#):not(#\#){text-decoration-line:line-through}.underline:not(#\#):not(#\#):not(#\#):not(#\#){text-decoration-line:underline}.underline-offset-2:not(#\#):not(#\#):not(#\#):not(#\#){text-underline-offset:2px}.caret-transparent:not(#\#):not(#\#):not(#\#):not(#\#){caret-color:#0000}.opacity-\(--gradient-glow-opacity\):not(#\#):not(#\#):not(#\#):not(#\#){opacity:var(--gradient-glow-opacity)}.opacity-0:not(#\#):not(#\#):not(#\#):not(#\#){opacity:0}.opacity-25:not(#\#):not(#\#):not(#\#):not(#\#){opacity:.25}.opacity-50:not(#\#):not(#\#):not(#\#):not(#\#){opacity:.5}.opacity-60:not(#\#):not(#\#):not(#\#):not(#\#){opacity:.6}.opacity-65:not(#\#):not(#\#):not(#\#):not(#\#){opacity:.65}.opacity-100:not(#\#):not(#\#):not(#\#):not(#\#){opacity:1}.opacity-\[calc\(1-var\(--drawer-swipe-progress\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){opacity:calc(1 - var(--drawer-swipe-progress))}.opacity-disabled:not(#\#):not(#\#):not(#\#):not(#\#){opacity:var(--opacity-disabled)}.shadow-2xl:not(#\#):not(#\#):not(#\#):not(#\#){--tw-shadow:0 24px 32px -12px var(--tw-shadow-color,var(--shadow-color));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xs:not(#\#):not(#\#):not(#\#):not(#\#){--tw-shadow:0 1px var(--tw-shadow-color,var(--shadow-color));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[-24px_0_32px_-12px_var\(--shadow-color\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-shadow:-24px 0 32px -12px var(--tw-shadow-color,var(--shadow-color));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_-8px_16px_-4px_var\(--shadow-color\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-shadow:0 -8px 16px -4px var(--tw-shadow-color,var(--shadow-color));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_-24px_32px_-12px_var\(--shadow-color\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-shadow:0 -24px 32px -12px var(--tw-shadow-color,var(--shadow-color));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[24px_0_32px_-12px_var\(--shadow-color\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-shadow:24px 0 32px -12px var(--tw-shadow-color,var(--shadow-color));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg:not(#\#):not(#\#):not(#\#):not(#\#){--tw-shadow:0 8px 16px -4px var(--tw-shadow-color,var(--shadow-color));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md:not(#\#):not(#\#):not(#\#):not(#\#){--tw-shadow:0 4px 8px -2px var(--tw-shadow-color,var(--shadow-color));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs:not(#\#):not(#\#):not(#\#):not(#\#){--tw-shadow:0 1px 4px 0 var(--tw-shadow-color,var(--shadow-color));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring:not(#\#):not(#\#):not(#\#):not(#\#),.ring-1:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.inset-ring-1:not(#\#):not(#\#):not(#\#):not(#\#){--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-background:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--background)}.ring-black\/20:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:#0003}@supports (color:color-mix(in lab, red, red)){.ring-black\/20:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:color-mix(in oklab, var(--color-black) 20%, transparent)}}.ring-border:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--border)}.inset-ring-black\/20:not(#\#):not(#\#):not(#\#):not(#\#){--tw-inset-ring-color:#0003}@supports (color:color-mix(in lab, red, red)){.inset-ring-black\/20:not(#\#):not(#\#):not(#\#):not(#\#){--tw-inset-ring-color:color-mix(in oklab, var(--color-black) 20%, transparent)}}.outline-hidden:not(#\#):not(#\#):not(#\#):not(#\#){--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden:not(#\#):not(#\#):not(#\#):not(#\#){outline-offset:2px;outline:2px solid #0000}}.outline:not(#\#):not(#\#):not(#\#):not(#\#){outline-style:var(--tw-outline-style);outline-width:1px}.outline-offset-1:not(#\#):not(#\#):not(#\#):not(#\#){outline-offset:1px}.outline-offset-2:not(#\#):not(#\#):not(#\#):not(#\#){outline-offset:2px}.outline-ring:not(#\#):not(#\#):not(#\#):not(#\#){outline-color:var(--focus-ring)}.outline-ring-error:not(#\#):not(#\#):not(#\#):not(#\#){outline-color:var(--focus-ring-error)}.outline-ring-info:not(#\#):not(#\#):not(#\#):not(#\#){outline-color:var(--focus-ring-info)}.outline-ring-input:not(#\#):not(#\#):not(#\#):not(#\#){outline-color:var(--focus-ring-input)}.outline-ring-light:not(#\#):not(#\#):not(#\#):not(#\#){outline-color:var(--focus-ring-light)}.outline-ring-primary:not(#\#):not(#\#):not(#\#):not(#\#){outline-color:var(--focus-ring-primary)}.outline-ring-secondary:not(#\#):not(#\#):not(#\#):not(#\#){outline-color:var(--focus-ring-secondary)}.outline-ring-success:not(#\#):not(#\#):not(#\#):not(#\#){outline-color:var(--focus-ring-success)}.outline-ring-warning:not(#\#):not(#\#):not(#\#):not(#\#){outline-color:var(--focus-ring-warning)}.blur:not(#\#):not(#\#):not(#\#):not(#\#){--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-2xl:not(#\#):not(#\#):not(#\#):not(#\#){--tw-blur:blur(var(--blur-2xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-3xl:not(#\#):not(#\#):not(#\#):not(#\#){--tw-blur:blur(var(--blur-3xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-lg:not(#\#):not(#\#):not(#\#):not(#\#){--tw-blur:blur(var(--blur-lg));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-md:not(#\#):not(#\#):not(#\#):not(#\#){--tw-blur:blur(var(--blur-md));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-sm:not(#\#):not(#\#):not(#\#):not(#\#){--tw-blur:blur(var(--blur-sm));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-xl:not(#\#):not(#\#):not(#\#):not(#\#){--tw-blur:blur(var(--blur-xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter:not(#\#):not(#\#):not(#\#):not(#\#){filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-lg:not(#\#):not(#\#):not(#\#):not(#\#){--tw-backdrop-blur:blur(var(--blur-lg));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-md:not(#\#):not(#\#):not(#\#):not(#\#){--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm:not(#\#):not(#\#):not(#\#):not(#\#){--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-xl:not(#\#):not(#\#):not(#\#):not(#\#){--tw-backdrop-blur:blur(var(--blur-xl));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\]:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:background-color,border-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[height\]:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[opacity\,color\]:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:opacity,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[opacity\,filter\]:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:opacity,filter;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[opacity\,scale\]:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:opacity,scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[opacity\,translate\,scale\]:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:opacity,translate,scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[stroke-dashoffset\]:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:stroke-dashoffset;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[transform\,border-radius\]:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:transform,border-radius;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[translate\,width\,height\]:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:translate,width,height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,background-color\]:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:width,background-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,opacity\]:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:width,height,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.delay-150:not(#\#):not(#\#):not(#\#):not(#\#){transition-delay:.15s}.duration-150:not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.15s;transition-duration:.15s}.duration-200:not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.2s;transition-duration:.2s}.duration-250:not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.25s;transition-duration:.25s}.duration-300:not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.3s;transition-duration:.3s}.duration-400:not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.4s;transition-duration:.4s}.duration-500:not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.5s;transition-duration:.5s}.duration-\[300ms\,250ms\,250ms\]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.3s,.25s,.25s;transition-duration:.3s,.25s,.25s}.ease-\[cubic-bezier\(0\.32\,0\.72\,0\,1\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:cubic-bezier(.32,.72,0,1);transition-timing-function:cubic-bezier(.32,.72,0,1)}.ease-\[cubic-bezier\(0\.65\,0\,0\.35\,1\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:cubic-bezier(.65,0,.35,1);transition-timing-function:cubic-bezier(.65,0,.35,1)}.ease-\[cubic-bezier\(0\.175\,0\.885\,0\.32\,1\.5\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:cubic-bezier(.175,.885,.32,1.5);transition-timing-function:cubic-bezier(.175,.885,.32,1.5)}.ease-\[ease-out\,cubic-bezier\(0\.175\,0\.885\,0\.32\,1\.5\)\,cubic-bezier\(0\.175\,0\.885\,0\.32\,1\.5\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:ease-out,cubic-bezier(.175,.885,.32,1.5),cubic-bezier(.175,.885,.32,1.5);transition-timing-function:ease-out,cubic-bezier(.175,.885,.32,1.5),cubic-bezier(.175,.885,.32,1.5)}.ease-in:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-out:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.forced-color-adjust-none:not(#\#):not(#\#):not(#\#):not(#\#){forced-color-adjust:none}.outline-none:not(#\#):not(#\#):not(#\#):not(#\#){--tw-outline-style:none;outline-style:none}.select-all:not(#\#):not(#\#):not(#\#):not(#\#){-webkit-user-select:all;user-select:all}.select-none:not(#\#):not(#\#):not(#\#):not(#\#){-webkit-user-select:none;user-select:none}.\[--card-radius\:var\(--radius-xl\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--card-radius:var(--radius-xl)}.\[--cell-size\:--spacing\(6\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--cell-size:calc(var(--spacing) * 6)}.\[--cell-size\:--spacing\(8\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--cell-size:calc(var(--spacing) * 8)}.\[--cell-size\:--spacing\(10\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--cell-size:calc(var(--spacing) * 10)}.\[--gap\:0\.75rem\]:not(#\#):not(#\#):not(#\#):not(#\#){--gap:.75rem}.\[--gradient-glow-opacity\:1\]:not(#\#):not(#\#):not(#\#):not(#\#){--gradient-glow-opacity:1}.\[--height\:var\(--toast-frontmost-height\,var\(--toast-height\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--height:var(--toast-frontmost-height,var(--toast-height))}.\[--indent-transition\:calc\(1-clamp\(0\,calc\(var\(--drawer-swipe-progress\)\*100000\)\,1\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--indent-transition:calc(1 - clamp(0, calc(var(--drawer-swipe-progress) * 100000), 1))}.\[--offset-y\:calc\(var\(--toast-offset-y\)\*-1\+calc\(var\(--toast-index\)\*var\(--gap\)\*-1\)\+var\(--toast-swipe-movement-y\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--offset-y:calc(var(--toast-offset-y) * -1 + calc(var(--toast-index) * var(--gap) * -1) + var(--toast-swipe-movement-y))}.\[--offset-y\:calc\(var\(--toast-offset-y\)\+\(var\(--toast-index\)\*var\(--gap\)\)\+var\(--toast-swipe-movement-y\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--offset-y:calc(var(--toast-offset-y) + (var(--toast-index) * var(--gap)) + var(--toast-swipe-movement-y))}.\[--pattern-color\:var\(--color-border-intense\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--pattern-color:var(--color-border-intense)}.\[--pattern-highlight\:var\(--spotlight-size\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--pattern-highlight:var(--spotlight-size)}.\[--peek\:0\.75rem\]:not(#\#):not(#\#):not(#\#):not(#\#){--peek:.75rem}.\[--scale\:calc\(max\(0\,1-\(var\(--toast-index\)\*0\.1\)\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--scale:calc(max(0, 1 - (var(--toast-index) * .1)))}.\[--shrink\:calc\(1-var\(--scale\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--shrink:calc(1 - var(--scale))}.\[--snap-offset\:var\(--drawer-snap-point-offset\,0px\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--snap-offset:var(--drawer-snap-point-offset,0px)}.\[--spotlight-size\:200px\]:not(#\#):not(#\#):not(#\#):not(#\#){--spotlight-size:200px}.\[--stack-count\:max\(0\,calc\(var\(--nested-drawers\,0\)-var\(--stack-progress\)\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--stack-count:max(0, calc(var(--nested-drawers,0) - var(--stack-progress)))}.\[--stack-extent\:25rem\]:not(#\#):not(#\#):not(#\#):not(#\#){--stack-extent:25rem}.\[--stack-extent\:var\(--drawer-frontmost-height\,var\(--drawer-height\,0px\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--stack-extent:var(--drawer-frontmost-height,var(--drawer-height,0px))}.\[--stack-offset\:calc\(var\(--stack-peek\)\+var\(--stack-shrink\)\*var\(--stack-extent\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--stack-offset:calc(var(--stack-peek) + var(--stack-shrink) * var(--stack-extent))}.\[--stack-peek\:calc\(var\(--stack-count\)\*1\.5rem\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--stack-peek:calc(var(--stack-count) * 1.5rem)}.\[--stack-progress\:clamp\(0\,var\(--drawer-swipe-progress\,0\)\,1\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--stack-progress:clamp(0, var(--drawer-swipe-progress,0), 1)}.\[--stack-scale\:clamp\(0\,calc\(1-var\(--stack-step\)\*var\(--stack-count\)\)\,1\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--stack-scale:clamp(0, calc(1 - var(--stack-step) * var(--stack-count)), 1)}.\[--stack-shrink\:calc\(1-var\(--stack-scale\)\)\]:not(#\#):not(#\#):not(#\#):not(#\#){--stack-shrink:calc(1 - var(--stack-scale))}.\[--stack-step\:0\.05\]:not(#\#):not(#\#):not(#\#):not(#\#){--stack-step:.05}.\[animation-play-state\:paused\]:not(#\#):not(#\#):not(#\#):not(#\#){animation-play-state:paused}.\[animation-play-state\:running\]:not(#\#):not(#\#):not(#\#):not(#\#){animation-play-state:running}.\[grid-area\:actions\]:not(#\#):not(#\#):not(#\#):not(#\#){grid-area:actions}.\[grid-area\:close\]:not(#\#):not(#\#):not(#\#):not(#\#){grid-area:close}.\[grid-area\:description\]:not(#\#):not(#\#):not(#\#):not(#\#){grid-area:description}.\[grid-area\:icon\]:not(#\#):not(#\#):not(#\#):not(#\#){grid-area:icon}.\[grid-area\:title\]:not(#\#):not(#\#):not(#\#):not(#\#){grid-area:title}.\[grid-template-areas\:\'icon_title_close\'\]:not(#\#):not(#\#):not(#\#):not(#\#){grid-template-areas:"icon title close"}.\[grid-template-areas\:\'icon_title_close\'_\'\._description_\.\'_\'\._actions_actions\'\]:not(#\#):not(#\#):not(#\#):not(#\#){grid-template-areas:"icon title close"".description."".actions actions"}.\[stroke-dasharray\:2\.5_2\]:not(#\#):not(#\#):not(#\#):not(#\#){stroke-dasharray:2.5 2}.\[stroke-dashoffset\:1\.02\]:not(#\#):not(#\#):not(#\#):not(#\#){stroke-dashoffset:1.02px}.\[transition\:opacity_500ms_ease-out\,scale_150ms_ease-out\,translate_150ms_ease-out\]:not(#\#):not(#\#):not(#\#):not(#\#){transition:opacity .5s ease-out,scale .15s ease-out,translate .15s ease-out}.\[transition\:scale_150ms_ease-out\,translate_150ms_ease-out\]:not(#\#):not(#\#):not(#\#):not(#\#){transition:scale .15s ease-out,translate .15s ease-out}.\[transition\:transform_0\.5s_cubic-bezier\(0\.22\,1\,0\.36\,1\)\,opacity_0\.5s\,height_0\.15s\]:not(#\#):not(#\#):not(#\#):not(#\#){transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .5s,height .15s}.ring-inset:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-inset:inset}:is(.\*\:relative>*):not(#\#):not(#\#):not(#\#):not(#\#){position:relative}:is(.\*\:size-full>*):not(#\#):not(#\#):not(#\#):not(#\#){width:100%;height:100%}:is(.\*\:shrink-0>*):not(#\#):not(#\#):not(#\#):not(#\#){flex-shrink:0}:is(.\*\:\[grid-area\:1\/1\]>*):not(#\#):not(#\#):not(#\#):not(#\#){grid-area:1/1}.not-placeholder-shown\:text-transparent:not(:placeholder-shown):not(#\#):not(#\#):not(#\#):not(#\#){color:#0000}.not-placeholder-shown\:caret-transparent:not(:placeholder-shown):not(#\#):not(#\#):not(#\#):not(#\#){caret-color:#0000}.not-has-\[\>\[data-slot\=alert-dialog-footer\]\]\:pb-6:not(:has(>[data-slot=alert-dialog-footer])):not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--spacing) * 6)}.not-has-\[\>\[data-slot\=alert-dialog-header\]\]\:pt-6:not(:has(>[data-slot=alert-dialog-header])):not(#\#):not(#\#):not(#\#):not(#\#){padding-top:calc(var(--spacing) * 6)}.not-has-\[\>\[data-slot\=dialog-footer\]\]\:pb-6:not(:has(>[data-slot=dialog-footer])):not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--spacing) * 6)}.not-has-\[\>\[data-slot\=dialog-header\]\]\:pt-6:not(:has(>[data-slot=dialog-header])):not(#\#):not(#\#):not(#\#):not(#\#){padding-top:calc(var(--spacing) * 6)}.not-has-\[\>\[data-slot\=drawer-footer\]\]\:pb-6:not(:has(>[data-slot=drawer-footer])):not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--spacing) * 6)}.not-has-\[\>\[data-slot\=drawer-header\]\]\:pt-6:not(:has(>[data-slot=drawer-header])):not(#\#):not(#\#):not(#\#):not(#\#){padding-top:calc(var(--spacing) * 6)}.group-focus-within\:scale-110:is(:where(.group):focus-within *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-focus-within\:scale-125:is(:where(.group):focus-within *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}@media (hover:hover){.group-hover\:scale-110:is(:where(.group):hover *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:scale-125:is(:where(.group):hover *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\/beam\:opacity-100:is(:where(.group\/beam):hover *):not(#\#):not(#\#):not(#\#):not(#\#){opacity:1}.group-hover\/beam\:\[animation-play-state\:running\]:is(:where(.group\/beam):hover *):not(#\#):not(#\#):not(#\#):not(#\#){animation-play-state:running}.group-hover\/chip\:opacity-100:is(:where(.group\/chip):hover *):not(#\#):not(#\#):not(#\#):not(#\#){opacity:1}.group-hover\/glow\:opacity-\(--gradient-glow-opacity\):is(:where(.group\/glow):hover *):not(#\#):not(#\#):not(#\#):not(#\#){opacity:var(--gradient-glow-opacity)}.group-hover\/glow\:\[animation-play-state\:running\]:is(:where(.group\/glow):hover *):not(#\#):not(#\#):not(#\#):not(#\#){animation-play-state:running}}.group-active\/beam\:translate-y-px:is(:where(.group\/beam):active *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.group-active\/beam\:scale-\[0\.97\]:is(:where(.group\/beam):active *):not(#\#):not(#\#):not(#\#):not(#\#){scale:.97}.group-active\/beam\:opacity-100:is(:where(.group\/beam):active *):not(#\#):not(#\#):not(#\#):not(#\#){opacity:1}.group-active\/beam\:\[animation-play-state\:running\]:is(:where(.group\/beam):active *):not(#\#):not(#\#):not(#\#):not(#\#){animation-play-state:running}.group-active\/color-control\:scale-125:is(:where(.group\/color-control):active *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-active\/glow\:translate-y-px:is(:where(.group\/glow):active *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.group-active\/glow\:scale-\[0\.97\]:is(:where(.group\/glow):active *):not(#\#):not(#\#):not(#\#):not(#\#){scale:.97}.group-active\/glow\:opacity-\(--gradient-glow-opacity\):is(:where(.group\/glow):active *):not(#\#):not(#\#):not(#\#):not(#\#){opacity:var(--gradient-glow-opacity)}.group-active\/glow\:\[animation-play-state\:running\]:is(:where(.group\/glow):active *):not(#\#):not(#\#):not(#\#):not(#\#){animation-play-state:running}.group-active\/trigger\:translate-y-px:is(:where(.group\/trigger):active *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.group-active\/trigger\:scale-\[0\.97\]:is(:where(.group\/trigger):active *):not(#\#):not(#\#):not(#\#):not(#\#){scale:.97}.group-active\/trigger\:duration-100:is(:where(.group\/trigger):active *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.1s;transition-duration:.1s}.group-active\/trigger\:ease-in-out:is(:where(.group\/trigger):active *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.group-has-data-\[slot\=combobox-chip\]\/combobox-chips\:pe-2:is(:where(.group\/combobox-chips):has([data-slot=combobox-chip]) *):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 2)}.group-has-data-\[slot\=combobox-chip\]\/combobox-chips\:pe-2\.5:is(:where(.group\/combobox-chips):has([data-slot=combobox-chip]) *):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 2.5)}.group-has-data-\[slot\=combobox-chip\]\/combobox-chips\:pe-3:is(:where(.group\/combobox-chips):has([data-slot=combobox-chip]) *):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 3)}.group-has-data-\[slot\=combobox-chip\]\/combobox-chips\:pt-1:is(:where(.group\/combobox-chips):has([data-slot=combobox-chip]) *):not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--spacing)}.group-has-data-\[slot\=combobox-chip\]\/combobox-chips\:pt-1\.5:is(:where(.group\/combobox-chips):has([data-slot=combobox-chip]) *):not(#\#):not(#\#):not(#\#):not(#\#){padding-top:calc(var(--spacing) * 1.5)}.group-has-data-\[slot\=combobox-chip\]\/combobox-chips\:pt-2\.5:is(:where(.group\/combobox-chips):has([data-slot=combobox-chip]) *):not(#\#):not(#\#):not(#\#):not(#\#){padding-top:calc(var(--spacing) * 2.5)}.group-data-checked\/check\:opacity-100:is(:where(.group\/check)[data-checked] *):not(#\#):not(#\#):not(#\#):not(#\#){opacity:1}.group-data-checked\/check\:\[stroke-dashoffset\:0\]:is(:where(.group\/check)[data-checked] *):not(#\#):not(#\#):not(#\#):not(#\#){stroke-dashoffset:0}.group-data-copied\/copy\:scale-50:is(:where(.group\/copy)[data-copied] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-scale-x:50%;--tw-scale-y:50%;--tw-scale-z:50%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-data-copied\/copy\:opacity-0:is(:where(.group\/copy)[data-copied] *):not(#\#):not(#\#):not(#\#):not(#\#){opacity:0}.group-data-copied\/copy\:delay-0:is(:where(.group\/copy)[data-copied] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-delay:0s}.group-data-copied\/copy\:delay-100:is(:where(.group\/copy)[data-copied] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-delay:.1s}.group-data-copied\/copy\:duration-350:is(:where(.group\/copy)[data-copied] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.35s;transition-duration:.35s}.group-data-copied\/copy\:ease-out:is(:where(.group\/copy)[data-copied] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.group-data-copied\/copy\:\[stroke-dashoffset\:0\]:is(:where(.group\/copy)[data-copied] *):not(#\#):not(#\#):not(#\#):not(#\#){stroke-dashoffset:0}.group-data-disabled\/color-control\:border:is(:where(.group\/color-control)[data-disabled] *):not(#\#):not(#\#):not(#\#):not(#\#){border-style:var(--tw-border-style);border-width:var(--border-width)}.group-data-disabled\/color-control\:border-dashed:is(:where(.group\/color-control)[data-disabled] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-border-style:dashed;border-style:dashed}.group-data-disabled\/color-control\:ring-0:is(:where(.group\/color-control)[data-disabled] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-disabled\/submenu-trigger\:pointer-events-none:is(:where(.group\/submenu-trigger)[data-disabled] *):not(#\#):not(#\#):not(#\#):not(#\#){pointer-events:none}.group-data-disabled\/submenu-trigger\:opacity-disabled:is(:where(.group\/submenu-trigger)[data-disabled] *):not(#\#):not(#\#):not(#\#):not(#\#){opacity:var(--opacity-disabled)}.group-data-dragging\/color-control\:scale-125:is(:where(.group\/color-control)[data-dragging] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-data-empty\/autocomplete-content\:block:is(:where(.group\/autocomplete-content)[data-empty] *):not(#\#):not(#\#):not(#\#):not(#\#),.group-data-empty\/combobox-content\:block:is(:where(.group\/combobox-content)[data-empty] *):not(#\#):not(#\#):not(#\#):not(#\#){display:block}.group-data-expanded\/toast\:\[animation-play-state\:paused\]:is(:where(.group\/toast)[data-expanded] *):not(#\#):not(#\#):not(#\#):not(#\#){animation-play-state:paused}.group-data-highlighted\/submenu-trigger\:not-data-disabled\:text-foreground-intense:is(:where(.group\/submenu-trigger)[data-highlighted] *):not([data-disabled]):not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground-intense)}.group-data-inset\/card\:rounded-\[calc\(var\(--card-radius\)\*3\/4\)\]:is(:where(.group\/card)[data-inset] *):not(#\#):not(#\#):not(#\#):not(#\#){border-radius:calc(var(--card-radius) * 3 / 4)}.group-data-inset\/card\:px-4:is(:where(.group\/card)[data-inset] *):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 4)}.group-data-inset\/card\:pb-4:is(:where(.group\/card)[data-inset] *):not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--spacing) * 4)}.group-data-nested\/alert-dialog-popup\:rounded-none:is(:where(.group\/alert-dialog-popup)[data-nested] *):not(#\#):not(#\#):not(#\#):not(#\#){border-radius:0}.group-data-nested\/alert-dialog-popup\:bg-transparent:is(:where(.group\/alert-dialog-popup)[data-nested] *):not(#\#):not(#\#):not(#\#):not(#\#){background-color:#0000}.group-data-open\/accordion-item\:rotate-90:is(:where(.group\/accordion-item)[data-open] *):not(#\#):not(#\#):not(#\#):not(#\#){rotate:90deg}.group-data-open\/accordion-item\:rotate-180:is(:where(.group\/accordion-item)[data-open] *):not(#\#):not(#\#):not(#\#):not(#\#),.group-data-popup-open\/autocomplete-icon\:rotate-180:is(:where(.group\/autocomplete-icon)[data-popup-open] *):not(#\#):not(#\#):not(#\#):not(#\#),.group-data-popup-open\/combobox-toggle\:rotate-180:is(:where(.group\/combobox-toggle)[data-popup-open] *):not(#\#):not(#\#):not(#\#):not(#\#),.group-data-popup-open\/combobox-trigger\:rotate-180:is(:where(.group\/combobox-trigger)[data-popup-open] *):not(#\#):not(#\#):not(#\#):not(#\#){rotate:180deg}.group-data-popup-open\/navigation-menu-icon\:rotate-90:is(:where(.group\/navigation-menu-icon)[data-popup-open] *):not(#\#):not(#\#):not(#\#):not(#\#){rotate:90deg}.group-data-popup-open\/navigation-menu-icon\:rotate-180:is(:where(.group\/navigation-menu-icon)[data-popup-open] *):not(#\#):not(#\#):not(#\#):not(#\#){rotate:180deg}.group-data-popup-open\/submenu-trigger\:not-data-disabled\:text-foreground-intense:is(:where(.group\/submenu-trigger)[data-popup-open] *):not([data-disabled]):not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground-intense)}.group-data-selected\/check\:opacity-100:is(:where(.group\/check)[data-selected] *):not(#\#):not(#\#):not(#\#):not(#\#){opacity:1}.group-data-selected\/check\:\[stroke-dashoffset\:0\]:is(:where(.group\/check)[data-selected] *):not(#\#):not(#\#):not(#\#):not(#\#){stroke-dashoffset:0}.group-data-\[side\=bottom\]\/popup\:border-t-2:is(:where(.group\/popup)[data-side=bottom] *):not(#\#):not(#\#):not(#\#):not(#\#){border-top-style:var(--tw-border-style);border-top-width:2px}.group-data-\[side\=inline-end\]\/popup\:border-s-2:is(:where(.group\/popup)[data-side=inline-end] *):not(#\#):not(#\#):not(#\#):not(#\#){border-inline-start-style:var(--tw-border-style);border-inline-start-width:2px}.group-data-\[side\=inline-start\]\/popup\:border-e-2:is(:where(.group\/popup)[data-side=inline-start] *):not(#\#):not(#\#):not(#\#):not(#\#){border-inline-end-style:var(--tw-border-style);border-inline-end-width:2px}.group-data-\[side\=left\]\/popup\:border-r-2:is(:where(.group\/popup)[data-side=left] *):not(#\#):not(#\#):not(#\#):not(#\#){border-right-style:var(--tw-border-style);border-right-width:2px}.group-data-\[side\=right\]\/popup\:border-l-2:is(:where(.group\/popup)[data-side=right] *):not(#\#):not(#\#):not(#\#):not(#\#){border-left-style:var(--tw-border-style);border-left-width:2px}.group-data-\[side\=top\]\/popup\:border-b-2:is(:where(.group\/popup)[data-side=top] *):not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.peer-not-placeholder-shown\:pointer-events-auto:is(:where(.peer):not(:placeholder-shown)~*):not(#\#):not(#\#):not(#\#):not(#\#){pointer-events:auto}.peer-not-placeholder-shown\:opacity-100:is(:where(.peer):not(:placeholder-shown)~*):not(#\#):not(#\#):not(#\#):not(#\#){opacity:1}.peer-placeholder-shown\:invisible:is(:where(.peer):placeholder-shown~*):not(#\#):not(#\#):not(#\#):not(#\#){visibility:hidden}.placeholder\:text-foreground-subtle:not(#\#):not(#\#):not(#\#):not(#\#)::placeholder{color:var(--foreground-subtle)}.before\:pointer-events-none:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);pointer-events:none}.before\:absolute:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);position:absolute}.before\:inset-0:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);inset:0}.before\:-inset-s-px:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);inset-inline-start:-1px}.before\:inset-s-1\.5:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);inset-inline-start:calc(var(--spacing) * 1.5)}.before\:inset-e-1\.5:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);inset-inline-end:calc(var(--spacing) * 1.5)}.before\:top-\(--toc-indicator-top\):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);top:var(--toc-indicator-top)}.before\:top-1\.5:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);top:calc(var(--spacing) * 1.5)}.before\:top-1\/2:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);top:50%}.before\:bottom-1\.5:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);bottom:calc(var(--spacing) * 1.5)}.before\:left-1\/2:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);left:50%}.before\:-z-1:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);z-index:calc(1 * -1)}.before\:-z-10:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);z-index:calc(10 * -1)}.before\:h-\(--toc-indicator-height\):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);height:var(--toc-indicator-height)}.before\:h-1:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);height:var(--spacing)}.before\:h-11\.5:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);height:calc(var(--spacing) * 11.5)}.before\:w-0\.5:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);width:calc(var(--spacing) * .5)}.before\:w-1:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);width:var(--spacing)}.before\:w-11\.5:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);width:calc(var(--spacing) * 11.5)}.before\:-translate-x-1\/2:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.before\:-translate-y-1\/2:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.before\:rounded-\[inherit\]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-radius:inherit}.before\:rounded-full:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-radius:2147483647px}.before\:border:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-style:var(--tw-border-style);border-width:var(--border-width)}.before\:border-border:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:var(--border)}.before\:border-primary:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:var(--primary)}.before\:border-transparent:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:#0000}.before\:border-white\/10:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.before\:border-white\/10:not(#\#):not(#\#):not(#\#):not(#\#):before{border-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.before\:bg-background:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background)}.before\:bg-background-muted:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background-muted)}.before\:bg-background-strong:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background-strong)}.before\:bg-foreground-intense:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--foreground-intense)}.before\:bg-primary:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--primary)}.before\:bg-white\/10:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.before\:bg-white\/10:not(#\#):not(#\#):not(#\#):not(#\#):before{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.before\:bg-\[radial-gradient\(138\.15\%_78\.13\%_at_52\.05\%_50\%\,var\(--error\)_0\%\,var\(--error-muted\)_95\%\)\]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-image:radial-gradient(138.15% 78.13% at 52.05% 50%,var(--error) 0%,var(--error-muted) 95%)}.before\:bg-\[radial-gradient\(138\.15\%_78\.13\%_at_52\.05\%_50\%\,var\(--primary\)_0\%\,var\(--primary-muted\)_80\%\)\]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-image:radial-gradient(138.15% 78.13% at 52.05% 50%,var(--primary) 0%,var(--primary-muted) 80%)}.before\:bg-\[radial-gradient\(138\.15\%_78\.13\%_at_52\.05\%_50\%\,var\(--secondary\)_0\%\,var\(--secondary-muted\)_95\%\)\]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-image:radial-gradient(138.15% 78.13% at 52.05% 50%,var(--secondary) 0%,var(--secondary-muted) 95%)}.before\:opacity-0:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);opacity:0}.before\:opacity-0\!:not(#\#):before{opacity:0!important}.before\:opacity-0\!:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content)}.before\:opacity-100:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);opacity:1}.before\:backdrop-blur-md:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.before\:transition-\[opacity\,background-color\,border-color\]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);transition-property:opacity,background-color,border-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.before\:transition-\[top\,height\,opacity\]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);transition-property:top,height,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.before\:transition-all:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.before\:transition-colors:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.before\:transition-opacity:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.before\:duration-250:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);--tw-duration:.25s;transition-duration:.25s}.before\:duration-300:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);--tw-duration:.3s;transition-duration:.3s}.before\:ease-out:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}@media (hover:hover){.group-hover\/trigger\:before\:bg-background-subtle:is(:where(.group\/trigger):hover *):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background-subtle)}}.group-data-highlighted\/submenu-trigger\:not-data-disabled\:before\:bg-background-muted:is(:where(.group\/submenu-trigger)[data-highlighted] *):not([data-disabled]):not(#\#):not(#\#):not(#\#):not(#\#):before,.group-data-popup-open\/submenu-trigger\:not-data-disabled\:before\:bg-background-muted:is(:where(.group\/submenu-trigger)[data-popup-open] *):not([data-disabled]):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background-muted)}.after\:absolute:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);position:absolute}.after\:top-full:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);top:100%}.after\:bottom-full:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);bottom:100%}.after\:left-0:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);left:0}.after\:h-\[calc\(var\(--gap\)\+1px\)\]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);height:calc(var(--gap) + 1px)}.after\:w-full:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);width:100%}.after\:rounded-full:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);border-radius:2147483647px}.after\:\[background-image\:linear-gradient\(0deg\,currentColor\,currentColor\)\]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-image:linear-gradient(currentColor,currentColor)}.after\:bg-no-repeat:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-repeat:no-repeat}.after\:transition-\[background-size\]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);transition-property:background-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.after\:duration-300:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);--tw-duration:.3s;transition-duration:.3s}.after\:content-\[\'\'\]:not(#\#):not(#\#):not(#\#):not(#\#):after{--tw-content:"";content:var(--tw-content)}.last\:border-b-0:last-child:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\:border-border:hover:not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--border)}.hover\:border-transparent:hover:not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.hover\:bg-background-muted:hover:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background-muted)}.hover\:bg-background-subtle:hover:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background-subtle)}.hover\:font-medium:hover:not(#\#):not(#\#):not(#\#):not(#\#){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.hover\:text-foreground:hover:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground)}.hover\:text-foreground-intense:hover:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground-intense)}.hover\:text-foreground-strong:hover:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground-strong)}.hover\:text-primary-foreground:hover:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--primary-foreground)}.hover\:opacity-100:hover:not(#\#):not(#\#):not(#\#):not(#\#){opacity:1}:is(.\*\:hover\:z-2>*):hover:not(#\#):not(#\#):not(#\#):not(#\#){z-index:2}.hover\:not-data-checked\:not-data-disabled\:not-data-invalid\:border-border-emphasis:hover:not([data-checked]):not([data-disabled]):not([data-invalid]):not(#\#):not(#\#):not(#\#):not(#\#),.hover\:not-data-checked\:not-data-indeterminate\:not-data-disabled\:not-data-invalid\:border-border-emphasis:hover:not([data-checked]):not([data-indeterminate]):not([data-disabled]):not([data-invalid]):not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--border-emphasis)}.hover\:not-focus\:not-focus-visible\:not-has-focus\:not-has-focus-visible\:not-data-popup-open\:not-has-data-popup-open\:not-data-pressed\:not-has-data-pressed\:not-data-invalid\:not-has-data-invalid\:border-border-emphasis:hover:not(:focus):not(:focus-visible):not(:has(:focus)):not(:has(:focus-visible)):not([data-popup-open]):not(:has([data-popup-open])):not([data-pressed]):not(:has([data-pressed])):not([data-invalid]):not(:has([data-invalid])):not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--border-emphasis)}.hover\:not-focus\:not-focus-visible\:not-has-focus\:not-has-focus-visible\:not-data-popup-open\:not-has-data-popup-open\:not-data-pressed\:not-has-data-pressed\:not-data-invalid\:not-has-data-invalid\:border-border-strong:hover:not(:focus):not(:focus-visible):not(:has(:focus)):not(:has(:focus-visible)):not([data-popup-open]):not(:has([data-popup-open])):not([data-pressed]):not(:has([data-pressed])):not([data-invalid]):not(:has([data-invalid])):not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--border-strong)}.hover\:before\:border-border:hover:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:var(--border)}.hover\:before\:border-border-strong:hover:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:var(--border-strong)}.hover\:before\:border-white\/15:hover:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.hover\:before\:border-white\/15:hover:not(#\#):not(#\#):not(#\#):not(#\#):before{border-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.hover\:before\:bg-background-muted:hover:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background-muted)}.hover\:before\:bg-background-subtle:hover:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background-subtle)}.hover\:before\:bg-primary:hover:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--primary)}.hover\:before\:bg-transparent:hover:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:#0000}.hover\:before\:bg-white\/15:hover:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.hover\:before\:bg-white\/15:hover:not(#\#):not(#\#):not(#\#):not(#\#):before{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.hover\:before\:opacity-100:hover:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);opacity:1}}.focus\:bg-\(--selection-color\):focus:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--selection-color)}.focus\:placeholder\:text-transparent:focus:not(#\#):not(#\#):not(#\#):not(#\#)::placeholder{color:#0000}.focus-visible\:border-transparent:focus-visible:not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.focus-visible\:border-transparent\!:focus-visible:not(#\#){border-color:#0000!important}.focus-visible\:bg-background:focus-visible:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background)}.focus-visible\:text-foreground-intense:focus-visible:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground-intense)}.focus-visible\:ring-2:focus-visible:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-3:focus-visible:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-ring:focus-visible:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--focus-ring)}.focus-visible\:ring-ring-input:focus-visible:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--focus-ring-input)}.focus-visible\:outline-2:focus-visible:not(#\#):not(#\#):not(#\#):not(#\#){outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\:outline-3:focus-visible:not(#\#):not(#\#):not(#\#):not(#\#){outline-style:var(--tw-outline-style);outline-width:3px}.focus-visible\:outline-none:focus-visible:not(#\#):not(#\#):not(#\#):not(#\#){--tw-outline-style:none;outline-style:none}:is(.\*\:focus-visible\:z-2>*):focus-visible:not(#\#):not(#\#):not(#\#):not(#\#){z-index:2}.focus-visible\:before\:bg-background-muted:focus-visible:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background-muted)}.active\:translate-y-px:active:not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.active\:scale-\[0\.97\]:active:not(#\#):not(#\#):not(#\#):not(#\#){scale:.97}.active\:scale-\[0\.98\]:active:not(#\#):not(#\#):not(#\#):not(#\#){scale:.98}.active\:duration-100:active:not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.1s;transition-duration:.1s}.active\:duration-\[300ms\,100ms\,100ms\]:active:not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.3s,.1s,.1s;transition-duration:.3s,.1s,.1s}.active\:ease-\[ease-out\,ease-in-out\,ease-in-out\]:active:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:ease-out,ease-in-out,ease-in-out;transition-timing-function:ease-out,ease-in-out,ease-in-out}.active\:ease-in-out:active:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}:is(.\*\:active\:z-2>*):active:not(#\#):not(#\#):not(#\#):not(#\#){z-index:2}.not-data-popup-open\:active\:translate-y-px:not([data-popup-open]):active:not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.not-data-popup-open\:active\:scale-\[0\.97\]:not([data-popup-open]):active:not(#\#):not(#\#):not(#\#):not(#\#){scale:.97}.not-data-popup-open\:active\:duration-100:not([data-popup-open]):active:not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.1s;transition-duration:.1s}.not-data-popup-open\:active\:ease-in-out:not([data-popup-open]):active:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.disabled\:pointer-events-none:disabled:not(#\#):not(#\#):not(#\#):not(#\#){pointer-events:none}.disabled\:cursor-not-allowed:disabled:not(#\#):not(#\#):not(#\#):not(#\#){cursor:not-allowed}.disabled\:opacity-disabled:disabled:not(#\#):not(#\#):not(#\#):not(#\#){opacity:var(--opacity-disabled)}:where([aria-orientation=vertical]):not(#\#):not(#\#):not(#\#):not(#\#) .in-aria-\[orientation\=vertical\]\:rounded-md{border-radius:var(--radius-md)}:where([aria-orientation=vertical]):not(#\#):not(#\#):not(#\#):not(#\#) .in-aria-\[orientation\=vertical\]\:rounded-sm{border-radius:var(--radius-sm)}:where([aria-orientation=vertical]):not(#\#):not(#\#):not(#\#):not(#\#) .in-aria-\[orientation\=vertical\]\:rounded-xs{border-radius:var(--radius-xs)}:where([aria-orientation=vertical]):not(#\#):not(#\#):not(#\#):not(#\#) .in-aria-\[orientation\=vertical\]\:px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}:where([aria-orientation=vertical]):not(#\#):not(#\#):not(#\#):not(#\#) .in-aria-\[orientation\=vertical\]\:px-3{padding-inline:calc(var(--spacing) * 3)}:where([aria-orientation=vertical]):not(#\#):not(#\#):not(#\#):not(#\#) .in-aria-\[orientation\=vertical\]\:px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}:where([aria-orientation=vertical]):not(#\#):not(#\#):not(#\#):not(#\#) .in-aria-\[orientation\=vertical\]\:py-1\.5{padding-block:calc(var(--spacing) * 1.5)}:where([aria-orientation=vertical]):not(#\#):not(#\#):not(#\#):not(#\#) .in-aria-\[orientation\=vertical\]\:py-2{padding-block:calc(var(--spacing) * 2)}:where([aria-orientation=vertical]):not(#\#):not(#\#):not(#\#):not(#\#) .in-aria-\[orientation\=vertical\]\:py-2\.5{padding-block:calc(var(--spacing) * 2.5)}:where([data-slot=tooltip-content]):not(#\#):not(#\#):not(#\#):not(#\#) .in-data-\[slot\=tooltip-content\]\:border-white\/25{border-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){:where([data-slot=tooltip-content]):not(#\#):not(#\#):not(#\#):not(#\#) .in-data-\[slot\=tooltip-content\]\:border-white\/25{border-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}:where([data-slot=tooltip-content]):not(#\#):not(#\#):not(#\#):not(#\#) .in-data-\[slot\=tooltip-content\]\:bg-background-inverse{background-color:var(--background-inverse)}:where([data-slot=tooltip-content]):not(#\#):not(#\#):not(#\#):not(#\#) .in-data-\[slot\=tooltip-content\]\:text-foreground-inverse\/75{color:var(--foreground-inverse)}@supports (color:color-mix(in lab, red, red)){:where([data-slot=tooltip-content]):not(#\#):not(#\#):not(#\#):not(#\#) .in-data-\[slot\=tooltip-content\]\:text-foreground-inverse\/75{color:color-mix(in oklab, var(--foreground-inverse) 75%, transparent)}}.has-focus\:border-transparent:has(:focus):not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.has-focus\:bg-background:has(:focus):not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background)}.has-focus\:ring-\[3px\]:has(:focus):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-focus\:ring-ring-input:has(:focus):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--focus-ring-input)}.has-focus-visible\:ring-3:has(:focus-visible):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-focus-visible\:ring-ring:has(:focus-visible):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--focus-ring)}.has-focus-visible\:outline-3:has(:focus-visible):not(#\#):not(#\#):not(#\#):not(#\#){outline-style:var(--tw-outline-style);outline-width:3px}.has-data-empty\:py-0:has([data-empty]):not(#\#):not(#\#):not(#\#):not(#\#){padding-block:0}.has-data-invalid\:border-error:has([data-invalid]):not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--error)}.has-data-invalid\:bg-error-subtle:has([data-invalid]):not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--error-subtle)}.has-data-invalid\:has-focus\:border-transparent:has([data-invalid]):has(:focus):not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.has-data-invalid\:has-focus\:bg-background:has([data-invalid]):has(:focus):not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background)}.has-data-invalid\:has-focus\:ring-ring-error:has([data-invalid]):has(:focus):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--focus-ring-error)}.has-data-popup-open\:border-transparent:has([data-popup-open]):not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.has-data-popup-open\:bg-background:has([data-popup-open]):not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background)}.has-data-popup-open\:ring-3:has([data-popup-open]):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-data-popup-open\:ring-ring-input:has([data-popup-open]):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--focus-ring-input)}.has-data-invalid\:has-data-popup-open\:border-transparent:has([data-invalid]):has([data-popup-open]):not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.has-data-invalid\:has-data-popup-open\:bg-background:has([data-invalid]):has([data-popup-open]):not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background)}.has-data-invalid\:has-data-popup-open\:ring-ring-error:has([data-invalid]):has([data-popup-open]):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--focus-ring-error)}.has-data-pressed\:border-transparent:has([data-pressed]):not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.has-data-pressed\:bg-background:has([data-pressed]):not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background)}.has-data-pressed\:ring-3:has([data-pressed]):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-data-pressed\:ring-ring-input:has([data-pressed]):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--focus-ring-input)}.has-data-invalid\:has-data-pressed\:border-transparent:has([data-invalid]):has([data-pressed]):not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.has-data-invalid\:has-data-pressed\:bg-background:has([data-invalid]):has([data-pressed]):not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background)}.has-data-invalid\:has-data-pressed\:ring-ring-error:has([data-invalid]):has([data-pressed]):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--focus-ring-error)}.has-data-\[icon\=end\]\:pe-1:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:var(--spacing)}.has-data-\[icon\=end\]\:pe-1\.5:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 1.5)}.has-data-\[icon\=end\]\:pe-1\.25:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 1.25)}.has-data-\[icon\=end\]\:pe-1\.75:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 1.75)}.has-data-\[icon\=end\]\:pe-2:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 2)}.has-data-\[icon\=end\]\:pe-2\.5:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 2.5)}.has-data-\[icon\=end\]\:pe-2\.25:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 2.25)}.has-data-\[icon\=end\]\:pe-3:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 3)}.has-data-\[icon\=end\]\:pe-3\.5:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 3.5)}.has-data-\[icon\=end\]\:pe-4:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 4)}.has-data-\[icon\=end\]\:pe-4\.5:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 4.5)}:where([aria-orientation=vertical]):not(#\#):not(#\#):not(#\#):not(#\#) .in-aria-\[orientation\=vertical\]\:has-data-\[icon\=end\]\:pe-1\.5:has([data-icon=end]){padding-inline-end:calc(var(--spacing) * 1.5)}:where([aria-orientation=vertical]):not(#\#):not(#\#):not(#\#):not(#\#) .in-aria-\[orientation\=vertical\]\:has-data-\[icon\=end\]\:pe-2:has([data-icon=end]){padding-inline-end:calc(var(--spacing) * 2)}:where([aria-orientation=vertical]):not(#\#):not(#\#):not(#\#):not(#\#) .in-aria-\[orientation\=vertical\]\:has-data-\[icon\=end\]\:pe-2\.5:has([data-icon=end]){padding-inline-end:calc(var(--spacing) * 2.5)}.has-data-\[icon\=start\]\:ps-1:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:var(--spacing)}.has-data-\[icon\=start\]\:ps-1\.5:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 1.5)}.has-data-\[icon\=start\]\:ps-1\.25:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 1.25)}.has-data-\[icon\=start\]\:ps-1\.75:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 1.75)}.has-data-\[icon\=start\]\:ps-2:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 2)}.has-data-\[icon\=start\]\:ps-2\.5:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 2.5)}.has-data-\[icon\=start\]\:ps-2\.25:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 2.25)}.has-data-\[icon\=start\]\:ps-3:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 3)}.has-data-\[icon\=start\]\:ps-3\.5:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 3.5)}.has-data-\[icon\=start\]\:ps-4:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 4)}.has-data-\[icon\=start\]\:ps-4\.5:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 4.5)}:where([aria-orientation=vertical]):not(#\#):not(#\#):not(#\#):not(#\#) .in-aria-\[orientation\=vertical\]\:has-data-\[icon\=start\]\:ps-1\.5:has([data-icon=start]){padding-inline-start:calc(var(--spacing) * 1.5)}:where([aria-orientation=vertical]):not(#\#):not(#\#):not(#\#):not(#\#) .in-aria-\[orientation\=vertical\]\:has-data-\[icon\=start\]\:ps-2:has([data-icon=start]){padding-inline-start:calc(var(--spacing) * 2)}:where([aria-orientation=vertical]):not(#\#):not(#\#):not(#\#):not(#\#) .in-aria-\[orientation\=vertical\]\:has-data-\[icon\=start\]\:ps-2\.5:has([data-icon=start]){padding-inline-start:calc(var(--spacing) * 2.5)}.has-data-\[slot\=combobox-chip\]\:h-auto:has([data-slot=combobox-chip]):not(#\#):not(#\#):not(#\#):not(#\#){height:auto}.has-data-\[slot\=combobox-chip\]\:min-h-8:has([data-slot=combobox-chip]):not(#\#):not(#\#):not(#\#):not(#\#){min-height:calc(var(--spacing) * 8)}.has-data-\[slot\=combobox-chip\]\:min-h-10:has([data-slot=combobox-chip]):not(#\#):not(#\#):not(#\#):not(#\#){min-height:calc(var(--spacing) * 10)}.has-data-\[slot\=combobox-chip\]\:min-h-12:has([data-slot=combobox-chip]):not(#\#):not(#\#):not(#\#):not(#\#){min-height:calc(var(--spacing) * 12)}.has-data-\[slot\=combobox-chip\]\:flex-wrap:has([data-slot=combobox-chip]):not(#\#):not(#\#):not(#\#):not(#\#){flex-wrap:wrap}.has-data-\[slot\=combobox-chip\]\:items-start:has([data-slot=combobox-chip]):not(#\#):not(#\#):not(#\#):not(#\#){align-items:flex-start}.has-data-\[slot\=combobox-chip\]\:p-1:has([data-slot=combobox-chip]):not(#\#):not(#\#):not(#\#):not(#\#){padding:var(--spacing)}.has-data-\[slot\=toast-actions\]\:not-has-data-\[slot\=toast-description\]\:\[grid-template-areas\:\'icon_title_close\'_\'icon_actions_actions\'\]:has([data-slot=toast-actions]):not(:has([data-slot=toast-description])):not(#\#):not(#\#):not(#\#):not(#\#){grid-template-areas:"icon title close""icon actions actions"}.has-data-\[slot\=toast-description\]\:\[grid-template-areas\:\'icon_title_close\'_\'icon_description_close\'\]:has([data-slot=toast-description]):not(#\#):not(#\#):not(#\#):not(#\#){grid-template-areas:"icon title close""icon description close"}.has-data-\[slot\=toast-actions\]\:has-data-\[slot\=toast-description\]\:\[grid-template-areas\:\'icon_title_close\'_\'icon_description_close\'_\'icon_actions_actions\'\]:has([data-slot=toast-actions]):has([data-slot=toast-description]):not(#\#):not(#\#):not(#\#):not(#\#){grid-template-areas:"icon title close""icon description close""icon actions actions"}.has-data-\[slot\=toast-icon\]\:gap-x-3:has([data-slot=toast-icon]):not(#\#):not(#\#):not(#\#):not(#\#){column-gap:calc(var(--spacing) * 3)}.has-\[\[data-slot\=field-error\]\:not\(\[data-starting-style\]\)\:not\(\[data-ending-style\]\)\]\:grid-rows-\[1fr\]:has([data-slot=field-error]:not([data-starting-style]):not([data-ending-style])):not(#\#):not(#\#):not(#\#):not(#\#){grid-template-rows:1fr}.has-\[input\:disabled\]\:cursor-not-allowed:has(:is(input:disabled)):not(#\#):not(#\#):not(#\#):not(#\#){cursor:not-allowed}.has-\[input\:disabled\]\:border-dashed:has(:is(input:disabled)):not(#\#):not(#\#):not(#\#):not(#\#){--tw-border-style:dashed;border-style:dashed}.has-\[input\:disabled\]\:border-border-strong\!:has(:is(input:disabled)):not(#\#){border-color:var(--border-strong)!important}.has-\[input\:disabled\]\:bg-background-subtle\!:has(:is(input:disabled)):not(#\#){background-color:var(--background-subtle)!important}.has-\[input\:disabled\]\:opacity-disabled:has(:is(input:disabled)):not(#\#):not(#\#):not(#\#):not(#\#){opacity:var(--opacity-disabled)}.has-\[svg\]\:text-\[1em\]:has(:is(svg)):not(#\#):not(#\#):not(#\#):not(#\#){font-size:1em}.has-\[textarea\:disabled\]\:cursor-not-allowed:has(:is(textarea:disabled)):not(#\#):not(#\#):not(#\#):not(#\#){cursor:not-allowed}.has-\[textarea\:disabled\]\:border-dashed:has(:is(textarea:disabled)):not(#\#):not(#\#):not(#\#):not(#\#){--tw-border-style:dashed;border-style:dashed}.has-\[textarea\:disabled\]\:border-border-strong\!:has(:is(textarea:disabled)):not(#\#){border-color:var(--border-strong)!important}.has-\[textarea\:disabled\]\:bg-background-subtle\!:has(:is(textarea:disabled)):not(#\#){background-color:var(--background-subtle)!important}.has-\[textarea\:disabled\]\:opacity-disabled:has(:is(textarea:disabled)):not(#\#):not(#\#):not(#\#):not(#\#){opacity:var(--opacity-disabled)}.has-\[\>svg\]\:h-lh:has(>svg):not(#\#):not(#\#):not(#\#):not(#\#){height:1lh}.data-active\:pointer-events-none[data-active]:not(#\#):not(#\#):not(#\#):not(#\#){pointer-events:none}.data-active\:transform-\[scale\(calc\(0\.95\+0\.03\*var\(--drawer-swipe-progress\)\)\)\][data-active]:not(#\#):not(#\#):not(#\#):not(#\#){transform:scale(calc(.95 + .03 * var(--drawer-swipe-progress)))}.data-active\:rounded-2xl[data-active]:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:var(--radius-2xl)}.data-active\:border[data-active]:not(#\#):not(#\#):not(#\#):not(#\#){border-style:var(--tw-border-style);border-width:var(--border-width)}.data-active\:bg-background-strong[data-active]:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background-strong)}.data-active\:text-black[data-active]:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--color-black)}.data-active\:text-foreground-intense[data-active]:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground-intense)}.data-active\:before\:border-border[data-active]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:var(--border)}.data-active\:before\:border-border-strong[data-active]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:var(--border-strong)}.data-active\:before\:border-white\/15[data-active]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.data-active\:before\:border-white\/15[data-active]:not(#\#):not(#\#):not(#\#):not(#\#):before{border-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.data-active\:before\:bg-background-muted[data-active]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background-muted)}.data-active\:before\:bg-background-subtle[data-active]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background-subtle)}.data-active\:before\:bg-white\/15[data-active]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.data-active\:before\:bg-white\/15[data-active]:not(#\#):not(#\#):not(#\#):not(#\#):before{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.data-checked\:border-transparent[data-checked]:not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.data-checked\:bg-primary[data-checked]:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--primary)}.data-checked\:bg-primary-foreground[data-checked]:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--primary-foreground)}.data-checked\:outline-ring-primary[data-checked]:not(#\#):not(#\#):not(#\#):not(#\#){outline-color:var(--focus-ring-primary)}.data-disabled\:pointer-events-none[data-disabled]:not(#\#):not(#\#):not(#\#):not(#\#){pointer-events:none}.data-disabled\:cursor-default[data-disabled]:not(#\#):not(#\#):not(#\#):not(#\#){cursor:default}.data-disabled\:cursor-not-allowed[data-disabled]:not(#\#):not(#\#):not(#\#):not(#\#){cursor:not-allowed}.data-disabled\:border-dashed[data-disabled]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-border-style:dashed;border-style:dashed}.data-disabled\:border-border-strong\![data-disabled]:not(#\#){border-color:var(--border-strong)!important}.data-disabled\:bg-background-muted[data-disabled]:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background-muted)}.data-disabled\:bg-background-subtle\![data-disabled]:not(#\#){background-color:var(--background-subtle)!important}.data-disabled\:opacity-disabled[data-disabled]:not(#\#):not(#\#):not(#\#):not(#\#){opacity:var(--opacity-disabled)}.data-disabled\:not-data-checked\:border-dashed[data-disabled]:not([data-checked]):not(#\#):not(#\#):not(#\#):not(#\#){--tw-border-style:dashed;border-style:dashed}.data-disabled\:not-data-checked\:border-border-strong[data-disabled]:not([data-checked]):not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--border-strong)}.data-disabled\:not-data-checked\:bg-background-subtle[data-disabled]:not([data-checked]):not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background-subtle)}.data-disabled\:not-data-checked\:not-data-indeterminate\:border-dashed[data-disabled]:not([data-checked]):not([data-indeterminate]):not(#\#):not(#\#):not(#\#):not(#\#){--tw-border-style:dashed;border-style:dashed}.data-disabled\:not-data-checked\:not-data-indeterminate\:bg-background-subtle[data-disabled]:not([data-checked]):not([data-indeterminate]):not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background-subtle)}.data-disabled\:data-checked\:opacity-disabled[data-disabled][data-checked]:not(#\#):not(#\#):not(#\#):not(#\#){opacity:var(--opacity-disabled)}.data-ending-style\:h-0[data-ending-style]:not(#\#):not(#\#):not(#\#):not(#\#){height:0}.data-ending-style\:\[transform\:translateX\(calc\(-100\%-0\.5rem\)\)\][data-ending-style]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translate(calc(-100% - .5rem))}.data-ending-style\:\[transform\:translateX\(calc\(100\%\+0\.5rem\)\)\][data-ending-style]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translate(calc(100% + .5rem))}.data-ending-style\:\[transform\:translateY\(calc\(-100\%-0\.5rem\)\)\][data-ending-style]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateY(calc(-100% - .5rem))}.data-ending-style\:\[transform\:translateY\(calc\(100\%\+0\.5rem\)\)\][data-ending-style]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateY(calc(100% + .5rem))}.data-ending-style\:opacity-0[data-ending-style]:not(#\#):not(#\#):not(#\#):not(#\#){opacity:0}.data-expanded\:h-\[var\(--toast-height\)\][data-expanded]:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--toast-height)}.data-expanded\:\[transform\:translateX\(var\(--toast-swipe-movement-x\)\)_translateY\(calc\(var\(--offset-y\)\)\)\][data-expanded]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(var(--toast-swipe-movement-x)) translateY(calc(var(--offset-y)))}.data-expanded\:border-white\/15[data-expanded]:not(#\#):not(#\#):not(#\#):not(#\#){border-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.data-expanded\:border-white\/15[data-expanded]:not(#\#):not(#\#):not(#\#):not(#\#){border-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.data-expanded\:bg-white\/10[data-expanded]:not(#\#):not(#\#):not(#\#):not(#\#){background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.data-expanded\:bg-white\/10[data-expanded]:not(#\#):not(#\#):not(#\#):not(#\#){background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.data-expanded\:p-1\.5[data-expanded]:not(#\#):not(#\#):not(#\#):not(#\#){padding:calc(var(--spacing) * 1.5)}.data-expanded\:shadow-none[data-expanded]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-expanded\:backdrop-blur-sm[data-expanded]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.data-expanded\:before\:bg-background[data-expanded]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background)}.data-highlighted\:not-data-disabled\:text-foreground-intense[data-highlighted]:not([data-disabled]):not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground-intense)}.data-highlighted\:not-data-disabled\:before\:bg-background-muted[data-highlighted]:not([data-disabled]):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background-muted)}.data-highlighted\:not-data-disabled\:before\:opacity-100[data-highlighted]:not([data-disabled]):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);opacity:1}.data-indeterminate\:border-transparent[data-indeterminate]:not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.data-indeterminate\:bg-primary[data-indeterminate]:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--primary)}.data-indeterminate\:outline-ring-primary[data-indeterminate]:not(#\#):not(#\#):not(#\#):not(#\#){outline-color:var(--focus-ring-primary)}.data-disabled\:data-indeterminate\:opacity-disabled[data-disabled][data-indeterminate]:not(#\#):not(#\#):not(#\#):not(#\#){opacity:var(--opacity-disabled)}.data-invalid\:border-error[data-invalid]:not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--error)}.data-invalid\:bg-error-subtle[data-invalid]:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--error-subtle)}.data-invalid\:outline-ring-error[data-invalid]:not(#\#):not(#\#):not(#\#):not(#\#){outline-color:var(--focus-ring-error)}.data-invalid\:not-data-checked\:bg-error-subtle[data-invalid]:not([data-checked]):not(#\#):not(#\#):not(#\#):not(#\#),.data-invalid\:not-data-checked\:not-data-indeterminate\:bg-error-subtle[data-invalid]:not([data-checked]):not([data-indeterminate]):not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--error-subtle)}.data-invalid\:focus-visible\:border-transparent[data-invalid]:focus-visible:not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.data-invalid\:focus-visible\:bg-background[data-invalid]:focus-visible:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background)}.data-invalid\:focus-visible\:ring-ring-error[data-invalid]:focus-visible:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--focus-ring-error)}.data-invalid\:has-focus\:border-transparent[data-invalid]:has(:focus):not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.data-invalid\:has-focus\:bg-background[data-invalid]:has(:focus):not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background)}.data-invalid\:has-focus\:ring-ring-error[data-invalid]:has(:focus):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--focus-ring-error)}.data-invalid\:has-data-popup-open\:border-transparent[data-invalid]:has([data-popup-open]):not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.data-invalid\:has-data-popup-open\:bg-background[data-invalid]:has([data-popup-open]):not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background)}.data-invalid\:has-data-popup-open\:ring-ring-error[data-invalid]:has([data-popup-open]):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--focus-ring-error)}.data-invalid\:has-data-pressed\:border-transparent[data-invalid]:has([data-pressed]):not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.data-invalid\:has-data-pressed\:bg-background[data-invalid]:has([data-pressed]):not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background)}.data-invalid\:has-data-pressed\:ring-ring-error[data-invalid]:has([data-pressed]):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--focus-ring-error)}.data-limited\:opacity-0[data-limited]:not(#\#):not(#\#):not(#\#):not(#\#){opacity:0}.data-nested\:border-border-overlay[data-nested]:not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--border-overlay)}.data-nested\:bg-background[data-nested]:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background)}.data-nested\:p-0[data-nested]:not(#\#):not(#\#):not(#\#):not(#\#){padding:0}.data-nested\:shadow-2xl[data-nested]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-shadow:0 24px 32px -12px var(--tw-shadow-color,var(--shadow-color));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-nested\:backdrop-blur-none[data-nested]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-backdrop-blur: ;-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.data-nested-dialog-open\:pointer-events-none[data-nested-dialog-open]:not(#\#):not(#\#):not(#\#):not(#\#){pointer-events:none}.data-nested-dialog-open\:scale-95[data-nested-dialog-open]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-nested-dialog-open\:opacity-0[data-nested-dialog-open]:not(#\#):not(#\#):not(#\#):not(#\#){opacity:0}.data-nested-drawer-open\:\[height\:var\(--drawer-frontmost-height\,auto\)\][data-nested-drawer-open]:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--drawer-frontmost-height,auto)}.data-nested-drawer-open\:overflow-hidden[data-nested-drawer-open]:not(#\#):not(#\#):not(#\#):not(#\#){overflow:hidden}.data-nested-drawer-swiping\:duration-0[data-nested-drawer-swiping]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:0s;transition-duration:0s}.data-open\:border-border[data-open]:not(#\#):not(#\#):not(#\#):not(#\#){border-color:var(--border)}.data-open\:border-transparent[data-open]:not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.data-open\:bg-background-muted[data-open]:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background-muted)}.data-placeholder\:text-foreground-subtle[data-placeholder]:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground-subtle)}.data-popup-open\:rotate-180[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#){rotate:180deg}.data-popup-open\:border-transparent[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.data-popup-open\:bg-background[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background)}.data-popup-open\:text-foreground-intense[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground-intense)}.data-popup-open\:text-primary-foreground[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--primary-foreground)}.data-popup-open\:ring-3[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-popup-open\:ring-ring-input[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--focus-ring-input)}.data-popup-open\:before\:border-border[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:var(--border)}.data-popup-open\:before\:border-border-strong[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:var(--border-strong)}.data-popup-open\:before\:border-white\/15[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.data-popup-open\:before\:border-white\/15[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{border-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.data-popup-open\:before\:bg-background-muted[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background-muted)}.data-popup-open\:before\:bg-background-subtle[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background-subtle)}.data-popup-open\:before\:bg-primary[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--primary)}.data-popup-open\:before\:bg-transparent[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:#0000}.data-popup-open\:before\:bg-white\/15[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.data-popup-open\:before\:bg-white\/15[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.data-popup-open\:before\:opacity-100[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);opacity:1}.data-invalid\:data-popup-open\:border-transparent[data-invalid][data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.data-invalid\:data-popup-open\:bg-background[data-invalid][data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background)}.data-invalid\:data-popup-open\:ring-ring-error[data-invalid][data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--focus-ring-error)}.data-pressed\:border-transparent[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.data-pressed\:bg-background[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background)}.data-pressed\:text-foreground-intense[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground-intense)}.data-pressed\:text-primary-foreground[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--primary-foreground)}.data-pressed\:ring-3[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-pressed\:ring-ring-input[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--focus-ring-input)}.data-pressed\:before\:border-border[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:var(--border)}.data-pressed\:before\:border-border-strong[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:var(--border-strong)}.data-pressed\:before\:border-white\/15[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.data-pressed\:before\:border-white\/15[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{border-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.data-pressed\:before\:bg-background-muted[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background-muted)}.data-pressed\:before\:bg-background-subtle[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background-subtle)}.data-pressed\:before\:bg-primary[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--primary)}.data-pressed\:before\:bg-transparent[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:#0000}.data-pressed\:before\:bg-white\/15[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.data-pressed\:before\:bg-white\/15[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.data-pressed\:before\:opacity-100[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);opacity:1}.data-invalid\:data-pressed\:border-transparent[data-invalid][data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#){border-color:#0000}.data-invalid\:data-pressed\:bg-background[data-invalid][data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background)}.data-invalid\:data-pressed\:ring-ring-error[data-invalid][data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--focus-ring-error)}.data-starting-style\:h-0[data-starting-style]:not(#\#):not(#\#):not(#\#):not(#\#){height:0}.data-starting-style\:\[transform\:translateX\(calc\(-100\%-0\.5rem\)\)\][data-starting-style]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translate(calc(-100% - .5rem))}.data-starting-style\:\[transform\:translateX\(calc\(100\%\+0\.5rem\)\)\][data-starting-style]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translate(calc(100% + .5rem))}.data-starting-style\:\[transform\:translateY\(calc\(-100\%-0\.5rem\)\)\][data-starting-style]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateY(calc(-100% - .5rem))}.data-starting-style\:\[transform\:translateY\(calc\(100\%\+0\.5rem\)\)\][data-starting-style]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateY(calc(100% + .5rem))}.data-starting-style\:opacity-0[data-starting-style]:not(#\#):not(#\#):not(#\#):not(#\#){opacity:0}.data-swiping\:duration-0[data-swiping]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:0s;transition-duration:0s}.data-swiping\:select-none[data-swiping]:not(#\#):not(#\#):not(#\#):not(#\#){-webkit-user-select:none;user-select:none}.data-\[ending-style\]\:hidden[data-ending-style]:not(#\#):not(#\#):not(#\#):not(#\#){display:none}.data-\[hovering\]\:pointer-events-auto[data-hovering]:not(#\#):not(#\#):not(#\#):not(#\#){pointer-events:auto}.data-\[hovering\]\:opacity-100[data-hovering]:not(#\#):not(#\#):not(#\#):not(#\#){opacity:1}.data-\[orientation\=horizontal\]\:-inset-s-14[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline-start:calc(var(--spacing) * -14)}.data-\[orientation\=horizontal\]\:inset-s-0[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline-start:0}.data-\[orientation\=horizontal\]\:inset-s-4[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline-start:calc(var(--spacing) * 4)}.data-\[orientation\=horizontal\]\:-inset-e-14[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline-end:calc(var(--spacing) * -14)}.data-\[orientation\=horizontal\]\:inset-e-0[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline-end:0}.data-\[orientation\=horizontal\]\:inset-e-4[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline-end:calc(var(--spacing) * 4)}.data-\[orientation\=horizontal\]\:top-0\.5[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){top:calc(var(--spacing) * .5)}.data-\[orientation\=horizontal\]\:top-1\/2[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){top:50%}.data-\[orientation\=horizontal\]\:bottom-0[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){bottom:0}.data-\[orientation\=horizontal\]\:bottom-full[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){bottom:100%}.data-\[orientation\=horizontal\]\:left-1\/2[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){left:50%}.data-\[orientation\=horizontal\]\:mx-\[calc\(var\(--rating-size\)\/-6\)\][data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline:calc(var(--rating-size) / -6)}.data-\[orientation\=horizontal\]\:my-0\.5[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){margin-block:calc(var(--spacing) * .5)}.data-\[orientation\=horizontal\]\:mb-1[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){margin-bottom:var(--spacing)}.data-\[orientation\=horizontal\]\:h-\(--border-width\)[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--border-width)}.data-\[orientation\=horizontal\]\:h-0\.5[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(var(--spacing) * .5)}.data-\[orientation\=horizontal\]\:h-1\.5[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(var(--spacing) * 1.5)}.data-\[orientation\=horizontal\]\:h-1\.25[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(var(--spacing) * 1.25)}.data-\[orientation\=horizontal\]\:h-5[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(var(--spacing) * 5)}.data-\[orientation\=horizontal\]\:h-\[calc\(100\%-0\.25rem\)\][data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(100% - .25rem)}.data-\[orientation\=horizontal\]\:h-full[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){height:100%}.data-\[orientation\=horizontal\]\:w-\(--active-tab-width\)[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--active-tab-width)}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){width:100%}.data-\[orientation\=horizontal\]\:origin-bottom[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){transform-origin:bottom}.data-\[orientation\=horizontal\]\:-translate-x-1\/2[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[orientation\=horizontal\]\:-translate-y-1\/2[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[orientation\=horizontal\]\:flex-col[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){flex-direction:column}.data-\[orientation\=horizontal\]\:items-center[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){align-items:center}.data-\[orientation\=horizontal\]\:justify-center[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){justify-content:center}.data-\[orientation\=horizontal\]\:gap-5[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){gap:calc(var(--spacing) * 5)}.data-\[orientation\=horizontal\]\:gap-6[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){gap:calc(var(--spacing) * 6)}.data-\[orientation\=horizontal\]\:gap-7[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){gap:calc(var(--spacing) * 7)}.data-\[orientation\=horizontal\]\:rounded-lg[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:var(--radius-lg)}.data-\[orientation\=horizontal\]\:rounded-md[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:var(--radius-md)}.data-\[orientation\=horizontal\]\:rounded-sm[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:var(--radius-sm)}.data-\[orientation\=horizontal\]\:border-t[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){border-top-style:var(--tw-border-style);border-top-width:var(--border-width)}.data-\[orientation\=horizontal\]\:border-t-\[calc\(var\(--border-width\)\*3\)\][data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){border-top-style:var(--tw-border-style);border-top-width:calc(var(--border-width) * 3)}.data-\[orientation\=horizontal\]\:bg-\[linear-gradient\(to_right\,transparent\,currentColor_26\%\,currentColor_74\%\,transparent\)\][data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){background-image:linear-gradient(90deg,#0000,currentColor 26% 74%,#0000)}.data-\[orientation\=horizontal\]\:px-3[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 3)}.data-\[orientation\=horizontal\]\:px-3\.5[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 3.5)}.data-\[orientation\=horizontal\]\:px-4[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 4)}.data-\[orientation\=horizontal\]\:py-2[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){padding-block:calc(var(--spacing) * 2)}.data-\[orientation\=horizontal\]\:py-2\.5[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){padding-block:calc(var(--spacing) * 2.5)}.data-\[orientation\=horizontal\]\:py-3[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){padding-block:calc(var(--spacing) * 3)}.data-\[orientation\=horizontal\]\:text-center[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){text-align:center}.data-\[orientation\=horizontal\]\:whitespace-nowrap[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#){white-space:nowrap}.data-\[orientation\=horizontal\]\:after\:inset-x-0[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);inset-inline:0}.data-\[orientation\=horizontal\]\:after\:bottom-1[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);bottom:var(--spacing)}.data-\[orientation\=horizontal\]\:after\:bottom-1\.5[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);bottom:calc(var(--spacing) * 1.5)}.data-\[orientation\=horizontal\]\:after\:bottom-2[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);bottom:calc(var(--spacing) * 2)}.data-\[orientation\=horizontal\]\:after\:h-0\.5[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);height:calc(var(--spacing) * .5)}.data-\[orientation\=horizontal\]\:after\:bg-size-\[0_2px\][data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-size:0 2px}@media (hover:hover){.data-\[orientation\=horizontal\]\:hover\:h-2[data-orientation=horizontal]:hover:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(var(--spacing) * 2)}.hover\:data-\[orientation\=horizontal\]\:after\:bg-size-\[100\%_2px\]:hover[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-size:100% 2px}}.focus-visible\:data-\[orientation\=horizontal\]\:after\:bg-size-\[100\%_2px\]:focus-visible[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-size:100% 2px}.data-\[orientation\=horizontal\]\:has-data-\[icon\=end\]\:pe-2[data-orientation=horizontal]:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 2)}.data-\[orientation\=horizontal\]\:has-data-\[icon\=end\]\:pe-2\.5[data-orientation=horizontal]:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 2.5)}.data-\[orientation\=horizontal\]\:has-data-\[icon\=end\]\:pe-3[data-orientation=horizontal]:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 3)}.data-\[orientation\=horizontal\]\:has-data-\[icon\=start\]\:ps-2[data-orientation=horizontal]:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 2)}.data-\[orientation\=horizontal\]\:has-data-\[icon\=start\]\:ps-2\.5[data-orientation=horizontal]:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 2.5)}.data-\[orientation\=horizontal\]\:has-data-\[icon\=start\]\:ps-3[data-orientation=horizontal]:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 3)}.data-active\:data-\[orientation\=horizontal\]\:after\:bg-size-\[100\%_2px\][data-active][data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after,.data-popup-open\:data-\[orientation\=horizontal\]\:after\:bg-size-\[100\%_2px\][data-popup-open][data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after,.data-pressed\:data-\[orientation\=horizontal\]\:after\:bg-size-\[100\%_2px\][data-pressed][data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-size:100% 2px}.data-\[orientation\=vertical\]\:inset-s-0\.5[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline-start:calc(var(--spacing) * .5)}.data-\[orientation\=vertical\]\:inset-s-1\/2[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline-start:50%}.data-\[orientation\=vertical\]\:inset-s-full[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline-start:100%}.data-\[orientation\=vertical\]\:-top-14[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){top:calc(var(--spacing) * -14)}.data-\[orientation\=vertical\]\:top-0[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){top:0}.data-\[orientation\=vertical\]\:top-1\/2[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){top:50%}.data-\[orientation\=vertical\]\:top-4[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){top:calc(var(--spacing) * 4)}.data-\[orientation\=vertical\]\:top-\[calc\(var\(--active-tab-height\)\/4\)\][data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){top:calc(var(--active-tab-height) / 4)}.data-\[orientation\=vertical\]\:-bottom-14[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){bottom:calc(var(--spacing) * -14)}.data-\[orientation\=vertical\]\:bottom-\(--active-tab-bottom\)[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){bottom:var(--active-tab-bottom)}.data-\[orientation\=vertical\]\:bottom-0[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){bottom:0}.data-\[orientation\=vertical\]\:bottom-4[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){bottom:calc(var(--spacing) * 4)}.data-\[orientation\=vertical\]\:mx-0\.5[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline:calc(var(--spacing) * .5)}.data-\[orientation\=vertical\]\:my-\[calc\(var\(--rating-size\)\/-6\)\][data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){margin-block:calc(var(--rating-size) / -6)}.data-\[orientation\=vertical\]\:ms-1[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-start:var(--spacing)}.data-\[orientation\=vertical\]\:h-\(--active-tab-height\)[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--active-tab-height)}.data-\[orientation\=vertical\]\:h-5[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(var(--spacing) * 5)}.data-\[orientation\=vertical\]\:h-40[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(var(--spacing) * 40)}.data-\[orientation\=vertical\]\:h-\[calc\(var\(--active-tab-height\)\/2\)\][data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(var(--active-tab-height) / 2)}.data-\[orientation\=vertical\]\:h-fit[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){height:fit-content}.data-\[orientation\=vertical\]\:h-full[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){height:100%}.data-\[orientation\=vertical\]\:min-h-40[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){min-height:calc(var(--spacing) * 40)}.data-\[orientation\=vertical\]\:w-\(--border-width\)[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--border-width)}.data-\[orientation\=vertical\]\:w-0\.5[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * .5)}.data-\[orientation\=vertical\]\:w-1\.5[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 1.5)}.data-\[orientation\=vertical\]\:w-1\.25[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 1.25)}.data-\[orientation\=vertical\]\:w-5[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 5)}.data-\[orientation\=vertical\]\:w-auto[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){width:auto}.data-\[orientation\=vertical\]\:w-fit[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){width:fit-content}.data-\[orientation\=vertical\]\:w-full[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){width:100%}.data-\[orientation\=vertical\]\:min-w-32[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 32)}.data-\[orientation\=vertical\]\:min-w-36[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 36)}.data-\[orientation\=vertical\]\:min-w-40[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing) * 40)}.data-\[orientation\=vertical\]\:-translate-x-1\/2[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[orientation\=vertical\]\:-translate-y-1\/2[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[orientation\=vertical\]\:translate-y-\(--active-tab-top\)[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:var(--active-tab-top);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[orientation\=vertical\]\:translate-y-1\/2[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:calc(1 / 2 * 100%);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[orientation\=vertical\]\:flex-col[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){flex-direction:column}.data-\[orientation\=vertical\]\:items-stretch[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){align-items:stretch}.data-\[orientation\=vertical\]\:justify-center[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){justify-content:center}.data-\[orientation\=vertical\]\:self-stretch[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){align-self:stretch}.data-\[orientation\=vertical\]\:rounded-md[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:var(--radius-md)}.data-\[orientation\=vertical\]\:rounded-sm[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:var(--radius-sm)}.data-\[orientation\=vertical\]\:rounded-xs[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){border-radius:var(--radius-xs)}.data-\[orientation\=vertical\]\:border-l[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){border-left-style:var(--tw-border-style);border-left-width:var(--border-width)}.data-\[orientation\=vertical\]\:border-l-\[calc\(var\(--border-width\)\*3\)\][data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){border-left-style:var(--tw-border-style);border-left-width:calc(var(--border-width) * 3)}.data-\[orientation\=vertical\]\:bg-\[linear-gradient\(to_bottom\,transparent\,currentColor_26\%\,currentColor_74\%\,transparent\)\][data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){background-image:linear-gradient(#0000,currentColor 26% 74%,#0000)}.data-\[orientation\=vertical\]\:px-2\.5[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 2.5)}.data-\[orientation\=vertical\]\:px-3[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 3)}.data-\[orientation\=vertical\]\:px-3\.5[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 3.5)}.data-\[orientation\=vertical\]\:py-1\.5[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){padding-block:calc(var(--spacing) * 1.5)}.data-\[orientation\=vertical\]\:py-2[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){padding-block:calc(var(--spacing) * 2)}.data-\[orientation\=vertical\]\:py-2\.5[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){padding-block:calc(var(--spacing) * 2.5)}.data-\[orientation\=vertical\]\:ps-2\.5[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 2.5)}.data-\[orientation\=vertical\]\:ps-3[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 3)}.data-\[orientation\=vertical\]\:ps-3\.5[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 3.5)}.data-\[orientation\=vertical\]\:ps-4[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 4)}.data-\[orientation\=vertical\]\:ps-5[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 5)}.data-\[orientation\=vertical\]\:text-start[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#){text-align:start}.data-\[orientation\=vertical\]\:after\:inset-s-0[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);inset-inline-start:0}.data-\[orientation\=vertical\]\:after\:top-\[25\%\][data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);top:25%}.data-\[orientation\=vertical\]\:after\:bottom-\[25\%\][data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);bottom:25%}.data-\[orientation\=vertical\]\:after\:w-0\.5[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);width:calc(var(--spacing) * .5)}.data-\[orientation\=vertical\]\:after\:bg-size-\[2px_0\][data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-size:2px 0}.data-\[orientation\=vertical\]\:after\:\[background-position-y\:bottom\][data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-position-y:bottom}@media (hover:hover){.data-\[orientation\=vertical\]\:hover\:w-2[data-orientation=vertical]:hover:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 2)}.hover\:data-\[orientation\=vertical\]\:after\:bg-size-\[2px_100\%\]:hover[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-size:2px 100%}.hover\:data-\[orientation\=vertical\]\:after\:\[background-position-y\:top\]:hover[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-position-y:top}}.focus-visible\:data-\[orientation\=vertical\]\:after\:bg-size-\[2px_100\%\]:focus-visible[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-size:2px 100%}.focus-visible\:data-\[orientation\=vertical\]\:after\:\[background-position-y\:top\]:focus-visible[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-position-y:top}.data-\[orientation\=vertical\]\:has-data-\[icon\=end\]\:pe-1\.5[data-orientation=vertical]:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 1.5)}.data-\[orientation\=vertical\]\:has-data-\[icon\=end\]\:pe-2[data-orientation=vertical]:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 2)}.data-\[orientation\=vertical\]\:has-data-\[icon\=end\]\:pe-2\.5[data-orientation=vertical]:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 2.5)}.data-\[orientation\=vertical\]\:has-data-\[icon\=end\]\:pe-3[data-orientation=vertical]:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 3)}.data-\[orientation\=vertical\]\:has-data-\[icon\=end\]\:pe-4[data-orientation=vertical]:has([data-icon=end]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--spacing) * 4)}.data-\[orientation\=vertical\]\:has-data-\[icon\=start\]\:ps-1\.5[data-orientation=vertical]:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 1.5)}.data-\[orientation\=vertical\]\:has-data-\[icon\=start\]\:ps-2[data-orientation=vertical]:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 2)}.data-\[orientation\=vertical\]\:has-data-\[icon\=start\]\:ps-2\.5[data-orientation=vertical]:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 2.5)}.data-\[orientation\=vertical\]\:has-data-\[icon\=start\]\:ps-3[data-orientation=vertical]:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 3)}.data-\[orientation\=vertical\]\:has-data-\[icon\=start\]\:ps-4[data-orientation=vertical]:has([data-icon=start]):not(#\#):not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing) * 4)}.data-active\:data-\[orientation\=vertical\]\:after\:bg-size-\[2px_100\%\][data-active][data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-size:2px 100%}.data-active\:data-\[orientation\=vertical\]\:after\:\[background-position-y\:top\][data-active][data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-position-y:top}.data-popup-open\:data-\[orientation\=vertical\]\:after\:bg-size-\[2px_100\%\][data-popup-open][data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-size:2px 100%}.data-popup-open\:data-\[orientation\=vertical\]\:after\:\[background-position-y\:top\][data-popup-open][data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-position-y:top}.data-pressed\:data-\[orientation\=vertical\]\:after\:bg-size-\[2px_100\%\][data-pressed][data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-size:2px 100%}.data-pressed\:data-\[orientation\=vertical\]\:after\:\[background-position-y\:top\][data-pressed][data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-position-y:top}.data-\[scrolling\]\:pointer-events-auto[data-scrolling]:not(#\#):not(#\#):not(#\#):not(#\#){pointer-events:auto}.data-\[scrolling\]\:opacity-100[data-scrolling]:not(#\#):not(#\#):not(#\#):not(#\#){opacity:1}.data-\[scrolling\]\:duration-0[data-scrolling]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:0s;transition-duration:0s}.data-\[side\=bottom\]\:-top-2\.25[data-side=bottom]:not(#\#):not(#\#):not(#\#):not(#\#){top:calc(var(--spacing) * -2.25)}.data-\[side\=bottom\]\:top-1[data-side=bottom]:not(#\#):not(#\#):not(#\#):not(#\#){top:var(--spacing)}.data-\[side\=inline-end\]\:-inset-s-1[data-side=inline-end]:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline-start:calc(var(--spacing) * -1)}.data-\[side\=inline-end\]\:-inset-s-3\.25[data-side=inline-end]:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline-start:calc(var(--spacing) * -3.25)}.data-\[side\=inline-end\]\:top-1\/2\![data-side=inline-end]:not(#\#){top:50%!important}.data-\[side\=inline-end\]\:-translate-y-1\/2[data-side=inline-end]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=inline-start\]\:-inset-e-1[data-side=inline-start]:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline-end:calc(var(--spacing) * -1)}.data-\[side\=inline-start\]\:-inset-e-3\.25[data-side=inline-start]:not(#\#):not(#\#):not(#\#):not(#\#){inset-inline-end:calc(var(--spacing) * -3.25)}.data-\[side\=inline-start\]\:top-1\/2\![data-side=inline-start]:not(#\#){top:50%!important}.data-\[side\=inline-start\]\:-translate-y-1\/2[data-side=inline-start]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:top-1\/2\![data-side=left]:not(#\#){top:50%!important}.data-\[side\=left\]\:-right-1[data-side=left]:not(#\#):not(#\#):not(#\#):not(#\#){right:calc(var(--spacing) * -1)}.data-\[side\=left\]\:-right-3\.25[data-side=left]:not(#\#):not(#\#):not(#\#):not(#\#){right:calc(var(--spacing) * -3.25)}.data-\[side\=left\]\:-translate-y-1\/2[data-side=left]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:rotate-90[data-side=left]:not(#\#):not(#\#):not(#\#):not(#\#){rotate:90deg}.data-\[side\=right\]\:top-1\/2\![data-side=right]:not(#\#){top:50%!important}.data-\[side\=right\]\:-left-1[data-side=right]:not(#\#):not(#\#):not(#\#):not(#\#){left:calc(var(--spacing) * -1)}.data-\[side\=right\]\:-left-3\.25[data-side=right]:not(#\#):not(#\#):not(#\#):not(#\#){left:calc(var(--spacing) * -3.25)}.data-\[side\=right\]\:-translate-y-1\/2[data-side=right]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:-rotate-90[data-side=right]:not(#\#):not(#\#):not(#\#):not(#\#){rotate:-90deg}.data-\[side\=top\]\:-bottom-2\.5[data-side=top]:not(#\#):not(#\#):not(#\#):not(#\#){bottom:calc(var(--spacing) * -2.5)}.data-\[side\=top\]\:-bottom-2\.25[data-side=top]:not(#\#):not(#\#):not(#\#):not(#\#){bottom:calc(var(--spacing) * -2.25)}.data-\[side\=top\]\:rotate-180[data-side=top]:not(#\#):not(#\#):not(#\#):not(#\#){rotate:180deg}:is(.\*\:data-\[slot\=avatar\]\:ring-\[calc\(1em\/12\)\]>*)[data-slot=avatar]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(calc(1em / 12) + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}:is(.\*\:data-\[slot\=avatar\]\:ring-background>*)[data-slot=avatar]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ring-color:var(--background)}.data-\[slot\=breadcrumb-link\]\:not-data-active\:text-foreground-muted[data-slot=breadcrumb-link]:not([data-active]):not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground-muted)}@media (hover:hover){.data-\[slot\=breadcrumb-link\]\:hover\:text-foreground-intense[data-slot=breadcrumb-link]:hover:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--foreground-intense)}}:is(.\*\*\:data-\[slot\=combobox-input-field\]\:px-1 *)[data-slot=combobox-input-field]:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:var(--spacing)}:is(.\*\*\:data-\[slot\=meter-label\]\:col-start-1 *)[data-slot=meter-label]:not(#\#):not(#\#):not(#\#):not(#\#){grid-column-start:1}:is(.\*\*\:data-\[slot\=meter-label\]\:row-start-1 *)[data-slot=meter-label]:not(#\#):not(#\#):not(#\#):not(#\#){grid-row-start:1}:is(.\*\*\:data-\[slot\=meter-progress\]\:col-span-2 *)[data-slot=meter-progress]:not(#\#):not(#\#):not(#\#):not(#\#){grid-column:span 2/span 2}:is(.\*\*\:data-\[slot\=meter-value\]\:col-start-2 *)[data-slot=meter-value]:not(#\#):not(#\#):not(#\#):not(#\#){grid-column-start:2}:is(.\*\*\:data-\[slot\=meter-value\]\:row-start-1 *)[data-slot=meter-value]:not(#\#):not(#\#):not(#\#):not(#\#){grid-row-start:1}:is(.\*\*\:data-\[slot\=meter-value\]\:justify-self-end *)[data-slot=meter-value]:not(#\#):not(#\#):not(#\#):not(#\#){justify-self:flex-end}:is(.\*\*\:data-\[slot\=navigation-link-indicator\]\:inline-flex *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){display:inline-flex}:is(.\*\*\:data-\[slot\=navigation-link-indicator\]\:w-0 *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){width:0}:is(.\*\*\:data-\[slot\=navigation-link-indicator\]\:shrink-0 *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){flex-shrink:0}:is(.\*\*\:data-\[slot\=navigation-link-indicator\]\:items-center *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){align-items:center}:is(.\*\*\:data-\[slot\=navigation-link-indicator\]\:justify-center *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){justify-content:center}:is(.\*\*\:data-\[slot\=navigation-link-indicator\]\:overflow-hidden *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){overflow:hidden}:is(.\*\*\:data-\[slot\=navigation-link-indicator\]\:opacity-0 *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){opacity:0}:is(.\*\*\:data-\[slot\=navigation-link-indicator\]\:transition-\[width\,opacity\] *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:width,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}:is(.\*\*\:data-\[slot\=navigation-link-indicator\]\:duration-250 *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.25s;transition-duration:.25s}:is(.\*\*\:data-\[slot\=navigation-link-indicator\]\:ease-out *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}@media (hover:hover){:is(.hover\:\*\*\:data-\[slot\=navigation-link-indicator\]\:w-4:hover *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 4)}:is(.hover\:\*\*\:data-\[slot\=navigation-link-indicator\]\:w-4\.5:hover *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 4.5)}:is(.hover\:\*\*\:data-\[slot\=navigation-link-indicator\]\:w-5:hover *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 5)}:is(.hover\:\*\*\:data-\[slot\=navigation-link-indicator\]\:opacity-100:hover *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){opacity:1}}:is(.focus-visible\:\*\*\:data-\[slot\=navigation-link-indicator\]\:w-4:focus-visible *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 4)}:is(.focus-visible\:\*\*\:data-\[slot\=navigation-link-indicator\]\:w-4\.5:focus-visible *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 4.5)}:is(.focus-visible\:\*\*\:data-\[slot\=navigation-link-indicator\]\:w-5:focus-visible *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 5)}:is(.focus-visible\:\*\*\:data-\[slot\=navigation-link-indicator\]\:opacity-100:focus-visible *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){opacity:1}:is(.data-active\:\*\*\:data-\[slot\=navigation-link-indicator\]\:w-4[data-active] *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 4)}:is(.data-active\:\*\*\:data-\[slot\=navigation-link-indicator\]\:w-4\.5[data-active] *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 4.5)}:is(.data-active\:\*\*\:data-\[slot\=navigation-link-indicator\]\:w-5[data-active] *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(var(--spacing) * 5)}:is(.data-active\:\*\*\:data-\[slot\=navigation-link-indicator\]\:opacity-100[data-active] *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){opacity:1}:is(.\*\*\:data-\[slot\=navigation-link-label\]\:min-w-0 *)[data-slot=navigation-link-label]:not(#\#):not(#\#):not(#\#):not(#\#){min-width:0}:is(.\*\*\:data-\[slot\=navigation-link-label\]\:flex-1 *)[data-slot=navigation-link-label]:not(#\#):not(#\#):not(#\#):not(#\#){flex:1}:is(.\*\*\:data-\[slot\=navigation-link-label\]\:truncate *)[data-slot=navigation-link-label]:not(#\#):not(#\#):not(#\#):not(#\#){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.data-\[starting-style\]\:opacity-0[data-starting-style]:not(#\#):not(#\#):not(#\#):not(#\#){opacity:0}.data-\[variant\=bar\]\:grid-cols-\[1fr_auto\][data-variant=bar]:not(#\#):not(#\#):not(#\#):not(#\#){grid-template-columns:1fr auto}:is(.data-\[variant\=bar\]\:\*\*\:data-\[slot\=progress-label\]\:col-start-1[data-variant=bar] *)[data-slot=progress-label]:not(#\#):not(#\#):not(#\#):not(#\#){grid-column-start:1}:is(.data-\[variant\=bar\]\:\*\*\:data-\[slot\=progress-label\]\:row-start-1[data-variant=bar] *)[data-slot=progress-label]:not(#\#):not(#\#):not(#\#):not(#\#){grid-row-start:1}:is(.data-\[variant\=bar\]\:\*\*\:data-\[slot\=progress-track\]\:col-span-2[data-variant=bar] *)[data-slot=progress-track]:not(#\#):not(#\#):not(#\#):not(#\#){grid-column:span 2/span 2}:is(.data-\[variant\=bar\]\:\*\*\:data-\[slot\=progress-value\]\:col-start-2[data-variant=bar] *)[data-slot=progress-value]:not(#\#):not(#\#):not(#\#):not(#\#){grid-column-start:2}:is(.data-\[variant\=bar\]\:\*\*\:data-\[slot\=progress-value\]\:row-start-1[data-variant=bar] *)[data-slot=progress-value]:not(#\#):not(#\#):not(#\#):not(#\#){grid-row-start:1}:is(.data-\[variant\=bar\]\:\*\*\:data-\[slot\=progress-value\]\:justify-self-end[data-variant=bar] *)[data-slot=progress-value]:not(#\#):not(#\#):not(#\#):not(#\#){justify-self:flex-end}.data-\[variant\=circular\]\:w-fit[data-variant=circular]:not(#\#):not(#\#):not(#\#):not(#\#){width:fit-content}.data-\[variant\=circular\]\:justify-items-center[data-variant=circular]:not(#\#):not(#\#):not(#\#):not(#\#){justify-items:center}:is(.data-\[variant\=circular\]\:\*\*\:data-\[slot\=progress-circular\]\:col-start-1[data-variant=circular] *)[data-slot=progress-circular]:not(#\#):not(#\#):not(#\#):not(#\#){grid-column-start:1}:is(.data-\[variant\=circular\]\:\*\*\:data-\[slot\=progress-circular\]\:row-start-1[data-variant=circular] *)[data-slot=progress-circular]:not(#\#):not(#\#):not(#\#):not(#\#){grid-row-start:1}:is(.data-\[variant\=circular\]\:\*\*\:data-\[slot\=progress-label\]\:row-start-2[data-variant=circular] *)[data-slot=progress-label]:not(#\#):not(#\#):not(#\#):not(#\#){grid-row-start:2}:is(.data-\[variant\=circular\]\:\*\*\:data-\[slot\=progress-value\]\:col-start-1[data-variant=circular] *)[data-slot=progress-value]:not(#\#):not(#\#):not(#\#):not(#\#){grid-column-start:1}:is(.data-\[variant\=circular\]\:\*\*\:data-\[slot\=progress-value\]\:row-start-1[data-variant=circular] *)[data-slot=progress-value]:not(#\#):not(#\#):not(#\#):not(#\#){grid-row-start:1}:is(.data-\[variant\=circular\]\:\*\*\:data-\[slot\=progress-value\]\:place-self-center[data-variant=circular] *)[data-slot=progress-value]:not(#\#):not(#\#):not(#\#):not(#\#){place-self:center}@supports (-webkit-touch-callout:none){.supports-\[-webkit-touch-callout\:none\]\:absolute:not(#\#):not(#\#):not(#\#):not(#\#){position:absolute}}@supports (font:-apple-system-body){.supports-\[font\:-apple-system-body\]\:before\:hidden:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);display:none}}@media (prefers-reduced-motion:no-preference){.motion-safe\:origin-\(--transform-origin\):not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transform-origin:var(--transform-origin)}.motion-safe\:animate-pulse:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){animation:var(--animate-pulse)}.motion-safe\:animate-text-caret:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){animation:1s step-end infinite text-caret}.motion-safe\:transition:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:transition-\[grid-template-rows\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:transition-\[height\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:transition-\[left\,top\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:left,top;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:transition-\[left\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:left;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:transition-\[opacity\,scale\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:opacity,scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:transition-\[opacity\,stroke-dashoffset\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:opacity,stroke-dashoffset;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:transition-\[opacity\,translate\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:opacity,translate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:transition-\[scale\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:transition-\[stroke-dashoffset\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:stroke-dashoffset;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:transition-\[top\,left\,right\,bottom\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:top,left,right,bottom;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:transition-\[transform\,height\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:transform,height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:transition-\[translate\,width\,height\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:translate,width,height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:transition-\[width\,height\,background-color\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:width,height,background-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:transition-\[width\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:transition-all:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:transition-colors:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:transition-opacity:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:transition-transform:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:delay-\[0ms\,150ms\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-delay:0s,.15s}.motion-safe\:duration-150:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.15s;transition-duration:.15s}.motion-safe\:duration-200:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.2s;transition-duration:.2s}.motion-safe\:duration-250:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.25s;transition-duration:.25s}.motion-safe\:duration-300:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.3s;transition-duration:.3s}.motion-safe\:duration-350:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.35s;transition-duration:.35s}.motion-safe\:duration-400:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.4s;transition-duration:.4s}.motion-safe\:duration-\[150ms\,0ms\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.15s,0s;transition-duration:.15s,0s}.motion-safe\:duration-\[calc\(var\(--indent-transition\)\*400ms\)\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:calc(var(--indent-transition) * .4s);transition-duration:calc(var(--indent-transition) * .4s)}.motion-safe\:ease-\[cubic-bezier\(0\.22\,1\,0\.36\,1\)\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:cubic-bezier(.22,1,.36,1);transition-timing-function:cubic-bezier(.22,1,.36,1)}.motion-safe\:ease-\[cubic-bezier\(0\.32\,1\.2\,0\.4\,1\)\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:cubic-bezier(.32,1.2,.4,1);transition-timing-function:cubic-bezier(.32,1.2,.4,1)}.motion-safe\:ease-\[cubic-bezier\(0\.175\,0\.885\,0\.32\,1\.5\)\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:cubic-bezier(.175,.885,.32,1.5);transition-timing-function:cubic-bezier(.175,.885,.32,1.5)}.motion-safe\:ease-linear:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:linear;transition-timing-function:linear}.motion-safe\:ease-out:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.motion-safe\:animate-border-beam:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){animation-name:border-beam;animation-duration:var(--border-beam-duration,5s);animation-delay:var(--border-beam-delay,0s);animation-timing-function:linear;animation-iteration-count:infinite}.motion-safe\:animate-gradient-glow:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){animation-name:gradient-glow;animation-duration:var(--gradient-glow-duration,4s);animation-timing-function:linear;animation-iteration-count:infinite}.motion-safe\:animate-gradient-glow-aura:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){animation-name:gradient-glow,gradient-glow-pulse;animation-duration:var(--gradient-glow-duration,4s);animation-timing-function:linear,ease-in-out;animation-iteration-count:infinite}.motion-safe\:\[transition\:opacity_300ms_cubic-bezier\(0\.175\,0\.885\,0\.32\,1\.5\)\,scale_300ms_cubic-bezier\(0\.175\,0\.885\,0\.32\,1\.5\)\,width_300ms_cubic-bezier\(0\.22\,1\,0\.36\,1\)\,height_300ms_cubic-bezier\(0\.22\,1\,0\.36\,1\)\]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition:opacity .3s cubic-bezier(.175,.885,.32,1.5),scale .3s cubic-bezier(.175,.885,.32,1.5),width .3s cubic-bezier(.22,1,.36,1),height .3s cubic-bezier(.22,1,.36,1)}.motion-safe\:group-data-checked\/check\:delay-\[0ms\]:not([data-disable-animations] *):is(:where(.group\/check)[data-checked] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-delay:0s}.motion-safe\:group-data-checked\/check\:duration-\[0ms\,300ms\]:not([data-disable-animations] *):is(:where(.group\/check)[data-checked] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:0s,.3s;transition-duration:0s,.3s}.group-data-ending-style\/popup\:motion-safe\:scale-95:is(:where(.group\/popup)[data-ending-style] *):not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-data-ending-style\/popup\:motion-safe\:opacity-0:is(:where(.group\/popup)[data-ending-style] *):not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){opacity:0}.group-data-ending-style\/popup\:motion-safe\:duration-100:is(:where(.group\/popup)[data-ending-style] *):not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.1s;transition-duration:.1s}.group-data-ending-style\/popup\:motion-safe\:ease-out:is(:where(.group\/popup)[data-ending-style] *):not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.motion-safe\:group-data-selected\/check\:delay-\[0ms\]:not([data-disable-animations] *):is(:where(.group\/check)[data-selected] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-delay:0s}.motion-safe\:group-data-selected\/check\:duration-\[0ms\,300ms\]:not([data-disable-animations] *):is(:where(.group\/check)[data-selected] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:0s,.3s;transition-duration:0s,.3s}.group-data-starting-style\/popup\:motion-safe\:scale-90:is(:where(.group\/popup)[data-starting-style] *):not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-data-starting-style\/popup\:motion-safe\:opacity-0:is(:where(.group\/popup)[data-starting-style] *):not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){opacity:0}.motion-safe\:before\:transition-opacity:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:before\:duration-200:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);--tw-duration:.2s;transition-duration:.2s}.motion-safe\:before\:ease-out:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.motion-safe\:active\:translate-y-px:not([data-disable-animations] *):active:not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.motion-safe\:active\:scale-90:not([data-disable-animations] *):active:not(#\#):not(#\#):not(#\#):not(#\#){--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x) var(--tw-scale-y)}.motion-safe\:active\:duration-100:not([data-disable-animations] *):active:not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.1s;transition-duration:.1s}.motion-safe\:active\:ease-in-out:not([data-disable-animations] *):active:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.data-ending-style\:motion-safe\:scale-95[data-ending-style]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-ending-style\:motion-safe\:opacity-0[data-ending-style]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){opacity:0}.data-ending-style\:motion-safe\:duration-100[data-ending-style]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.1s;transition-duration:.1s}.data-ending-style\:motion-safe\:duration-150[data-ending-style]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.15s;transition-duration:.15s}.data-ending-style\:motion-safe\:duration-300[data-ending-style]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.3s;transition-duration:.3s}.data-ending-style\:motion-safe\:ease-out[data-ending-style]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.data-instant\:motion-safe\:transition-none[data-instant]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:none}.data-starting-style\:motion-safe\:scale-90[data-starting-style]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-starting-style\:motion-safe\:scale-95[data-starting-style]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.motion-safe\:data-starting-style\:\[transform\:translateY\(-150\%\)\]:not([data-disable-animations] *)[data-starting-style]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateY(-150%)}.motion-safe\:data-starting-style\:\[transform\:translateY\(150\%\)\]:not([data-disable-animations] *)[data-starting-style]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateY(150%)}.data-starting-style\:motion-safe\:opacity-0[data-starting-style]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){opacity:0}.data-\[activation-direction\=down\]\:data-ending-style\:motion-safe\:-translate-y-4[data-activation-direction=down][data-ending-style]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[activation-direction\=down\]\:data-starting-style\:motion-safe\:translate-y-4[data-activation-direction=down][data-starting-style]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[activation-direction\=left\]\:data-ending-style\:motion-safe\:translate-x-4[data-activation-direction=left][data-ending-style]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[activation-direction\=left\]\:data-starting-style\:motion-safe\:-translate-x-4[data-activation-direction=left][data-starting-style]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#),.data-\[activation-direction\=right\]\:data-ending-style\:motion-safe\:-translate-x-4[data-activation-direction=right][data-ending-style]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-x:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[activation-direction\=right\]\:data-starting-style\:motion-safe\:translate-x-4[data-activation-direction=right][data-starting-style]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[activation-direction\=up\]\:data-ending-style\:motion-safe\:translate-y-4[data-activation-direction=up][data-ending-style]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[activation-direction\=up\]\:data-starting-style\:motion-safe\:-translate-y-4[data-activation-direction=up][data-starting-style]:not([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.motion-safe\:data-ending-style\:data-\[swipe-direction\=down\]\:\[transform\:translateY\(calc\(var\(--toast-swipe-movement-y\)\+150\%\)\)\]:not([data-disable-animations] *)[data-ending-style][data-swipe-direction=down]:not(#\#):not(#\#):not(#\#):not(#\#),.motion-safe\:data-expanded\:data-ending-style\:data-\[swipe-direction\=down\]\:\[transform\:translateY\(calc\(var\(--toast-swipe-movement-y\)\+150\%\)\)\]:not([data-disable-animations] *)[data-expanded][data-ending-style][data-swipe-direction=down]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateY(calc(var(--toast-swipe-movement-y) + 150%))}.motion-safe\:data-ending-style\:data-\[swipe-direction\=left\]\:\[transform\:translateX\(calc\(var\(--toast-swipe-movement-x\)-150\%\)\)_translateY\(var\(--offset-y\)\)\]:not([data-disable-animations] *)[data-ending-style][data-swipe-direction=left]:not(#\#):not(#\#):not(#\#):not(#\#),.motion-safe\:data-expanded\:data-ending-style\:data-\[swipe-direction\=left\]\:\[transform\:translateX\(calc\(var\(--toast-swipe-movement-x\)-150\%\)\)_translateY\(var\(--offset-y\)\)\]:not([data-disable-animations] *)[data-expanded][data-ending-style][data-swipe-direction=left]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(calc(var(--toast-swipe-movement-x) - 150%)) translateY(var(--offset-y))}.motion-safe\:data-ending-style\:data-\[swipe-direction\=right\]\:\[transform\:translateX\(calc\(var\(--toast-swipe-movement-x\)\+150\%\)\)_translateY\(var\(--offset-y\)\)\]:not([data-disable-animations] *)[data-ending-style][data-swipe-direction=right]:not(#\#):not(#\#):not(#\#):not(#\#),.motion-safe\:data-expanded\:data-ending-style\:data-\[swipe-direction\=right\]\:\[transform\:translateX\(calc\(var\(--toast-swipe-movement-x\)\+150\%\)\)_translateY\(var\(--offset-y\)\)\]:not([data-disable-animations] *)[data-expanded][data-ending-style][data-swipe-direction=right]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(calc(var(--toast-swipe-movement-x) + 150%)) translateY(var(--offset-y))}.motion-safe\:data-ending-style\:data-\[swipe-direction\=up\]\:\[transform\:translateY\(calc\(var\(--toast-swipe-movement-y\)-150\%\)\)\]:not([data-disable-animations] *)[data-ending-style][data-swipe-direction=up]:not(#\#):not(#\#):not(#\#):not(#\#),.motion-safe\:data-expanded\:data-ending-style\:data-\[swipe-direction\=up\]\:\[transform\:translateY\(calc\(var\(--toast-swipe-movement-y\)-150\%\)\)\]:not([data-disable-animations] *)[data-expanded][data-ending-style][data-swipe-direction=up]:not(#\#):not(#\#):not(#\#):not(#\#){transform:translateY(calc(var(--toast-swipe-movement-y) - 150%))}}@media (prefers-reduced-motion:reduce){.motion-reduce\:hidden:not(#\#):not(#\#):not(#\#):not(#\#){display:none}}.motion-reduce\:hidden:is([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){display:none}@media (prefers-reduced-motion:reduce){.motion-reduce\:animate-none:not(#\#):not(#\#):not(#\#):not(#\#){animation:none}}.motion-reduce\:animate-none:is([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){animation:none}@media (prefers-reduced-motion:reduce){.motion-reduce\:transition-none:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:none}}.motion-reduce\:transition-none:is([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:none}@media (prefers-reduced-motion:reduce){.motion-reduce\:before\:transition-none:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);transition-property:none}}.motion-reduce\:before\:transition-none:is([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);transition-property:none}@media (prefers-reduced-motion:reduce){.motion-reduce\:after\:transition-none:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);transition-property:none}}.motion-reduce\:after\:transition-none:is([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);transition-property:none}@media (prefers-reduced-motion:reduce){:is(.motion-reduce\:\*\*\:data-\[slot\=navigation-link-indicator\]\:transition-none *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:none}}:is(.motion-reduce\:\*\*\:data-\[slot\=navigation-link-indicator\]\:transition-none:is([data-disable-animations] *) *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){transition-property:none}@media (min-width:40rem){.sm\:mx-0:not(#\#):not(#\#):not(#\#):not(#\#){margin-inline:0}.sm\:h-\[var\(--qr-size\)\]:not(#\#):not(#\#):not(#\#):not(#\#){height:var(--qr-size)}.sm\:w-\[var\(--qr-size\)\]:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--qr-size)}.sm\:max-w-none:not(#\#):not(#\#):not(#\#):not(#\#){max-width:none}.sm\:grid-cols-2:not(#\#):not(#\#):not(#\#):not(#\#){grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row:not(#\#):not(#\#):not(#\#):not(#\#){flex-direction:row}.sm\:items-center:not(#\#):not(#\#):not(#\#):not(#\#){align-items:center}.sm\:items-stretch:not(#\#):not(#\#):not(#\#):not(#\#){align-items:stretch}.sm\:justify-end:not(#\#):not(#\#):not(#\#):not(#\#){justify-content:flex-end}.sm\:self-start:not(#\#):not(#\#):not(#\#):not(#\#){align-self:flex-start}.sm\:p-4:not(#\#):not(#\#):not(#\#):not(#\#){padding:calc(var(--spacing) * 4)}.sm\:p-5:not(#\#):not(#\#):not(#\#):not(#\#){padding:calc(var(--spacing) * 5)}}@media (min-width:48rem){.md\:col-span-2:not(#\#):not(#\#):not(#\#):not(#\#){grid-column:span 2/span 2}.md\:col-start-1:not(#\#):not(#\#):not(#\#):not(#\#){grid-column-start:1}.md\:col-start-2:not(#\#):not(#\#):not(#\#):not(#\#){grid-column-start:2}.md\:row-start-1:not(#\#):not(#\#):not(#\#):not(#\#){grid-row-start:1}.md\:row-start-2:not(#\#):not(#\#):not(#\#):not(#\#){grid-row-start:2}.md\:columns-2:not(#\#):not(#\#):not(#\#):not(#\#){columns:2}.md\:grid-cols-2:not(#\#):not(#\#):not(#\#):not(#\#){grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3:not(#\#):not(#\#):not(#\#):not(#\#){grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-\[minmax\(320px\,1fr\)_minmax\(0\,1fr\)\]:not(#\#):not(#\#):not(#\#):not(#\#){grid-template-columns:minmax(320px,1fr) minmax(0,1fr)}}@media (min-width:64rem){.lg\:col-span-4:not(#\#):not(#\#):not(#\#):not(#\#){grid-column:span 4/span 4}.lg\:col-span-6:not(#\#):not(#\#):not(#\#):not(#\#){grid-column:span 6/span 6}.lg\:grid-cols-10:not(#\#):not(#\#):not(#\#):not(#\#){grid-template-columns:repeat(10,minmax(0,1fr))}.lg\:flex-nowrap:not(#\#):not(#\#):not(#\#):not(#\#){flex-wrap:nowrap}.lg\:gap-6:not(#\#):not(#\#):not(#\#):not(#\#){gap:calc(var(--spacing) * 6)}.lg\:text-lg:not(#\#):not(#\#):not(#\#):not(#\#){font-size:1.125rem;line-height:var(--tw-leading,1.625rem)}}@media (min-width:80rem){.xl\:columns-3:not(#\#):not(#\#):not(#\#):not(#\#){columns:3}.xl\:px-2:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 2)}.xl\:px-4:not(#\#):not(#\#):not(#\#):not(#\#){padding-inline:calc(var(--spacing) * 4)}.xl\:text-sm:not(#\#):not(#\#):not(#\#):not(#\#){font-size:.875rem;line-height:var(--tw-leading,1.25rem)}.xl\:before\:border:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-style:var(--tw-border-style);border-width:var(--border-width)}.xl\:before\:border-border:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:var(--border)}.xl\:before\:bg-background:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background)}}@container (width>=460px){.\@min-\[460px\]\:group-data-\[layout\=inline\]\/alert\:my-0:is(:where(.group\/alert)[data-layout=inline] *):not(#\#):not(#\#):not(#\#):not(#\#){margin-block:0}.\@min-\[460px\]\:group-data-\[layout\=inline\]\/alert\:ms-3:is(:where(.group\/alert)[data-layout=inline] *):not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-start:calc(var(--spacing) * 3)}.\@min-\[460px\]\:group-data-\[layout\=inline\]\/alert\:me-3:is(:where(.group\/alert)[data-layout=inline] *):not(#\#):not(#\#):not(#\#):not(#\#){margin-inline-end:calc(var(--spacing) * 3)}.\@min-\[460px\]\:group-data-\[layout\=inline\]\/alert\:mt-0:is(:where(.group\/alert)[data-layout=inline] *):not(#\#):not(#\#):not(#\#):not(#\#){margin-top:0}.\@min-\[460px\]\:group-data-\[layout\=inline\]\/alert\:self-center:is(:where(.group\/alert)[data-layout=inline] *):not(#\#):not(#\#):not(#\#):not(#\#){align-self:center}.\@min-\[460px\]\:group-data-\[layout\=inline\]\/alert\:pt-0:is(:where(.group\/alert)[data-layout=inline] *):not(#\#):not(#\#):not(#\#):not(#\#){padding-top:0}.\@min-\[460px\]\:group-data-\[layout\=inline\]\/alert\:text-sm:is(:where(.group\/alert)[data-layout=inline] *):not(#\#):not(#\#):not(#\#):not(#\#){font-size:.875rem;line-height:var(--tw-leading,1.25rem)}.\@min-\[460px\]\:data-\[layout\=inline\]\:\[grid-template-columns\:auto_auto_1fr_auto_auto\][data-layout=inline]:not(#\#):not(#\#):not(#\#):not(#\#){grid-template-columns:auto auto 1fr auto auto}.\@min-\[460px\]\:data-\[layout\=inline\]\:items-center[data-layout=inline]:not(#\#):not(#\#):not(#\#):not(#\#){align-items:center}.\@min-\[460px\]\:data-\[layout\=inline\]\:\[grid-template-areas\:\'icon_title_description_actions_close\'\][data-layout=inline]:not(#\#):not(#\#):not(#\#):not(#\#){grid-template-areas:"icon title description actions close"}}.ltr\:\[mask-image\:linear-gradient\(to_bottom\,transparent_0\,black_min\(40px\,var\(--scroll-area-overflow-y-start\)\)\,black_calc\(100\%_-_min\(40px\,var\(--scroll-area-overflow-y-end\,40px\)\)\)\,transparent_100\%\)\,linear-gradient\(to_right\,transparent_0\,black_min\(40px\,var\(--scroll-area-overflow-x-start\)\)\,black_calc\(100\%_-_min\(40px\,var\(--scroll-area-overflow-x-end\,40px\)\)\)\,transparent_100\%\)\]:where(:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=ltr],[dir=ltr] *):not(#\#):not(#\#):not(#\#):not(#\#){-webkit-mask-image:linear-gradient(to bottom,transparent 0,black min(40px, var(--scroll-area-overflow-y-start)),black calc(100% - min(40px, var(--scroll-area-overflow-y-end,40px))),transparent 100%),linear-gradient(to right,transparent 0,black min(40px, var(--scroll-area-overflow-x-start)),black calc(100% - min(40px, var(--scroll-area-overflow-x-end,40px))),transparent 100%);-webkit-mask-image:linear-gradient(to bottom,transparent 0,black min(40px, var(--scroll-area-overflow-y-start)),black calc(100% - min(40px, var(--scroll-area-overflow-y-end,40px))),transparent 100%),linear-gradient(to right,transparent 0,black min(40px, var(--scroll-area-overflow-x-start)),black calc(100% - min(40px, var(--scroll-area-overflow-x-end,40px))),transparent 100%);-webkit-mask-image:linear-gradient(to bottom,transparent 0,black min(40px, var(--scroll-area-overflow-y-start)),black calc(100% - min(40px, var(--scroll-area-overflow-y-end,40px))),transparent 100%),linear-gradient(to right,transparent 0,black min(40px, var(--scroll-area-overflow-x-start)),black calc(100% - min(40px, var(--scroll-area-overflow-x-end,40px))),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,black min(40px, var(--scroll-area-overflow-y-start)),black calc(100% - min(40px, var(--scroll-area-overflow-y-end,40px))),transparent 100%),linear-gradient(to right,transparent 0,black min(40px, var(--scroll-area-overflow-x-start)),black calc(100% - min(40px, var(--scroll-area-overflow-x-end,40px))),transparent 100%)}.data-\[orientation\=horizontal\]\:ltr\:-translate-x-1\/2[data-orientation=horizontal]:where(:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=ltr],[dir=ltr] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[orientation\=horizontal\]\:ltr\:translate-x-\(--active-tab-left\)[data-orientation=horizontal]:where(:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=ltr],[dir=ltr] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-x:var(--active-tab-left);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[orientation\=horizontal\]\:ltr\:translate-x-1\/2[data-orientation=horizontal]:where(:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=ltr],[dir=ltr] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-x:calc(1 / 2 * 100%);translate:var(--tw-translate-x) var(--tw-translate-y)}.ltr\:data-\[orientation\=horizontal\]\:after\:bg-right:where(:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=ltr],[dir=ltr] *)[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-position:100%}@media (hover:hover){.ltr\:hover\:data-\[orientation\=horizontal\]\:after\:bg-left:where(:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=ltr],[dir=ltr] *):hover[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-position:0}}.ltr\:data-active\:data-\[orientation\=horizontal\]\:after\:bg-left:where(:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=ltr],[dir=ltr] *)[data-active][data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after,.ltr\:data-popup-open\:data-\[orientation\=horizontal\]\:after\:bg-left:where(:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=ltr],[dir=ltr] *)[data-popup-open][data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after,.ltr\:data-pressed\:data-\[orientation\=horizontal\]\:after\:bg-left:where(:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=ltr],[dir=ltr] *)[data-pressed][data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-position:0}.ltr\:focus-visible\:data-\[orientation\=horizontal\]\:after\:bg-left:where(:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=ltr],[dir=ltr] *):focus-visible[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-position:0}.data-\[orientation\=vertical\]\:ltr\:origin-left[data-orientation=vertical]:where(:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=ltr],[dir=ltr] *):not(#\#):not(#\#):not(#\#):not(#\#){transform-origin:0}.data-\[side\=inline-end\]\:ltr\:-rotate-90[data-side=inline-end]:where(:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=ltr],[dir=ltr] *):not(#\#):not(#\#):not(#\#):not(#\#){rotate:-90deg}.data-\[side\=inline-start\]\:ltr\:rotate-90[data-side=inline-start]:where(:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=ltr],[dir=ltr] *):not(#\#):not(#\#):not(#\#):not(#\#){rotate:90deg}.rtl\:origin-right:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):not(#\#):not(#\#):not(#\#):not(#\#){transform-origin:100%}.rtl\:translate-x-1\/2:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-x:calc(1 / 2 * 100%);translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:rotate-90:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):not(#\#):not(#\#):not(#\#):not(#\#){rotate:90deg}.rtl\:rotate-180:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):not(#\#):not(#\#):not(#\#):not(#\#){rotate:180deg}.rtl\:transform-\[scaleX\(-1\)\]:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):not(#\#):not(#\#):not(#\#):not(#\#){transform:scaleX(-1)}.rtl\:\[mask-image\:linear-gradient\(to_bottom\,transparent_0\,black_min\(40px\,var\(--scroll-area-overflow-y-start\)\)\,black_calc\(100\%_-_min\(40px\,var\(--scroll-area-overflow-y-end\,40px\)\)\)\,transparent_100\%\)\,linear-gradient\(to_left\,transparent_0\,black_min\(40px\,var\(--scroll-area-overflow-x-start\)\)\,black_calc\(100\%_-_min\(40px\,var\(--scroll-area-overflow-x-end\,40px\)\)\)\,transparent_100\%\)\]:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):not(#\#):not(#\#):not(#\#):not(#\#){-webkit-mask-image:linear-gradient(to bottom,transparent 0,black min(40px, var(--scroll-area-overflow-y-start)),black calc(100% - min(40px, var(--scroll-area-overflow-y-end,40px))),transparent 100%),linear-gradient(to left,transparent 0,black min(40px, var(--scroll-area-overflow-x-start)),black calc(100% - min(40px, var(--scroll-area-overflow-x-end,40px))),transparent 100%);-webkit-mask-image:linear-gradient(to bottom,transparent 0,black min(40px, var(--scroll-area-overflow-y-start)),black calc(100% - min(40px, var(--scroll-area-overflow-y-end,40px))),transparent 100%),linear-gradient(to left,transparent 0,black min(40px, var(--scroll-area-overflow-x-start)),black calc(100% - min(40px, var(--scroll-area-overflow-x-end,40px))),transparent 100%);-webkit-mask-image:linear-gradient(to bottom,transparent 0,black min(40px, var(--scroll-area-overflow-y-start)),black calc(100% - min(40px, var(--scroll-area-overflow-y-end,40px))),transparent 100%),linear-gradient(to left,transparent 0,black min(40px, var(--scroll-area-overflow-x-start)),black calc(100% - min(40px, var(--scroll-area-overflow-x-end,40px))),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,black min(40px, var(--scroll-area-overflow-y-start)),black calc(100% - min(40px, var(--scroll-area-overflow-y-end,40px))),transparent 100%),linear-gradient(to left,transparent 0,black min(40px, var(--scroll-area-overflow-x-start)),black calc(100% - min(40px, var(--scroll-area-overflow-x-end,40px))),transparent 100%)}.data-\[orientation\=horizontal\]\:rtl\:-translate-x-\(--active-tab-right\)[data-orientation=horizontal]:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-x:calc(var(--active-tab-right) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[orientation\=horizontal\]\:rtl\:-translate-x-1\/2[data-orientation=horizontal]:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[orientation\=horizontal\]\:rtl\:translate-x-1\/2[data-orientation=horizontal]:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-x:calc(1 / 2 * 100%);translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:data-\[orientation\=horizontal\]\:after\:bg-left:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *)[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-position:0}@media (hover:hover){.rtl\:hover\:data-\[orientation\=horizontal\]\:after\:bg-right:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):hover[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-position:100%}}.rtl\:data-active\:data-\[orientation\=horizontal\]\:after\:bg-right:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *)[data-active][data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after,.rtl\:data-popup-open\:data-\[orientation\=horizontal\]\:after\:bg-right:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *)[data-popup-open][data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after,.rtl\:data-pressed\:data-\[orientation\=horizontal\]\:after\:bg-right:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *)[data-pressed][data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-position:100%}.rtl\:focus-visible\:data-\[orientation\=horizontal\]\:after\:bg-right:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):focus-visible[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):after{content:var(--tw-content);background-position:100%}.data-\[orientation\=vertical\]\:rtl\:origin-right[data-orientation=vertical]:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):not(#\#):not(#\#):not(#\#):not(#\#){transform-origin:100%}.data-\[side\=inline-end\]\:rtl\:rotate-90[data-side=inline-end]:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):not(#\#):not(#\#):not(#\#):not(#\#){rotate:90deg}.data-\[side\=inline-start\]\:rtl\:-rotate-90[data-side=inline-start]:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):not(#\#):not(#\#):not(#\#):not(#\#){rotate:-90deg}:is(.rtl\:\*\*\:data-\[slot\=navigation-link-indicator\]\:rotate-180:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *) *)[data-slot=navigation-link-indicator]:not(#\#):not(#\#):not(#\#):not(#\#){rotate:180deg}.dark\:bg-background-subtle:is(.dark *):not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background-subtle)}.dark\:bg-current\/14:is(.dark *):not(#\#):not(#\#):not(#\#):not(#\#){background-color:currentColor}@supports (color:color-mix(in lab, red, red)){.dark\:bg-current\/14:is(.dark *):not(#\#):not(#\#):not(#\#):not(#\#){background-color:color-mix(in oklab, currentcolor 14%, transparent)}}.dark\:bg-current\/38:is(.dark *):not(#\#):not(#\#):not(#\#):not(#\#){background-color:currentColor}@supports (color:color-mix(in lab, red, red)){.dark\:bg-current\/38:is(.dark *):not(#\#):not(#\#):not(#\#):not(#\#){background-color:color-mix(in oklab, currentcolor 38%, transparent)}}.dark\:bg-current\/68:is(.dark *):not(#\#):not(#\#):not(#\#):not(#\#){background-color:currentColor}@supports (color:color-mix(in lab, red, red)){.dark\:bg-current\/68:is(.dark *):not(#\#):not(#\#):not(#\#):not(#\#){background-color:color-mix(in oklab, currentcolor 68%, transparent)}}.dark\:\[--gradient-glow-opacity\:0\.6\]:is(.dark *):not(#\#):not(#\#):not(#\#):not(#\#){--gradient-glow-opacity:.6}:where([data-slot=tooltip-content]):not(#\#):not(#\#):not(#\#):not(#\#) .dark\:in-data-\[slot\=tooltip-content\]\:border-border-intense\/20:is(.dark *){border-color:var(--border-intense)}@supports (color:color-mix(in lab, red, red)){:where([data-slot=tooltip-content]):not(#\#):not(#\#):not(#\#):not(#\#) .dark\:in-data-\[slot\=tooltip-content\]\:border-border-intense\/20:is(.dark *){border-color:color-mix(in oklab, var(--border-intense) 20%, transparent)}}@media (pointer:coarse){.pointer-coarse\:text-base:not(#\#):not(#\#):not(#\#):not(#\#){font-size:1rem;line-height:var(--tw-leading,1.5rem)}}@media (hover:none){.hover-none\:opacity-\(--gradient-glow-opacity\):not(#\#):not(#\#):not(#\#):not(#\#){opacity:var(--gradient-glow-opacity)}.hover-none\:opacity-100:not(#\#):not(#\#):not(#\#):not(#\#){opacity:1}.hover-none\:\[animation-play-state\:running\]:not(#\#):not(#\#):not(#\#):not(#\#){animation-play-state:running}}.\[\&_dt\]\:text-foreground-strong:not(#\#):not(#\#):not(#\#):not(#\#) dt{color:var(--foreground-strong)}.\[\&_svg\]\:pointer-events-none:not(#\#):not(#\#):not(#\#):not(#\#) svg{pointer-events:none}.\[\&_svg\]\:size-3:not(#\#):not(#\#):not(#\#):not(#\#) svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&_svg\]\:size-3\.5:not(#\#):not(#\#):not(#\#):not(#\#) svg{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&_svg\]\:size-3\.5\!:not(#\#) svg{width:calc(var(--spacing) * 3.5)!important;height:calc(var(--spacing) * 3.5)!important}.\[\&_svg\]\:size-4:not(#\#):not(#\#):not(#\#):not(#\#) svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\]\:size-4\!:not(#\#) svg{width:calc(var(--spacing) * 4)!important;height:calc(var(--spacing) * 4)!important}.\[\&_svg\]\:size-4\.5:not(#\#):not(#\#):not(#\#):not(#\#) svg{width:calc(var(--spacing) * 4.5);height:calc(var(--spacing) * 4.5)}.\[\&_svg\]\:size-4\.5\!:not(#\#) svg{width:calc(var(--spacing) * 4.5)!important;height:calc(var(--spacing) * 4.5)!important}.\[\&_svg\]\:size-5:not(#\#):not(#\#):not(#\#):not(#\#) svg{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.\[\&_svg\]\:h-full:not(#\#):not(#\#):not(#\#):not(#\#) svg{height:100%}.\[\&_svg\]\:w-full:not(#\#):not(#\#):not(#\#):not(#\#) svg{width:100%}.\[\&_svg\]\:shrink-0:not(#\#):not(#\#):not(#\#):not(#\#) svg{flex-shrink:0}.\[\&_svg\]\:rotate-180:not(#\#):not(#\#):not(#\#):not(#\#) svg{rotate:180deg}.\[\&_svg\]\:rtl\:rotate-0:not(#\#):not(#\#):not(#\#):not(#\#) svg:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){rotate:0deg}.\[\&_svg\]\:rtl\:rotate-180:not(#\#):not(#\#):not(#\#):not(#\#) svg:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){rotate:180deg}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-2\.5:not(#\#):not(#\#):not(#\#):not(#\#) svg:not([class*=size-]){width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3:not(#\#):not(#\#):not(#\#):not(#\#) svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5:not(#\#):not(#\#):not(#\#):not(#\#) svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4:not(#\#):not(#\#):not(#\#):not(#\#) svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4\.5:not(#\#):not(#\#):not(#\#):not(#\#) svg:not([class*=size-]){width:calc(var(--spacing) * 4.5);height:calc(var(--spacing) * 4.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-5:not(#\#):not(#\#):not(#\#):not(#\#) svg:not([class*=size-]){width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-5\.5:not(#\#):not(#\#):not(#\#):not(#\#) svg:not([class*=size-]){width:calc(var(--spacing) * 5.5);height:calc(var(--spacing) * 5.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-\[0\.5em\]:not(#\#):not(#\#):not(#\#):not(#\#) svg:not([class*=size-]){width:.5em;height:.5em}.\[\&_svg\:not\(\[class\*\=\'stroke-\'\]\)\]\:stroke-2:not(#\#):not(#\#):not(#\#):not(#\#) svg:not([class*=stroke-]){stroke-width:2px}.\[\&_svg\:not\(\[class\*\=\'stroke-\'\]\)\]\:stroke-\[1\.65\]:not(#\#):not(#\#):not(#\#):not(#\#) svg:not([class*=stroke-]){stroke-width:1.65px}.\[\&_svg\:not\(\[class\*\=\'stroke-\'\]\)\]\:stroke-\[1\.75\]:not(#\#):not(#\#):not(#\#):not(#\#) svg:not([class*=stroke-]){stroke-width:1.75px}.\[\&_svg\:not\(\[class\*\=\'stroke-\'\]\)\]\:stroke-\[1\.85\]:not(#\#):not(#\#):not(#\#):not(#\#) svg:not([class*=stroke-]){stroke-width:1.85px}.\[\&_td\]\:border-b:not(#\#):not(#\#):not(#\#):not(#\#) td{border-bottom-style:var(--tw-border-style);border-bottom-width:var(--border-width)}.\[\&_td\]\:border-b-0:not(#\#):not(#\#):not(#\#):not(#\#) td{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.\[\&_td\]\:border-dashed:not(#\#):not(#\#):not(#\#):not(#\#) td{--tw-border-style:dashed;border-style:dashed}.\[\&_td\]\:border-border:not(#\#):not(#\#):not(#\#):not(#\#) td{border-color:var(--border)}.\[\&_td\]\:border-border-strong:not(#\#):not(#\#):not(#\#):not(#\#) td{border-color:var(--border-strong)}.\[\&_td\]\:p-3:not(#\#):not(#\#):not(#\#):not(#\#) td{padding:calc(var(--spacing) * 3)}.\[\&_td\]\:p-3\.5:not(#\#):not(#\#):not(#\#):not(#\#) td{padding:calc(var(--spacing) * 3.5)}.\[\&_td\]\:p-4:not(#\#):not(#\#):not(#\#):not(#\#) td{padding:calc(var(--spacing) * 4)}.\[\&_td\]\:align-middle:not(#\#):not(#\#):not(#\#):not(#\#) td{vertical-align:middle}.\[\&_th\]\:p-3:not(#\#):not(#\#):not(#\#):not(#\#) th{padding:calc(var(--spacing) * 3)}.\[\&_th\]\:p-3\.5:not(#\#):not(#\#):not(#\#):not(#\#) th{padding:calc(var(--spacing) * 3.5)}.\[\&_th\]\:p-4:not(#\#):not(#\#):not(#\#):not(#\#) th{padding:calc(var(--spacing) * 4)}.\[\&\:\:-webkit-scrollbar\]\:hidden:not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-scrollbar{display:none}.\[a\,button\]\:transform-gpu:is(a,button):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateZ(0) var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.\[a\,button\]\:cursor-pointer:is(a,button):not(#\#):not(#\#):not(#\#):not(#\#){cursor:pointer}.\[a\,button\]\:transition:is(a,button):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.\[a\,button\]\:duration-250:is(a,button):not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.25s;transition-duration:.25s}.\[a\,button\]\:ease-\[cubic-bezier\(0\.175\,0\.885\,0\.32\,1\.5\)\]:is(a,button):not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:cubic-bezier(.175,.885,.32,1.5);transition-timing-function:cubic-bezier(.175,.885,.32,1.5)}.\[a\,button\]\:before\:border:is(a,button):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-style:var(--tw-border-style);border-width:var(--border-width)}.\[a\,button\]\:before\:border-transparent:is(a,button):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:#0000}.\[a\,button\]\:before\:bg-\[radial-gradient\(138\.15\%_78\.13\%_at_52\.05\%_50\%\,var\(--error-muted\)_0\%\,rgba\(255\,255\,255\,\.5\)_95\%\)\]:is(a,button):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-image:radial-gradient(138.15% 78.13% at 52.05% 50%,var(--error-muted) 0%,#ffffff80 95%)}.\[a\,button\]\:before\:bg-\[radial-gradient\(138\.15\%_78\.13\%_at_52\.05\%_50\%\,var\(--info-muted\)_0\%\,rgba\(255\,255\,255\,\.5\)_95\%\)\]:is(a,button):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-image:radial-gradient(138.15% 78.13% at 52.05% 50%,var(--info-muted) 0%,#ffffff80 95%)}.\[a\,button\]\:before\:bg-\[radial-gradient\(138\.15\%_78\.13\%_at_52\.05\%_50\%\,var\(--primary\)_0\%\,var\(--primary-muted\)_75\%\)\]:is(a,button):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-image:radial-gradient(138.15% 78.13% at 52.05% 50%,var(--primary) 0%,var(--primary-muted) 75%)}.\[a\,button\]\:before\:bg-\[radial-gradient\(138\.15\%_78\.13\%_at_52\.05\%_50\%\,var\(--secondary\)_0\%\,var\(--secondary-muted\)_95\%\)\]:is(a,button):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-image:radial-gradient(138.15% 78.13% at 52.05% 50%,var(--secondary) 0%,var(--secondary-muted) 95%)}.\[a\,button\]\:before\:bg-\[radial-gradient\(138\.15\%_78\.13\%_at_52\.05\%_50\%\,var\(--success-muted\)_0\%\,rgba\(255\,255\,255\,\.5\)_95\%\)\]:is(a,button):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-image:radial-gradient(138.15% 78.13% at 52.05% 50%,var(--success-muted) 0%,#ffffff80 95%)}.\[a\,button\]\:before\:bg-\[radial-gradient\(138\.15\%_78\.13\%_at_52\.05\%_50\%\,var\(--warning-muted\)_0\%\,rgba\(255\,255\,255\,\.5\)_95\%\)\]:is(a,button):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-image:radial-gradient(138.15% 78.13% at 52.05% 50%,var(--warning-muted) 0%,#ffffff80 95%)}.\[a\,button\]\:before\:opacity-0:is(a,button):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);opacity:0}.\[a\,button\]\:before\:transition-\[opacity\,background-color\,border-color\]:is(a,button):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);transition-property:opacity,background-color,border-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.\[a\,button\]\:before\:duration-250:is(a,button):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);--tw-duration:.25s;transition-duration:.25s}@media (hover:hover){.\[a\,button\]\:hover\:text-primary-foreground:is(a,button):hover:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--primary-foreground)}.\[a\,button\]\:hover\:before\:border-border:is(a,button):hover:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:var(--border)}.\[a\,button\]\:hover\:before\:border-border-strong:is(a,button):hover:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:var(--border-strong)}.\[a\,button\]\:hover\:before\:border-white\/15:is(a,button):hover:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.\[a\,button\]\:hover\:before\:border-white\/15:is(a,button):hover:not(#\#):not(#\#):not(#\#):not(#\#):before{border-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.\[a\,button\]\:hover\:before\:bg-background-subtle:is(a,button):hover:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background-subtle)}.\[a\,button\]\:hover\:before\:bg-primary:is(a,button):hover:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--primary)}.\[a\,button\]\:hover\:before\:bg-white\/15:is(a,button):hover:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.\[a\,button\]\:hover\:before\:bg-white\/15:is(a,button):hover:not(#\#):not(#\#):not(#\#):not(#\#):before{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.\[a\,button\]\:hover\:before\:opacity-100:is(a,button):hover:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);opacity:1}}.\[a\,button\]\:not-data-popup-open\:active\:translate-y-px:is(a,button):not([data-popup-open]):active:not(#\#):not(#\#):not(#\#):not(#\#){--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.\[a\,button\]\:not-data-popup-open\:active\:scale-\[0\.97\]:is(a,button):not([data-popup-open]):active:not(#\#):not(#\#):not(#\#):not(#\#){scale:.97}.\[a\,button\]\:not-data-popup-open\:active\:duration-100:is(a,button):not([data-popup-open]):active:not(#\#):not(#\#):not(#\#):not(#\#){--tw-duration:.1s;transition-duration:.1s}.\[a\,button\]\:not-data-popup-open\:active\:ease-in-out:is(a,button):not([data-popup-open]):active:not(#\#):not(#\#):not(#\#):not(#\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.\[a\,button\]\:data-popup-open\:text-primary-foreground:is(a,button)[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--primary-foreground)}.\[a\,button\]\:data-popup-open\:before\:border-border:is(a,button)[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:var(--border)}.\[a\,button\]\:data-popup-open\:before\:border-border-strong:is(a,button)[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:var(--border-strong)}.\[a\,button\]\:data-popup-open\:before\:border-white\/15:is(a,button)[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.\[a\,button\]\:data-popup-open\:before\:border-white\/15:is(a,button)[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{border-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.\[a\,button\]\:data-popup-open\:before\:bg-background-subtle:is(a,button)[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background-subtle)}.\[a\,button\]\:data-popup-open\:before\:bg-primary:is(a,button)[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--primary)}.\[a\,button\]\:data-popup-open\:before\:bg-white\/15:is(a,button)[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.\[a\,button\]\:data-popup-open\:before\:bg-white\/15:is(a,button)[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.\[a\,button\]\:data-popup-open\:before\:opacity-100:is(a,button)[data-popup-open]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);opacity:1}.\[a\,button\]\:data-pressed\:text-primary-foreground:is(a,button)[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--primary-foreground)}.\[a\,button\]\:data-pressed\:before\:border-border:is(a,button)[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:var(--border)}.\[a\,button\]\:data-pressed\:before\:border-border-strong:is(a,button)[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:var(--border-strong)}.\[a\,button\]\:data-pressed\:before\:border-white\/15:is(a,button)[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);border-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.\[a\,button\]\:data-pressed\:before\:border-white\/15:is(a,button)[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{border-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.\[a\,button\]\:data-pressed\:before\:bg-background-subtle:is(a,button)[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--background-subtle)}.\[a\,button\]\:data-pressed\:before\:bg-primary:is(a,button)[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:var(--primary)}.\[a\,button\]\:data-pressed\:before\:bg-white\/15:is(a,button)[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.\[a\,button\]\:data-pressed\:before\:bg-white\/15:is(a,button)[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.\[a\,button\]\:data-pressed\:before\:opacity-100:is(a,button)[data-pressed]:not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);opacity:1}@media (prefers-reduced-motion:reduce){.motion-reduce\:\[a\,button\]\:transition-none:is(a,button):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:none}}.motion-reduce\:\[a\,button\]\:transition-none:is([data-disable-animations] *):is(a,button):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:none}@media (prefers-reduced-motion:reduce){.motion-reduce\:\[a\,button\]\:before\:transition-none:is(a,button):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);transition-property:none}}.motion-reduce\:\[a\,button\]\:before\:transition-none:is([data-disable-animations] *):is(a,button):not(#\#):not(#\#):not(#\#):not(#\#):before{content:var(--tw-content);transition-property:none}.\[\&\:not\(\:has\(thead\)\)\>tbody\:first-of-type\>tr\:first-child\>\:first-child\]\:rounded-ss-lg:not(:has(thead)):not(#\#):not(#\#):not(#\#):not(#\#)>tbody:first-of-type>tr:first-child>:first-child{border-start-start-radius:var(--radius-lg)}.\[\&\:not\(\:has\(thead\)\)\>tbody\:first-of-type\>tr\:first-child\>\:first-child\]\:rounded-ss-md:not(:has(thead)):not(#\#):not(#\#):not(#\#):not(#\#)>tbody:first-of-type>tr:first-child>:first-child{border-start-start-radius:var(--radius-md)}.\[\&\:not\(\:has\(thead\)\)\>tbody\:first-of-type\>tr\:first-child\>\:first-child\]\:rounded-ss-sm:not(:has(thead)):not(#\#):not(#\#):not(#\#):not(#\#)>tbody:first-of-type>tr:first-child>:first-child{border-start-start-radius:var(--radius-sm)}.\[\&\:not\(\:has\(thead\)\)\>tbody\:first-of-type\>tr\:first-child\>\:last-child\]\:rounded-se-lg:not(:has(thead)):not(#\#):not(#\#):not(#\#):not(#\#)>tbody:first-of-type>tr:first-child>:last-child{border-start-end-radius:var(--radius-lg)}.\[\&\:not\(\:has\(thead\)\)\>tbody\:first-of-type\>tr\:first-child\>\:last-child\]\:rounded-se-md:not(:has(thead)):not(#\#):not(#\#):not(#\#):not(#\#)>tbody:first-of-type>tr:first-child>:last-child{border-start-end-radius:var(--radius-md)}.\[\&\:not\(\:has\(thead\)\)\>tbody\:first-of-type\>tr\:first-child\>\:last-child\]\:rounded-se-sm:not(:has(thead)):not(#\#):not(#\#):not(#\#):not(#\#)>tbody:first-of-type>tr:first-child>:last-child{border-start-end-radius:var(--radius-sm)}.\[\&\>\*\]\:mb-3:not(#\#):not(#\#):not(#\#):not(#\#)>*{margin-bottom:calc(var(--spacing) * 3)}.\[\&\>\*\]\:break-inside-avoid:not(#\#):not(#\#):not(#\#):not(#\#)>*{break-inside:avoid}.\[\&\>\*\:not\(\:first-of-type\)\]\:rounded-s-none:not(#\#):not(#\#):not(#\#):not(#\#)>:not(:first-of-type){border-start-start-radius:0;border-end-start-radius:0}.\[\&\>\*\:not\(\:first-of-type\)\]\:rounded-t-none:not(#\#):not(#\#):not(#\#):not(#\#)>:not(:first-of-type){border-top-left-radius:0;border-top-right-radius:0}.\[\&\>\*\:not\(\:last-of-type\)\]\:rounded-e-none:not(#\#):not(#\#):not(#\#):not(#\#)>:not(:last-of-type){border-start-end-radius:0;border-end-end-radius:0}.\[\&\>\*\:not\(\:last-of-type\)\]\:rounded-b-none:not(#\#):not(#\#):not(#\#):not(#\#)>:not(:last-of-type){border-bottom-right-radius:0;border-bottom-left-radius:0}.\[\&\>\:not\(\[data-slot\=drawer-close-button\]\)\]\:-ms-4:not(#\#):not(#\#):not(#\#):not(#\#)>:not([data-slot=drawer-close-button]){margin-inline-start:calc(var(--spacing) * -4)}.\[\&\>\:not\(\[data-slot\=drawer-close-button\]\)\]\:-me-4:not(#\#):not(#\#):not(#\#):not(#\#)>:not([data-slot=drawer-close-button]){margin-inline-end:calc(var(--spacing) * -4)}.\[\&\>\[data-slot\=alert-dialog-header\]\+\[data-slot\=alert-dialog-footer\]\]\:pt-0:not(#\#):not(#\#):not(#\#):not(#\#)>[data-slot=alert-dialog-header]+[data-slot=alert-dialog-footer],.\[\&\>\[data-slot\=dialog-header\]\+\[data-slot\=dialog-footer\]\]\:pt-0:not(#\#):not(#\#):not(#\#):not(#\#)>[data-slot=dialog-header]+[data-slot=dialog-footer]{padding-top:0}.\[\&\>\[data-slot\=drawer-close-button\]\]\:inset-e-0:not(#\#):not(#\#):not(#\#):not(#\#)>[data-slot=drawer-close-button]{inset-inline-end:0}.\[\&\>\[data-slot\=drawer-close-button\]\]\:top-0:not(#\#):not(#\#):not(#\#):not(#\#)>[data-slot=drawer-close-button]{top:0}.\[\&\>\[data-slot\=drawer-footer\]\]\:-mb-4:not(#\#):not(#\#):not(#\#):not(#\#)>[data-slot=drawer-footer]{margin-bottom:calc(var(--spacing) * -4)}.\[\&\>\[data-slot\=drawer-header\]\]\:-mt-4:not(#\#):not(#\#):not(#\#):not(#\#)>[data-slot=drawer-header]{margin-top:calc(var(--spacing) * -4)}.\[\&\>\[data-slot\=drawer-header\]\+\[data-slot\=drawer-footer\]\]\:pt-0:not(#\#):not(#\#):not(#\#):not(#\#)>[data-slot=drawer-header]+[data-slot=drawer-footer]{padding-top:0}.\[\&\>div\]\:min-h-9:not(#\#):not(#\#):not(#\#):not(#\#)>div{min-height:calc(var(--spacing) * 9)}.\[\&\>div\]\:min-h-12:not(#\#):not(#\#):not(#\#):not(#\#)>div{min-height:calc(var(--spacing) * 12)}.\[\&\>div\]\:items-center:not(#\#):not(#\#):not(#\#):not(#\#)>div{align-items:center}.\[\&\>div\]\:py-0:not(#\#):not(#\#):not(#\#):not(#\#)>div{padding-block:0}.\[\&\>img\]\:size-full:not(#\#):not(#\#):not(#\#):not(#\#)>img{width:100%;height:100%}.\[\&\>img\]\:object-cover:not(#\#):not(#\#):not(#\#):not(#\#)>img{object-fit:cover}.\[\&\>svg\]\:size-3\.5:not(#\#):not(#\#):not(#\#):not(#\#)>svg{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&\>svg\]\:size-4:not(#\#):not(#\#):not(#\#):not(#\#)>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-5:not(#\#):not(#\#):not(#\#):not(#\#)>svg:not([class*=size-]){width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.\[\&\>tbody_th\]\:border-b:not(#\#):not(#\#):not(#\#):not(#\#)>tbody th{border-bottom-style:var(--tw-border-style);border-bottom-width:var(--border-width)}.\[\&\>tbody_th\]\:border-b-0:not(#\#):not(#\#):not(#\#):not(#\#)>tbody th{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.\[\&\>tbody_th\]\:border-dashed:not(#\#):not(#\#):not(#\#):not(#\#)>tbody th{--tw-border-style:dashed;border-style:dashed}.\[\&\>tbody_th\]\:border-border:not(#\#):not(#\#):not(#\#):not(#\#)>tbody th{border-color:var(--border)}.\[\&\>tbody_th\]\:border-border-strong:not(#\#):not(#\#):not(#\#):not(#\#)>tbody th{border-color:var(--border-strong)}.\[\&\>tbody_th\]\:font-medium:not(#\#):not(#\#):not(#\#):not(#\#)>tbody th{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.\[\&\>tbody_th\]\:text-foreground-intense:not(#\#):not(#\#):not(#\#):not(#\#)>tbody th{color:var(--foreground-intense)}.\[\&\>tbody\:last-of-type\>tr\:last-child\>\:first-child\]\:rounded-es-lg:not(#\#):not(#\#):not(#\#):not(#\#)>tbody:last-of-type>tr:last-child>:first-child{border-end-start-radius:var(--radius-lg)}.\[\&\>tbody\:last-of-type\>tr\:last-child\>\:first-child\]\:rounded-es-md:not(#\#):not(#\#):not(#\#):not(#\#)>tbody:last-of-type>tr:last-child>:first-child{border-end-start-radius:var(--radius-md)}.\[\&\>tbody\:last-of-type\>tr\:last-child\>\:first-child\]\:rounded-es-sm:not(#\#):not(#\#):not(#\#):not(#\#)>tbody:last-of-type>tr:last-child>:first-child{border-end-start-radius:var(--radius-sm)}.\[\&\>tbody\:last-of-type\>tr\:last-child\>\:last-child\]\:rounded-ee-lg:not(#\#):not(#\#):not(#\#):not(#\#)>tbody:last-of-type>tr:last-child>:last-child{border-end-end-radius:var(--radius-lg)}.\[\&\>tbody\:last-of-type\>tr\:last-child\>\:last-child\]\:rounded-ee-md:not(#\#):not(#\#):not(#\#):not(#\#)>tbody:last-of-type>tr:last-child>:last-child{border-end-end-radius:var(--radius-md)}.\[\&\>tbody\:last-of-type\>tr\:last-child\>\:last-child\]\:rounded-ee-sm:not(#\#):not(#\#):not(#\#):not(#\#)>tbody:last-of-type>tr:last-child>:last-child{border-end-end-radius:var(--radius-sm)}.\[\&\>tbody\:last-of-type\>tr\:last-child\>td\]\:border-b-0:not(#\#):not(#\#):not(#\#):not(#\#)>tbody:last-of-type>tr:last-child>td,.\[\&\>tbody\:last-of-type\>tr\:last-child\>th\]\:border-b-0:not(#\#):not(#\#):not(#\#):not(#\#)>tbody:last-of-type>tr:last-child>th{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.\[\&\>tbody\>tr\]\:transition-colors:not(#\#):not(#\#):not(#\#):not(#\#)>tbody>tr{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.\[\&\>tbody\>tr\]\:duration-200:not(#\#):not(#\#):not(#\#):not(#\#)>tbody>tr{--tw-duration:.2s;transition-duration:.2s}@media (prefers-reduced-motion:reduce){.motion-reduce\:\[\&\>tbody\>tr\]\:transition-none:not(#\#):not(#\#):not(#\#):not(#\#)>tbody>tr{transition-property:none}}.motion-reduce\:\[\&\>tbody\>tr\]\:transition-none:is([data-disable-animations] *):not(#\#):not(#\#):not(#\#):not(#\#)>tbody>tr{transition-property:none}.\[\&\>tbody\>tr\:hover\]\:bg-background-subtle:not(#\#):not(#\#):not(#\#):not(#\#)>tbody>tr:hover,.\[\&\>tbody\>tr\:nth-child\(2n\)\]\:bg-background-subtle:not(#\#):not(#\#):not(#\#):not(#\#)>tbody>tr:nth-child(2n),.\[\&\>tbody\>tr\>\:nth-child\(2n\)\]\:bg-background-subtle:not(#\#):not(#\#):not(#\#):not(#\#)>tbody>tr>:nth-child(2n),.\[\&\>tbody\>tr\[data-highlighted\]\]\:bg-background-subtle:not(#\#):not(#\#):not(#\#):not(#\#)>tbody>tr[data-highlighted]{background-color:var(--background-subtle)}.\[\&\>thead\>tr\:first-child\>th\:first-child\]\:rounded-ss-lg:not(#\#):not(#\#):not(#\#):not(#\#)>thead>tr:first-child>th:first-child{border-start-start-radius:var(--radius-lg)}.\[\&\>thead\>tr\:first-child\>th\:first-child\]\:rounded-ss-md:not(#\#):not(#\#):not(#\#):not(#\#)>thead>tr:first-child>th:first-child{border-start-start-radius:var(--radius-md)}.\[\&\>thead\>tr\:first-child\>th\:first-child\]\:rounded-ss-sm:not(#\#):not(#\#):not(#\#):not(#\#)>thead>tr:first-child>th:first-child{border-start-start-radius:var(--radius-sm)}.\[\&\>thead\>tr\:first-child\>th\:last-child\]\:rounded-se-lg:not(#\#):not(#\#):not(#\#):not(#\#)>thead>tr:first-child>th:last-child{border-start-end-radius:var(--radius-lg)}.\[\&\>thead\>tr\:first-child\>th\:last-child\]\:rounded-se-md:not(#\#):not(#\#):not(#\#):not(#\#)>thead>tr:first-child>th:last-child{border-start-end-radius:var(--radius-md)}.\[\&\>thead\>tr\:first-child\>th\:last-child\]\:rounded-se-sm:not(#\#):not(#\#):not(#\#):not(#\#)>thead>tr:first-child>th:last-child{border-start-end-radius:var(--radius-sm)}.\[\&\>thead\>tr\:last-child\>th\:first-child\]\:rounded-es-lg:not(#\#):not(#\#):not(#\#):not(#\#)>thead>tr:last-child>th:first-child{border-end-start-radius:var(--radius-lg)}.\[\&\>thead\>tr\:last-child\>th\:first-child\]\:rounded-es-md:not(#\#):not(#\#):not(#\#):not(#\#)>thead>tr:last-child>th:first-child{border-end-start-radius:var(--radius-md)}.\[\&\>thead\>tr\:last-child\>th\:first-child\]\:rounded-es-sm:not(#\#):not(#\#):not(#\#):not(#\#)>thead>tr:last-child>th:first-child{border-end-start-radius:var(--radius-sm)}.\[\&\>thead\>tr\:last-child\>th\:last-child\]\:rounded-ee-lg:not(#\#):not(#\#):not(#\#):not(#\#)>thead>tr:last-child>th:last-child{border-end-end-radius:var(--radius-lg)}.\[\&\>thead\>tr\:last-child\>th\:last-child\]\:rounded-ee-md:not(#\#):not(#\#):not(#\#):not(#\#)>thead>tr:last-child>th:last-child{border-end-end-radius:var(--radius-md)}.\[\&\>thead\>tr\:last-child\>th\:last-child\]\:rounded-ee-sm:not(#\#):not(#\#):not(#\#):not(#\#)>thead>tr:last-child>th:last-child{border-end-end-radius:var(--radius-sm)}.\[\&\>thead\>tr\>th\]\:bg-background-muted:not(#\#):not(#\#):not(#\#):not(#\#)>thead>tr>th{background-color:var(--background-muted)}.\[\&\>thead\>tr\>th\]\:font-medium:not(#\#):not(#\#):not(#\#):not(#\#)>thead>tr>th{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.\[\&\>thead\>tr\>th\]\:text-foreground-intense:not(#\#):not(#\#):not(#\#):not(#\#)>thead>tr>th{color:var(--foreground-intense)}.\[\&\>video\]\:size-full:not(#\#):not(#\#):not(#\#):not(#\#)>video{width:100%;height:100%}.\[\&\>video\]\:object-cover:not(#\#):not(#\#):not(#\#):not(#\#)>video{object-fit:cover}@media (prefers-reduced-motion:no-preference){.motion-safe\:\[\&\[data-ending-style\]\:not\(\[data-limited\]\)\:not\(\[data-swipe-direction\]\)\]\:\[transform\:translateY\(-150\%\)\]:not([data-disable-animations] *)[data-ending-style]:not([data-limited]):not([data-swipe-direction]):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateY(-150%)}.motion-safe\:\[\&\[data-ending-style\]\:not\(\[data-limited\]\)\:not\(\[data-swipe-direction\]\)\]\:\[transform\:translateY\(150\%\)\]:not([data-disable-animations] *)[data-ending-style]:not([data-limited]):not([data-swipe-direction]):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateY(150%)}}:root:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#),.light:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){--foreground:#4a5565;--foreground-subtle:#99a1af;--foreground-muted:#6a7282;--foreground-strong:#364153;--foreground-emphasis:#1e2939;--foreground-intense:#101828;--foreground-inverse:#fff;--background:#fff;--background-subtle:#f9fafb;--background-muted:#f3f4f6;--background-strong:#e5e7eb;--background-inverse:#030712;--border:#e5e7eb;--border-muted:#f3f4f6;--border-strong:#d1d5dc;--border-emphasis:#99a1af;--border-intense:#6a7282;--border-inverse:#1e2939;--border-overlay:#f3f4f6;--primary:#101828;--primary-subtle:#f3f4f6;--primary-soft:#e5e7eb;--primary-muted:#364153;--primary-strong:#030712;--primary-foreground:#fff;--secondary:#90c5ff;--secondary-subtle:#3080ff1a;--secondary-soft:#3080ff33;--secondary-muted:#bedbff;--secondary-strong:#54a2ff;--secondary-emphasis:#3080ff;--secondary-intense:#155dfc;--secondary-foreground:#030712;--error:#ffa3a3;--error-subtle:#fb2c361a;--error-soft:#fb2c3633;--error-muted:#ffcaca;--error-strong:#ff6568;--error-emphasis:#fb2c36;--error-intense:#e40014;--error-foreground:#030712;--success:#5ee9b5;--success-subtle:#00bb7f1a;--success-soft:#00bb7f33;--success-muted:#a4f4cf;--success-strong:#00d294;--success-emphasis:#00bb7f;--success-intense:#009767;--success-foreground:#030712;--warning:#ffb96d;--warning-subtle:#fe6e001a;--warning-soft:#fe6e0033;--warning-muted:#ffd7a8;--warning-strong:#ff8b1a;--warning-emphasis:#fe6e00;--warning-intense:#f05100;--warning-foreground:#030712;--info:#77d4ff;--info-subtle:#00a5ef1a;--info-soft:#00a5ef33;--info-muted:#b8e6fe;--info-strong:#00bcfe;--info-emphasis:#00a5ef;--info-intense:#0084cc;--info-foreground:#030712;--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--focus-ring:#d1d5dc;--focus-ring-input:#e5e7eb;--focus-ring-primary:#d1d5dc;--focus-ring-secondary:#3080ff4d;--focus-ring-error:#fb2c364d;--focus-ring-success:#00bb7f4d;--focus-ring-warning:#fe6e004d;--focus-ring-info:#00a5ef4d;--focus-ring-light:#ffffff40;--border-width:1px;--radius:.875rem;--radius-4xs:calc(var(--radius) * 2 / 7);--radius-3xs:calc(var(--radius) * 3 / 7);--radius-2xs:calc(var(--radius) * 4 / 7);--radius-xs:calc(var(--radius) * 5 / 7);--radius-sm:calc(var(--radius) * 6 / 7);--radius-md:var(--radius);--radius-lg:calc(var(--radius) * 8 / 7);--radius-xl:calc(var(--radius) * 9 / 7);--radius-2xl:calc(var(--radius) * 12 / 7);--radius-3xl:calc(var(--radius) * 16 / 7);--radius-4xl:calc(var(--radius) * 20 / 7);--shadow-color:#6a72822e;--selection-color:#0307121a;--opacity-disabled:.65}@supports (color:lab(0% 0 0)){:root:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#),.light:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){--foreground:lab(35.6337% -1.58697 -10.8425);--foreground-subtle:lab(65.9269% -.832707 -8.17473);--foreground-muted:lab(47.7841% -.393182 -10.0268);--foreground-strong:lab(27.1134% -.956401 -12.3224);--foreground-emphasis:lab(16.1051% -1.18239 -11.7533);--foreground-intense:lab(8.11897% .811279 -12.254);--foreground-inverse:lab(100% 0 0);--background:lab(100% 0 0);--background-subtle:lab(98.2596% -.247031 -.706708);--background-muted:lab(96.1596% -.0823438 -1.13575);--background-strong:lab(91.6229% -.159115 -2.26791);--background-inverse:lab(1.90334% .278696 -5.48866);--border:lab(91.6229% -.159115 -2.26791);--border-muted:lab(96.1596% -.0823438 -1.13575);--border-strong:lab(85.1236% -.612259 -3.7138);--border-emphasis:lab(65.9269% -.832707 -8.17473);--border-intense:lab(47.7841% -.393182 -10.0268);--border-inverse:lab(16.1051% -1.18239 -11.7533);--border-overlay:lab(96.1596% -.0823438 -1.13575);--primary:lab(8.11897% .811279 -12.254);--primary-subtle:lab(96.1596% -.0823438 -1.13575);--primary-soft:lab(91.6229% -.159115 -2.26791);--primary-muted:lab(27.1134% -.956401 -12.3224);--primary-strong:lab(1.90334% .278696 -5.48866);--primary-foreground:lab(100% 0 0);--secondary:lab(77.5052% -6.4629 -36.42);--secondary-subtle:lab(54.1736% 13.3369 -74.6839/.1);--secondary-soft:lab(54.1736% 13.3369 -74.6839/.2);--secondary-muted:lab(86.15% -4.04379 -21.0797);--secondary-strong:lab(65.0361% -1.42065 -56.9802);--secondary-emphasis:lab(54.1736% 13.3369 -74.6839);--secondary-intense:lab(44.0605% 29.0279 -86.0352);--secondary-foreground:lab(1.90334% .278696 -5.48866);--error:lab(76.5514% 36.422 15.5335);--error-subtle:lab(55.4814% 75.0732 48.8528/.1);--error-soft:lab(55.4814% 75.0732 48.8528/.2);--error-muted:lab(86.017% 19.8815 7.75869);--error-strong:lab(63.7053% 60.745 31.3109);--error-emphasis:lab(55.4814% 75.0732 48.8528);--error-intense:lab(48.4493% 77.4328 61.5452);--error-foreground:lab(1.90334% .278696 -5.48866);--success:lab(83.9203% -48.7124 13.8849);--success-subtle:lab(66.9756% -58.27 19.5419/.1);--success-soft:lab(66.9756% -58.27 19.5419/.2);--success-muted:lab(90.2247% -31.039 9.47084);--success-strong:lab(75.0771% -60.7313 19.4147);--success-emphasis:lab(66.9756% -58.27 19.5419);--success-intense:lab(55.0481% -49.9246 15.93);--success-foreground:lab(1.90334% .278696 -5.48866);--warning:lab(80.8059% 21.7313 50.4455);--warning-subtle:lab(64.272% 57.1788 90.3583/.1);--warning-soft:lab(64.272% 57.1788 90.3583/.2);--warning-muted:lab(88.4871% 9.94918 28.8378);--warning-strong:lab(70.0429% 42.5156 75.8207);--warning-emphasis:lab(64.272% 57.1788 90.3583);--warning-intense:lab(57.1026% 64.2584 89.8886);--warning-foreground:lab(1.90334% .278696 -5.48866);--info:lab(80.3307% -20.2945 -31.385);--info-subtle:lab(63.3038% -18.433 -51.0407/.1);--info-soft:lab(63.3038% -18.433 -51.0407/.2);--info-muted:lab(88.6983% -11.3978 -16.8488);--info-strong:lab(70.687% -23.6078 -45.9483);--info-emphasis:lab(63.3038% -18.433 -51.0407);--info-intense:lab(51.7754% -11.4712 -49.8349);--info-foreground:lab(1.90334% .278696 -5.48866);--focus-ring:lab(85.1236% -.612259 -3.7138);--focus-ring-input:lab(91.6229% -.159115 -2.26791);--focus-ring-primary:lab(85.1236% -.612259 -3.7138);--focus-ring-secondary:lab(54.1736% 13.3369 -74.6839/.3);--focus-ring-error:lab(55.4814% 75.0732 48.8528/.3);--focus-ring-success:lab(66.9756% -58.27 19.5419/.3);--focus-ring-warning:lab(64.272% 57.1788 90.3583/.3);--focus-ring-info:lab(63.3038% -18.433 -51.0407/.3);--focus-ring-light:lab(100% 0 0/.25);--shadow-color:lab(47.7841% -.393182 -10.0268/.18);--selection-color:lab(1.90334% .278696 -5.48866/.1)}}.dark:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){--foreground:#d1d5dc;--foreground-subtle:#6a7282;--foreground-muted:#99a1af;--foreground-strong:#e5e7eb;--foreground-emphasis:#f3f4f6;--foreground-intense:#fff;--foreground-inverse:#101828;--background:#030712;--background-subtle:#6a728214;--background-muted:#101828;--background-strong:#1e2939;--background-inverse:#fff;--border:#1e2939;--border-muted:#101828;--border-strong:#364153;--border-emphasis:#4a5565;--border-intense:#6a7282;--border-inverse:#e5e7eb;--border-overlay:#1e2939;--primary:#fff;--primary-subtle:#101828;--primary-soft:#1e2939;--primary-muted:#e5e7eb;--primary-strong:#fff;--primary-foreground:#101828;--secondary:#54a2ff;--secondary-subtle:#3080ff1a;--secondary-soft:#3080ff33;--secondary-muted:#90c5ff;--secondary-strong:#54a2ff;--secondary-emphasis:#3080ff;--secondary-intense:#155dfc;--secondary-foreground:#030712;--error:#ff6568;--error-subtle:#fb2c361a;--error-soft:#fb2c3633;--error-muted:#ffa3a3;--error-strong:#ff6568;--error-emphasis:#fb2c36;--error-intense:#e40014;--error-foreground:#030712;--success:#00d294;--success-subtle:#00bb7f1a;--success-soft:#00bb7f33;--success-muted:#5ee9b5;--success-strong:#00d294;--success-emphasis:#00bb7f;--success-intense:#009767;--success-foreground:#030712;--warning:#ff8b1a;--warning-subtle:#fe6e001a;--warning-soft:#fe6e0033;--warning-muted:#ffb96d;--warning-strong:#ff8b1a;--warning-emphasis:#fe6e00;--warning-intense:#f05100;--warning-foreground:#030712;--info:#00bcfe;--info-subtle:#00a5ef1a;--info-soft:#00a5ef33;--info-muted:#77d4ff;--info-strong:#00bcfe;--info-emphasis:#00a5ef;--info-intense:#0084cc;--info-foreground:#030712;--focus-ring:#364153;--focus-ring-input:#1e2939;--focus-ring-primary:#364153;--focus-ring-secondary:#3080ff80;--focus-ring-error:#fb2c3680;--focus-ring-success:#00bb7f80;--focus-ring-warning:#fe6e0080;--focus-ring-info:#00a5ef80;--focus-ring-light:#ffffff40;--shadow-color:#0000004d;--selection-color:#ffffff26}@supports (color:lab(0% 0 0)){.dark:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){--foreground:lab(85.1236% -.612259 -3.7138);--foreground-subtle:lab(47.7841% -.393182 -10.0268);--foreground-muted:lab(65.9269% -.832707 -8.17473);--foreground-strong:lab(91.6229% -.159115 -2.26791);--foreground-emphasis:lab(96.1596% -.0823438 -1.13575);--foreground-intense:lab(100% 0 0);--foreground-inverse:lab(8.11897% .811279 -12.254);--background:lab(1.90334% .278696 -5.48866);--background-subtle:lab(47.7841% -.393182 -10.0268/.08);--background-muted:lab(8.11897% .811279 -12.254);--background-strong:lab(16.1051% -1.18239 -11.7533);--background-inverse:lab(100% 0 0);--border:lab(16.1051% -1.18239 -11.7533);--border-muted:lab(8.11897% .811279 -12.254);--border-strong:lab(27.1134% -.956401 -12.3224);--border-emphasis:lab(35.6337% -1.58697 -10.8425);--border-intense:lab(47.7841% -.393182 -10.0268);--border-inverse:lab(91.6229% -.159115 -2.26791);--border-overlay:lab(16.1051% -1.18239 -11.7533);--primary:lab(100% 0 0);--primary-subtle:lab(8.11897% .811279 -12.254);--primary-soft:lab(16.1051% -1.18239 -11.7533);--primary-muted:lab(91.6229% -.159115 -2.26791);--primary-strong:lab(100% 0 0);--primary-foreground:lab(8.11897% .811279 -12.254);--secondary:lab(65.0361% -1.42065 -56.9802);--secondary-subtle:lab(54.1736% 13.3369 -74.6839/.1);--secondary-soft:lab(54.1736% 13.3369 -74.6839/.2);--secondary-muted:lab(77.5052% -6.4629 -36.42);--secondary-strong:lab(65.0361% -1.42065 -56.9802);--secondary-emphasis:lab(54.1736% 13.3369 -74.6839);--secondary-intense:lab(44.0605% 29.0279 -86.0352);--secondary-foreground:lab(1.90334% .278696 -5.48866);--error:lab(63.7053% 60.745 31.3109);--error-subtle:lab(55.4814% 75.0732 48.8528/.1);--error-soft:lab(55.4814% 75.0732 48.8528/.2);--error-muted:lab(76.5514% 36.422 15.5335);--error-strong:lab(63.7053% 60.745 31.3109);--error-emphasis:lab(55.4814% 75.0732 48.8528);--error-intense:lab(48.4493% 77.4328 61.5452);--error-foreground:lab(1.90334% .278696 -5.48866);--success:lab(75.0771% -60.7313 19.4147);--success-subtle:lab(66.9756% -58.27 19.5419/.1);--success-soft:lab(66.9756% -58.27 19.5419/.2);--success-muted:lab(83.9203% -48.7124 13.8849);--success-strong:lab(75.0771% -60.7313 19.4147);--success-emphasis:lab(66.9756% -58.27 19.5419);--success-intense:lab(55.0481% -49.9246 15.93);--success-foreground:lab(1.90334% .278696 -5.48866);--warning:lab(70.0429% 42.5156 75.8207);--warning-subtle:lab(64.272% 57.1788 90.3583/.1);--warning-soft:lab(64.272% 57.1788 90.3583/.2);--warning-muted:lab(80.8059% 21.7313 50.4455);--warning-strong:lab(70.0429% 42.5156 75.8207);--warning-emphasis:lab(64.272% 57.1788 90.3583);--warning-intense:lab(57.1026% 64.2584 89.8886);--warning-foreground:lab(1.90334% .278696 -5.48866);--info:lab(70.687% -23.6078 -45.9483);--info-subtle:lab(63.3038% -18.433 -51.0407/.1);--info-soft:lab(63.3038% -18.433 -51.0407/.2);--info-muted:lab(80.3307% -20.2945 -31.385);--info-strong:lab(70.687% -23.6078 -45.9483);--info-emphasis:lab(63.3038% -18.433 -51.0407);--info-intense:lab(51.7754% -11.4712 -49.8349);--info-foreground:lab(1.90334% .278696 -5.48866);--focus-ring:lab(27.1134% -.956401 -12.3224);--focus-ring-input:lab(16.1051% -1.18239 -11.7533);--focus-ring-primary:lab(27.1134% -.956401 -12.3224);--focus-ring-secondary:lab(54.1736% 13.3369 -74.6839/.5);--focus-ring-error:lab(55.4814% 75.0732 48.8528/.5);--focus-ring-success:lab(66.9756% -58.27 19.5419/.5);--focus-ring-warning:lab(64.272% 57.1788 90.3583/.5);--focus-ring-info:lab(63.3038% -18.433 -51.0407/.5);--focus-ring-light:lab(100% 0 0/.25);--shadow-color:lab(0% 0 0/.3);--selection-color:lab(100% 0 0/.15)}}@keyframes ping-paced{25%,to{opacity:0;transform:scale(2.2)}}@media (prefers-reduced-motion:reduce){.skeleton-shimmer:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):after{animation:none}}[data-disable-animations]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) .skeleton-shimmer:after{animation:none}[dir=rtl]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) .skeleton-shimmer:after{animation-direction:reverse}@keyframes skeleton-shimmer{to{transform:translate(100%)}}[data-disable-animations]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) [data-slot=toast-progress-indicator]{animation:none}@keyframes toast-progress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes shake{10%,90%{transform:translate(-1px)}20%,80%{transform:translate(2px)}30%,50%,70%{transform:translate(-4px)}40%,60%{transform:translate(4px)}}@keyframes text-caret{50%{opacity:0}}@property --gradient-glow-rotation{syntax:"<angle>";inherits:false;initial-value:0deg}@keyframes gradient-glow{to{--gradient-glow-rotation:360deg}}@keyframes gradient-glow-pulse{0%,to{transform:scale(.94)}50%{transform:scale(1.03)}}@property --border-beam-angle{syntax:"<angle>";inherits:false;initial-value:0deg}@keyframes border-beam{to{--border-beam-angle:360deg}}[data-slot=toast]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){background-color:var(--background);color:var(--foreground);border-color:var(--border-overlay,var(--border));isolation:isolate}.hscroll:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){scrollbar-width:thin;scrollbar-color:transparent transparent;overflow:auto hidden}.hscroll:hover:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){scrollbar-color:#94a3b880 transparent}.hscroll:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-scrollbar{height:6px}.hscroll:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-scrollbar-track{background:0 0}.hscroll:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-scrollbar-thumb{background:0 0;border-radius:999px}.hscroll:hover:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-scrollbar-thumb{background:#94a3b880}.hvscroll:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){scrollbar-width:thin;scrollbar-color:transparent transparent;overflow:auto}.hvscroll:hover:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){scrollbar-color:#94a3b880 transparent}.hvscroll:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-scrollbar{width:6px;height:6px}.hvscroll:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-scrollbar-track{background:0 0}.hvscroll:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-scrollbar-thumb{background:0 0;border-radius:999px}.hvscroll:hover:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-scrollbar-thumb{background:#94a3b880}@property --tw-border-spacing-x{syntax:"<length>";inherits:false;initial-value:0}@property --tw-border-spacing-y{syntax:"<length>";inherits:false;initial-value:0}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes pulse{50%{opacity:.5}}
113
113
  /*$vite$:1*/</style>