@prisma/studio-core 0.0.0-dev.202601192140 → 0.0.0-dev.202601192210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui/index.cjs +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +1 -1
package/dist/ui/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import{B as Cl,a as dI,b as Cn,d as mc,e as Ep,f as qs,g as Ws}from"../chunk-WPY
|
|
|
15
15
|
top: ${p}px !important;
|
|
16
16
|
}
|
|
17
17
|
`),()=>{y.contains(v)&&y.removeChild(v)}},[t]),Kz(Dv,{isPresent:t,childRef:a,sizeRef:s,children:bm.cloneElement(e,{ref:c})})}var xL=({children:e,initial:t,isPresent:o,onExitComplete:r,custom:n,presenceAffectsLayout:a,mode:s,anchorX:i,root:u})=>{let c=Ua(Jz),d=Zz(),f=!0,p=hL(()=>(f=!1,{id:d,initial:t,isPresent:o,custom:n,onExitComplete:m=>{c.set(m,!0);for(let x of c.values())if(!x)return;r&&r()},register:m=>(c.set(m,!1),()=>c.delete(m))}),[o,c,r]);return a&&f&&(p={...p}),hL(()=>{c.forEach((m,x)=>c.set(x,!1))},[o]),gL.useEffect(()=>{!o&&!c.size&&r&&r()},[o]),s==="popLayout"&&(e=mL(pL,{isPresent:o,anchorX:i,root:u,children:e})),mL(na.Provider,{value:p,children:e})};function Jz(){return new Map}l();import{useContext as yL,useId as eq,useEffect as tq,useCallback as oq}from"react";function sd(e=!0){let t=yL(na);if(t===null)return[!0,null];let{isPresent:o,onExitComplete:r,register:n}=t,a=eq();tq(()=>{if(e)return n(a)},[e]);let s=oq(()=>e&&r&&r(a),[a,r,e]);return!o&&r?[!1,s]:[!0]}function id(){return rq(yL(na))}function rq(e){return e===null?!0:e.isPresent}l();import{Children as nq,isValidElement as aq}from"react";var ld=e=>e.key||"";function kv(e){let t=[];return nq.forEach(e,o=>{aq(o)&&t.push(o)}),t}var Jr=({children:e,custom:t,initial:o=!0,onExitComplete:r,presenceAffectsLayout:n=!0,mode:a="sync",propagate:s=!1,anchorX:i="left",root:u})=>{let[c,d]=sd(s),f=iq(()=>kv(e),[e]),p=s&&!c?[]:f.map(ld),m=Av(!0),x=Av(f),g=Ua(()=>new Map),v=Av(new Set),[y,w]=wL(f),[C,S]=wL(f);Sl(()=>{m.current=!1,x.current=f;for(let L=0;L<C.length;L++){let R=ld(C[L]);p.includes(R)?(g.delete(R),v.current.delete(R)):g.get(R)!==!0&&g.set(R,!1)}},[C,p.length,p.join("-")]);let I=[];if(f!==y){let L=[...f];for(let R=0;R<C.length;R++){let E=C[R],D=ld(E);p.includes(D)||(L.splice(R,0,E),I.push(E))}return a==="wait"&&I.length&&(L=I),S(kv(L)),w(f),null}a==="wait"&&C.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);let{forceRender:b}=lq(ra);return vL(sq,{children:C.map(L=>{let R=ld(L),E=s&&!c?!1:f===C||p.includes(R),D=()=>{if(v.current.has(R))return;if(v.current.add(R),g.has(R))g.set(R,!0);else return;let O=!0;g.forEach(V=>{V||(O=!1)}),O&&(b?.(),S(x.current),s&&d?.(),r&&r())};return vL(xL,{isPresent:E,initial:!m.current||o?void 0:!1,custom:t,presenceAffectsLayout:n,mode:a,root:u,onExitComplete:E?void 0:D,anchorX:i,children:L},R)})})};l();import{jsx as fq}from"react/jsx-runtime";import{useContext as RL,useRef as pq,useMemo as mq}from"react";l();import{createContext as uq}from"react";var CL=uq(null);l();import{useState as dq,useCallback as bL}from"react";l();import{useRef as cq}from"react";function SL(){let e=cq(!1);return Sl(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function IL(){let e=SL(),[t,o]=dq(0),r=bL(()=>{e.current&&o(t+1)},[t]);return[bL(()=>Ce.postRender(r),[r]),t]}var LL=e=>e===!0,hq=e=>LL(e===!0)||e==="id",Ov=({children:e,id:t,inherit:o=!0})=>{let r=RL(ra),n=RL(CL),[a,s]=IL(),i=pq(null),u=r.id||n;i.current===null&&(hq(o)&&u&&(t=t?u+"-"+t:u),i.current={id:t,group:LL(o)?r.group||Cm():Cm()});let c=mq(()=>({...i.current,forceRender:a}),[s]);return fq(ra.Provider,{value:c,children:e})};l();import{createContext as gq}from"react";var Im=gq({strict:!1});l();l();var PL={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"]},ML=!1;function xq(){if(ML)return;let e={};for(let t in PL)e[t]={isEnabled:o=>PL[t].some(r=>!!o[r])};Xc(e),ML=!0}function Rm(){return xq(),av()}function EL(e){let t=Rm();for(let o in e)t[o]={...t[o],...e[o]};Xc(t)}l();import{jsx as vq}from"react/jsx-runtime";import{useContext as wq,useMemo as Cq}from"react";l();l();var yq=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ud(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||yq.has(e)}var TL=e=>!ud(e);function Nv(e){typeof e=="function"&&(TL=t=>t.startsWith("on")?!ud(t):e(t))}try{Nv(Iy("@emotion/is-prop-valid").default)}catch{}function DL(e,t,o){let r={};for(let n in e)n==="values"&&typeof e.values=="object"||(TL(n)||o===!0&&ud(n)||!t&&!ud(n)||e.draggable&&n.startsWith("onDrag"))&&(r[n]=e[n]);return r}function _v({children:e,isValidProp:t,...o}){t&&Nv(t),o={...wq(tr),...o},o.isStatic=Ua(()=>o.isStatic);let r=Cq(()=>o,[JSON.stringify(o.transition),o.transformPagePoint,o.reducedMotion]);return vq(tr.Provider,{value:r,children:e})}l();l();import{jsxs as Hq,jsx as Uq}from"react/jsx-runtime";import{forwardRef as zq,useContext as Vv}from"react";l();import{createContext as Sq}from"react";var ts=Sq({});l();import{useContext as bq,useMemo as Iq}from"react";l();function kL(e,t){if(Xa(e)){let{initial:o,animate:r}=e;return{initial:o===!1||Mn(o)?o:void 0,animate:Mn(r)?r:void 0}}return e.inherit!==!1?t:{}}function OL(e){let{initial:t,animate:o}=kL(e,bq(ts));return Iq(()=>({initial:t,animate:o}),[AL(t),AL(o)])}function AL(e){return Array.isArray(e)?e.join(" "):e}l();import{Fragment as Eq,useMemo as Tq,createElement as Dq}from"react";l();import{useMemo as Rq}from"react";l();var Hl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fv(e,t,o){for(let r in t)!ze(t[r])&&!Jc(r,o)&&(e[r]=t[r])}function Lq({transformTemplate:e},t){return Rq(()=>{let o=Hl();return si(o,t,e),Object.assign({},o.vars,o.style)},[t])}function Pq(e,t){let o=e.style||{},r={};return Fv(r,o,e),Object.assign(r,Lq(e,t)),r}function NL(e,t){let o={},r=Pq(e,t);return e.drag&&e.dragListener!==!1&&(o.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)&&(o.tabIndex=0),o.style=r,o}l();import{useMemo as Mq}from"react";l();var Lm=()=>({...Hl(),attrs:{}});function _L(e,t,o,r){let n=Mq(()=>{let a=Lm();return td(a,t,od(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){let a={};Fv(a,e.style,e),n.style={...a,...n.style}}return n}l();l();var FL=["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 Ul(e){return typeof e!="string"||e.includes("-")?!1:!!(FL.indexOf(e)>-1||/[A-Z]/u.test(e))}function BL(e,t,o,{latestValues:r},n,a=!1,s){let u=(s??Ul(e)?_L:NL)(t,r,n,e),c=DL(t,typeof e=="string",a),d=e!==Eq?{...c,...u,ref:o}:{},{children:f}=t,p=Tq(()=>ze(f)?f.get():f,[f]);return Dq(e,{...d,children:p})}l();l();import{useContext as VL}from"react";function kq({scrapeMotionValuesFromProps:e,createRenderState:t},o,r,n){return{latestValues:Aq(o,r,n,e),renderState:t()}}function Aq(e,t,o,r){let n={},a=r(e,{});for(let p in a)n[p]=es(a[p]);let{initial:s,animate:i}=e,u=Xa(e),c=Yc(e);t&&c&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let d=o?o.initial===!1:!1;d=d||s===!1;let f=d?i:s;if(f&&typeof f!="boolean"&&!ua(f)){let p=Array.isArray(f)?f:[f];for(let m=0;m<p.length;m++){let x=ei(e,p[m]);if(x){let{transitionEnd:g,transition:v,...y}=x;for(let w in y){let C=y[w];if(Array.isArray(C)){let S=d?C.length-1:0;C=C[S]}C!==null&&(n[w]=C)}for(let w in g)n[w]=g[w]}}}return n}var Pm=e=>(t,o)=>{let r=VL(ts),n=VL(na),a=()=>kq(e,t,r,n);return o?a():Ua(a)};var HL=Pm({scrapeMotionValuesFromProps:ii,createRenderState:Hl});l();var UL=Pm({scrapeMotionValuesFromProps:rd,createRenderState:Lm});l();var zL=Symbol.for("motionComponentSymbol");l();import{useRef as qL,useInsertionEffect as Oq,useCallback as Nq}from"react";function WL(e,t,o){let r=qL(o);Oq(()=>{r.current=o});let n=qL(null);return Nq(a=>{a&&e.onMount?.(a),t&&(a?t.mount(a):t.unmount());let s=r.current;if(typeof s=="function")if(a){let i=s(a);typeof i=="function"&&(n.current=i)}else n.current?(n.current(),n.current=null):s(a);else s&&(s.current=a)},[t])}l();import{useContext as cd,useRef as Bv,useInsertionEffect as Fq,useEffect as Bq}from"react";l();import{createContext as _q}from"react";var Mm=_q({});l();function mi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function GL(e,t,o,r,n,a){let{visualElement:s}=cd(ts),i=cd(Im),u=cd(na),c=cd(tr).reducedMotion,d=Bv(null);r=r||i.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:o,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c,isSVG:a}));let f=d.current,p=cd(Mm);f&&!f.projection&&n&&(f.type==="html"||f.type==="svg")&&Vq(d.current,o,n,p);let m=Bv(!1);Fq(()=>{f&&m.current&&f.update(o,u)});let x=o[Ol],g=Bv(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return Sl(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),g.current&&f.animationState&&f.animationState.animateChanges())}),Bq(()=>{f&&(!g.current&&f.animationState&&f.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),g.current=!1),f.enteringChildren=void 0)}),f}function Vq(e,t,o,r){let{layoutId:n,layout:a,drag:s,dragConstraints:i,layoutScroll:u,layoutRoot:c,layoutCrossfade:d}=t;e.projection=new o(e.latestValues,t["data-framer-portal-id"]?void 0:$L(e.parent)),e.projection.setOptions({layoutId:n,layout:a,alwaysMeasureLayout:!!s||i&&mi(i),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:u,layoutRoot:c})}function $L(e){if(e)return e.options.allowProjection!==!1?e.projection:$L(e.parent)}function Em(e,{forwardMotionProps:t=!1,type:o}={},r,n){r&&EL(r);let a=o?o==="svg":Ul(e),s=a?UL:HL;function i(c,d){let f,p={...Vv(tr),...c,layoutId:qq(c)},{isStatic:m}=p,x=OL(c),g=s(c,m);if(!m&&Tp){Wq(p,r);let v=Gq(p);f=v.MeasureLayout,x.visualElement=GL(e,g,p,n,v.ProjectionNode,a)}return Hq(ts.Provider,{value:x,children:[f&&x.visualElement?Uq(f,{visualElement:x.visualElement,...p}):null,BL(e,c,WL(g,x.visualElement,d),g,m,t,a)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;let u=zq(i);return u[zL]=e,u}function qq({layoutId:e}){let t=Vv(ra).id;return t&&e!==void 0?t+"-"+e:e}function Wq(e,t){let o=Vv(Im).strict;if(t&&o){let r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Tr(!1,r,"lazy-strict-mode"):bt(!1,r,"lazy-strict-mode")}}function Gq(e){let t=Rm(),{drag:o,layout:r}=t;if(!o&&!r)return{};let n={...o,...r};return{MeasureLayout:o?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function jL(e,t){if(typeof Proxy>"u")return Em;let o=new Map,r=(a,s)=>Em(a,s,e,t),n=(a,s)=>(js(!1,"motion() is deprecated. Use motion.create() instead."),r(a,s));return new Proxy(n,{get:(a,s)=>s==="create"?r:(o.has(s)||o.set(s,Em(s,void 0,e,t)),o.get(s))})}l();l();import{Fragment as $q}from"react";var KL=(e,t)=>t.isSVG??Ul(e)?new ui(t):new li(t,{allowProjection:e!==$q});l();l();l();var Tm=class extends Yt{constructor(t){super(t),t.animationState||(t.animationState=gv(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();ua(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:o}=this.node.prevProps||{};t!==o&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};l();var jq=0,Dm=class extends Yt{constructor(){super(...arguments),this.id=jq++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:o}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let n=this.node.animationState.setActive("exit",!t);o&&!t&&n.then(()=>{o(this.id)})}mount(){let{register:t,onExitComplete:o}=this.node.presenceContext||{};o&&o(this.id),t&&(this.unmount=t(this.id))}unmount(){}};var YL={animation:{Feature:Tm},exit:{Feature:Dm}};l();l();l();l();l();function da(e){return{point:{x:e.pageX,y:e.pageY}}}var XL=e=>t=>ri(t)&&e(t,da(t));function os(e,t,o,r){return En(e,t,XL(o),r)}l();var km=({current:e})=>e?e.ownerDocument.defaultView:null;l();l();var QL=(e,t)=>Math.abs(e-t);function ZL(e,t){let o=QL(e.x,t.x),r=QL(e.y,t.y);return Math.sqrt(o**2+r**2)}var JL=new Set(["auto","scroll"]),zl=class{constructor(t,o,{transformPagePoint:r,contextWindow:n=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3,element:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let m=Uv(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,g=ZL(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!g)return;let{point:v}=m,{timestamp:y}=It;this.history.push({...v,timestamp:y});let{onStart:w,onMove:C}=this.handlers;x||(w&&w(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,m)},this.handlePointerMove=(m,x)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=Hv(x,this.transformPagePoint),Ce.update(this.updatePoint,!0)},this.handlePointerUp=(m,x)=>{this.end();let{onEnd:g,onSessionEnd:v,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let w=Uv(m.type==="pointercancel"?this.lastMoveEventInfo:Hv(x,this.transformPagePoint),this.history);this.startEvent&&g&&g(m,w),v&&v(m,w)},!ri(t))return;this.dragSnapToOrigin=a,this.handlers=o,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=n||window;let u=da(t),c=Hv(u,this.transformPagePoint),{point:d}=c,{timestamp:f}=It;this.history=[{...d,timestamp:f}];let{onSessionStart:p}=o;p&&p(t,Uv(c,this.history)),this.removeListeners=Xr(os(this.contextWindow,"pointermove",this.handlePointerMove),os(this.contextWindow,"pointerup",this.handlePointerUp),os(this.contextWindow,"pointercancel",this.handlePointerUp)),i&&this.startScrollTracking(i)}startScrollTracking(t){let o=t.parentElement;for(;o;){let r=getComputedStyle(o);(JL.has(r.overflowX)||JL.has(r.overflowY))&&this.scrollPositions.set(o,{x:o.scrollLeft,y:o.scrollTop}),o=o.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let o=this.scrollPositions.get(t);if(!o)return;let r=t===window,n=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},a={x:n.x-o.x,y:n.y-o.y};a.x===0&&a.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(t,n),Ce.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),er(this.updatePoint)}};function Hv(e,t){return t?{point:t(e.point)}:e}function eP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Uv({point:e},t){return{point:e,delta:eP(e,tP(t)),offset:eP(e,Kq(t)),velocity:Yq(t,.1)}}function Kq(e){return e[0]}function tP(e){return e[e.length-1]}function Yq(e,t){if(e.length<2)return{x:0,y:0};let o=e.length-1,r=null,n=tP(e);for(;o>=0&&(r=e[o],!(n.timestamp-r.timestamp>jt(t)));)o--;if(!r)return{x:0,y:0};let a=Kt(n.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let s={x:(n.x-r.x)/a,y:(n.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}l();function sP(e,{min:t,max:o},r){return t!==void 0&&e<t?e=r?Te(t,e,r.min):Math.max(e,t):o!==void 0&&e>o&&(e=r?Te(o,e,r.max):Math.min(e,o)),e}function oP(e,t,o){return{min:t!==void 0?e.min+t:void 0,max:o!==void 0?e.max+o-(e.max-e.min):void 0}}function iP(e,{top:t,left:o,bottom:r,right:n}){return{x:oP(e.x,o,n),y:oP(e.y,t,r)}}function rP(e,t){let o=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([o,r]=[r,o]),{min:o,max:r}}function lP(e,t){return{x:rP(e.x,t.x),y:rP(e.y,t.y)}}function uP(e,t){let o=.5,r=kt(e),n=kt(t);return n>r?o=Dr(t.min,t.max-r,e.min):r>n&&(o=Dr(e.min,e.max-n,t.min)),Ot(0,1,o)}function cP(e,t){let o={};return t.min!==void 0&&(o.min=t.min-e.min),t.max!==void 0&&(o.max=t.max-e.min),o}var Am=.35;function dP(e=Am){return e===!1?e=0:e===!0&&(e=Am),{x:nP(e,"left","right"),y:nP(e,"top","bottom")}}function nP(e,t,o){return{min:aP(e,t),max:aP(e,o)}}function aP(e,t){return typeof e=="number"?e:e[t]||0}var Xq=new WeakMap,Nm=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=tt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:o=!1,distanceThreshold:r}={}){let{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;let a=f=>{o?(this.stopAnimation(),this.snapToCursor(da(f).point)):this.pauseAnimation()},s=(f,p)=>{this.stopAnimation();let{drag:m,dragPropagation:x,onDragStart:g}=this.getProps();if(m&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Zy(m),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=p,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fo(y=>{let w=this.getAxisMotionValue(y).get()||0;if(Ro.test(w)){let{projection:C}=this.visualElement;if(C&&C.layout){let S=C.layout.layoutBox[y];S&&(w=kt(S)*(parseFloat(w)/100))}}this.originPoint[y]=w}),g&&Ce.postRender(()=>g(f,p)),kl(this.visualElement,"transform");let{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},i=(f,p)=>{this.latestPointerEvent=f,this.latestPanInfo=p;let{dragPropagation:m,dragDirectionLock:x,onDirectionLock:g,onDrag:v}=this.getProps();if(!m&&!this.openDragLock)return;let{offset:y}=p;if(x&&this.currentDirection===null){this.currentDirection=Qq(y),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",p.point,y),this.updateAxis("y",p.point,y),this.visualElement.render(),v&&v(f,p)},u=(f,p)=>{this.latestPointerEvent=f,this.latestPanInfo=p,this.stop(f,p),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>Fo(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new zl(t,{onSessionStart:a,onStart:s,onMove:i,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:km(this.visualElement),element:this.visualElement.current})}stop(t,o){let r=t||this.latestPointerEvent,n=o||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!n||!r)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:i}=this.getProps();i&&Ce.postRender(()=>i(r,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:o}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}updateAxis(t,o,r){let{drag:n}=this.getProps();if(!r||!Om(t,n,this.currentDirection))return;let a=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=sP(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&mi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=iP(r.layoutBox,t):this.constraints=!1,this.elastic=dP(o),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Fo(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=cP(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:o}=this.getProps();if(!t||!mi(t))return!1;let r=t.current;bt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let a=fv(r,n.root,this.visualElement.getTransformPagePoint()),s=lP(n.layout.layoutBox,a);if(o){let i=o(sv(s));this.hasMutatedConstraints=!!i,i&&(s=Qc(i))}return s}startAnimation(t){let{drag:o,dragMomentum:r,dragElastic:n,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),u=this.constraints||{},c=Fo(d=>{if(!Om(d,o,this.currentDirection))return;let f=u&&u[d]||{};s&&(f={min:0,max:0});let p=n?200:1e6,m=n?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(d,x)});return Promise.all(c).then(i)}startAxisValueAnimation(t,o){let r=this.getAxisMotionValue(t);return kl(this.visualElement,t),r.start(Js(t,r,0,o,this.visualElement,!1))}stopAnimation(){Fo(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Fo(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let o=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),n=r[o];return n||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Fo(o=>{let{drag:r}=this.getProps();if(!Om(o,r,this.currentDirection))return;let{projection:n}=this.visualElement,a=this.getAxisMotionValue(o);if(n&&n.layout){let{min:s,max:i}=n.layout.layoutBox[o],u=a.get()||0;a.set(t[o]-Te(s,i,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:o}=this.getProps(),{projection:r}=this.visualElement;if(!mi(o)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};Fo(s=>{let i=this.getAxisMotionValue(s);if(i&&this.constraints!==!1){let u=i.get();n[s]=uP({min:u,max:u},this.constraints[s])}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Fo(s=>{if(!Om(s,t,null))return;let i=this.getAxisMotionValue(s),{min:u,max:c}=this.constraints[s];i.set(Te(u,c,n[s]))})}addListeners(){if(!this.visualElement.current)return;Xq.set(this.visualElement,this);let t=this.visualElement.current,o=os(t,"pointerdown",u=>{let{drag:c,dragListener:d=!0}=this.getProps();c&&d&&!Gc(u.target)&&this.start(u)}),r=()=>{let{dragConstraints:u}=this.getProps();mi(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,a=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Ce.read(r);let s=En(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Fo(d=>{let f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())}));return()=>{s(),o(),a(),i&&i()}}getProps(){let t=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:a=!1,dragElastic:s=Am,dragMomentum:i=!0}=t;return{...t,drag:o,dragDirectionLock:r,dragPropagation:n,dragConstraints:a,dragElastic:s,dragMomentum:i}}};function Om(e,t,o){return(t===!0||t===e)&&(o===null||o===e)}function Qq(e,t=10){let o=null;return Math.abs(e.y)>t?o="y":Math.abs(e.x)>t&&(o="x"),o}var _m=class extends Yt{constructor(t){super(t),this.removeGroupControls=pt,this.removeListeners=pt,this.controls=new Nm(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||pt}update(){let{dragControls:t}=this.node.getProps(),{dragControls:o}=this.node.prevProps||{};t!==o&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}};l();var fP=e=>(t,o)=>{e&&Ce.postRender(()=>e(t,o))},Fm=class extends Yt{constructor(){super(...arguments),this.removePointerDownListener=pt}onPointerDown(t){this.session=new zl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:km(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:o,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:fP(t),onStart:fP(o),onMove:r,onEnd:(a,s)=>{delete this.session,n&&Ce.postRender(()=>n(a,s))}}}mount(){this.removePointerDownListener=os(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};l();import{jsx as Zq}from"react/jsx-runtime";import{useContext as pP,Component as Jq}from"react";var zv=!1,qv=class extends Jq{componentDidMount(){let{visualElement:t,layoutGroup:o,switchLayoutGroup:r,layoutId:n}=this.props,{projection:a}=t;a&&(o.group&&o.group.add(a),r&&r.register&&n&&r.register(a),zv&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),fi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:o,visualElement:r,drag:n,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,zv=!0,n||t.layoutDependency!==o||o===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||Ce.postRender(()=>{let i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),oi.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:o,switchLayoutGroup:r}=this.props,{projection:n}=t;zv=!0,n&&(n.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function Bm(e){let[t,o]=sd(),r=pP(ra);return Zq(qv,{...e,layoutGroup:r,switchLayoutGroup:pP(Mm),isPresent:t,safeToRemove:o})}var mP={pan:{Feature:Fm},drag:{Feature:_m,ProjectionNode:ad,MeasureLayout:Bm}};l();l();function hP(e,t,o){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",o==="Start");let n="onHover"+o,a=r[n];a&&Ce.postRender(()=>a(t,da(t)))}var Vm=class extends Yt{mount(){let{current:t}=this.node;t&&(this.unmount=Jy(t,(o,r)=>(hP(this.node,r,"Start"),n=>hP(this.node,n,"End"))))}unmount(){}};l();var Hm=class extends Yt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Xr(En(this.node.current,"focus",()=>this.onFocus()),En(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};l();function gP(e,t,o){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",o==="Start");let n="onTap"+(o==="End"?"":o),a=r[n];a&&Ce.postRender(()=>a(t,da(t)))}var Um=class extends Yt{mount(){let{current:t}=this.node;t&&(this.unmount=ov(t,(o,r)=>(gP(this.node,r,"Start"),(n,{success:a})=>gP(this.node,n,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};l();l();var Gv=new WeakMap,Wv=new WeakMap,eW=e=>{let t=Gv.get(e.target);t&&t(e)},tW=e=>{e.forEach(eW)};function oW({root:e,...t}){let o=e||document;Wv.has(o)||Wv.set(o,{});let r=Wv.get(o),n=JSON.stringify(t);return r[n]||(r[n]=new IntersectionObserver(tW,{root:e,...t})),r[n]}function xP(e,t,o){let r=oW(t);return Gv.set(e,o),r.observe(e),()=>{Gv.delete(e),r.unobserve(e)}}var rW={some:0,all:1},zm=class extends Yt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:o,margin:r,amount:n="some",once:a}=t,s={root:o?o.current:void 0,rootMargin:r,threshold:typeof n=="number"?n:rW[n]},i=u=>{let{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);let{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=c?d:f;p&&p(u)};return xP(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:o}=this.node;["amount","margin","root"].some(nW(t,o))&&this.startObserver()}unmount(){}};function nW({viewport:e={}},{viewport:t={}}={}){return o=>e[o]!==t[o]}var yP={inView:{Feature:zm},tap:{Feature:Um},focus:{Feature:Hm},hover:{Feature:Vm}};l();var vP={layout:{ProjectionNode:ad,MeasureLayout:Bm}};var wP={...YL,...yP,...mP,...vP};var Qe=jL(wP,KL);l();l();l();l();l();function dd(e){return typeof e=="object"&&!Array.isArray(e)}function qm(e,t,o,r){return typeof e=="string"&&dd(t)?qc(e,o,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}l();function CP(e,t,o){return e*(t+1)}l();function $v(e,t,o,r){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?o:t.startsWith("<")?Math.max(0,o+parseFloat(t.slice(1))):r.get(t)??e}l();function aW(e,t,o){for(let r=0;r<e.length;r++){let n=e[r];n.at>t&&n.at<o&&(Yr(e,n),r--)}}function SP(e,t,o,r,n,a){aW(e,n,a);for(let s=0;s<t.length;s++)e.push({value:t[s],at:Te(n,a,r[s]),easing:Mc(o,s)})}l();function bP(e,t){for(let o=0;o<e.length;o++)e[o]=e[o]/(t+1)}l();function IP(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var sW="easeInOut",iW=20;function PP(e,{defaultTransition:t={},...o}={},r,n){let a=t.duration||.3,s=new Map,i=new Map,u={},c=new Map,d=0,f=0,p=0;for(let m=0;m<e.length;m++){let x=e[m];if(typeof x=="string"){c.set(x,f);continue}else if(!Array.isArray(x)){c.set(x.name,$v(f,x.at,d,c));continue}let[g,v,y={}]=x;y.at!==void 0&&(f=$v(f,y.at,d,c));let w=0,C=(S,I,b,L=0,R=0)=>{let E=lW(S),{delay:D=0,times:O=Bc(E),type:V="keyframes",repeat:B,repeatType:P,repeatDelay:_=0,...T}=I,{ease:A=t.ease||"easeOut",duration:k}=I,M=typeof D=="function"?D(L,R):D,F=E.length,U=Zs(V)?V:n?.[V||"keyframes"];if(F<=2&&U){let G=100;if(F===2&&dW(E)){let j=E[1]-E[0];G=Math.abs(j)}let K={...T};k!==void 0&&(K.duration=jt(k));let z=Nc(K,G,U);A=z.ease,k=z.duration}k??(k=a);let q=f+M;O.length===1&&O[0]===0&&(O[1]=1);let N=O.length-E.length;if(N>0&&Fc(O,N),E.length===1&&E.unshift(null),B){bt(B<iW,"Repeat count too high, must be less than 20","repeat-count-high"),k=CP(k,B);let G=[...E],K=[...O];A=Array.isArray(A)?[...A]:[A];let z=[...A];for(let j=0;j<B;j++){E.push(...G);for(let Z=0;Z<G.length;Z++)O.push(K[Z]+(j+1)),A.push(Z===0?"linear":Mc(z,Z-1))}bP(O,B)}let H=q+k;SP(b,E,A,O,q,H),w=Math.max(M+k,w),p=Math.max(H,p)};if(ze(g)){let S=RP(g,i);C(v,y,LP("default",S))}else{let S=qm(g,v,r,u),I=S.length;for(let b=0;b<I;b++){v=v,y=y;let L=S[b],R=RP(L,i);for(let E in v)C(v[E],uW(y,E),LP(E,R),b,I)}}d=f,f+=w}return i.forEach((m,x)=>{for(let g in m){let v=m[g];v.sort(IP);let y=[],w=[],C=[];for(let I=0;I<v.length;I++){let{at:b,value:L,easing:R}=v[I];y.push(L),w.push(Dr(0,p,b)),C.push(R||"easeOut")}w[0]!==0&&(w.unshift(0),y.unshift(y[0]),C.unshift(sW)),w[w.length-1]!==1&&(w.push(1),y.push(null)),s.has(x)||s.set(x,{keyframes:{},transition:{}});let S=s.get(x);S.keyframes[g]=y,S.transition[g]={...t,duration:p,ease:C,times:w,...o}}}),s}function RP(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function LP(e,t){return t[e]||(t[e]=[]),t[e]}function lW(e){return Array.isArray(e)?e:[e]}function uW(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var cW=e=>typeof e=="number",dW=e=>e.every(cW);l();l();function MP(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},o=ni(e)&&!$c(e)?new ui(t):new li(t);o.mount(e),Pn.set(e,o)}function EP(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},o=new ed(t);o.mount(e),Pn.set(e,o)}function fW(e,t){return ze(e)||typeof e=="number"||typeof e=="string"&&!dd(t)}function Wm(e,t,o,r){let n=[];if(fW(e,t))n.push(nd(e,dd(t)&&t.default||t,o&&(o.default||o)));else{let a=qm(e,t,r),s=a.length;bt(!!s,"No valid elements provided.","no-valid-elements");for(let i=0;i<s;i++){let u=a[i];bt(u!==null,"You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.","animate-null");let c=u instanceof Element?MP:EP;Pn.has(u)||c(u);let d=Pn.get(u),f={...o};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(i,s)),n.push(...ti(d,{...t,transition:f},{}))}}return n}function TP(e,t,o){let r=[];return PP(e,t,o,{spring:ia}).forEach(({keyframes:a,transition:s},i)=>{r.push(...Wm(i,a,s))}),r}function pW(e){return Array.isArray(e)&&e.some(Array.isArray)}function DP(e){function t(o,r,n){let a=[],s;if(pW(o))a=TP(o,r,e);else{let{onComplete:u,...c}=n||{};typeof u=="function"&&(s=u),a=Wm(o,r,c,e)}let i=new Hc(a);return s&&i.finished.then(s),e&&(e.animations.push(i),i.finished.then(()=>{Yr(e.animations,i)})),i}return t}var jv=DP();l();import{createContext as N$,useContext as _$,useMemo as gE}from"react";l();l();l();var Gm=Object.create(null),fd=e=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?Gm:globalThis),rs=new Proxy(Gm,{get(e,t){return fd()[t]??Gm[t]},has(e,t){let o=fd();return t in o||t in Gm},set(e,t,o){let r=fd(!0);return r[t]=o,!0},deleteProperty(e,t){if(!t)return!1;let o=fd(!0);return delete o[t],!0},ownKeys(){let e=fd(!0);return Object.keys(e)}}),mW=typeof process<"u"&&process.env&&"true"||"",hW=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}]];function gW(){if(globalThis.process?.env)for(let e of hW){let t=e[1]||e[0];if(globalThis.process?.env[t])return{name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}var AP=gW(),OP=AP.name;function hi(e){return e?e!=="false":!1}var pd=globalThis.process?.platform||"",$m=hi(rs.CI)||AP.ci!==!1,NP=hi(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);var PRe=hi(rs.DEBUG),xW=mW==="test"||hi(rs.TEST);var MRe=hi(rs.MINIMAL)||$m||xW||!NP,yW=/^win/i.test(pd),ERe=/^linux/i.test(pd),TRe=/^darwin/i.test(pd),DRe=!hi(rs.NO_COLOR)&&(hi(rs.FORCE_COLOR)||(NP||yW)&&rs.TERM!=="dumb"||$m),Kv=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null,kRe=Number(Kv?.split(".")[0])||null,vW=globalThis.process||Object.create(null),kP={versions:{}},_P=new Proxy(vW,{get(e,t){if(t==="env")return rs;if(t in e)return e[t];if(t in kP)return kP[t]}}),wW=globalThis.process?.release?.name==="node",CW=!!globalThis.Bun||!!globalThis.process?.versions?.bun,SW=!!globalThis.Deno,bW=!!globalThis.fastly,IW=!!globalThis.Netlify,RW=!!globalThis.EdgeRuntime,LW=globalThis.navigator?.userAgent==="Cloudflare-Workers",PW=[[IW,"netlify"],[RW,"edge-light"],[LW,"workerd"],[bW,"fastly"],[SW,"deno"],[CW,"bun"],[wW,"node"]];function MW(){let e=PW.find(t=>t[0]);if(e)return{name:e[1]}}var EW=MW(),ARe=EW?.name||"";l();function FP(e=new Date){return`${TW(e)}T${DW(e)}${kW(e)}`}function TW(e){return[e.getFullYear(),gi(e.getMonth()+1),gi(e.getDate())].join("-")}function DW(e){return[gi(e.getHours()),gi(e.getMinutes()),gi(e.getSeconds())].join(":")}function kW(e){let t=e.getTimezoneOffset();if(!t)return"Z";let o=Math.abs(t),r=Math.floor(o/60),n=o%60;return`${t>0?"-":"+"}${gi(r)}:${gi(n)}`}function gi(e){return String(e).padStart(2,"0")}var AW="https://checkpoint.prisma.io/v1";var OW="check/:product";async function BP(e){let t=new URL(OW,e.baseURL||AW);t.pathname=t.pathname.replace(":product",e.product);let{additionalData:o}=e;t.search=new URLSearchParams([...Object.entries({arch:e.architecture||_P.arch||"unknown",check_if_update_available:`${e.skipUpdateCheck!==!0}`,ci:`${$m}`,ci_name:OP,cli_install_type:e.cliInstallType||"",cli_path_hash:e.cliPathHash||"",client_event_id:e.eventId||"",command:e.command||"",information:typeof o=="string"?o:o?JSON.stringify(o):"",local_timestamp:FP(e.timestamp),node_version:Kv||"0.0.0",os:e.platform||pd||"unknown",previous_client_event_id:e.previousEventId||"",project_hash:e.projectHash||"",signature:e.signature,version:e.version}),...Yv("schema_generators_providers",e.ormGeneratorProviders),...Yv("schema_preview_features",e.ormPreviewFeatures),...Yv("schema_providers",[e.ormDatasourceProvider])]).toString(),e.debug&&console.debug("Sending request to:",t.toString());let r=await fetch(t,{headers:{Accept:"application/json","User-Agent":"prisma/js-checkpoint"},method:"GET"});if(!r.ok)throw new Error(`checkpoint response error: ${r.status} ${r.statusText}`);return await r.json()}function Yv(e,t){return t?.filter(Boolean).map(o=>[e,o])||[]}l();l();l();l();var Nr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};l();l();var NW={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},_W=class{#e=NW;#t=!1;setTimeoutProvider(e){this.#t&&e!==this.#e&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#e,provider:e}),this.#e=e,this.#t=!1}setTimeout(e,t){return this.#t=!0,this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#t=!0,this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Tn=new _W;function VP(e){setTimeout(e,0)}var or=typeof window>"u"||"Deno"in globalThis;function Rt(){}function zP(e,t){return typeof e=="function"?e(t):e}function md(e){return typeof e=="number"&&e>=0&&e!==1/0}function jm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function en(e,t){return typeof e=="function"?e(t):e}function rr(e,t){return typeof e=="function"?e(t):e}function Km(e,t){let{type:o="all",exact:r,fetchStatus:n,predicate:a,queryKey:s,stale:i}=e;if(s){if(r){if(t.queryHash!==hd(s,t.options))return!1}else if(!yi(t.queryKey,s))return!1}if(o!=="all"){let u=t.isActive();if(o==="active"&&!u||o==="inactive"&&u)return!1}return!(typeof i=="boolean"&&t.isStale()!==i||n&&n!==t.state.fetchStatus||a&&!a(t))}function Ym(e,t){let{exact:o,status:r,predicate:n,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(o){if(Dn(t.options.mutationKey)!==Dn(a))return!1}else if(!yi(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||n&&!n(t))}function hd(e,t){return(t?.queryKeyHashFn||Dn)(e)}function Dn(e){return JSON.stringify(e,(t,o)=>Xv(o)?Object.keys(o).sort().reduce((r,n)=>(r[n]=o[n],r),{}):o)}function yi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(o=>yi(e[o],t[o])):!1}var FW=Object.prototype.hasOwnProperty;function ql(e,t,o=0){if(e===t)return e;if(o>500)return t;let r=HP(e)&&HP(t);if(!r&&!(Xv(e)&&Xv(t)))return t;let a=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),i=s.length,u=r?new Array(i):{},c=0;for(let d=0;d<i;d++){let f=r?d:s[d],p=e[f],m=t[f];if(p===m){u[f]=p,(r?d<a:FW.call(e,f))&&c++;continue}if(p===null||m===null||typeof p!="object"||typeof m!="object"){u[f]=m;continue}let x=ql(p,m,o+1);u[f]=x,x===p&&c++}return a===i&&c===a?e:u}function Wl(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let o in e)if(e[o]!==t[o])return!1;return!0}function HP(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Xv(e){if(!UP(e))return!1;let t=e.constructor;if(t===void 0)return!0;let o=t.prototype;return!(!UP(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function UP(e){return Object.prototype.toString.call(e)==="[object Object]"}function qP(e){return new Promise(t=>{Tn.setTimeout(t,e)})}function gd(e,t,o){if(typeof o.structuralSharing=="function")return o.structuralSharing(e,t);if(o.structuralSharing!==!1){try{return ql(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${o.queryHash}]: ${r}`),r}return ql(e,t)}return t}function WP(e,t,o=0){let r=[...e,t];return o&&r.length>o?r.slice(1):r}function GP(e,t,o=0){let r=[t,...e];return o&&r.length>o?r.slice(0,-1):r}var xi=Symbol();function Xm(e,t){return e.queryFn===xi&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===xi?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Gl(e,t){return typeof e=="function"?e(...t):!!e}function $P(e,t,o){let r=!1,n;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??=t(),r||(r=!0,n.aborted?o():n.addEventListener("abort",o,{once:!0})),n)}),e}var BW=class extends Nr{#e;#t;#o;constructor(){super(),this.#o=e=>{if(!or&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#o=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},$l=new BW;l();function xd(){let e,t,o=new Promise((n,a)=>{e=n,t=a});o.status="pending",o.catch(()=>{});function r(n){Object.assign(o,n),delete o.resolve,delete o.reject}return o.resolve=n=>{r({status:"fulfilled",value:n}),e(n)},o.reject=n=>{r({status:"rejected",reason:n}),t(n)},o}l();l();var jP=VP;function VW(){let e=[],t=0,o=i=>{i()},r=i=>{i()},n=jP,a=i=>{t?e.push(i):n(()=>{o(i)})},s=()=>{let i=e;e=[],i.length&&n(()=>{r(()=>{i.forEach(u=>{o(u)})})})};return{batch:i=>{let u;t++;try{u=i()}finally{t--,t||s()}return u},batchCalls:i=>(...u)=>{a(()=>{i(...u)})},schedule:a,setNotifyFunction:i=>{o=i},setBatchNotifyFunction:i=>{r=i},setScheduler:i=>{n=i}}}var qe=VW();l();l();l();var HW=class extends Nr{#e=!0;#t;#o;constructor(){super(),this.#o=e=>{if(!or&&window.addEventListener){let t=()=>e(!0),o=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",o)}}}}onSubscribe(){this.#t||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#o=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(o=>{o(e)}))}isOnline(){return this.#e}},jl=new HW;function UW(e){return Math.min(1e3*2**e,3e4)}function Qv(e){return(e??"online")==="online"?jl.isOnline():!0}var Qm=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Zm(e){let t=!1,o=0,r,n=xd(),a=()=>n.status!=="pending",s=g=>{if(!a()){let v=new Qm(g);p(v),e.onCancel?.(v)}},i=()=>{t=!0},u=()=>{t=!1},c=()=>$l.isFocused()&&(e.networkMode==="always"||jl.isOnline())&&e.canRun(),d=()=>Qv(e.networkMode)&&e.canRun(),f=g=>{a()||(r?.(),n.resolve(g))},p=g=>{a()||(r?.(),n.reject(g))},m=()=>new Promise(g=>{r=v=>{(a()||c())&&g(v)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),x=()=>{if(a())return;let g,v=o===0?e.initialPromise:void 0;try{g=v??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(f).catch(y=>{if(a())return;let w=e.retry??(or?0:3),C=e.retryDelay??UW,S=typeof C=="function"?C(o,y):C,I=w===!0||typeof w=="number"&&o<w||typeof w=="function"&&w(o,y);if(t||!I){p(y);return}o++,e.onFail?.(o,y),qP(S).then(()=>c()?void 0:m()).then(()=>{t?p(y):x()})})};return{promise:n,status:()=>n.status,cancel:s,continue:()=>(r?.(),n),cancelRetry:i,continueRetry:u,canStart:d,start:()=>(d()?x():m().then(x),n)}}l();var Jm=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),md(this.gcTime)&&(this.#e=Tn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(or?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Tn.clearTimeout(this.#e),this.#e=void 0)}};var XP=class extends Jm{#e;#t;#o;#n;#r;#s;#i;constructor(e){super(),this.#i=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#n=e.client,this.#o=this.#n.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=YP(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let t=YP(this.options);t.data!==void 0&&(this.setState(KP(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#o.remove(this)}setData(e,t){let o=gd(this.state.data,e,this.options);return this.#a({data:o,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),o}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Rt).catch(Rt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>rr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xi||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>en(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!jm(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#i?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#o.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){let i=this.observers.find(u=>u.options.queryFn);i&&this.setOptions(i.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");let o=new AbortController,r=i=>{Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(this.#i=!0,o.signal)})},n=()=>{let i=Xm(this.options,t),c=(()=>{let d={client:this.#n,queryKey:this.queryKey,meta:this.meta};return r(d),d})();return this.#i=!1,this.options.persister?this.options.persister(i,c,this):i(c)},s=(()=>{let i={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:n};return r(i),i})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#a({type:"fetch",meta:s.fetchOptions?.meta}),this.#r=Zm({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:i=>{i instanceof Qm&&i.revert&&this.setState({...this.#t,fetchStatus:"idle"}),o.abort()},onFail:(i,u)=>{this.#a({type:"failed",failureCount:i,error:u})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{let i=await this.#r.start();if(i===void 0)throw console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(i),this.#o.config.onSuccess?.(i,this),this.#o.config.onSettled?.(i,this.state.error,this),i}catch(i){if(i instanceof Qm){if(i.silent)return this.#r.promise;if(i.revert){if(this.state.data===void 0)throw i;return this.state.data}}throw this.#a({type:"error",error:i}),this.#o.config.onError?.(i,this),this.#o.config.onSettled?.(this.state.data,i,this),i}finally{this.scheduleGc()}}#a(e){let t=o=>{switch(e.type){case"failed":return{...o,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...Zv(o.data,this.options),fetchMeta:e.meta??null};case"success":let r={...o,...KP(e.data,e.dataUpdatedAt),dataUpdateCount:o.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":let n=e.error;return{...o,error:n,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...e.state}}};this.state=t(this.state),qe.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:e})})}};function Zv(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Qv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function KP(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function YP(e){let t=typeof e.initialData=="function"?e.initialData():e.initialData,o=t!==void 0,r=o?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:o?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}var ew=class extends Nr{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#i=xd(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#o=void 0;#n=void 0;#r;#s;#i;#a;#h;#f;#p;#u;#c;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),QP(this.#t,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Jv(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Jv(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#C(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,o=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof rr(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Wl(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});let r=this.hasListeners();r&&ZP(this.#t,o,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==o||rr(this.options.enabled,this.#t)!==rr(t.enabled,this.#t)||en(this.options.staleTime,this.#t)!==en(t.staleTime,this.#t))&&this.#g();let n=this.#x();r&&(this.#t!==o||rr(this.options.enabled,this.#t)!==rr(t.enabled,this.#t)||n!==this.#l)&&this.#y(n)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),o=this.createResult(t,e);return qW(this,o)&&(this.#n=o,this.#s=this.options,this.#r=this.#t.state),o}getCurrentResult(){return this.#n}trackResult(e,t){return new Proxy(e,{get:(o,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#i.status==="pending"&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(o,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),o=this.#e.getQueryCache().build(this.#e,t);return o.fetch().then(()=>this.createResult(o,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#d(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Rt)),t}#g(){this.#w();let e=en(this.options.staleTime,this.#t);if(or||this.#n.isStale||!md(e))return;let o=jm(this.#n.dataUpdatedAt,e)+1;this.#u=Tn.setTimeout(()=>{this.#n.isStale||this.updateResult()},o)}#x(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#C(),this.#l=e,!(or||rr(this.options.enabled,this.#t)===!1||!md(this.#l)||this.#l===0)&&(this.#c=Tn.setInterval(()=>{(this.options.refetchIntervalInBackground||$l.isFocused())&&this.#d()},this.#l))}#v(){this.#g(),this.#y(this.#x())}#w(){this.#u&&(Tn.clearTimeout(this.#u),this.#u=void 0)}#C(){this.#c&&(Tn.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){let o=this.#t,r=this.options,n=this.#n,a=this.#r,s=this.#s,u=e!==o?e.state:this.#o,{state:c}=e,d={...c},f=!1,p;if(t._optimisticResults){let R=this.hasListeners(),E=!R&&QP(e,t),D=R&&ZP(e,o,t,r);(E||D)&&(d={...d,...Zv(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:x,status:g}=d;p=d.data;let v=!1;if(t.placeholderData!==void 0&&p===void 0&&g==="pending"){let R;n?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(R=n.data,v=!0):R=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,R!==void 0&&(g="success",p=gd(n?.data,R,t),f=!0)}if(t.select&&p!==void 0&&!v)if(n&&p===a?.data&&t.select===this.#h)p=this.#f;else try{this.#h=t.select,p=t.select(p),p=gd(n?.data,p,t),this.#f=p,this.#a=null}catch(R){this.#a=R}this.#a&&(m=this.#a,p=this.#f,x=Date.now(),g="error");let y=d.fetchStatus==="fetching",w=g==="pending",C=g==="error",S=w&&y,I=p!==void 0,L={status:g,fetchStatus:d.fetchStatus,isPending:w,isSuccess:g==="success",isError:C,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:x,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!w,isLoadingError:C&&!I,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:C&&I,isStale:tw(e,t),refetch:this.refetch,promise:this.#i,isEnabled:rr(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let R=L.data!==void 0,E=L.status==="error"&&!R,D=B=>{E?B.reject(L.error):R&&B.resolve(L.data)},O=()=>{let B=this.#i=L.promise=xd();D(B)},V=this.#i;switch(V.status){case"pending":e.queryHash===o.queryHash&&D(V);break;case"fulfilled":(E||L.data!==V.value)&&O();break;case"rejected":(!E||L.error!==V.reason)&&O();break}}return L}updateResult(){let e=this.#n,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#s=this.options,this.#r.data!==void 0&&(this.#p=this.#t),Wl(t,e))return;this.#n=t;let o=()=>{if(!e)return!0;let{notifyOnChangeProps:r}=this.options,n=typeof r=="function"?r():r;if(n==="all"||!n&&!this.#m.size)return!0;let a=new Set(n??this.#m);return this.options.throwOnError&&a.add("error"),Object.keys(this.#n).some(s=>{let i=s;return this.#n[i]!==e[i]&&a.has(i)})};this.#b({listeners:o()})}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#o=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#b(e){qe.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function zW(e,t){return rr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function QP(e,t){return zW(e,t)||e.state.data!==void 0&&Jv(e,t,t.refetchOnMount)}function Jv(e,t,o){if(rr(t.enabled,e)!==!1&&en(t.staleTime,e)!=="static"){let r=typeof o=="function"?o(e):o;return r==="always"||r!==!1&&tw(e,t)}return!1}function ZP(e,t,o,r){return(e!==t||rr(r.enabled,e)===!1)&&(!o.suspense||e.state.status!=="error")&&tw(e,o)}function tw(e,t){return rr(t.enabled,e)!==!1&&e.isStaleByTime(en(t.staleTime,e))}function qW(e,t){return!Wl(e.getCurrentResult(),t)}l();function ow(e){return{onFetch:(t,o)=>{let r=t.options,n=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[],i={pages:[],pageParams:[]},u=0,c=async()=>{let d=!1,f=x=>{$P(x,()=>t.signal,()=>d=!0)},p=Xm(t.options,t.fetchOptions),m=async(x,g,v)=>{if(d)return Promise.reject();if(g==null&&x.pages.length)return Promise.resolve(x);let w=(()=>{let b={client:t.client,queryKey:t.queryKey,pageParam:g,direction:v?"backward":"forward",meta:t.options.meta};return f(b),b})(),C=await p(w),{maxPages:S}=t.options,I=v?GP:WP;return{pages:I(x.pages,C,S),pageParams:I(x.pageParams,g,S)}};if(n&&a.length){let x=n==="backward",g=x?WW:JP,v={pages:a,pageParams:s},y=g(r,v);i=await m(v,y,x)}else{let x=e??a.length;do{let g=u===0?s[0]??r.initialPageParam:JP(r,i);if(u>0&&g==null)break;i=await m(i,g),u++}while(u<x)}return i};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},o):t.fetchFn=c}}}function JP(e,{pages:t,pageParams:o}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,o[r],o):void 0}function WW(e,{pages:t,pageParams:o}){return t.length>0?e.getPreviousPageParam?.(t[0],t,o[0],o):void 0}l();l();var eM=class extends Jm{#e;#t;#o;#n;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#o=e.mutationCache,this.#t=[],this.state=e.state||rw(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#o.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#o.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#r({type:"continue"})},o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=Zm({fn:()=>this.options.mutationFn?this.options.mutationFn(e,o):Promise.reject(new Error("No mutationFn found")),onFail:(a,s)=>{this.#r({type:"failed",failureCount:a,error:s})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#o.canRun(this)});let r=this.state.status==="pending",n=!this.#n.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:n}),await this.#o.config.onMutate?.(e,this,o);let s=await this.options.onMutate?.(e,o);s!==this.state.context&&this.#r({type:"pending",context:s,variables:e,isPaused:n})}let a=await this.#n.start();return await this.#o.config.onSuccess?.(a,e,this.state.context,this,o),await this.options.onSuccess?.(a,e,this.state.context,o),await this.#o.config.onSettled?.(a,null,this.state.variables,this.state.context,this,o),await this.options.onSettled?.(a,null,e,this.state.context,o),this.#r({type:"success",data:a}),a}catch(a){try{await this.#o.config.onError?.(a,e,this.state.context,this,o)}catch(s){Promise.reject(s)}try{await this.options.onError?.(a,e,this.state.context,o)}catch(s){Promise.reject(s)}try{await this.#o.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this,o)}catch(s){Promise.reject(s)}try{await this.options.onSettled?.(void 0,a,e,this.state.context,o)}catch(s){Promise.reject(s)}throw this.#r({type:"error",error:a}),a}finally{this.#o.runNext(this)}}#r(e){let t=o=>{switch(e.type){case"failed":return{...o,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...o,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:e.error,failureCount:o.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),qe.batch(()=>{this.#t.forEach(o=>{o.onMutationUpdate(e)}),this.#o.notify({mutation:this,type:"updated",action:e})})}};function rw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var tM=class extends Nr{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#o=0}#e;#t;#o;build(e,t,o){let r=new eM({client:e,mutationCache:this,mutationId:++this.#o,options:e.defaultMutationOptions(t),state:o});return this.add(r),r}add(e){this.#e.add(e);let t=eh(e);if(typeof t=="string"){let o=this.#t.get(t);o?o.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){let t=eh(e);if(typeof t=="string"){let o=this.#t.get(t);if(o)if(o.length>1){let r=o.indexOf(e);r!==-1&&o.splice(r,1)}else o[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=eh(e);if(typeof t=="string"){let r=this.#t.get(t)?.find(n=>n.state.status==="pending");return!r||r===e}else return!0}runNext(e){let t=eh(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){qe.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(o=>Ym(t,o))}findAll(e={}){return this.getAll().filter(t=>Ym(e,t))}notify(e){qe.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(t=>t.state.isPaused);return qe.batch(()=>Promise.all(e.map(t=>t.continue().catch(Rt))))}};function eh(e){return e.options.scope?.id}l();var nw=class extends Nr{#e;#t=void 0;#o;#n;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),Wl(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#o,observer:this}),t?.mutationKey&&this.options.mutationKey&&Dn(t.mutationKey)!==Dn(this.options.mutationKey)?this.reset():this.#o?.state.status==="pending"&&this.#o.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#o?.removeObserver(this)}onMutationUpdate(e){this.#r(),this.#s(e)}getCurrentResult(){return this.#t}reset(){this.#o?.removeObserver(this),this.#o=void 0,this.#r(),this.#s()}mutate(e,t){return this.#n=t,this.#o?.removeObserver(this),this.#o=this.#e.getMutationCache().build(this.#e,this.options),this.#o.addObserver(this),this.#o.execute(e)}#r(){let e=this.#o?.state??rw();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#s(e){qe.batch(()=>{if(this.#n&&this.hasListeners()){let t=this.#t.variables,o=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#n.onSuccess?.(e.data,t,o,r)}catch(n){Promise.reject(n)}try{this.#n.onSettled?.(e.data,null,t,o,r)}catch(n){Promise.reject(n)}}else if(e?.type==="error"){try{this.#n.onError?.(e.error,t,o,r)}catch(n){Promise.reject(n)}try{this.#n.onSettled?.(void 0,e.error,t,o,r)}catch(n){Promise.reject(n)}}}this.listeners.forEach(t=>{t(this.#t)})})}};l();var oM=class extends Nr{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,o){let r=t.queryKey,n=t.queryHash??hd(r,t),a=this.get(n);return a||(a=new XP({client:e,queryKey:r,queryHash:n,options:e.defaultQueryOptions(t),state:o,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){qe.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(o=>Km(t,o))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(o=>Km(e,o)):t}notify(e){qe.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){qe.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){qe.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}};l();var aw=class{#e;#t;#o;#n;#r;#s;#i;#a;constructor(e={}){this.#e=e.queryCache||new oM,this.#t=e.mutationCache||new tM,this.#o=e.defaultOptions||{},this.#n=new Map,this.#r=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#i=$l.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=jl.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#i?.(),this.#i=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),o=this.#e.build(this,t),r=o.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&o.isStaleByTime(en(t.staleTime,o))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:o})=>{let r=o.data;return[t,r]})}setQueryData(e,t,o){let r=this.defaultQueryOptions({queryKey:e}),a=this.#e.get(r.queryHash)?.state.data,s=zP(t,a);if(s!==void 0)return this.#e.build(this,r).setData(s,{...o,manual:!0})}setQueriesData(e,t,o){return qe.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,o)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;qe.batch(()=>{t.findAll(e).forEach(o=>{t.remove(o)})})}resetQueries(e,t){let o=this.#e;return qe.batch(()=>(o.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let o={revert:!0,...t},r=qe.batch(()=>this.#e.findAll(e).map(n=>n.cancel(o)));return Promise.all(r).then(Rt).catch(Rt)}invalidateQueries(e,t={}){return qe.batch(()=>(this.#e.findAll(e).forEach(o=>{o.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){let o={...t,cancelRefetch:t.cancelRefetch??!0},r=qe.batch(()=>this.#e.findAll(e).filter(n=>!n.isDisabled()&&!n.isStatic()).map(n=>{let a=n.fetch(void 0,o);return o.throwOnError||(a=a.catch(Rt)),n.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Rt)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let o=this.#e.build(this,t);return o.isStaleByTime(en(t.staleTime,o))?o.fetch(t):Promise.resolve(o.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Rt).catch(Rt)}fetchInfiniteQuery(e){return e.behavior=ow(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Rt).catch(Rt)}ensureInfiniteQueryData(e){return e.behavior=ow(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return jl.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#o}setDefaultOptions(e){this.#o=e}setQueryDefaults(e,t){this.#n.set(Dn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#n.values()],o={};return t.forEach(r=>{yi(e,r.queryKey)&&Object.assign(o,r.defaultOptions)}),o}setMutationDefaults(e,t){this.#r.set(Dn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#r.values()],o={};return t.forEach(r=>{yi(e,r.mutationKey)&&Object.assign(o,r.defaultOptions)}),o}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#o.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=hd(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===xi&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#o.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};l();import*as Kl from"react";import{jsx as GW}from"react/jsx-runtime";var sw=Kl.createContext(void 0),nr=e=>{let t=Kl.useContext(sw);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},iw=({client:e,children:t})=>(Kl.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),GW(sw.Provider,{value:e,children:t}));l();import*as th from"react";var rM=th.createContext(!1),nM=()=>th.useContext(rM),VPe=rM.Provider;l();import*as yd from"react";import{jsx as qPe}from"react/jsx-runtime";function $W(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var jW=yd.createContext($W()),aM=()=>yd.useContext(jW);l();import*as sM from"react";var iM=(e,t,o)=>{let r=o?.state.error&&typeof e.throwOnError=="function"?Gl(e.throwOnError,[o.state.error,o]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},lM=e=>{sM.useEffect(()=>{e.clearReset()},[e])},uM=({result:e,errorResetBoundary:t,throwOnError:o,query:r,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(n&&e.data===void 0||Gl(o,[e.error,r]));l();var cM=e=>{if(e.suspense){let o=n=>n==="static"?n:Math.max(n??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...n)=>o(r(...n)):o(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},dM=(e,t)=>e.isLoading&&e.isFetching&&!t,fM=(e,t)=>e?.suspense&&t.isPending,lw=(e,t,o)=>t.fetchOptimistic(e).catch(()=>{o.clearReset()});l();l();import*as ns from"react";function pM(e,t,o){if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');let r=nM(),n=aM(),a=nr(o),s=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(s);let i=a.getQueryCache().get(s.queryHash);s.queryFn||console.error(`[${s.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),s._optimisticResults=r?"isRestoring":"optimistic",cM(s),iM(s,n,i),lM(n);let u=!a.getQueryCache().get(s.queryHash),[c]=ns.useState(()=>new t(a,s)),d=c.getOptimisticResult(s),f=!r&&e.subscribed!==!1;if(ns.useSyncExternalStore(ns.useCallback(p=>{let m=f?c.subscribe(qe.batchCalls(p)):Rt;return c.updateResult(),m},[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),ns.useEffect(()=>{c.setOptions(s)},[s,c]),fM(s,d))throw lw(s,c,n);if(uM({result:d,errorResetBoundary:n,throwOnError:s.throwOnError,query:i,suspense:s.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(s,d),s.experimental_prefetchInRender&&!or&&dM(d,r)&&(u?lw(s,c,n):i?.promise)?.catch(Rt).finally(()=>{c.updateResult()}),s.notifyOnChangeProps?d:c.trackResult(d)}function vd(e,t){return pM(e,ew,t)}l();import*as fa from"react";function wd(e,t){let o=nr(t);return hM({filters:{...e,status:"pending"}},o).length}function mM(e,t){return e.findAll(t.filters).map(o=>t.select?t.select(o):o.state)}function hM(e={},t){let o=nr(t).getMutationCache(),r=fa.useRef(e),n=fa.useRef(null);return n.current===null&&(n.current=mM(o,e)),fa.useEffect(()=>{r.current=e}),fa.useSyncExternalStore(fa.useCallback(a=>o.subscribe(()=>{let s=ql(n.current,mM(o,r.current));n.current!==s&&(n.current=s,qe.schedule(a))}),[o]),()=>n.current,()=>n.current)}l();import*as pa from"react";function vi(e,t){let o=nr(t),[r]=pa.useState(()=>new nw(o,e));pa.useEffect(()=>{r.setOptions(e)},[r,e]);let n=pa.useSyncExternalStore(pa.useCallback(s=>r.subscribe(qe.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=pa.useCallback((s,i)=>{r.mutate(s,i).catch(Rt)},[r]);if(n.error&&Gl(r.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:a,mutateAsync:n.mutate}}import{createContext as x$,useContext as y$,useEffect as Rw,useState as bd}from"react";l();import Q from"react";import YW from"react-dom";function KW(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}var XW=e=>{switch(e){case"success":return JW;case"info":return tG;case"warning":return eG;case"error":return oG;default:return null}},QW=Array(12).fill(0),ZW=({visible:e,className:t})=>Q.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},Q.createElement("div",{className:"sonner-spinner"},QW.map((o,r)=>Q.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),JW=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Q.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),eG=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Q.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),tG=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Q.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),oG=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Q.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),rG=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Q.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Q.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),nG=()=>{let[e,t]=Q.useState(document.hidden);return Q.useEffect(()=>{let o=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),e},uw=1,cw=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let o=this.subscribers.indexOf(t);this.subscribers.splice(o,1)}),this.publish=t=>{this.subscribers.forEach(o=>o(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var o;let{message:r,...n}=t,a=typeof t?.id=="number"||((o=t.id)==null?void 0:o.length)>0?t.id:uw++,s=this.toasts.find(u=>u.id===a),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),s?this.toasts=this.toasts.map(u=>u.id===a?(this.publish({...u,...t,id:a,title:r}),{...u,...t,id:a,dismissible:i,title:r}):u):this.addToast({title:r,...n,dismissible:i,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(o=>o({id:t,dismiss:!0})))):this.toasts.forEach(o=>{this.subscribers.forEach(r=>r({id:o.id,dismiss:!0}))}),t),this.message=(t,o)=>this.create({...o,message:t}),this.error=(t,o)=>this.create({...o,message:t,type:"error"}),this.success=(t,o)=>this.create({...o,type:"success",message:t}),this.info=(t,o)=>this.create({...o,type:"info",message:t}),this.warning=(t,o)=>this.create({...o,type:"warning",message:t}),this.loading=(t,o)=>this.create({...o,type:"loading",message:t}),this.promise=(t,o)=>{if(!o)return;let r;o.loading!==void 0&&(r=this.create({...o,promise:t,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));let n=Promise.resolve(t instanceof Function?t():t),a=r!==void 0,s,i=n.then(async c=>{if(s=["resolve",c],Q.isValidElement(c))a=!1,this.create({id:r,type:"default",message:c});else if(sG(c)&&!c.ok){a=!1;let f=typeof o.error=="function"?await o.error(`HTTP error! status: ${c.status}`):o.error,p=typeof o.description=="function"?await o.description(`HTTP error! status: ${c.status}`):o.description,x=typeof f=="object"&&!Q.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:p,...x})}else if(c instanceof Error){a=!1;let f=typeof o.error=="function"?await o.error(c):o.error,p=typeof o.description=="function"?await o.description(c):o.description,x=typeof f=="object"&&!Q.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:p,...x})}else if(o.success!==void 0){a=!1;let f=typeof o.success=="function"?await o.success(c):o.success,p=typeof o.description=="function"?await o.description(c):o.description,x=typeof f=="object"&&!Q.isValidElement(f)?f:{message:f};this.create({id:r,type:"success",description:p,...x})}}).catch(async c=>{if(s=["reject",c],o.error!==void 0){a=!1;let d=typeof o.error=="function"?await o.error(c):o.error,f=typeof o.description=="function"?await o.description(c):o.description,m=typeof d=="object"&&!Q.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...m})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),o.finally==null||o.finally.call(o)}),u=()=>new Promise((c,d)=>i.then(()=>s[0]==="reject"?d(s[1]):c(s[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:u}:Object.assign(r,{unwrap:u})},this.custom=(t,o)=>{let r=o?.id||uw++;return this.create({jsx:t(r),id:r,...o}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ar=new cw,aG=(e,t)=>{let o=t?.id||uw++;return ar.addToast({title:e,...t,id:o}),o},sG=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",iG=aG,lG=()=>ar.toasts,uG=()=>ar.getActiveToasts(),Yl=Object.assign(iG,{success:ar.success,info:ar.info,warning:ar.warning,error:ar.error,custom:ar.custom,message:ar.message,promise:ar.promise,dismiss:ar.dismiss,loading:ar.loading},{getHistory:lG,getToasts:uG});KW("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function oh(e){return e.label!==void 0}var cG=3,dG="24px",fG="16px",gM=4e3,pG=356,mG=14,hG=45,gG=200;function kn(...e){return e.filter(Boolean).join(" ")}function xG(e){let[t,o]=e.split("-"),r=[];return t&&r.push(t),o&&r.push(o),r}var yG=e=>{var t,o,r,n,a,s,i,u,c;let{invert:d,toast:f,unstyled:p,interacting:m,setHeights:x,visibleToasts:g,heights:v,index:y,toasts:w,expanded:C,removeToast:S,defaultRichColors:I,closeButton:b,style:L,cancelButtonStyle:R,actionButtonStyle:E,className:D="",descriptionClassName:O="",duration:V,position:B,gap:P,expandByDefault:_,classNames:T,icons:A,closeButtonAriaLabel:k="Close toast"}=e,[M,F]=Q.useState(null),[U,q]=Q.useState(null),[N,H]=Q.useState(!1),[G,K]=Q.useState(!1),[z,j]=Q.useState(!1),[Z,$]=Q.useState(!1),[ue,ne]=Q.useState(!1),[Pe,Re]=Q.useState(0),[ke,je]=Q.useState(0),we=Q.useRef(f.duration||V||gM),ie=Q.useRef(null),Ve=Q.useRef(null),Ct=y===0,Qo=y+1<=g,et=f.type,$t=f.dismissible!==!1,no=f.className||"",Zo=f.descriptionClassName||"",So=Q.useMemo(()=>v.findIndex(Y=>Y.toastId===f.id)||0,[v,f.id]),ao=Q.useMemo(()=>{var Y;return(Y=f.closeButton)!=null?Y:b},[f.closeButton,b]),so=Q.useMemo(()=>f.duration||V||gM,[f.duration,V]),io=Q.useRef(0),ho=Q.useRef(0),Ge=Q.useRef(0),St=Q.useRef(null),[yr,vr]=B.split("-"),Ao=Q.useMemo(()=>v.reduce((Y,He,Fe)=>Fe>=So?Y:Y+He.height,0),[v,So]),lo=nG(),Jo=f.invert||d,Er=et==="loading";ho.current=Q.useMemo(()=>So*P+Ao,[So,Ao]),Q.useEffect(()=>{we.current=so},[so]),Q.useEffect(()=>{H(!0)},[]),Q.useEffect(()=>{let Y=Ve.current;if(Y){let He=Y.getBoundingClientRect().height;return je(He),x(Fe=>[{toastId:f.id,height:He,position:f.position},...Fe]),()=>x(Fe=>Fe.filter(Ue=>Ue.toastId!==f.id))}},[x,f.id]),Q.useLayoutEffect(()=>{if(!N)return;let Y=Ve.current,He=Y.style.height;Y.style.height="auto";let Fe=Y.getBoundingClientRect().height;Y.style.height=He,je(Fe),x(Ue=>Ue.find($e=>$e.toastId===f.id)?Ue.map($e=>$e.toastId===f.id?{...$e,height:Fe}:$e):[{toastId:f.id,height:Fe,position:f.position},...Ue])},[N,f.title,f.description,x,f.id,f.jsx,f.action,f.cancel]);let fe=Q.useCallback(()=>{K(!0),Re(ho.current),x(Y=>Y.filter(He=>He.toastId!==f.id)),setTimeout(()=>{S(f)},gG)},[f,S,x,ho]);Q.useEffect(()=>{if(f.promise&&et==="loading"||f.duration===1/0||f.type==="loading")return;let Y;return C||m||lo?(()=>{if(Ge.current<io.current){let Ue=new Date().getTime()-io.current;we.current=we.current-Ue}Ge.current=new Date().getTime()})():we.current!==1/0&&(io.current=new Date().getTime(),Y=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),fe()},we.current)),()=>clearTimeout(Y)},[C,m,f,et,lo,fe]),Q.useEffect(()=>{f.delete&&(fe(),f.onDismiss==null||f.onDismiss.call(f,f))},[fe,f.delete]);function Le(){var Y;if(A?.loading){var He;return Q.createElement("div",{className:kn(T?.loader,f==null||(He=f.classNames)==null?void 0:He.loader,"sonner-loader"),"data-visible":et==="loading"},A.loading)}return Q.createElement(ZW,{className:kn(T?.loader,f==null||(Y=f.classNames)==null?void 0:Y.loader),visible:et==="loading"})}let pe=f.icon||A?.[et]||XW(et);var me,Ee;return Q.createElement("li",{tabIndex:0,ref:Ve,className:kn(D,no,T?.toast,f==null||(t=f.classNames)==null?void 0:t.toast,T?.default,T?.[et],f==null||(o=f.classNames)==null?void 0:o[et]),"data-sonner-toast":"","data-rich-colors":(me=f.richColors)!=null?me:I,"data-styled":!(f.jsx||f.unstyled||p),"data-mounted":N,"data-promise":!!f.promise,"data-swiped":ue,"data-removed":G,"data-visible":Qo,"data-y-position":yr,"data-x-position":vr,"data-index":y,"data-front":Ct,"data-swiping":z,"data-dismissible":$t,"data-type":et,"data-invert":Jo,"data-swipe-out":Z,"data-swipe-direction":U,"data-expanded":!!(C||_&&N),"data-testid":f.testId,style:{"--index":y,"--toasts-before":y,"--z-index":w.length-y,"--offset":`${G?Pe:ho.current}px`,"--initial-height":_?"auto":`${ke}px`,...L,...f.style},onDragEnd:()=>{j(!1),F(null),St.current=null},onPointerDown:Y=>{Y.button!==2&&(Er||!$t||(ie.current=new Date,Re(ho.current),Y.target.setPointerCapture(Y.pointerId),Y.target.tagName!=="BUTTON"&&(j(!0),St.current={x:Y.clientX,y:Y.clientY})))},onPointerUp:()=>{var Y,He,Fe;if(Z||!$t)return;St.current=null;let Ue=Number(((Y=Ve.current)==null?void 0:Y.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Dt=Number(((He=Ve.current)==null?void 0:He.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),$e=new Date().getTime()-((Fe=ie.current)==null?void 0:Fe.getTime()),Be=M==="x"?Ue:Dt,Oo=Math.abs(Be)/$e;if(Math.abs(Be)>=hG||Oo>.11){Re(ho.current),f.onDismiss==null||f.onDismiss.call(f,f),q(M==="x"?Ue>0?"right":"left":Dt>0?"down":"up"),fe(),$(!0);return}else{var it,ft;(it=Ve.current)==null||it.style.setProperty("--swipe-amount-x","0px"),(ft=Ve.current)==null||ft.style.setProperty("--swipe-amount-y","0px")}ne(!1),j(!1),F(null)},onPointerMove:Y=>{var He,Fe,Ue;if(!St.current||!$t||((He=window.getSelection())==null?void 0:He.toString().length)>0)return;let $e=Y.clientY-St.current.y,Be=Y.clientX-St.current.x;var Oo;let it=(Oo=e.swipeDirections)!=null?Oo:xG(B);!M&&(Math.abs(Be)>1||Math.abs($e)>1)&&F(Math.abs(Be)>Math.abs($e)?"x":"y");let ft={x:0,y:0},wn=No=>1/(1.5+Math.abs(No)/20);if(M==="y"){if(it.includes("top")||it.includes("bottom"))if(it.includes("top")&&$e<0||it.includes("bottom")&&$e>0)ft.y=$e;else{let No=$e*wn($e);ft.y=Math.abs(No)<Math.abs($e)?No:$e}}else if(M==="x"&&(it.includes("left")||it.includes("right")))if(it.includes("left")&&Be<0||it.includes("right")&&Be>0)ft.x=Be;else{let No=Be*wn(Be);ft.x=Math.abs(No)<Math.abs(Be)?No:Be}(Math.abs(ft.x)>0||Math.abs(ft.y)>0)&&ne(!0),(Fe=Ve.current)==null||Fe.style.setProperty("--swipe-amount-x",`${ft.x}px`),(Ue=Ve.current)==null||Ue.style.setProperty("--swipe-amount-y",`${ft.y}px`)}},ao&&!f.jsx&&et!=="loading"?Q.createElement("button",{"aria-label":k,"data-disabled":Er,"data-close-button":!0,onClick:Er||!$t?()=>{}:()=>{fe(),f.onDismiss==null||f.onDismiss.call(f,f)},className:kn(T?.closeButton,f==null||(r=f.classNames)==null?void 0:r.closeButton)},(Ee=A?.close)!=null?Ee:rG):null,(et||f.icon||f.promise)&&f.icon!==null&&(A?.[et]!==null||f.icon)?Q.createElement("div",{"data-icon":"",className:kn(T?.icon,f==null||(n=f.classNames)==null?void 0:n.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Le():null,f.type!=="loading"?pe:null):null,Q.createElement("div",{"data-content":"",className:kn(T?.content,f==null||(a=f.classNames)==null?void 0:a.content)},Q.createElement("div",{"data-title":"",className:kn(T?.title,f==null||(s=f.classNames)==null?void 0:s.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?Q.createElement("div",{"data-description":"",className:kn(O,Zo,T?.description,f==null||(i=f.classNames)==null?void 0:i.description)},typeof f.description=="function"?f.description():f.description):null),Q.isValidElement(f.cancel)?f.cancel:f.cancel&&oh(f.cancel)?Q.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||R,onClick:Y=>{oh(f.cancel)&&$t&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,Y),fe())},className:kn(T?.cancelButton,f==null||(u=f.classNames)==null?void 0:u.cancelButton)},f.cancel.label):null,Q.isValidElement(f.action)?f.action:f.action&&oh(f.action)?Q.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||E,onClick:Y=>{oh(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,Y),!Y.defaultPrevented&&fe())},className:kn(T?.actionButton,f==null||(c=f.classNames)==null?void 0:c.actionButton)},f.action.label):null)};function xM(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function vG(e,t){let o={};return[e,t].forEach((r,n)=>{let a=n===1,s=a?"--mobile-offset":"--offset",i=a?fG:dG;function u(c){["top","right","bottom","left"].forEach(d=>{o[`${s}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?u(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?o[`${s}-${c}`]=i:o[`${s}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):u(i)}),o}var yM=Q.forwardRef(function(t,o){let{id:r,invert:n,position:a="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:u,className:c,offset:d,mobileOffset:f,theme:p="light",richColors:m,duration:x,style:g,visibleToasts:v=cG,toastOptions:y,dir:w=xM(),gap:C=mG,icons:S,containerAriaLabel:I="Notifications"}=t,[b,L]=Q.useState([]),R=Q.useMemo(()=>r?b.filter(N=>N.toasterId===r):b.filter(N=>!N.toasterId),[b,r]),E=Q.useMemo(()=>Array.from(new Set([a].concat(R.filter(N=>N.position).map(N=>N.position)))),[R,a]),[D,O]=Q.useState([]),[V,B]=Q.useState(!1),[P,_]=Q.useState(!1),[T,A]=Q.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),k=Q.useRef(null),M=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),F=Q.useRef(null),U=Q.useRef(!1),q=Q.useCallback(N=>{L(H=>{var G;return(G=H.find(K=>K.id===N.id))!=null&&G.delete||ar.dismiss(N.id),H.filter(({id:K})=>K!==N.id)})},[]);return Q.useEffect(()=>ar.subscribe(N=>{if(N.dismiss){requestAnimationFrame(()=>{L(H=>H.map(G=>G.id===N.id?{...G,delete:!0}:G))});return}setTimeout(()=>{YW.flushSync(()=>{L(H=>{let G=H.findIndex(K=>K.id===N.id);return G!==-1?[...H.slice(0,G),{...H[G],...N},...H.slice(G+1)]:[N,...H]})})})}),[b]),Q.useEffect(()=>{if(p!=="system"){A(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?A("dark"):A("light")),typeof window>"u")return;let N=window.matchMedia("(prefers-color-scheme: dark)");try{N.addEventListener("change",({matches:H})=>{A(H?"dark":"light")})}catch{N.addListener(({matches:G})=>{try{A(G?"dark":"light")}catch(K){console.error(K)}})}},[p]),Q.useEffect(()=>{b.length<=1&&B(!1)},[b]),Q.useEffect(()=>{let N=H=>{var G;if(s.every(j=>H[j]||H.code===j)){var z;B(!0),(z=k.current)==null||z.focus()}H.code==="Escape"&&(document.activeElement===k.current||(G=k.current)!=null&&G.contains(document.activeElement))&&B(!1)};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},[s]),Q.useEffect(()=>{if(k.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,U.current=!1)}},[k.current]),Q.createElement("section",{ref:o,"aria-label":`${I} ${M}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},E.map((N,H)=>{var G;let[K,z]=N.split("-");return R.length?Q.createElement("ol",{key:N,dir:w==="auto"?xM():w,tabIndex:-1,ref:k,className:c,"data-sonner-toaster":!0,"data-sonner-theme":T,"data-y-position":K,"data-x-position":z,style:{"--front-toast-height":`${((G=D[0])==null?void 0:G.height)||0}px`,"--width":`${pG}px`,"--gap":`${C}px`,...g,...vG(d,f)},onBlur:j=>{U.current&&!j.currentTarget.contains(j.relatedTarget)&&(U.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:j=>{j.target instanceof HTMLElement&&j.target.dataset.dismissible==="false"||U.current||(U.current=!0,F.current=j.relatedTarget)},onMouseEnter:()=>B(!0),onMouseMove:()=>B(!0),onMouseLeave:()=>{P||B(!1)},onDragEnd:()=>B(!1),onPointerDown:j=>{j.target instanceof HTMLElement&&j.target.dataset.dismissible==="false"||_(!0)},onPointerUp:()=>_(!1)},R.filter(j=>!j.position&&H===0||j.position===N).map((j,Z)=>{var $,ue;return Q.createElement(yG,{key:j.id,icons:S,index:Z,toast:j,defaultRichColors:m,duration:($=y?.duration)!=null?$:x,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:n,visibleToasts:v,closeButton:(ue=y?.closeButton)!=null?ue:u,interacting:P,position:N,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:q,toasts:R.filter(ne=>ne.position==j.position),heights:D.filter(ne=>ne.position==j.position),setHeights:O,expandByDefault:i,gap:C,expanded:V,swipeDirections:t.swipeDirections})})):null}))});l();var rh=Object.create(null),Cd=e=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?rh:globalThis),as=new Proxy(rh,{get(e,t){return Cd()[t]??rh[t]},has(e,t){let o=Cd();return t in o||t in rh},set(e,t,o){let r=Cd(!0);return r[t]=o,!0},deleteProperty(e,t){if(!t)return!1;let o=Cd(!0);return delete o[t],!0},ownKeys(){let e=Cd(!0);return Object.keys(e)}}),wG=typeof process<"u"&&process.env&&"true"||"",CG=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}]];function SG(){if(globalThis.process?.env)for(let e of CG){let t=e[1]||e[0];if(globalThis.process?.env[t])return{name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}var wM=SG(),EMe=wM.name;function wi(e){return e?e!=="false":!1}var dw=globalThis.process?.platform||"",nh=wi(as.CI)||wM.ci!==!1,CM=wi(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY),ah=typeof window<"u",TMe=wi(as.DEBUG),bG=wG==="test"||wi(as.TEST);var DMe=wi(as.MINIMAL)||nh||bG||!CM,IG=/^win/i.test(dw),kMe=/^linux/i.test(dw),AMe=/^darwin/i.test(dw),OMe=!wi(as.NO_COLOR)&&(wi(as.FORCE_COLOR)||(CM||IG)&&as.TERM!=="dumb"||nh),RG=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null,NMe=Number(RG?.split(".")[0])||null,LG=globalThis.process||Object.create(null),vM={versions:{}},_Me=new Proxy(LG,{get(e,t){if(t==="env")return as;if(t in e)return e[t];if(t in vM)return vM[t]}}),PG=globalThis.process?.release?.name==="node",MG=!!globalThis.Bun||!!globalThis.process?.versions?.bun,EG=!!globalThis.Deno,TG=!!globalThis.fastly,DG=!!globalThis.Netlify,kG=!!globalThis.EdgeRuntime,AG=globalThis.navigator?.userAgent==="Cloudflare-Workers",OG=[[DG,"netlify"],[kG,"edge-light"],[AG,"workerd"],[TG,"fastly"],[EG,"deno"],[MG,"bun"],[PG,"node"]];function NG(){let e=OG.find(t=>t[0]);if(e)return{name:e[1]}}var _G=NG(),FMe=_G?.name||"";l();import{jsx as FG}from"react/jsx-runtime";var SM=({...e})=>FG(yM,{className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e});l();import{useEffect as bM,useMemo as IM}from"react";function LM(e){try{let t={light:{},dark:{}},o=e.replace(/@layer\s+base\s*\{|\}$/g,"").trim(),r=o.match(/:root\s*\{([^}]+)\}/),n=o.match(/\.dark\s*\{([^}]+)\}/);return r&&r[1]&&(t.light=RM(r[1])),n&&n[1]&&(t.dark=RM(n[1])),Object.keys(t.light).length===0&&Object.keys(t.dark).length===0?null:t}catch{return null}}function RM(e){let t={},o=/--([\w-]+):\s*([^;]+);?/g,r;for(;(r=o.exec(e))!==null;){let[,n,a]=r;n&&a&&(t[`--${n}`]=a.trim())}return t}function BG(e){let t=document.documentElement;Object.entries(e).forEach(([o,r])=>{t.style.setProperty(o,r)})}function VG(e){let t=document.querySelector(".ps");t&&(e?t.classList.add("dark"):t.classList.remove("dark"))}function PM(e,t){let o=IM(()=>e?typeof e=="string"?LM(e):e:null,[e]),r=IM(()=>o?o[t?"dark":"light"]||{}:null,[o,t]);return bM(()=>{r&&BG(r)},[r]),bM(()=>{VG(t??!1)},[t]),{parsedTheme:o,currentThemeVariables:r,hasCustomTheme:!!o}}l();var zM=wl(VM(),1);l();var lh="0123456789abcdef",uh=class e{constructor(t){this.bytes=t}static ofInner(t){if(t.length!==16)throw new TypeError("not 128-bit length");return new e(t)}static fromFieldsV7(t,o,r,n){if(!Number.isInteger(t)||!Number.isInteger(o)||!Number.isInteger(r)||!Number.isInteger(n)||t<0||o<0||r<0||n<0||t>0xffffffffffff||o>4095||r>1073741823||n>4294967295)throw new RangeError("invalid field value");let a=new Uint8Array(16);return a[0]=t/2**40,a[1]=t/2**32,a[2]=t/2**24,a[3]=t/2**16,a[4]=t/2**8,a[5]=t,a[6]=112|o>>>8,a[7]=o,a[8]=128|r>>>24,a[9]=r>>>16,a[10]=r>>>8,a[11]=r,a[12]=n>>>24,a[13]=n>>>16,a[14]=n>>>8,a[15]=n,new e(a)}static parse(t){var o,r,n,a;let s;switch(t.length){case 32:s=(o=/^[0-9a-f]{32}$/i.exec(t))===null||o===void 0?void 0:o[0];break;case 36:s=(r=/^([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i.exec(t))===null||r===void 0?void 0:r.slice(1,6).join("");break;case 38:s=(n=/^\{([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})\}$/i.exec(t))===null||n===void 0?void 0:n.slice(1,6).join("");break;case 45:s=(a=/^urn:uuid:([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i.exec(t))===null||a===void 0?void 0:a.slice(1,6).join("");break;default:break}if(s){let i=new Uint8Array(16);for(let u=0;u<16;u+=4){let c=parseInt(s.substring(2*u,2*u+8),16);i[u+0]=c>>>24,i[u+1]=c>>>16,i[u+2]=c>>>8,i[u+3]=c}return new e(i)}else throw new SyntaxError("could not parse UUID string")}toString(){let t="";for(let o=0;o<this.bytes.length;o++)t+=lh.charAt(this.bytes[o]>>>4),t+=lh.charAt(this.bytes[o]&15),(o===3||o===5||o===7||o===9)&&(t+="-");return t}toHex(){let t="";for(let o=0;o<this.bytes.length;o++)t+=lh.charAt(this.bytes[o]>>>4),t+=lh.charAt(this.bytes[o]&15);return t}toJSON(){return this.toString()}getVariant(){let t=this.bytes[8]>>>4;if(t<0)throw new Error("unreachable");if(t<=7)return this.bytes.every(o=>o===0)?"NIL":"VAR_0";if(t<=11)return"VAR_10";if(t<=13)return"VAR_110";if(t<=15)return this.bytes.every(o=>o===255)?"MAX":"VAR_RESERVED";throw new Error("unreachable")}getVersion(){return this.getVariant()==="VAR_10"?this.bytes[6]>>>4:void 0}clone(){return new e(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(let o=0;o<16;o++){let r=this.bytes[o]-t.bytes[o];if(r!==0)return Math.sign(r)}return 0}},ww=class{constructor(t){this.timestamp_biased=0,this.counter=0,this.random=t??a$()}generate(){return this.generateOrResetCore(Date.now(),1e4)}generateOrAbort(){return this.generateOrAbortCore(Date.now(),1e4)}generateOrResetCore(t,o){let r=this.generateOrAbortCore(t,o);return r===void 0&&(this.timestamp_biased=0,r=this.generateOrAbortCore(t,o)),r}generateOrAbortCore(t,o){if(!Number.isInteger(t)||t<0||t>0xffffffffffff)throw new RangeError("`unixTsMs` must be a 48-bit unsigned integer");if(o<0||o>0xffffffffffff)throw new RangeError("`rollbackAllowance` out of reasonable range");if(t++,t>this.timestamp_biased)this.timestamp_biased=t,this.resetCounter();else if(t+o>=this.timestamp_biased)this.counter++,this.counter>4398046511103&&(this.timestamp_biased++,this.resetCounter());else return;return uh.fromFieldsV7(this.timestamp_biased-1,Math.trunc(this.counter/2**30),this.counter&2**30-1,this.random.nextUint32())}resetCounter(){this.counter=this.random.nextUint32()*1024+(this.random.nextUint32()&1023)}generateV4(){let t=new Uint8Array(Uint32Array.of(this.random.nextUint32(),this.random.nextUint32(),this.random.nextUint32(),this.random.nextUint32()).buffer);return t[6]=64|t[6]>>>4,t[8]=128|t[8]>>>2,uh.ofInner(t)}},a$=()=>{if(typeof crypto<"u"&&typeof crypto.getRandomValues<"u")return new Cw;if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");return{nextUint32:()=>Math.trunc(Math.random()*65536)*65536+Math.trunc(Math.random()*65536)}},Cw=class{constructor(){this.buffer=new Uint32Array(8),this.cursor=65535}nextUint32(){return this.cursor>=this.buffer.length&&(crypto.getRandomValues(this.buffer),this.cursor=0),this.buffer[this.cursor++]}},HM,UM=()=>s$().toString(),s$=()=>(HM||(HM=new ww)).generate();var tn=zM.default.createTranslator({uuid:UM});l();l();l();import{createContext as i$,createElement as l$,useContext as Sw}from"react";var bw=c$();function ht(e,...t){if(!bw)return;let o=u$(e,...t);performance.mark(o);try{console.log(e,...t)}catch{console.log(o)}}function qM(e,...t){bw&&console.warn(e,...t)}function u$(e,...t){return e.replace(/%[sfdO]/g,o=>{let r=t.shift();return o==="%O"&&r?JSON.stringify(r).replace(/"([^"]+)":/g,"$1:"):String(r)})}function c$(){try{let e="nuqs-localStorage-test";if(typeof localStorage>"u")return!1;localStorage.setItem(e,e);let t=localStorage.getItem(e)===e;return localStorage.removeItem(e),t&&(localStorage.getItem("debug")||"").includes("nuqs")}catch{return!1}}var d$={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",422:"Invalid options combination: `limitUrlUpdates: debounce` should be used in SSR scenarios, with `shallow: false`",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function Si(e){return`[nuqs] ${d$[e]}
|
|
18
|
-
See https://nuqs.dev/NUQS-${e}`}var Ci=i$({useAdapter(){throw new Error(Si(404))}});Ci.displayName="NuqsAdapterContext";bw&&typeof window<"u"&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==Ci&&console.error(Si(303)),window.__NuqsAdapterContext=Ci);function Iw(e){return({children:t,defaultOptions:o,processUrlSearchParams:r,...n})=>l$(Ci.Provider,{...n,value:{useAdapter:e,defaultOptions:o,processUrlSearchParams:r}},t)}function WM(e){let t=Sw(Ci);if(!("useAdapter"in t))throw new Error(Si(404));return t.useAdapter(e)}var GM=()=>Sw(Ci).defaultOptions,$M=()=>Sw(Ci).processUrlSearchParams;import{useEffect as p$,useState as m$}from"react";function h$(e,t){let o;return(...r)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...r),t)}}function g$(){let e=typeof window<"u"?window.location.hash.slice(1):"",[t,o]=m$(new URLSearchParams(e));function r(a,{history:s}){let{pathname:i,search:u}=window.location,c=a.toString(),d=`${i}${u}#${c}`;s==="push"?window.history.pushState(null,"",d):window.history.replaceState(null,"",d),o(a)}function n(){if(typeof window>"u")return new URLSearchParams;let a=window.location.hash.slice(1);return new URLSearchParams(a)}return p$(()=>{let a=h$(()=>{let s=window.location.hash.slice(1);o(new URLSearchParams(s))},50);return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[]),{searchParams:t,updateUrl:r,getSearchParamsSnapshot:n}}var jM=Iw(g$);import{jsx as ch,jsxs as S$}from"react/jsx-runtime";var KM=new aw,YM=x$(void 0);function XM(e){let{children:t,onEvent:o,adapter:r,theme:n}=e,[a,s]=bd(!1),[i,u]=bd(!0),[c,d]=bd([]),[f,p]=bd(()=>typeof document<"u"?document.documentElement.classList.contains("dark"):!1);Rw(()=>{p(document.documentElement.classList.contains("dark"))},[]);let[m]=bd(tn.generate()),{hasCustomTheme:x}=PM(n,f);Rw(()=>{KM.resetQueries({exact:!1,queryKey:[]})},[r]),Rw(()=>{let w=new MutationObserver(C=>{C.forEach(S=>{if(S.type==="attributes"&&S.attributeName==="class"){let I=document.documentElement.classList.contains("dark");p(I)}})});return w.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>w.disconnect()},[]);let g=w=>{let{name:C,payload:S}=w;if(C==="studio_operation_error"){if(S.error.name==="AbortError")return;Yl.error(`"${S.operation}" operation failed`,{action:{label:"Console",onClick:()=>{window.location.hash=Lw({viewParam:"console"})}}})}let I=tn.generate(),b=new Date().toISOString(),L={...w,eventId:I,timestamp:b};(L.name==="studio_operation_success"||L.name==="studio_operation_error")&&d(R=>{let E=[...R,L];return E.length>100?E.slice(0,100):E}),o?.(L),C==="studio_launched"&&ah&&!nh&&!v$()&&!C$()&&BP({additionalData:{eventPayload:S,variant:"free"},command:C,eventId:I,product:"prisma-studio-embedded",signature:m,skipUpdateCheck:!0,timestamp:new Date(b),version:"0.13.1"}).catch(R=>{console.error(R)})},v=()=>s(w=>!w),y=()=>u(w=>!w);return S$(iw,{client:KM,children:[ch(SM,{}),ch(jM,{children:ch(YM.Provider,{value:{adapter:r,isFullscreen:a,onEvent:g,operationEvents:c,toggleFullscreen:v,isNavigationOpen:i,toggleNavigation:y,isDarkMode:f,hasCustomTheme:x},children:ch(QM,{children:t})})})]})}function uo(){let e=y$(YM);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}function v$(){return w$()&&"__PVCE__"in window&&window.__PVCE__===!0}function w$(){return ah&&"acquireVsCodeApi"in window&&typeof window.acquireVsCodeApi=="function"}function C$(){if(!ah)return!1;let{hostname:e}=window.location;return"__PDPCP__"in window&&window.__PDPCP__===!0||e.includes("console.prisma.io")||e.includes("datacdn.workers.dev")}l();l();l();import{useCallback as ZM,useRef as b$,useSyncExternalStore as I$}from"react";function R$(){if(typeof window>"u"||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}function JM(e){return{method:"throttle",timeMs:e}}var Jl=JM(R$());function eE(e){return e===null||Array.isArray(e)&&e.length===0}function tE(e,t,o){if(typeof e=="string")o.set(t,e);else{o.delete(t);for(let r of e)o.append(t,r);o.has(t)||o.set(t,"")}return o}function Tw(){let e=new Map;return{on(t,o){let r=e.get(t)||[];return r.push(o),e.set(t,r),()=>this.off(t,o)},off(t,o){let r=e.get(t);r&&e.set(t,r.filter(n=>n!==o))},emit(t,o){e.get(t)?.forEach(r=>r(o))}}}function Pw(e,t,o){function r(){e(),o.removeEventListener("abort",a)}let n=setTimeout(r,t);function a(){clearTimeout(n),o.removeEventListener("abort",a)}o.addEventListener("abort",a)}function Mw(){let e=Promise;if(Promise.hasOwnProperty("withResolvers"))return Promise.withResolvers();let t=()=>{},o=()=>{};return{promise:new e((r,n)=>{t=r,o=n}),resolve:t,reject:o}}function L$(e,t){let o=t;for(let r=e.length-1;r>=0;r--){let n=e[r];if(!n)continue;let a=o;o=()=>n(a)}o()}function Ew(){return new URLSearchParams(location.search)}var oE=class{updateMap=new Map;options={history:"replace",scroll:!1,shallow:!0};timeMs=Jl.timeMs;transitions=new Set;resolvers=null;controller=null;lastFlushedAt=0;resetQueueOnNextPush=!1;push({key:e,query:t,options:o},r=Jl.timeMs){this.resetQueueOnNextPush&&(this.reset(),this.resetQueueOnNextPush=!1),ht("[nuqs gtq] Enqueueing %s=%s %O",e,t,o),this.updateMap.set(e,t),o.history==="push"&&(this.options.history="push"),o.scroll&&(this.options.scroll=!0),o.shallow===!1&&(this.options.shallow=!1),o.startTransition&&this.transitions.add(o.startTransition),(!Number.isFinite(this.timeMs)||r>this.timeMs)&&(this.timeMs=r)}getQueuedQuery(e){return this.updateMap.get(e)}getPendingPromise({getSearchParamsSnapshot:e=Ew}){return this.resolvers?.promise??Promise.resolve(e())}flush({getSearchParamsSnapshot:e=Ew,rateLimitFactor:t=1,...o},r){if(this.controller??=new AbortController,!Number.isFinite(this.timeMs))return ht("[nuqs gtq] Skipping flush due to throttleMs=Infinity"),Promise.resolve(e());if(this.resolvers)return this.resolvers.promise;this.resolvers=Mw();let n=()=>{this.lastFlushedAt=performance.now();let[s,i]=this.applyPendingUpdates({...o,autoResetQueueOnUpdate:o.autoResetQueueOnUpdate??!0,getSearchParamsSnapshot:e},r);i===null?(this.resolvers.resolve(s),this.resetQueueOnNextPush=!0):this.resolvers.reject(s),this.resolvers=null};return Pw(()=>{let s=performance.now()-this.lastFlushedAt,i=this.timeMs,u=t*Math.max(0,i-s);ht("[nuqs gtq] Scheduling flush in %f ms. Throttled at %f ms (x%f)",u,i,t),u===0?n():Pw(n,u,this.controller.signal)},0,this.controller.signal),this.resolvers.promise}abort(){return this.controller?.abort(),this.controller=new AbortController,this.resolvers?.resolve(new URLSearchParams),this.resolvers=null,this.reset()}reset(){let e=Array.from(this.updateMap.keys());return ht("[nuqs gtq] Resetting queue %s",JSON.stringify(Object.fromEntries(this.updateMap))),this.updateMap.clear(),this.transitions.clear(),this.options={history:"replace",scroll:!1,shallow:!0},this.timeMs=Jl.timeMs,e}applyPendingUpdates(e,t){let{updateUrl:o,getSearchParamsSnapshot:r}=e,n=r();if(ht("[nuqs gtq] Applying %d pending update(s) on top of %s",this.updateMap.size,n.toString()),this.updateMap.size===0)return[n,null];let a=Array.from(this.updateMap.entries()),s={...this.options},i=Array.from(this.transitions);e.autoResetQueueOnUpdate&&this.reset(),ht("[nuqs gtq] Flushing queue %O with options %O",a,s);for(let[u,c]of a)c===null?n.delete(u):n=tE(c,u,n);t&&(n=t(n));try{return L$(i,()=>{o(n,s)}),[n,null]}catch(u){return console.error(Si(429),a.map(([c])=>c).join(),u),[n,u]}}},Id=new oE;function P$(e,t,o){let r=ZM(()=>{let a=Object.fromEntries(e.map(s=>[s,o(s)]));return[JSON.stringify(a),a]},[e.join(","),o]),n=b$(null);return n.current===null&&(n.current=r()),I$(ZM(a=>{let s=e.map(i=>t(i,a));return()=>s.forEach(i=>i())},[e.join(","),t]),()=>{let[a,s]=r();return n.current[0]===a?n.current[1]:(n.current=[a,s],s)},()=>n.current[1])}var M$=class{callback;resolvers=Mw();controller=new AbortController;queuedValue=void 0;constructor(e){this.callback=e}abort(){this.controller.abort(),this.queuedValue=void 0}push(e,t){return this.queuedValue=e,this.controller.abort(),this.controller=new AbortController,Pw(()=>{let o=this.resolvers;try{ht("[nuqs dq] Flushing debounce queue",e);let r=this.callback(e);ht("[nuqs dq] Reset debounce queue %O",this.queuedValue),this.queuedValue=void 0,this.resolvers=Mw(),r.then(n=>o.resolve(n)).catch(n=>o.reject(n))}catch(r){this.queuedValue=void 0,o.reject(r)}},t,this.controller.signal),this.resolvers.promise}},E$=class{throttleQueue;queues=new Map;queuedQuerySync=Tw();constructor(e=new oE){this.throttleQueue=e}useQueuedQueries(e){return P$(e,(t,o)=>this.queuedQuerySync.on(t,o),t=>this.getQueuedQuery(t))}push(e,t,o,r){if(!Number.isFinite(t)){let s=o.getSearchParamsSnapshot??Ew;return Promise.resolve(s())}let n=e.key;if(!this.queues.has(n)){ht("[nuqs dqc] Creating debounce queue for `%s`",n);let s=new M$(i=>(this.throttleQueue.push(i),this.throttleQueue.flush(o,r).finally(()=>{this.queues.get(i.key)?.queuedValue===void 0&&(ht("[nuqs dqc] Cleaning up empty queue for `%s`",i.key),this.queues.delete(i.key)),this.queuedQuerySync.emit(i.key)})));this.queues.set(n,s)}ht("[nuqs dqc] Enqueueing debounce update %O",e);let a=this.queues.get(n).push(e,t);return this.queuedQuerySync.emit(n),a}abort(e){let t=this.queues.get(e);return t?(ht("[nuqs dqc] Aborting debounce queue %s=%s",e,t.queuedValue?.query),this.queues.delete(e),t.abort(),this.queuedQuerySync.emit(e),o=>(o.then(t.resolvers.resolve,t.resolvers.reject),o)):o=>o}abortAll(){for(let[e,t]of this.queues.entries())ht("[nuqs dqc] Aborting debounce queue %s=%s",e,t.queuedValue?.query),t.abort(),t.resolvers.resolve(new URLSearchParams),this.queuedQuerySync.emit(e);this.queues.clear()}getQueuedQuery(e){let t=this.queues.get(e)?.queuedValue?.query;return t!==void 0?t:this.throttleQueue.getQueuedQuery(e)}},dh=new E$(Id);l();function rE(e,t){return e===t?!0:e===null||t===null||typeof e=="string"||typeof t=="string"||e.length!==t.length?!1:e.every((o,r)=>o===t[r])}import{useCallback as iE,useEffect as nE,useId as T$,useMemo as Dw,useRef as aE,useState as D$}from"react";function lE(e,t,o){try{return e(t)}catch(r){return qM("[nuqs] Error while parsing value `%s`: %O"+(o?" (for key `%s`)":""),t,r,o),null}}function ma(e){function t(o){if(typeof o>"u")return null;let r="";if(Array.isArray(o)){if(o[0]===void 0)return null;r=o[0]}return typeof o=="string"&&(r=o),lE(e.parse,r)}return{type:"single",eq:(o,r)=>o===r,...e,parseServerSide:t,withDefault(o){return{...this,defaultValue:o,parseServerSide(r){return t(r)??o}}},withOptions(o){return{...this,...o}}}}var nTe=ma({parse:e=>e,serialize:String}),aTe=ma({parse:e=>{let t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)}),sTe=ma({parse:e=>{let t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)}),iTe=ma({parse:e=>{let t=parseInt(e,16);return t==t?t:null},serialize:e=>{let t=Math.round(e).toString(16);return(t.length&1?"0":"")+t}}),lTe=ma({parse:e=>{let t=parseFloat(e);return t==t?t:null},serialize:String}),uTe=ma({parse:e=>e.toLowerCase()==="true",serialize:String});function Ow(e,t){return e.valueOf()===t.valueOf()}var cTe=ma({parse:e=>{let t=parseInt(e);return t==t?new Date(t):null},serialize:e=>""+e.valueOf(),eq:Ow}),dTe=ma({parse:e=>{let t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:Ow}),fTe=ma({parse:e=>{let t=new Date(e.slice(0,10));return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString().slice(0,10),eq:Ow});var kw=Tw(),k$={};function uE(e,t={}){let o=T$(),r=GM(),n=$M(),{history:a="replace",scroll:s=r?.scroll??!1,shallow:i=r?.shallow??!0,throttleMs:u=Jl.timeMs,limitUrlUpdates:c=r?.limitUrlUpdates,clearOnDefault:d=r?.clearOnDefault??!0,startTransition:f,urlKeys:p=k$}=t,m=Object.keys(e).join(","),x=Dw(()=>Object.fromEntries(Object.keys(e).map(R=>[R,p[R]??R])),[m,JSON.stringify(p)]),g=WM(Object.values(x)),v=g.searchParams,y=aE({}),w=Dw(()=>Object.fromEntries(Object.keys(e).map(R=>[R,e[R].defaultValue??null])),[Object.values(e).map(({defaultValue:R})=>R).join(",")]),C=dh.useQueuedQueries(Object.values(x)),[S,I]=D$(()=>Aw(e,p,v??new URLSearchParams,C).state),b=aE(S);if(ht("[nuq+ %s `%s`] render - state: %O, iSP: %s",o,m,S,v),Object.keys(y.current).join("&")!==Object.values(x).join("&")){let{state:R,hasChanged:E}=Aw(e,p,v,C,y.current,b.current);E&&(ht("[nuq+ %s `%s`] State changed: %O",o,m,{state:R,initialSearchParams:v,queuedQueries:C,queryRef:y.current,stateRef:b.current}),b.current=R,I(R)),y.current=Object.fromEntries(Object.entries(x).map(([D,O])=>[O,e[D]?.type==="multi"?v?.getAll(O):v?.get(O)??null]))}nE(()=>{let{state:R,hasChanged:E}=Aw(e,p,v,C,y.current,b.current);E&&(ht("[nuq+ %s `%s`] State changed: %O",o,m,{state:R,initialSearchParams:v,queuedQueries:C,queryRef:y.current,stateRef:b.current}),b.current=R,I(R))},[Object.values(x).map(R=>`${R}=${v?.getAll(R)}`).join("&"),JSON.stringify(C)]),nE(()=>{let R=Object.keys(e).reduce((E,D)=>(E[D]=({state:O,query:V})=>{I(B=>{let{defaultValue:P}=e[D],_=x[D],T=O??P??null,A=B[D]??P??null;return Object.is(A,T)?(ht("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). no change, skipping, resolved: %O",o,m,_,O,P,b.current),B):(b.current={...b.current,[D]:T},y.current[_]=V,ht("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). updateInternalState, resolved: %O",o,m,_,O,P,b.current),b.current)})},E),{});for(let E of Object.keys(e)){let D=x[E];ht("[nuq+ %s `%s`] Subscribing to sync for `%s`",o,D,m),kw.on(D,R[E])}return()=>{for(let E of Object.keys(e)){let D=x[E];ht("[nuq+ %s `%s`] Unsubscribing to sync for `%s`",o,D,m),kw.off(D,R[E])}}},[m,x]);let L=iE((R,E={})=>{let D=Object.fromEntries(Object.keys(e).map(A=>[A,null])),O=typeof R=="function"?R(sE(b.current,w))??D:R??D;ht("[nuq+ %s `%s`] setState: %O",o,m,O);let V,B=0,P=!1,_=[];for(let[A,k]of Object.entries(O)){let M=e[A],F=x[A];if(!M||k===void 0)continue;(E.clearOnDefault??M.clearOnDefault??d)&&k!==null&&M.defaultValue!==void 0&&(M.eq??((N,H)=>N===H))(k,M.defaultValue)&&(k=null);let U=k===null?null:(M.serialize??String)(k);kw.emit(F,{state:k,query:U});let q={key:F,query:U,options:{history:E.history??M.history??a,shallow:E.shallow??M.shallow??i,scroll:E.scroll??M.scroll??s,startTransition:E.startTransition??M.startTransition??f}};if(E?.limitUrlUpdates?.method==="debounce"||c?.method==="debounce"||M.limitUrlUpdates?.method==="debounce"){q.options.shallow===!0&&console.warn(Si(422));let N=E?.limitUrlUpdates?.timeMs??c?.timeMs??M.limitUrlUpdates?.timeMs??Jl.timeMs,H=dh.push(q,N,g,n);B<N&&(V=H,B=N)}else{let N=E?.limitUrlUpdates?.timeMs??M?.limitUrlUpdates?.timeMs??c?.timeMs??E.throttleMs??M.throttleMs??u;_.push(dh.abort(F)),Id.push(q,N),P=!0}}let T=_.reduce((A,k)=>k(A),P?Id.flush(g,n):Id.getPendingPromise(g));return V??T},[m,a,i,s,u,c?.method,c?.timeMs,f,x,g.updateUrl,g.getSearchParamsSnapshot,g.rateLimitFactor,n,w]);return[Dw(()=>sE(S,w),[S,w]),L]}function Aw(e,t,o,r,n,a){let s=!1,i=Object.entries(e).reduce((u,[c,d])=>{let f=t?.[c]??c,p=r[f],m=d.type==="multi"?[]:null,x=p===void 0?(d.type==="multi"?o?.getAll(f):o?.get(f))??m:p;return n&&a&&rE(n[f]??m,x)?(u[c]=a[c]??null,u):(s=!0,u[c]=(eE(x)?null:lE(d.parse,x,f))??null,n&&(n[f]=x),u)},{});if(!s){let u=Object.keys(e),c=Object.keys(a??{});s=u.length!==c.length||u.some(d=>!c.includes(d))}return{state:i,hasChanged:s}}function sE(e,t){return Object.fromEntries(Object.keys(e).map(o=>[o,e[o]??t[o]??null]))}function cE(e,t={}){let{parse:o,type:r,serialize:n,eq:a,defaultValue:s,...i}=t,[{[e]:u},c]=uE({[e]:{parse:o??(d=>d),type:r,serialize:n,eq:a,defaultValue:s}},i);return[u,iE((d,f={})=>c(p=>({[e]:typeof d=="function"?d(p[e]):d}),f),[e,c])]}function ss(e,t){return cE(e,t)}l();import{useEffect as A$,useMemo as dE,useState as O$}from"react";var fE={kind:"FilterGroup",filters:[],after:"and",id:tn.generate()},pE=e=>{let t=0;for(let o of e.filters)o.kind==="ColumnFilter"?o.column.trim()&&t++:o.kind==="FilterGroup"&&(t+=pE(o));return t};function mE(){let{filterParam:e,setFilterParam:t}=Ke(),o=dE(()=>JSON.parse(e),[e]),r=i=>{t(JSON.stringify(i))},[n,a]=O$(o);A$(()=>{a(o)},[o]);let s=dE(()=>pE(n),[n]);return{appliedFilter:o,setAppliedFilter:r,editingFilter:n,setEditingFilter:a,totalEditingFilters:s}}l();var hE=-1;function Nn(){let{adapter:e,onEvent:t}=uo();return vd({initialData:{schemas:{[e.defaultSchema||"db"]:{name:e.defaultSchema||"db",tables:{}}},timezone:"UTC",filterOperators:[],query:{parameters:[],sql:""}},initialDataUpdatedAt:hE,queryFn:async({signal:o})=>{let[r,n]=await e.introspect({abortSignal:o});if(r)throw t({name:"studio_operation_error",payload:{operation:"introspect",query:r.query,error:r}}),r;t({name:"studio_operation_success",payload:{operation:"introspect",query:n.query,error:void 0}});let a=Object.values(n.schemas).reduce((s,i)=>s+Object.keys(i.tables).length,0);return t({name:"studio_launched",payload:{tableCount:a}}),n},queryKey:["introspection"],staleTime:o=>o.state.dataUpdatedAt===hE?0:1/0})}import{jsx as V$}from"react/jsx-runtime";function Lw(e){return`#${Object.entries(e).map(([o,r])=>{let n=o.endsWith("Param")?o.slice(0,-5):o;return`${encodeURIComponent(n)}=${encodeURIComponent(r)}`}).join("&")}`}function F$(e){let{adapter:t,introspection:o}=e,{schemas:r}=o,{defaultSchema:n}=t,a=n??Object.keys(r)[0]??"public",s=Object.keys(r[a]?.tables??{})[0]??"",i=JSON.stringify(fE);return{schema:a,table:s,filter:i,pageIndex:"0",pageSize:"25",view:"table"}}function B$(){let{adapter:e}=uo(),{data:t,isFetching:o}=Nn(),{schemas:r}=t,n=gE(()=>F$({adapter:e,introspection:t}),[e,t]),[a,s]=ss("filter",{defaultValue:n.filter}),[i,u]=ss("pageIndex",{defaultValue:n.pageIndex}),[c,d]=ss("pageSize",{defaultValue:n.pageSize}),[f,p]=ss("schema",{defaultValue:n.schema}),[m,x]=ss("sort"),[g,v]=ss("table",{defaultValue:n.table}),[y,w]=ss("view",{defaultValue:n.view}),C=f?r[f]:void 0,S=C?C.tables:void 0,I=S&&g?S[g]:void 0;return{metadata:gE(()=>({activeSchema:C,activeTables:S,activeTable:I,isFetching:o}),[C,S,I,o]),createUrl:Lw,filterParam:a,pageIndexParam:i,pageSizeParam:c,schemaParam:f,sortParam:m,tableParam:g,viewParam:y,setFilterParam:s,setPageIndexParam:u,setPageSizeParam:d,setSchemaParam:p,setSortParam:x,setTableParam:v,setViewParam:w}}var xE=N$(void 0);function QM({children:e}){let t=B$();return V$(xE.Provider,{value:t,children:e})}function Ke(){let e=_$(xE);if(e===void 0)throw new Error("useNavigationContext must be used within a NavigationContextProvider");return e}l();l();function yE(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=yE(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function fh(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=yE(e))&&(r&&(r+=" "),r+=t);return r}l();var H$=(e,t)=>{let o=new Array(e.length+t.length);for(let r=0;r<e.length;r++)o[r]=e[r];for(let r=0;r<t.length;r++)o[e.length+r]=t[r];return o},U$=(e,t)=>({classGroupId:e,validator:t}),RE=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o});var vE=[],z$="arbitrary..",q$=e=>{let t=G$(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return W$(s);let i=s.split("-"),u=i[0]===""&&i.length>1?1:0;return LE(i,u,t)},getConflictingClassGroupIds:(s,i)=>{if(i){let u=r[s],c=o[s];return u?c?H$(c,u):u:c||vE}return o[s]||vE}}},LE=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;let n=e[t],a=o.nextPart.get(n);if(a){let c=LE(e,t+1,a);if(c)return c}let s=o.validators;if(s===null)return;let i=t===0?e.join("-"):e.slice(t).join("-"),u=s.length;for(let c=0;c<u;c++){let d=s[c];if(d.validator(i))return d.classGroupId}},W$=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?z$+r:void 0})(),G$=e=>{let{theme:t,classGroups:o}=e;return $$(o,t)},$$=(e,t)=>{let o=RE();for(let r in e){let n=e[r];Fw(n,o,r,t)}return o},Fw=(e,t,o,r)=>{let n=e.length;for(let a=0;a<n;a++){let s=e[a];j$(s,t,o,r)}},j$=(e,t,o,r)=>{if(typeof e=="string"){K$(e,t,o);return}if(typeof e=="function"){Y$(e,t,o,r);return}X$(e,t,o,r)},K$=(e,t,o)=>{let r=e===""?t:PE(t,e);r.classGroupId=o},Y$=(e,t,o,r)=>{if(Q$(e)){Fw(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push(U$(o,e))},X$=(e,t,o,r)=>{let n=Object.entries(e),a=n.length;for(let s=0;s<a;s++){let[i,u]=n[s];Fw(u,PE(t,i),o,r)}},PE=(e,t)=>{let o=e,r=t.split("-"),n=r.length;for(let a=0;a<n;a++){let s=r[a],i=o.nextPart.get(s);i||(i=RE(),o.nextPart.set(s,i)),o=i}return o},Q$=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Z$=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null),n=(a,s)=>{o[a]=s,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(a){let s=o[a];if(s!==void 0)return s;if((s=r[a])!==void 0)return n(a,s),s},set(a,s){a in o?o[a]=s:n(a,s)}}};var J$=[],wE=(e,t,o,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:n}),e3=e=>{let{prefix:t,experimentalParseClassName:o}=e,r=n=>{let a=[],s=0,i=0,u=0,c,d=n.length;for(let g=0;g<d;g++){let v=n[g];if(s===0&&i===0){if(v===":"){a.push(n.slice(u,g)),u=g+1;continue}if(v==="/"){c=g;continue}}v==="["?s++:v==="]"?s--:v==="("?i++:v===")"&&i--}let f=a.length===0?n:n.slice(u),p=f,m=!1;f.endsWith("!")?(p=f.slice(0,-1),m=!0):f.startsWith("!")&&(p=f.slice(1),m=!0);let x=c&&c>u?c-u:void 0;return wE(a,m,p,x)};if(t){let n=t+":",a=r;r=s=>s.startsWith(n)?a(s.slice(n.length)):wE(J$,!1,s,void 0,!0)}if(o){let n=r;r=a=>o({className:a,parseClassName:n})}return r},t3=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{let r=[],n=[];for(let a=0;a<o.length;a++){let s=o[a],i=s[0]==="[",u=t.has(s);i||u?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(s)):n.push(s)}return n.length>0&&(n.sort(),r.push(...n)),r}},o3=e=>({cache:Z$(e.cacheSize),parseClassName:e3(e),sortModifiers:t3(e),...q$(e)}),r3=/\s+/,n3=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:a}=t,s=[],i=e.trim().split(r3),u="";for(let c=i.length-1;c>=0;c-=1){let d=i[c],{isExternal:f,modifiers:p,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:g}=o(d);if(f){u=d+(u.length>0?" "+u:u);continue}let v=!!g,y=r(v?x.substring(0,g):x);if(!y){if(!v){u=d+(u.length>0?" "+u:u);continue}if(y=r(x),!y){u=d+(u.length>0?" "+u:u);continue}v=!1}let w=p.length===0?"":p.length===1?p[0]:a(p).join(":"),C=m?w+"!":w,S=C+y;if(s.indexOf(S)>-1)continue;s.push(S);let I=n(y,v);for(let b=0;b<I.length;++b){let L=I[b];s.push(C+L)}u=d+(u.length>0?" "+u:u)}return u},a3=(...e)=>{let t=0,o,r,n="";for(;t<e.length;)(o=e[t++])&&(r=ME(o))&&(n&&(n+=" "),n+=r);return n},ME=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=ME(e[r]))&&(o&&(o+=" "),o+=t);return o},CE=(e,...t)=>{let o,r,n,a,s=u=>{let c=t.reduce((d,f)=>f(d),e());return o=o3(c),r=o.cache.get,n=o.cache.set,a=i,i(u)},i=u=>{let c=r(u);if(c)return c;let d=n3(u,o);return n(u,d),d};return a=s,(...u)=>a(a3(...u))},s3=[],Xt=e=>{let t=o=>o[e]||s3;return t.isThemeGetter=!0,t},EE=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,TE=/^\((?:(\w[\w-]*):)?(.+)\)$/i,i3=/^\d+\/\d+$/,l3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,u3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,c3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,d3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,f3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,eu=e=>i3.test(e),Me=e=>!!e&&!Number.isNaN(Number(e)),is=e=>!!e&&Number.isInteger(Number(e)),Nw=e=>e.endsWith("%")&&Me(e.slice(0,-1)),ha=e=>l3.test(e),p3=()=>!0,m3=e=>u3.test(e)&&!c3.test(e),DE=()=>!1,h3=e=>d3.test(e),g3=e=>f3.test(e),x3=e=>!ae(e)&&!se(e),y3=e=>tu(e,OE,DE),ae=e=>EE.test(e),bi=e=>tu(e,NE,m3),_w=e=>tu(e,b3,Me),SE=e=>tu(e,kE,DE),v3=e=>tu(e,AE,g3),ph=e=>tu(e,_E,h3),se=e=>TE.test(e),Rd=e=>ou(e,NE),w3=e=>ou(e,I3),bE=e=>ou(e,kE),C3=e=>ou(e,OE),S3=e=>ou(e,AE),mh=e=>ou(e,_E,!0),tu=(e,t,o)=>{let r=EE.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},ou=(e,t,o=!1)=>{let r=TE.exec(e);return r?r[1]?t(r[1]):o:!1},kE=e=>e==="position"||e==="percentage",AE=e=>e==="image"||e==="url",OE=e=>e==="length"||e==="size"||e==="bg-size",NE=e=>e==="length",b3=e=>e==="number",I3=e=>e==="family-name",_E=e=>e==="shadow";var IE=()=>{let e=Xt("color"),t=Xt("font"),o=Xt("text"),r=Xt("font-weight"),n=Xt("tracking"),a=Xt("leading"),s=Xt("breakpoint"),i=Xt("container"),u=Xt("spacing"),c=Xt("radius"),d=Xt("shadow"),f=Xt("inset-shadow"),p=Xt("text-shadow"),m=Xt("drop-shadow"),x=Xt("blur"),g=Xt("perspective"),v=Xt("aspect"),y=Xt("ease"),w=Xt("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...S(),se,ae],b=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],R=()=>[se,ae,u],E=()=>[eu,"full","auto",...R()],D=()=>[is,"none","subgrid",se,ae],O=()=>["auto",{span:["full",is,se,ae]},is,se,ae],V=()=>[is,"auto",se,ae],B=()=>["auto","min","max","fr",se,ae],P=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...R()],A=()=>[eu,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],k=()=>[e,se,ae],M=()=>[...S(),bE,SE,{position:[se,ae]}],F=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",C3,y3,{size:[se,ae]}],q=()=>[Nw,Rd,bi],N=()=>["","none","full",c,se,ae],H=()=>["",Me,Rd,bi],G=()=>["solid","dashed","dotted","double"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>[Me,Nw,bE,SE],j=()=>["","none",x,se,ae],Z=()=>["none",Me,se,ae],$=()=>["none",Me,se,ae],ue=()=>[Me,se,ae],ne=()=>[eu,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ha],breakpoint:[ha],color:[p3],container:[ha],"drop-shadow":[ha],ease:["in","out","in-out"],font:[x3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ha],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ha],shadow:[ha],spacing:["px",Me],text:[ha],"text-shadow":[ha],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",eu,ae,se,v]}],container:["container"],columns:[{columns:[Me,ae,se,i]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:I()}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-y":[{"overflow-y":b()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{start:E()}],end:[{end:E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[is,"auto",se,ae]}],basis:[{basis:[eu,"full","auto",i,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,eu,"auto","initial","none",ae]}],grow:[{grow:["",Me,se,ae]}],shrink:[{shrink:["",Me,se,ae]}],order:[{order:[is,"first","last","none",se,ae]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...P(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...P()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":P()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:A()}],w:[{w:[i,"screen",...A()]}],"min-w":[{"min-w":[i,"screen","none",...A()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...A()]}],h:[{h:["screen","lh",...A()]}],"min-h":[{"min-h":["screen","lh","none",...A()]}],"max-h":[{"max-h":["screen","lh",...A()]}],"font-size":[{text:["base",o,Rd,bi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,se,_w]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Nw,ae]}],"font-family":[{font:[w3,ae,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,se,ae]}],"line-clamp":[{"line-clamp":[Me,"none",se,_w]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",se,ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,ae]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",se,bi]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[Me,"auto",se,ae]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,ae]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",se,ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},is,se,ae],radial:["",se,ae],conic:[is,se,ae]},S3,v3]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...G(),"hidden","none"]}],"divide-style":[{divide:[...G(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...G(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,se,ae]}],"outline-w":[{outline:["",Me,Rd,bi]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",d,mh,ph]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",f,mh,ph]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[Me,bi]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",p,mh,ph]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[Me,se,ae]}],"mix-blend":[{"mix-blend":[...K(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[se,ae]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,ae]}],filter:[{filter:["","none",se,ae]}],blur:[{blur:j()}],brightness:[{brightness:[Me,se,ae]}],contrast:[{contrast:[Me,se,ae]}],"drop-shadow":[{"drop-shadow":["","none",m,mh,ph]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",Me,se,ae]}],"hue-rotate":[{"hue-rotate":[Me,se,ae]}],invert:[{invert:["",Me,se,ae]}],saturate:[{saturate:[Me,se,ae]}],sepia:[{sepia:["",Me,se,ae]}],"backdrop-filter":[{"backdrop-filter":["","none",se,ae]}],"backdrop-blur":[{"backdrop-blur":j()}],"backdrop-brightness":[{"backdrop-brightness":[Me,se,ae]}],"backdrop-contrast":[{"backdrop-contrast":[Me,se,ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,se,ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,se,ae]}],"backdrop-invert":[{"backdrop-invert":["",Me,se,ae]}],"backdrop-opacity":[{"backdrop-opacity":[Me,se,ae]}],"backdrop-saturate":[{"backdrop-saturate":[Me,se,ae]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,se,ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",se,ae]}],ease:[{ease:["linear","initial",y,se,ae]}],delay:[{delay:[Me,se,ae]}],animate:[{animate:["none",w,se,ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,se,ae]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:$()}],"scale-x":[{"scale-x":$()}],"scale-y":[{"scale-y":$()}],"scale-z":[{"scale-z":$()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[se,ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ne()}],"translate-x":[{"translate-x":ne()}],"translate-y":[{"translate-y":ne()}],"translate-z":[{"translate-z":ne()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",se,ae]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",se,ae]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[Me,Rd,bi,_w]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},R3=(e,{cacheSize:t,prefix:o,experimentalParseClassName:r,extend:n={},override:a={}})=>(Ld(e,"cacheSize",t),Ld(e,"prefix",o),Ld(e,"experimentalParseClassName",r),hh(e.theme,a.theme),hh(e.classGroups,a.classGroups),hh(e.conflictingClassGroups,a.conflictingClassGroups),hh(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),Ld(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),gh(e.theme,n.theme),gh(e.classGroups,n.classGroups),gh(e.conflictingClassGroups,n.conflictingClassGroups),gh(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),FE(e,n,"orderSensitiveModifiers"),e),Ld=(e,t,o)=>{o!==void 0&&(e[t]=o)},hh=(e,t)=>{if(t)for(let o in t)Ld(e,o,t[o])},gh=(e,t)=>{if(t)for(let o in t)FE(e,t,o)},FE=(e,t,o)=>{let r=t[o];r!==void 0&&(e[o]=e[o]?e[o].concat(r):r)},BE=(e,...t)=>typeof e=="function"?CE(IE,e,...t):CE(()=>R3(IE(),e),...t);var L3=BE({});function W(...e){return L3(fh(e))}l();l();import*as Nt from"react";l();import*as HE from"react";function VE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ga(...e){return t=>{let o=!1,r=e.map(n=>{let a=VE(n,t);return!o&&typeof a=="function"&&(o=!0),a});if(o)return()=>{for(let n=0;n<r.length;n++){let a=r[n];typeof a=="function"?a():VE(e[n],null)}}}}function be(...e){return HE.useCallback(ga(...e),e)}import{Fragment as YTe,jsx as UE}from"react/jsx-runtime";var P3=Symbol.for("react.lazy"),xh=Nt[" use ".trim().toString()];function M3(e){return typeof e=="object"&&e!==null&&"then"in e}function zE(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===P3&&"_payload"in e&&M3(e._payload)}function Bw(e){let t=E3(e),o=Nt.forwardRef((r,n)=>{let{children:a,...s}=r;zE(a)&&typeof xh=="function"&&(a=xh(a._payload));let i=Nt.Children.toArray(a),u=i.find(D3);if(u){let c=u.props.children,d=i.map(f=>f===u?Nt.Children.count(c)>1?Nt.Children.only(null):Nt.isValidElement(c)?c.props.children:null:f);return UE(t,{...s,ref:n,children:Nt.isValidElement(c)?Nt.cloneElement(c,void 0,d):null})}return UE(t,{...s,ref:n,children:a})});return o.displayName=`${e}.Slot`,o}var yh=Bw("Slot");function E3(e){let t=Nt.forwardRef((o,r)=>{let{children:n,...a}=o;if(zE(n)&&typeof xh=="function"&&(n=xh(n._payload)),Nt.isValidElement(n)){let s=A3(n),i=k3(a,n.props);return n.type!==Nt.Fragment&&(i.ref=r?ga(r,s):s),Nt.cloneElement(n,i)}return Nt.Children.count(n)>1?Nt.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var T3=Symbol("radix.slottable");function D3(e){return Nt.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===T3}function k3(e,t){let o={...t};for(let r in t){let n=e[r],a=t[r];/^on[A-Z]/.test(r)?n&&a?o[r]=(...i)=>{let u=a(...i);return n(...i),u}:n&&(o[r]=n):r==="style"?o[r]={...n,...a}:r==="className"&&(o[r]=[n,a].filter(Boolean).join(" "))}return{...e,...o}}function A3(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}l();l();import{forwardRef as _3,createElement as F3}from"react";l();var qE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),O3=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,r)=>r?r.toUpperCase():o.toLowerCase()),Vw=e=>{let t=O3(e);return t.charAt(0).toUpperCase()+t.slice(1)},vh=(...e)=>e.filter((t,o,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===o).join(" ").trim(),WE=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};l();import{forwardRef as N3,createElement as $E}from"react";l();var GE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var jE=N3(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:n="",children:a,iconNode:s,...i},u)=>$E("svg",{ref:u,...GE,width:t,height:t,stroke:e,strokeWidth:r?Number(o)*24/Number(t):o,className:vh("lucide",n),...!a&&!WE(i)&&{"aria-hidden":"true"},...i},[...s.map(([c,d])=>$E(c,d)),...Array.isArray(a)?a:[a]]));var te=(e,t)=>{let o=_3(({className:r,...n},a)=>F3(jE,{ref:a,iconNode:t,className:vh(`lucide-${qE(Vw(e))}`,`lucide-${e}`,r),...n}));return o.displayName=Vw(e),o};l();var B3=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]],ls=te("arrow-down-wide-narrow",B3);l();var V3=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Pd=te("arrow-right",V3);l();var H3=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M17 10V4h-2",key:"zcsr5x"}],["path",{d:"M15 10h4",key:"id2lce"}],["rect",{x:"15",y:"14",width:"4",height:"6",ry:"2",key:"33xykx"}]],Md=te("arrow-up-1-0",H3);l();var U3=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]],Ed=te("arrow-up-wide-narrow",U3);l();var z3=[["path",{d:"M12 6v12",key:"1vza4d"}],["path",{d:"M17.196 9 6.804 15",key:"1ah31z"}],["path",{d:"m6.804 9 10.392 6",key:"1b6pxd"}]],Td=te("asterisk",z3);l();var q3=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],Dd=te("calculator",q3);l();var W3=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Cr=te("check",W3);l();var G3=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],_r=te("chevron-down",G3);l();var $3=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],kd=te("chevron-left",$3);l();var j3=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Sr=te("chevron-right",j3);l();var K3=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ad=te("chevron-up",K3);l();var Y3=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],Od=te("chevrons-left",Y3);l();var X3=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],Nd=te("chevrons-right",X3);l();var Q3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],_n=te("circle-alert",Q3);l();var Z3=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],us=te("circle-check-big",Z3);l();var J3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],on=te("circle-question-mark",J3);l();var e5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ii=te("circle",e5);l();var t5=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ri=te("copy",t5);l();var o5=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],_d=te("corner-down-left",o5);l();var r5=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],cs=te("funnel",r5);l();var n5=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],Fd=te("grip-vertical",n5);l();var a5=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],ru=te("key-round",a5);l();var s5=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],xa=te("key",s5);l();var i5=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],Bd=te("maximize",i5);l();var l5=[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]],Vd=te("minimize",l5);l();var u5=[["path",{d:"M5 12h14",key:"1ays0h"}]],Li=te("minus",u5);l();var c5=[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]],Hd=te("move-down",c5);l();var d5=[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]],Ud=te("move-up",d5);l();var f5=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],ds=te("panel-left-close",f5);l();var p5=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],fs=te("panel-left-open",p5);l();var m5=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],zd=te("pin-off",m5);l();var h5=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],qd=te("pin",h5);l();var g5=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Wd=te("refresh-cw",g5);l();var x5=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}]],ps=te("square-arrow-right",x5);l();var y5=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Gd=te("square",y5);l();var v5=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],$d=te("table-2",v5);l();var w5=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ms=te("triangle-alert",w5);l();var C5=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],hs=te("x",C5);var KE='data:image/svg+xml, <svg width="12" height="14" viewBox="0 0 12 14" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <path%0A fill-rule="evenodd"%0A clip-rule="evenodd"%0A d="M0.396923 8.8719C0.25789 9.09869 0.260041 9.38484 0.402469 9.60951L2.98037 13.6761C3.14768 13.94 3.47018 14.0603 3.76949 13.9705L11.2087 11.7388C11.6147 11.617 11.8189 11.1641 11.6415 10.7792L6.8592 0.405309C6.62598 -0.100601 5.92291 -0.142128 5.63176 0.332808L0.396923 8.8719ZM6.73214 2.77688C6.6305 2.54169 6.2863 2.57792 6.23585 2.82912L4.3947 11.9965C4.35588 12.1898 4.53686 12.3549 4.72578 12.2985L9.86568 10.7642C10.0157 10.7194 10.093 10.5537 10.0309 10.41L6.73214 2.77688Z"%0A fill="currentColor"%0A />%0A </svg>';l();l();import*as re from"react";import*as IC from"react-dom";l();function Hw(e,[t,o]){return Math.min(o,Math.max(t,e))}l();var iOe=!!(typeof window<"u"&&window.document&&window.document.createElement);function J(e,t,{checkForDefaultPrevented:o=!0}={}){return function(n){if(e?.(n),o===!1||!n.defaultPrevented)return t?.(n)}}l();import Pi from"react";l();import*as ya from"react";import{jsx as b5}from"react/jsx-runtime";function _t(e,t=[]){let o=[];function r(a,s){let i=ya.createContext(s),u=o.length;o=[...o,s];let c=f=>{let{scope:p,children:m,...x}=f,g=p?.[e]?.[u]||i,v=ya.useMemo(()=>x,Object.values(x));return b5(g.Provider,{value:v,children:m})};c.displayName=a+"Provider";function d(f,p){let m=p?.[e]?.[u]||i,x=ya.useContext(m);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[c,d]}let n=()=>{let a=o.map(s=>ya.createContext(s));return function(i){let u=i?.[e]||a;return ya.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return n.scopeName=e,[r,I5(n,...t)]}function I5(...e){let t=e[0];if(e.length===1)return t;let o=()=>{let r=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(a){let s=r.reduce((i,{useScope:u,scopeName:c})=>{let f=u(a)[`__scope${c}`];return{...i,...f}},{});return ya.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return o.scopeName=t.scopeName,o}l();import*as Qt from"react";import{Fragment as R5,jsx as Uw}from"react/jsx-runtime";function rn(e){let t=L5(e),o=Qt.forwardRef((r,n)=>{let{children:a,...s}=r,i=Qt.Children.toArray(a),u=i.find(P5);if(u){let c=u.props.children,d=i.map(f=>f===u?Qt.Children.count(c)>1?Qt.Children.only(null):Qt.isValidElement(c)?c.props.children:null:f);return Uw(t,{...s,ref:n,children:Qt.isValidElement(c)?Qt.cloneElement(c,void 0,d):null})}return Uw(t,{...s,ref:n,children:a})});return o.displayName=`${e}.Slot`,o}function L5(e){let t=Qt.forwardRef((o,r)=>{let{children:n,...a}=o;if(Qt.isValidElement(n)){let s=E5(n),i=M5(a,n.props);return n.type!==Qt.Fragment&&(i.ref=r?ga(r,s):s),Qt.cloneElement(n,i)}return Qt.Children.count(n)>1?Qt.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var YE=Symbol("radix.slottable");function XE(e){let t=({children:o})=>Uw(R5,{children:o});return t.displayName=`${e}.Slottable`,t.__radixId=YE,t}function P5(e){return Qt.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===YE}function M5(e,t){let o={...t};for(let r in t){let n=e[r],a=t[r];/^on[A-Z]/.test(r)?n&&a?o[r]=(...i)=>{let u=a(...i);return n(...i),u}:n&&(o[r]=n):r==="style"?o[r]={...n,...a}:r==="className"&&(o[r]=[n,a].filter(Boolean).join(" "))}return{...e,...o}}function E5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}import{jsx as zw}from"react/jsx-runtime";import bOe from"react";import{jsx as ROe}from"react/jsx-runtime";function nu(e){let t=e+"CollectionProvider",[o,r]=_t(t),[n,a]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{let{scope:v,children:y}=g,w=Pi.useRef(null),C=Pi.useRef(new Map).current;return zw(n,{scope:v,itemMap:C,collectionRef:w,children:y})};s.displayName=t;let i=e+"CollectionSlot",u=rn(i),c=Pi.forwardRef((g,v)=>{let{scope:y,children:w}=g,C=a(i,y),S=be(v,C.collectionRef);return zw(u,{ref:S,children:w})});c.displayName=i;let d=e+"CollectionItemSlot",f="data-radix-collection-item",p=rn(d),m=Pi.forwardRef((g,v)=>{let{scope:y,children:w,...C}=g,S=Pi.useRef(null),I=be(v,S),b=a(d,y);return Pi.useEffect(()=>(b.itemMap.set(S,{ref:S,...C}),()=>{b.itemMap.delete(S)})),zw(p,{[f]:"",ref:I,children:w})});m.displayName=d;function x(g){let v=a(e+"CollectionConsumer",g);return Pi.useCallback(()=>{let w=v.collectionRef.current;if(!w)return[];let C=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((b,L)=>C.indexOf(b.ref.current)-C.indexOf(L.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:c,ItemSlot:m},x,r]}l();import*as wh from"react";import{jsx as EOe}from"react/jsx-runtime";var T5=wh.createContext(void 0);function au(e){let t=wh.useContext(T5);return e||t||"ltr"}l();import*as gt from"react";l();import*as QE from"react";import*as ZE from"react-dom";import{jsx as D5}from"react/jsx-runtime";var k5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=k5.reduce((e,t)=>{let o=rn(`Primitive.${t}`),r=QE.forwardRef((n,a)=>{let{asChild:s,...i}=n,u=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D5(u,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ch(e,t){e&&ZE.flushSync(()=>e.dispatchEvent(t))}l();import*as su from"react";function Ft(e){let t=su.useRef(e);return su.useEffect(()=>{t.current=e}),su.useMemo(()=>(...o)=>t.current?.(...o),[])}l();import*as JE from"react";function eT(e,t=globalThis?.document){let o=Ft(e);JE.useEffect(()=>{let r=n=>{n.key==="Escape"&&o(n)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[o,t])}import{jsx as rT}from"react/jsx-runtime";var A5="DismissableLayer",qw="dismissableLayer.update",O5="dismissableLayer.pointerDownOutside",N5="dismissableLayer.focusOutside",tT,nT=gt.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),va=gt.forwardRef((e,t)=>{let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:n,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...u}=e,c=gt.useContext(nT),[d,f]=gt.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=gt.useState({}),x=be(t,L=>f(L)),g=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(v),w=d?g.indexOf(d):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,S=w>=y,I=B5(L=>{let R=L.target,E=[...c.branches].some(D=>D.contains(R));!S||E||(n?.(L),s?.(L),L.defaultPrevented||i?.())},p),b=V5(L=>{let R=L.target;[...c.branches].some(D=>D.contains(R))||(a?.(L),s?.(L),L.defaultPrevented||i?.())},p);return eT(L=>{w===c.layers.size-1&&(r?.(L),!L.defaultPrevented&&i&&(L.preventDefault(),i()))},p),gt.useEffect(()=>{if(d)return o&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(tT=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),oT(),()=>{o&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=tT)}},[d,p,o,c]),gt.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),oT())},[d,c]),gt.useEffect(()=>{let L=()=>m({});return document.addEventListener(qw,L),()=>document.removeEventListener(qw,L)},[]),rT(ge.div,{...u,ref:x,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,b.onFocusCapture),onBlurCapture:J(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,I.onPointerDownCapture)})});va.displayName=A5;var _5="DismissableLayerBranch",F5=gt.forwardRef((e,t)=>{let o=gt.useContext(nT),r=gt.useRef(null),n=be(t,r);return gt.useEffect(()=>{let a=r.current;if(a)return o.branches.add(a),()=>{o.branches.delete(a)}},[o.branches]),rT(ge.div,{...e,ref:n})});F5.displayName=_5;function B5(e,t=globalThis?.document){let o=Ft(e),r=gt.useRef(!1),n=gt.useRef(()=>{});return gt.useEffect(()=>{let a=i=>{if(i.target&&!r.current){let c=function(){aT(O5,o,d,{discrete:!0})};var u=c;let d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",n.current),n.current=c,t.addEventListener("click",n.current,{once:!0})):c()}else t.removeEventListener("click",n.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",n.current)}},[t,o]),{onPointerDownCapture:()=>r.current=!0}}function V5(e,t=globalThis?.document){let o=Ft(e),r=gt.useRef(!1);return gt.useEffect(()=>{let n=a=>{a.target&&!r.current&&aT(N5,o,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",n),()=>t.removeEventListener("focusin",n)},[t,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function oT(){let e=new CustomEvent(qw);document.dispatchEvent(e)}function aT(e,t,o,{discrete:r}){let n=o.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});t&&n.addEventListener(e,t,{once:!0}),r?Ch(n,a):n.dispatchEvent(a)}l();import*as iT from"react";var Ww=0;function iu(){iT.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??sT()),document.body.insertAdjacentElement("beforeend",e[1]??sT()),Ww++,()=>{Ww===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ww--}},[])}function sT(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}l();import*as Fr from"react";import{jsx as H5}from"react/jsx-runtime";var Gw="focusScope.autoFocusOnMount",$w="focusScope.autoFocusOnUnmount",lT={bubbles:!1,cancelable:!0},U5="FocusScope",Mi=Fr.forwardRef((e,t)=>{let{loop:o=!1,trapped:r=!1,onMountAutoFocus:n,onUnmountAutoFocus:a,...s}=e,[i,u]=Fr.useState(null),c=Ft(n),d=Ft(a),f=Fr.useRef(null),p=be(t,g=>u(g)),m=Fr.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Fr.useEffect(()=>{if(r){let w=function(b){if(m.paused||!i)return;let L=b.target;i.contains(L)?f.current=L:gs(f.current,{select:!0})},C=function(b){if(m.paused||!i)return;let L=b.relatedTarget;L!==null&&(i.contains(L)||gs(f.current,{select:!0}))},S=function(b){if(document.activeElement===document.body)for(let R of b)R.removedNodes.length>0&&gs(i)};var g=w,v=C,y=S;document.addEventListener("focusin",w),document.addEventListener("focusout",C);let I=new MutationObserver(S);return i&&I.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",C),I.disconnect()}}},[r,i,m.paused]),Fr.useEffect(()=>{if(i){cT.add(m);let g=document.activeElement;if(!i.contains(g)){let y=new CustomEvent(Gw,lT);i.addEventListener(Gw,c),i.dispatchEvent(y),y.defaultPrevented||(z5(j5(fT(i)),{select:!0}),document.activeElement===g&&gs(i))}return()=>{i.removeEventListener(Gw,c),setTimeout(()=>{let y=new CustomEvent($w,lT);i.addEventListener($w,d),i.dispatchEvent(y),y.defaultPrevented||gs(g??document.body,{select:!0}),i.removeEventListener($w,d),cT.remove(m)},0)}}},[i,c,d,m]);let x=Fr.useCallback(g=>{if(!o&&!r||m.paused)return;let v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(v&&y){let w=g.currentTarget,[C,S]=q5(w);C&&S?!g.shiftKey&&y===S?(g.preventDefault(),o&&gs(C,{select:!0})):g.shiftKey&&y===C&&(g.preventDefault(),o&&gs(S,{select:!0})):y===w&&g.preventDefault()}},[o,r,m.paused]);return H5(ge.div,{tabIndex:-1,...s,ref:p,onKeyDown:x})});Mi.displayName=U5;function z5(e,{select:t=!1}={}){let o=document.activeElement;for(let r of e)if(gs(r,{select:t}),document.activeElement!==o)return}function q5(e){let t=fT(e),o=uT(t,e),r=uT(t.reverse(),e);return[o,r]}function fT(e){let t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t}function uT(e,t){for(let o of e)if(!W5(o,{upTo:t}))return o}function W5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function G5(e){return e instanceof HTMLInputElement&&"select"in e}function gs(e,{select:t=!1}={}){if(e&&e.focus){let o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&G5(e)&&t&&e.select()}}var cT=$5();function $5(){let e=[];return{add(t){let o=e[0];t!==o&&o?.pause(),e=dT(e,t),e.unshift(t)},remove(t){e=dT(e,t),e[0]?.resume()}}}function dT(e,t){let o=[...e],r=o.indexOf(t);return r!==-1&&o.splice(r,1),o}function j5(e){return e.filter(t=>t.tagName!=="A")}l();import*as jw from"react";l();import*as pT from"react";var xt=globalThis?.document?pT.useLayoutEffect:()=>{};var K5=jw[" useId ".trim().toString()]||(()=>{}),Y5=0;function Lo(e){let[t,o]=jw.useState(K5());return xt(()=>{e||o(r=>r??String(Y5++))},[e]),e||(t?`radix-${t}`:"")}l();import*as ir from"react";l();l();l();l();var mT=["top","right","bottom","left"];var Fn=Math.min,Vo=Math.max,Kd=Math.round,Yd=Math.floor,nn=e=>({x:e,y:e}),X5={left:"right",right:"left",bottom:"top",top:"bottom"},Q5={start:"end",end:"start"};function bh(e,t,o){return Vo(e,Fn(t,o))}function Bn(e,t){return typeof e=="function"?e(t):e}function Vn(e){return e.split("-")[0]}function Ei(e){return e.split("-")[1]}function Ih(e){return e==="x"?"y":"x"}function Rh(e){return e==="y"?"height":"width"}function wa(e){return["top","bottom"].includes(Vn(e))?"y":"x"}function Lh(e){return Ih(wa(e))}function hT(e,t,o){o===void 0&&(o=!1);let r=Ei(e),n=Lh(e),a=Rh(n),s=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=jd(s)),[s,jd(s)]}function gT(e){let t=jd(e);return[Sh(e),t,Sh(t)]}function Sh(e){return e.replace(/start|end/g,t=>Q5[t])}function Z5(e,t,o){let r=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return o?t?n:r:t?r:n;case"left":case"right":return t?a:s;default:return[]}}function xT(e,t,o,r){let n=Ei(e),a=Z5(Vn(e),o==="start",r);return n&&(a=a.map(s=>s+"-"+n),t&&(a=a.concat(a.map(Sh)))),a}function jd(e){return e.replace(/left|right|bottom|top/g,t=>X5[t])}function J5(e){return{top:0,right:0,bottom:0,left:0,...e}}function Kw(e){return typeof e!="number"?J5(e):{top:e,right:e,bottom:e,left:e}}function Ti(e){let{x:t,y:o,width:r,height:n}=e;return{width:r,height:n,top:o,left:t,right:t+r,bottom:o+n,x:t,y:o}}function yT(e,t,o){let{reference:r,floating:n}=e,a=wa(t),s=Lh(t),i=Rh(s),u=Vn(t),c=a==="y",d=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,p=r[i]/2-n[i]/2,m;switch(u){case"top":m={x:d,y:r.y-n.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-n.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Ei(t)){case"start":m[s]-=p*(o&&c?-1:1);break;case"end":m[s]+=p*(o&&c?-1:1);break}return m}var CT=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,i=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:f}=yT(c,r,u),p=r,m={},x=0;for(let g=0;g<i.length;g++){let{name:v,fn:y}=i[g],{x:w,y:C,data:S,reset:I}=await y({x:d,y:f,initialPlacement:r,placement:p,strategy:n,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});d=w??d,f=C??f,m={...m,[v]:{...m[v],...S}},I&&x<=50&&(x++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(c=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):I.rects),{x:d,y:f}=yT(c,p,u)),g=-1)}return{x:d,y:f,placement:p,strategy:n,middlewareData:m}};async function lu(e,t){var o;t===void 0&&(t={});let{x:r,y:n,platform:a,rects:s,elements:i,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=Bn(t,e),x=Kw(m),v=i[p?f==="floating"?"reference":"floating":f],y=Ti(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(v)))==null||o?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:u})),w=f==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),S=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},I=Ti(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:C,strategy:u}):w);return{top:(y.top-I.top+x.top)/S.y,bottom:(I.bottom-y.bottom+x.bottom)/S.y,left:(y.left-I.left+x.left)/S.x,right:(I.right-y.right+x.right)/S.x}}var ST=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:r,placement:n,rects:a,platform:s,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=Bn(e,t)||{};if(c==null)return{};let f=Kw(d),p={x:o,y:r},m=Lh(n),x=Rh(m),g=await s.getDimensions(c),v=m==="y",y=v?"top":"left",w=v?"bottom":"right",C=v?"clientHeight":"clientWidth",S=a.reference[x]+a.reference[m]-p[m]-a.floating[x],I=p[m]-a.reference[m],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c)),L=b?b[C]:0;(!L||!await(s.isElement==null?void 0:s.isElement(b)))&&(L=i.floating[C]||a.floating[x]);let R=S/2-I/2,E=L/2-g[x]/2-1,D=Fn(f[y],E),O=Fn(f[w],E),V=D,B=L-g[x]-O,P=L/2-g[x]/2+R,_=bh(V,P,B),T=!u.arrow&&Ei(n)!=null&&P!==_&&a.reference[x]/2-(P<V?D:O)-g[x]/2<0,A=T?P<V?P-V:P-B:0;return{[m]:p[m]+A,data:{[m]:_,centerOffset:P-_-A,...T&&{alignmentOffset:A}},reset:T}}});var bT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;let{placement:n,middlewareData:a,rects:s,initialPlacement:i,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:g=!0,...v}=Bn(e,t);if((o=a.arrow)!=null&&o.alignmentOffset)return{};let y=Vn(n),w=wa(i),C=Vn(i)===i,S=await(u.isRTL==null?void 0:u.isRTL(c.floating)),I=p||(C||!g?[jd(i)]:gT(i)),b=x!=="none";!p&&b&&I.push(...xT(i,g,x,S));let L=[i,...I],R=await lu(t,v),E=[],D=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&E.push(R[y]),f){let P=hT(n,s,S);E.push(R[P[0]],R[P[1]])}if(D=[...D,{placement:n,overflows:E}],!E.every(P=>P<=0)){var O,V;let P=(((O=a.flip)==null?void 0:O.index)||0)+1,_=L[P];if(_)return{data:{index:P,overflows:D},reset:{placement:_}};let T=(V=D.filter(A=>A.overflows[0]<=0).sort((A,k)=>A.overflows[1]-k.overflows[1])[0])==null?void 0:V.placement;if(!T)switch(m){case"bestFit":{var B;let A=(B=D.filter(k=>{if(b){let M=wa(k.placement);return M===w||M==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(M=>M>0).reduce((M,F)=>M+F,0)]).sort((k,M)=>k[1]-M[1])[0])==null?void 0:B[0];A&&(T=A);break}case"initialPlacement":T=i;break}if(n!==T)return{reset:{placement:T}}}return{}}}};function vT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wT(e){return mT.some(t=>e[t]>=0)}var IT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:o}=t,{strategy:r="referenceHidden",...n}=Bn(e,t);switch(r){case"referenceHidden":{let a=await lu(t,{...n,elementContext:"reference"}),s=vT(a,o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:wT(s)}}}case"escaped":{let a=await lu(t,{...n,altBoundary:!0}),s=vT(a,o.floating);return{data:{escapedOffsets:s,escaped:wT(s)}}}default:return{}}}}};async function ej(e,t){let{placement:o,platform:r,elements:n}=e,a=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=Vn(o),i=Ei(o),u=wa(o)==="y",c=["left","top"].includes(s)?-1:1,d=a&&u?-1:1,f=Bn(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof x=="number"&&(m=i==="end"?x*-1:x),u?{x:m*d,y:p*c}:{x:p*c,y:m*d}}var RT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;let{x:n,y:a,placement:s,middlewareData:i}=t,u=await ej(t,e);return s===((o=i.offset)==null?void 0:o.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:n+u.x,y:a+u.y,data:{...u,placement:s}}}}},LT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:r,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:v=>{let{x:y,y:w}=v;return{x:y,y:w}}},...u}=Bn(e,t),c={x:o,y:r},d=await lu(t,u),f=wa(Vn(n)),p=Ih(f),m=c[p],x=c[f];if(a){let v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",w=m+d[v],C=m-d[y];m=bh(w,m,C)}if(s){let v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",w=x+d[v],C=x-d[y];x=bh(w,x,C)}let g=i.fn({...t,[p]:m,[f]:x});return{...g,data:{x:g.x-o,y:g.y-r,enabled:{[p]:a,[f]:s}}}}}},PT=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:o,y:r,placement:n,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:u=!0,crossAxis:c=!0}=Bn(e,t),d={x:o,y:r},f=wa(n),p=Ih(f),m=d[p],x=d[f],g=Bn(i,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){let C=p==="y"?"height":"width",S=a.reference[p]-a.floating[C]+v.mainAxis,I=a.reference[p]+a.reference[C]-v.mainAxis;m<S?m=S:m>I&&(m=I)}if(c){var y,w;let C=p==="y"?"width":"height",S=["top","left"].includes(Vn(n)),I=a.reference[f]-a.floating[C]+(S&&((y=s.offset)==null?void 0:y[f])||0)+(S?0:v.crossAxis),b=a.reference[f]+a.reference[C]+(S?0:((w=s.offset)==null?void 0:w[f])||0)-(S?v.crossAxis:0);x<I?x=I:x>b&&(x=b)}return{[p]:m,[f]:x}}}},MT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,r;let{placement:n,rects:a,platform:s,elements:i}=t,{apply:u=()=>{},...c}=Bn(e,t),d=await lu(t,c),f=Vn(n),p=Ei(n),m=wa(n)==="y",{width:x,height:g}=a.floating,v,y;f==="top"||f==="bottom"?(v=f,y=p===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=f,v=p==="end"?"top":"bottom");let w=g-d.top-d.bottom,C=x-d.left-d.right,S=Fn(g-d[v],w),I=Fn(x-d[y],C),b=!t.middlewareData.shift,L=S,R=I;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(R=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(L=w),b&&!p){let D=Vo(d.left,0),O=Vo(d.right,0),V=Vo(d.top,0),B=Vo(d.bottom,0);m?R=x-2*(D!==0||O!==0?D+O:Vo(d.left,d.right)):L=g-2*(V!==0||B!==0?V+B:Vo(d.top,d.bottom))}await u({...t,availableWidth:R,availableHeight:L});let E=await s.getDimensions(i.floating);return x!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};l();function Ph(){return typeof window<"u"}function ki(e){return TT(e)?(e.nodeName||"").toLowerCase():"#document"}function sr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function an(e){var t;return(t=(TT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function TT(e){return Ph()?e instanceof Node||e instanceof sr(e).Node:!1}function Br(e){return Ph()?e instanceof Element||e instanceof sr(e).Element:!1}function sn(e){return Ph()?e instanceof HTMLElement||e instanceof sr(e).HTMLElement:!1}function ET(e){return!Ph()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof sr(e).ShadowRoot}function uu(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=Vr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(n)}function DT(e){return["table","td","th"].includes(ki(e))}function Xd(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Mh(e){let t=Eh(),o=Br(e)?Vr(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>o[r]?o[r]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(o.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(o.contain||"").includes(r))}function kT(e){let t=Ca(e);for(;sn(t)&&!Ai(t);){if(Mh(t))return t;if(Xd(t))return null;t=Ca(t)}return null}function Eh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ai(e){return["html","body","#document"].includes(ki(e))}function Vr(e){return sr(e).getComputedStyle(e)}function Qd(e){return Br(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ca(e){if(ki(e)==="html")return e;let t=e.assignedSlot||e.parentNode||ET(e)&&e.host||an(e);return ET(t)?t.host:t}function AT(e){let t=Ca(e);return Ai(t)?e.ownerDocument?e.ownerDocument.body:e.body:sn(t)&&uu(t)?t:AT(t)}function Di(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=AT(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),s=sr(n);if(a){let i=Th(s);return t.concat(s,s.visualViewport||[],uu(n)?n:[],i&&o?Di(i):[])}return t.concat(n,Di(n,[],o))}function Th(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _T(e){let t=Vr(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=sn(e),a=n?e.offsetWidth:o,s=n?e.offsetHeight:r,i=Kd(o)!==a||Kd(r)!==s;return i&&(o=a,r=s),{width:o,height:r,$:i}}function Xw(e){return Br(e)?e:e.contextElement}function cu(e){let t=Xw(e);if(!sn(t))return nn(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:a}=_T(t),s=(a?Kd(o.width):o.width)/r,i=(a?Kd(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}var tj=nn(0);function FT(e){let t=sr(e);return!Eh()||!t.visualViewport?tj:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oj(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==sr(e)?!1:t}function Oi(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),a=Xw(e),s=nn(1);t&&(r?Br(r)&&(s=cu(r)):s=cu(e));let i=oj(a,o,r)?FT(a):nn(0),u=(n.left+i.x)/s.x,c=(n.top+i.y)/s.y,d=n.width/s.x,f=n.height/s.y;if(a){let p=sr(a),m=r&&Br(r)?sr(r):r,x=p,g=Th(x);for(;g&&r&&m!==x;){let v=cu(g),y=g.getBoundingClientRect(),w=Vr(g),C=y.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,S=y.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;u*=v.x,c*=v.y,d*=v.x,f*=v.y,u+=C,c+=S,x=sr(g),g=Th(x)}}return Ti({width:d,height:f,x:u,y:c})}function Qw(e,t){let o=Qd(e).scrollLeft;return t?t.left+o:Oi(an(e)).left+o}function BT(e,t,o){o===void 0&&(o=!1);let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-(o?0:Qw(e,r)),a=r.top+t.scrollTop;return{x:n,y:a}}function rj(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,a=n==="fixed",s=an(r),i=t?Xd(t.floating):!1;if(r===s||i&&a)return o;let u={scrollLeft:0,scrollTop:0},c=nn(1),d=nn(0),f=sn(r);if((f||!f&&!a)&&((ki(r)!=="body"||uu(s))&&(u=Qd(r)),sn(r))){let m=Oi(r);c=cu(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}let p=s&&!f&&!a?BT(s,u,!0):nn(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-u.scrollLeft*c.x+d.x+p.x,y:o.y*c.y-u.scrollTop*c.y+d.y+p.y}}function nj(e){return Array.from(e.getClientRects())}function aj(e){let t=an(e),o=Qd(e),r=e.ownerDocument.body,n=Vo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Vo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-o.scrollLeft+Qw(e),i=-o.scrollTop;return Vr(r).direction==="rtl"&&(s+=Vo(t.clientWidth,r.clientWidth)-n),{width:n,height:a,x:s,y:i}}function sj(e,t){let o=sr(e),r=an(e),n=o.visualViewport,a=r.clientWidth,s=r.clientHeight,i=0,u=0;if(n){a=n.width,s=n.height;let c=Eh();(!c||c&&t==="fixed")&&(i=n.offsetLeft,u=n.offsetTop)}return{width:a,height:s,x:i,y:u}}function ij(e,t){let o=Oi(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,a=sn(e)?cu(e):nn(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,u=n*a.x,c=r*a.y;return{width:s,height:i,x:u,y:c}}function OT(e,t,o){let r;if(t==="viewport")r=sj(e,o);else if(t==="document")r=aj(an(e));else if(Br(t))r=ij(t,o);else{let n=FT(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ti(r)}function VT(e,t){let o=Ca(e);return o===t||!Br(o)||Ai(o)?!1:Vr(o).position==="fixed"||VT(o,t)}function lj(e,t){let o=t.get(e);if(o)return o;let r=Di(e,[],!1).filter(i=>Br(i)&&ki(i)!=="body"),n=null,a=Vr(e).position==="fixed",s=a?Ca(e):e;for(;Br(s)&&!Ai(s);){let i=Vr(s),u=Mh(s);!u&&i.position==="fixed"&&(n=null),(a?!u&&!n:!u&&i.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||uu(s)&&!u&&VT(e,s))?r=r.filter(d=>d!==s):n=i,s=Ca(s)}return t.set(e,r),r}function uj(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,s=[...o==="clippingAncestors"?Xd(t)?[]:lj(t,this._c):[].concat(o),r],i=s[0],u=s.reduce((c,d)=>{let f=OT(t,d,n);return c.top=Vo(f.top,c.top),c.right=Fn(f.right,c.right),c.bottom=Fn(f.bottom,c.bottom),c.left=Vo(f.left,c.left),c},OT(t,i,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function cj(e){let{width:t,height:o}=_T(e);return{width:t,height:o}}function dj(e,t,o){let r=sn(t),n=an(t),a=o==="fixed",s=Oi(e,!0,a,t),i={scrollLeft:0,scrollTop:0},u=nn(0);if(r||!r&&!a)if((ki(t)!=="body"||uu(n))&&(i=Qd(t)),r){let p=Oi(t,!0,a,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else n&&(u.x=Qw(n));let c=n&&!r&&!a?BT(n,i):nn(0),d=s.left+i.scrollLeft-u.x-c.x,f=s.top+i.scrollTop-u.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function Yw(e){return Vr(e).position==="static"}function NT(e,t){if(!sn(e)||Vr(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return an(e)===o&&(o=o.ownerDocument.body),o}function HT(e,t){let o=sr(e);if(Xd(e))return o;if(!sn(e)){let n=Ca(e);for(;n&&!Ai(n);){if(Br(n)&&!Yw(n))return n;n=Ca(n)}return o}let r=NT(e,t);for(;r&&DT(r)&&Yw(r);)r=NT(r,t);return r&&Ai(r)&&Yw(r)&&!Mh(r)?o:r||kT(e)||o}var fj=async function(e){let t=this.getOffsetParent||HT,o=this.getDimensions,r=await o(e.floating);return{reference:dj(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function pj(e){return Vr(e).direction==="rtl"}var UT={convertOffsetParentRelativeRectToViewportRelativeRect:rj,getDocumentElement:an,getClippingRect:uj,getOffsetParent:HT,getElementRects:fj,getClientRects:nj,getDimensions:cj,getScale:cu,isElement:Br,isRTL:pj};function zT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mj(e,t){let o=null,r,n=an(e);function a(){var i;clearTimeout(r),(i=o)==null||i.disconnect(),o=null}function s(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),a();let c=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=c;if(i||t(),!p||!m)return;let x=Yd(f),g=Yd(n.clientWidth-(d+p)),v=Yd(n.clientHeight-(f+m)),y=Yd(d),C={rootMargin:-x+"px "+-g+"px "+-v+"px "+-y+"px",threshold:Vo(0,Fn(1,u))||1},S=!0;function I(b){let L=b[0].intersectionRatio;if(L!==u){if(!S)return s();L?s(!1,L):r=setTimeout(()=>{s(!1,1e-7)},1e3)}L===1&&!zT(c,e.getBoundingClientRect())&&s(),S=!1}try{o=new IntersectionObserver(I,{...C,root:n.ownerDocument})}catch{o=new IntersectionObserver(I,C)}o.observe(e)}return s(!0),a}function Zw(e,t,o,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=Xw(e),d=n||a?[...c?Di(c):[],...Di(t)]:[];d.forEach(y=>{n&&y.addEventListener("scroll",o,{passive:!0}),a&&y.addEventListener("resize",o)});let f=c&&i?mj(c,o):null,p=-1,m=null;s&&(m=new ResizeObserver(y=>{let[w]=y;w&&w.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),o()}),c&&!u&&m.observe(c),m.observe(t));let x,g=u?Oi(e):null;u&&v();function v(){let y=Oi(e);g&&!zT(g,y)&&o(),g=y,x=requestAnimationFrame(v)}return o(),()=>{var y;d.forEach(w=>{n&&w.removeEventListener("scroll",o),a&&w.removeEventListener("resize",o)}),f?.(),(y=m)==null||y.disconnect(),m=null,u&&cancelAnimationFrame(x)}}var qT=RT;var WT=LT,GT=bT,$T=MT,jT=IT,Jw=ST;var KT=PT,eC=(e,t,o)=>{let r=new Map,n={platform:UT,...o},a={...n.platform,_c:r};return CT(e,t,{...n,platform:a})};import*as Bt from"react";import{useLayoutEffect as hj,useEffect as gj}from"react";import*as XT from"react-dom";var Dh=typeof document<"u"?hj:gj;function kh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,r,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(r=o;r--!==0;)if(!kh(e[r],t[r]))return!1;return!0}if(n=Object.keys(e),o=n.length,o!==Object.keys(t).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(t,n[r]))return!1;for(r=o;r--!==0;){let a=n[r];if(!(a==="_owner"&&e.$$typeof)&&!kh(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function QT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function YT(e,t){let o=QT(e);return Math.round(t*o)/o}function tC(e){let t=Bt.useRef(e);return Dh(()=>{t.current=e}),t}function ZT(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:r=[],platform:n,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:u,open:c}=e,[d,f]=Bt.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=Bt.useState(r);kh(p,r)||m(r);let[x,g]=Bt.useState(null),[v,y]=Bt.useState(null),w=Bt.useCallback(k=>{k!==b.current&&(b.current=k,g(k))},[]),C=Bt.useCallback(k=>{k!==L.current&&(L.current=k,y(k))},[]),S=a||x,I=s||v,b=Bt.useRef(null),L=Bt.useRef(null),R=Bt.useRef(d),E=u!=null,D=tC(u),O=tC(n),V=tC(c),B=Bt.useCallback(()=>{if(!b.current||!L.current)return;let k={placement:t,strategy:o,middleware:p};O.current&&(k.platform=O.current),eC(b.current,L.current,k).then(M=>{let F={...M,isPositioned:V.current!==!1};P.current&&!kh(R.current,F)&&(R.current=F,XT.flushSync(()=>{f(F)}))})},[p,t,o,O,V]);Dh(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(k=>({...k,isPositioned:!1})))},[c]);let P=Bt.useRef(!1);Dh(()=>(P.current=!0,()=>{P.current=!1}),[]),Dh(()=>{if(S&&(b.current=S),I&&(L.current=I),S&&I){if(D.current)return D.current(S,I,B);B()}},[S,I,B,D,E]);let _=Bt.useMemo(()=>({reference:b,floating:L,setReference:w,setFloating:C}),[w,C]),T=Bt.useMemo(()=>({reference:S,floating:I}),[S,I]),A=Bt.useMemo(()=>{let k={position:o,left:0,top:0};if(!T.floating)return k;let M=YT(T.floating,d.x),F=YT(T.floating,d.y);return i?{...k,transform:"translate("+M+"px, "+F+"px)",...QT(T.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:M,top:F}},[o,i,T.floating,d.x,d.y]);return Bt.useMemo(()=>({...d,update:B,refs:_,elements:T,floatingStyles:A}),[d,B,_,T,A])}var xj=e=>{function t(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){let{element:r,padding:n}=typeof e=="function"?e(o):e;return r&&t(r)?r.current!=null?Jw({element:r.current,padding:n}).fn(o):{}:r?Jw({element:r,padding:n}).fn(o):{}}}},JT=(e,t)=>({...qT(e),options:[e,t]}),eD=(e,t)=>({...WT(e),options:[e,t]}),tD=(e,t)=>({...KT(e),options:[e,t]}),oD=(e,t)=>({...GT(e),options:[e,t]}),rD=(e,t)=>({...$T(e),options:[e,t]});var nD=(e,t)=>({...jT(e),options:[e,t]});var aD=(e,t)=>({...xj(e),options:[e,t]});l();import*as iD from"react";import{jsx as sD}from"react/jsx-runtime";var yj="Arrow",lD=iD.forwardRef((e,t)=>{let{children:o,width:r=10,height:n=5,...a}=e;return sD(ge.svg,{...a,ref:t,width:r,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:sD("polygon",{points:"0,0 30,0 15,10"})})});lD.displayName=yj;var uD=lD;l();import*as cD from"react";function Ah(e){let[t,o]=cD.useState(void 0);return xt(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;let a=n[0],s,i;if("borderBoxSize"in a){let u=a.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;o({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else o(void 0)},[e]),t}import{jsx as Ni}from"react/jsx-runtime";var oC="Popper",[dD,Hr]=_t(oC),[wj,fD]=dD(oC),pD=e=>{let{__scopePopper:t,children:o}=e,[r,n]=ir.useState(null);return Ni(wj,{scope:t,anchor:r,onAnchorChange:n,children:o})};pD.displayName=oC;var mD="PopperAnchor",hD=ir.forwardRef((e,t)=>{let{__scopePopper:o,virtualRef:r,...n}=e,a=fD(mD,o),s=ir.useRef(null),i=be(t,s),u=ir.useRef(null);return ir.useEffect(()=>{let c=u.current;u.current=r?.current||s.current,c!==u.current&&a.onAnchorChange(u.current)}),r?null:Ni(ge.div,{...n,ref:i})});hD.displayName=mD;var rC="PopperContent",[Cj,Sj]=dD(rC),gD=ir.forwardRef((e,t)=>{let{__scopePopper:o,side:r="bottom",sideOffset:n=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:x,...g}=e,v=fD(rC,o),[y,w]=ir.useState(null),C=be(t,z=>w(z)),[S,I]=ir.useState(null),b=Ah(S),L=b?.width??0,R=b?.height??0,E=r+(a!=="center"?"-"+a:""),D=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},O=Array.isArray(c)?c:[c],V=O.length>0,B={padding:D,boundary:O.filter(Ij),altBoundary:V},{refs:P,floatingStyles:_,placement:T,isPositioned:A,middlewareData:k}=ZT({strategy:"fixed",placement:E,whileElementsMounted:(...z)=>Zw(...z,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[JT({mainAxis:n+R,alignmentAxis:s}),u&&eD({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?tD():void 0,...B}),u&&oD({...B}),rD({...B,apply:({elements:z,rects:j,availableWidth:Z,availableHeight:$})=>{let{width:ue,height:ne}=j.reference,Pe=z.floating.style;Pe.setProperty("--radix-popper-available-width",`${Z}px`),Pe.setProperty("--radix-popper-available-height",`${$}px`),Pe.setProperty("--radix-popper-anchor-width",`${ue}px`),Pe.setProperty("--radix-popper-anchor-height",`${ne}px`)}}),S&&aD({element:S,padding:i}),Rj({arrowWidth:L,arrowHeight:R}),p&&nD({strategy:"referenceHidden",...B})]}),[M,F]=vD(T),U=Ft(x);xt(()=>{A&&U?.()},[A,U]);let q=k.arrow?.x,N=k.arrow?.y,H=k.arrow?.centerOffset!==0,[G,K]=ir.useState();return xt(()=>{y&&K(window.getComputedStyle(y).zIndex)},[y]),Ni("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:A?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:G,"--radix-popper-transform-origin":[k.transformOrigin?.x,k.transformOrigin?.y].join(" "),...k.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Ni(Cj,{scope:o,placedSide:M,onArrowChange:I,arrowX:q,arrowY:N,shouldHideArrow:H,children:Ni(ge.div,{"data-side":M,"data-align":F,...g,ref:C,style:{...g.style,animation:A?void 0:"none"}})})})});gD.displayName=rC;var xD="PopperArrow",bj={top:"bottom",right:"left",bottom:"top",left:"right"},yD=ir.forwardRef(function(t,o){let{__scopePopper:r,...n}=t,a=Sj(xD,r),s=bj[a.placedSide];return Ni("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:Ni(uD,{...n,ref:o,style:{...n.style,display:"block"}})})});yD.displayName=xD;function Ij(e){return e!==null}var Rj=e=>({name:"transformOrigin",options:e,fn(t){let{placement:o,rects:r,middlewareData:n}=t,s=n.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[c,d]=vD(o),f={start:"0%",center:"50%",end:"100%"}[d],p=(n.arrow?.x??0)+i/2,m=(n.arrow?.y??0)+u/2,x="",g="";return c==="bottom"?(x=s?f:`${p}px`,g=`${-u}px`):c==="top"?(x=s?f:`${p}px`,g=`${r.floating.height+u}px`):c==="right"?(x=`${-u}px`,g=s?f:`${m}px`):c==="left"&&(x=`${r.floating.width+u}px`,g=s?f:`${m}px`),{data:{x,y:g}}}});function vD(e){let[t,o="center"]=e.split("-");return[t,o]}var Sa=pD,ba=hD,xs=gD,ys=yD;l();import*as Nh from"react";import Lj from"react-dom";import{jsx as Pj}from"react/jsx-runtime";var Mj="Portal",Ia=Nh.forwardRef((e,t)=>{let{container:o,...r}=e,[n,a]=Nh.useState(!1);xt(()=>a(!0),[]);let s=o||n&&globalThis?.document?.body;return s?Lj.createPortal(Pj(ge.div,{...r,ref:t}),s):null});Ia.displayName=Mj;l();import*as Ur from"react";import*as _h from"react";var Ej=Ur[" useInsertionEffect ".trim().toString()]||xt;function Ho({prop:e,defaultProp:t,onChange:o=()=>{},caller:r}){let[n,a,s]=Tj({defaultProp:t,onChange:o}),i=e!==void 0,u=i?e:n;{let d=Ur.useRef(e!==void 0);Ur.useEffect(()=>{let f=d.current;f!==i&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,r])}let c=Ur.useCallback(d=>{if(i){let f=Dj(d)?d(e):d;f!==e&&s.current?.(f)}else a(d)},[i,e,a,s]);return[u,c]}function Tj({defaultProp:e,onChange:t}){let[o,r]=Ur.useState(e),n=Ur.useRef(o),a=Ur.useRef(t);return Ej(()=>{a.current=t},[t]),Ur.useEffect(()=>{n.current!==o&&(a.current?.(o),n.current=o)},[o,n]),[o,r,a]}function Dj(e){return typeof e=="function"}l();import*as Fh from"react";function Bh(e){let t=Fh.useRef({value:e,previous:e});return Fh.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}l();import*as wD from"react";import{jsx as kj}from"react/jsx-runtime";var nC=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Aj="VisuallyHidden",CD=wD.forwardRef((e,t)=>kj(ge.span,{...e,ref:t,style:{...nC,...e.style}}));CD.displayName=Aj;var SD=CD;l();var Nj=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},du=new WeakMap,Vh=new WeakMap,Hh={},aC=0,bD=function(e){return e&&(e.host||bD(e.parentNode))},_j=function(e,t){return t.map(function(o){if(e.contains(o))return o;var r=bD(o);return r&&e.contains(r)?r:(console.error("aria-hidden",o,"in not contained inside",e,". Doing nothing"),null)}).filter(function(o){return!!o})},Fj=function(e,t,o,r){var n=_j(t,Array.isArray(e)?e:[e]);Hh[o]||(Hh[o]=new WeakMap);var a=Hh[o],s=[],i=new Set,u=new Set(n),c=function(f){!f||i.has(f)||(i.add(f),c(f.parentNode))};n.forEach(c);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(p){if(i.has(p))d(p);else try{var m=p.getAttribute(r),x=m!==null&&m!=="false",g=(du.get(p)||0)+1,v=(a.get(p)||0)+1;du.set(p,g),a.set(p,v),s.push(p),g===1&&x&&Vh.set(p,!0),v===1&&p.setAttribute(o,"true"),x||p.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return d(t),i.clear(),aC++,function(){s.forEach(function(f){var p=du.get(f)-1,m=a.get(f)-1;du.set(f,p),a.set(f,m),p||(Vh.has(f)||f.removeAttribute(r),Vh.delete(f)),m||f.removeAttribute(o)}),aC--,aC||(du=new WeakMap,du=new WeakMap,Vh=new WeakMap,Hh={})}},fu=function(e,t,o){o===void 0&&(o="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),n=t||Nj(e);return n?(r.push.apply(r,Array.from(n.querySelectorAll("[aria-live]"))),Fj(r,n,o,"aria-hidden")):function(){return null}};l();l();l();var lr=function(){return lr=Object.assign||function(t){for(var o,r=1,n=arguments.length;r<n;r++){o=arguments[r];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a])}return t},lr.apply(this,arguments)};function Uh(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]]);return o}function ID(e,t,o){if(o||arguments.length===2)for(var r=0,n=t.length,a;r<n;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}import*as $h from"react";l();import*as Po from"react";l();var _i="right-scroll-bar-position",Fi="width-before-scroll-bar",sC="with-scroll-bars-hidden",iC="--removed-body-scroll-bar-size";l();l();function zh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}l();import{useState as Bj}from"react";function RD(e,t){var o=Bj(function(){return{value:e,callback:t,facade:{get current(){return o.value},set current(r){var n=o.value;n!==r&&(o.value=r,o.callback(r,n))}}}})[0];return o.callback=t,o.facade}l();import*as qh from"react";var Vj=typeof window<"u"?qh.useLayoutEffect:qh.useEffect,LD=new WeakMap;function lC(e,t){var o=RD(t||null,function(r){return e.forEach(function(n){return zh(n,r)})});return Vj(function(){var r=LD.get(o);if(r){var n=new Set(r),a=new Set(e),s=o.current;n.forEach(function(i){a.has(i)||zh(i,null)}),a.forEach(function(i){n.has(i)||zh(i,s)})}LD.set(o,e)},[e]),o}l();l();l();function Hj(e){return e}function Uj(e,t){t===void 0&&(t=Hj);var o=[],r=!1,n={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:e},useMedium:function(a){var s=t(a,r);return o.push(s),function(){o=o.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;o.length;){var s=o;o=[],s.forEach(a)}o={push:function(i){return a(i)},filter:function(){return o}}},assignMedium:function(a){r=!0;var s=[];if(o.length){var i=o;o=[],i.forEach(a),s=o}var u=function(){var d=s;s=[],d.forEach(a)},c=function(){return Promise.resolve().then(u)};c(),o={push:function(d){s.push(d),c()},filter:function(d){return s=s.filter(d),o}}}};return n}function uC(e){e===void 0&&(e={});var t=Uj(null);return t.options=lr({async:!0,ssr:!1},e),t}l();import*as PD from"react";var MD=function(e){var t=e.sideCar,o=Uh(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return PD.createElement(r,lr({},o))};MD.isSideCarExport=!0;function cC(e,t){return e.useMedium(t),MD}var Wh=uC();var dC=function(){},Zd=Po.forwardRef(function(e,t){var o=Po.useRef(null),r=Po.useState({onScrollCapture:dC,onWheelCapture:dC,onTouchMoveCapture:dC}),n=r[0],a=r[1],s=e.forwardProps,i=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,x=e.inert,g=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,w=e.gapMode,C=Uh(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,I=lC([o,t]),b=lr(lr({},C),n);return Po.createElement(Po.Fragment,null,d&&Po.createElement(S,{sideCar:Wh,removeScrollBar:c,shards:f,noIsolation:m,inert:x,setCallbacks:a,allowPinchZoom:!!g,lockRef:o,gapMode:w}),s?Po.cloneElement(Po.Children.only(i),lr(lr({},b),{ref:I})):Po.createElement(y,lr({},b,{className:u,ref:I}),i))});Zd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Zd.classNames={fullWidth:Fi,zeroRight:_i};l();l();import*as st from"react";l();l();import*as mu from"react";l();l();l();import*as DD from"react";l();l();var ED;var TD=function(){if(ED)return ED;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zj(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=TD();return t&&e.setAttribute("nonce",t),e}function qj(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Wj(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var fC=function(){var e=0,t=null;return{add:function(o){e==0&&(t=zj())&&(qj(t,o),Wj(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var pC=function(){var e=fC();return function(t,o){DD.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])}};var Jd=function(){var e=pC(),t=function(o){var r=o.styles,n=o.dynamic;return e(r,n),null};return t};l();var Gj={left:0,top:0,right:0,gap:0},mC=function(e){return parseInt(e||"",10)||0},$j=function(e){var t=window.getComputedStyle(document.body),o=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],n=t[e==="padding"?"paddingRight":"marginRight"];return[mC(o),mC(r),mC(n)]},hC=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Gj;var t=$j(e),o=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-o+t[2]-t[0])}};var jj=Jd(),pu="data-scroll-locked",Kj=function(e,t,o,r){var n=e.left,a=e.top,s=e.right,i=e.gap;return o===void 0&&(o="margin"),`
|
|
18
|
+
See https://nuqs.dev/NUQS-${e}`}var Ci=i$({useAdapter(){throw new Error(Si(404))}});Ci.displayName="NuqsAdapterContext";bw&&typeof window<"u"&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==Ci&&console.error(Si(303)),window.__NuqsAdapterContext=Ci);function Iw(e){return({children:t,defaultOptions:o,processUrlSearchParams:r,...n})=>l$(Ci.Provider,{...n,value:{useAdapter:e,defaultOptions:o,processUrlSearchParams:r}},t)}function WM(e){let t=Sw(Ci);if(!("useAdapter"in t))throw new Error(Si(404));return t.useAdapter(e)}var GM=()=>Sw(Ci).defaultOptions,$M=()=>Sw(Ci).processUrlSearchParams;import{useEffect as p$,useState as m$}from"react";function h$(e,t){let o;return(...r)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...r),t)}}function g$(){let e=typeof window<"u"?window.location.hash.slice(1):"",[t,o]=m$(new URLSearchParams(e));function r(a,{history:s}){let{pathname:i,search:u}=window.location,c=a.toString(),d=`${i}${u}#${c}`;s==="push"?window.history.pushState(null,"",d):window.history.replaceState(null,"",d),o(a)}function n(){if(typeof window>"u")return new URLSearchParams;let a=window.location.hash.slice(1);return new URLSearchParams(a)}return p$(()=>{let a=h$(()=>{let s=window.location.hash.slice(1);o(new URLSearchParams(s))},50);return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[]),{searchParams:t,updateUrl:r,getSearchParamsSnapshot:n}}var jM=Iw(g$);import{jsx as ch,jsxs as S$}from"react/jsx-runtime";var KM=new aw,YM=x$(void 0);function XM(e){let{children:t,onEvent:o,adapter:r,theme:n}=e,[a,s]=bd(!1),[i,u]=bd(!0),[c,d]=bd([]),[f,p]=bd(()=>typeof document<"u"?document.documentElement.classList.contains("dark"):!1);Rw(()=>{p(document.documentElement.classList.contains("dark"))},[]);let[m]=bd(tn.generate()),{hasCustomTheme:x}=PM(n,f);Rw(()=>{KM.resetQueries({exact:!1,queryKey:[]})},[r]),Rw(()=>{let w=new MutationObserver(C=>{C.forEach(S=>{if(S.type==="attributes"&&S.attributeName==="class"){let I=document.documentElement.classList.contains("dark");p(I)}})});return w.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>w.disconnect()},[]);let g=w=>{let{name:C,payload:S}=w;if(C==="studio_operation_error"){if(S.error.name==="AbortError")return;Yl.error(`"${S.operation}" operation failed`,{action:{label:"Console",onClick:()=>{window.location.hash=Lw({viewParam:"console"})}}})}let I=tn.generate(),b=new Date().toISOString(),L={...w,eventId:I,timestamp:b};(L.name==="studio_operation_success"||L.name==="studio_operation_error")&&d(R=>{let E=[...R,L];return E.length>100?E.slice(0,100):E}),o?.(L),C==="studio_launched"&&ah&&!nh&&!v$()&&!C$()&&BP({additionalData:{eventPayload:S,variant:"free"},command:C,eventId:I,product:"prisma-studio-embedded",signature:m,skipUpdateCheck:!0,timestamp:new Date(b),version:"0.14.0"}).catch(R=>{console.error(R)})},v=()=>s(w=>!w),y=()=>u(w=>!w);return S$(iw,{client:KM,children:[ch(SM,{}),ch(jM,{children:ch(YM.Provider,{value:{adapter:r,isFullscreen:a,onEvent:g,operationEvents:c,toggleFullscreen:v,isNavigationOpen:i,toggleNavigation:y,isDarkMode:f,hasCustomTheme:x},children:ch(QM,{children:t})})})]})}function uo(){let e=y$(YM);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}function v$(){return w$()&&"__PVCE__"in window&&window.__PVCE__===!0}function w$(){return ah&&"acquireVsCodeApi"in window&&typeof window.acquireVsCodeApi=="function"}function C$(){if(!ah)return!1;let{hostname:e}=window.location;return"__PDPCP__"in window&&window.__PDPCP__===!0||e.includes("console.prisma.io")||e.includes("datacdn.workers.dev")}l();l();l();import{useCallback as ZM,useRef as b$,useSyncExternalStore as I$}from"react";function R$(){if(typeof window>"u"||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}function JM(e){return{method:"throttle",timeMs:e}}var Jl=JM(R$());function eE(e){return e===null||Array.isArray(e)&&e.length===0}function tE(e,t,o){if(typeof e=="string")o.set(t,e);else{o.delete(t);for(let r of e)o.append(t,r);o.has(t)||o.set(t,"")}return o}function Tw(){let e=new Map;return{on(t,o){let r=e.get(t)||[];return r.push(o),e.set(t,r),()=>this.off(t,o)},off(t,o){let r=e.get(t);r&&e.set(t,r.filter(n=>n!==o))},emit(t,o){e.get(t)?.forEach(r=>r(o))}}}function Pw(e,t,o){function r(){e(),o.removeEventListener("abort",a)}let n=setTimeout(r,t);function a(){clearTimeout(n),o.removeEventListener("abort",a)}o.addEventListener("abort",a)}function Mw(){let e=Promise;if(Promise.hasOwnProperty("withResolvers"))return Promise.withResolvers();let t=()=>{},o=()=>{};return{promise:new e((r,n)=>{t=r,o=n}),resolve:t,reject:o}}function L$(e,t){let o=t;for(let r=e.length-1;r>=0;r--){let n=e[r];if(!n)continue;let a=o;o=()=>n(a)}o()}function Ew(){return new URLSearchParams(location.search)}var oE=class{updateMap=new Map;options={history:"replace",scroll:!1,shallow:!0};timeMs=Jl.timeMs;transitions=new Set;resolvers=null;controller=null;lastFlushedAt=0;resetQueueOnNextPush=!1;push({key:e,query:t,options:o},r=Jl.timeMs){this.resetQueueOnNextPush&&(this.reset(),this.resetQueueOnNextPush=!1),ht("[nuqs gtq] Enqueueing %s=%s %O",e,t,o),this.updateMap.set(e,t),o.history==="push"&&(this.options.history="push"),o.scroll&&(this.options.scroll=!0),o.shallow===!1&&(this.options.shallow=!1),o.startTransition&&this.transitions.add(o.startTransition),(!Number.isFinite(this.timeMs)||r>this.timeMs)&&(this.timeMs=r)}getQueuedQuery(e){return this.updateMap.get(e)}getPendingPromise({getSearchParamsSnapshot:e=Ew}){return this.resolvers?.promise??Promise.resolve(e())}flush({getSearchParamsSnapshot:e=Ew,rateLimitFactor:t=1,...o},r){if(this.controller??=new AbortController,!Number.isFinite(this.timeMs))return ht("[nuqs gtq] Skipping flush due to throttleMs=Infinity"),Promise.resolve(e());if(this.resolvers)return this.resolvers.promise;this.resolvers=Mw();let n=()=>{this.lastFlushedAt=performance.now();let[s,i]=this.applyPendingUpdates({...o,autoResetQueueOnUpdate:o.autoResetQueueOnUpdate??!0,getSearchParamsSnapshot:e},r);i===null?(this.resolvers.resolve(s),this.resetQueueOnNextPush=!0):this.resolvers.reject(s),this.resolvers=null};return Pw(()=>{let s=performance.now()-this.lastFlushedAt,i=this.timeMs,u=t*Math.max(0,i-s);ht("[nuqs gtq] Scheduling flush in %f ms. Throttled at %f ms (x%f)",u,i,t),u===0?n():Pw(n,u,this.controller.signal)},0,this.controller.signal),this.resolvers.promise}abort(){return this.controller?.abort(),this.controller=new AbortController,this.resolvers?.resolve(new URLSearchParams),this.resolvers=null,this.reset()}reset(){let e=Array.from(this.updateMap.keys());return ht("[nuqs gtq] Resetting queue %s",JSON.stringify(Object.fromEntries(this.updateMap))),this.updateMap.clear(),this.transitions.clear(),this.options={history:"replace",scroll:!1,shallow:!0},this.timeMs=Jl.timeMs,e}applyPendingUpdates(e,t){let{updateUrl:o,getSearchParamsSnapshot:r}=e,n=r();if(ht("[nuqs gtq] Applying %d pending update(s) on top of %s",this.updateMap.size,n.toString()),this.updateMap.size===0)return[n,null];let a=Array.from(this.updateMap.entries()),s={...this.options},i=Array.from(this.transitions);e.autoResetQueueOnUpdate&&this.reset(),ht("[nuqs gtq] Flushing queue %O with options %O",a,s);for(let[u,c]of a)c===null?n.delete(u):n=tE(c,u,n);t&&(n=t(n));try{return L$(i,()=>{o(n,s)}),[n,null]}catch(u){return console.error(Si(429),a.map(([c])=>c).join(),u),[n,u]}}},Id=new oE;function P$(e,t,o){let r=ZM(()=>{let a=Object.fromEntries(e.map(s=>[s,o(s)]));return[JSON.stringify(a),a]},[e.join(","),o]),n=b$(null);return n.current===null&&(n.current=r()),I$(ZM(a=>{let s=e.map(i=>t(i,a));return()=>s.forEach(i=>i())},[e.join(","),t]),()=>{let[a,s]=r();return n.current[0]===a?n.current[1]:(n.current=[a,s],s)},()=>n.current[1])}var M$=class{callback;resolvers=Mw();controller=new AbortController;queuedValue=void 0;constructor(e){this.callback=e}abort(){this.controller.abort(),this.queuedValue=void 0}push(e,t){return this.queuedValue=e,this.controller.abort(),this.controller=new AbortController,Pw(()=>{let o=this.resolvers;try{ht("[nuqs dq] Flushing debounce queue",e);let r=this.callback(e);ht("[nuqs dq] Reset debounce queue %O",this.queuedValue),this.queuedValue=void 0,this.resolvers=Mw(),r.then(n=>o.resolve(n)).catch(n=>o.reject(n))}catch(r){this.queuedValue=void 0,o.reject(r)}},t,this.controller.signal),this.resolvers.promise}},E$=class{throttleQueue;queues=new Map;queuedQuerySync=Tw();constructor(e=new oE){this.throttleQueue=e}useQueuedQueries(e){return P$(e,(t,o)=>this.queuedQuerySync.on(t,o),t=>this.getQueuedQuery(t))}push(e,t,o,r){if(!Number.isFinite(t)){let s=o.getSearchParamsSnapshot??Ew;return Promise.resolve(s())}let n=e.key;if(!this.queues.has(n)){ht("[nuqs dqc] Creating debounce queue for `%s`",n);let s=new M$(i=>(this.throttleQueue.push(i),this.throttleQueue.flush(o,r).finally(()=>{this.queues.get(i.key)?.queuedValue===void 0&&(ht("[nuqs dqc] Cleaning up empty queue for `%s`",i.key),this.queues.delete(i.key)),this.queuedQuerySync.emit(i.key)})));this.queues.set(n,s)}ht("[nuqs dqc] Enqueueing debounce update %O",e);let a=this.queues.get(n).push(e,t);return this.queuedQuerySync.emit(n),a}abort(e){let t=this.queues.get(e);return t?(ht("[nuqs dqc] Aborting debounce queue %s=%s",e,t.queuedValue?.query),this.queues.delete(e),t.abort(),this.queuedQuerySync.emit(e),o=>(o.then(t.resolvers.resolve,t.resolvers.reject),o)):o=>o}abortAll(){for(let[e,t]of this.queues.entries())ht("[nuqs dqc] Aborting debounce queue %s=%s",e,t.queuedValue?.query),t.abort(),t.resolvers.resolve(new URLSearchParams),this.queuedQuerySync.emit(e);this.queues.clear()}getQueuedQuery(e){let t=this.queues.get(e)?.queuedValue?.query;return t!==void 0?t:this.throttleQueue.getQueuedQuery(e)}},dh=new E$(Id);l();function rE(e,t){return e===t?!0:e===null||t===null||typeof e=="string"||typeof t=="string"||e.length!==t.length?!1:e.every((o,r)=>o===t[r])}import{useCallback as iE,useEffect as nE,useId as T$,useMemo as Dw,useRef as aE,useState as D$}from"react";function lE(e,t,o){try{return e(t)}catch(r){return qM("[nuqs] Error while parsing value `%s`: %O"+(o?" (for key `%s`)":""),t,r,o),null}}function ma(e){function t(o){if(typeof o>"u")return null;let r="";if(Array.isArray(o)){if(o[0]===void 0)return null;r=o[0]}return typeof o=="string"&&(r=o),lE(e.parse,r)}return{type:"single",eq:(o,r)=>o===r,...e,parseServerSide:t,withDefault(o){return{...this,defaultValue:o,parseServerSide(r){return t(r)??o}}},withOptions(o){return{...this,...o}}}}var nTe=ma({parse:e=>e,serialize:String}),aTe=ma({parse:e=>{let t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)}),sTe=ma({parse:e=>{let t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)}),iTe=ma({parse:e=>{let t=parseInt(e,16);return t==t?t:null},serialize:e=>{let t=Math.round(e).toString(16);return(t.length&1?"0":"")+t}}),lTe=ma({parse:e=>{let t=parseFloat(e);return t==t?t:null},serialize:String}),uTe=ma({parse:e=>e.toLowerCase()==="true",serialize:String});function Ow(e,t){return e.valueOf()===t.valueOf()}var cTe=ma({parse:e=>{let t=parseInt(e);return t==t?new Date(t):null},serialize:e=>""+e.valueOf(),eq:Ow}),dTe=ma({parse:e=>{let t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:Ow}),fTe=ma({parse:e=>{let t=new Date(e.slice(0,10));return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString().slice(0,10),eq:Ow});var kw=Tw(),k$={};function uE(e,t={}){let o=T$(),r=GM(),n=$M(),{history:a="replace",scroll:s=r?.scroll??!1,shallow:i=r?.shallow??!0,throttleMs:u=Jl.timeMs,limitUrlUpdates:c=r?.limitUrlUpdates,clearOnDefault:d=r?.clearOnDefault??!0,startTransition:f,urlKeys:p=k$}=t,m=Object.keys(e).join(","),x=Dw(()=>Object.fromEntries(Object.keys(e).map(R=>[R,p[R]??R])),[m,JSON.stringify(p)]),g=WM(Object.values(x)),v=g.searchParams,y=aE({}),w=Dw(()=>Object.fromEntries(Object.keys(e).map(R=>[R,e[R].defaultValue??null])),[Object.values(e).map(({defaultValue:R})=>R).join(",")]),C=dh.useQueuedQueries(Object.values(x)),[S,I]=D$(()=>Aw(e,p,v??new URLSearchParams,C).state),b=aE(S);if(ht("[nuq+ %s `%s`] render - state: %O, iSP: %s",o,m,S,v),Object.keys(y.current).join("&")!==Object.values(x).join("&")){let{state:R,hasChanged:E}=Aw(e,p,v,C,y.current,b.current);E&&(ht("[nuq+ %s `%s`] State changed: %O",o,m,{state:R,initialSearchParams:v,queuedQueries:C,queryRef:y.current,stateRef:b.current}),b.current=R,I(R)),y.current=Object.fromEntries(Object.entries(x).map(([D,O])=>[O,e[D]?.type==="multi"?v?.getAll(O):v?.get(O)??null]))}nE(()=>{let{state:R,hasChanged:E}=Aw(e,p,v,C,y.current,b.current);E&&(ht("[nuq+ %s `%s`] State changed: %O",o,m,{state:R,initialSearchParams:v,queuedQueries:C,queryRef:y.current,stateRef:b.current}),b.current=R,I(R))},[Object.values(x).map(R=>`${R}=${v?.getAll(R)}`).join("&"),JSON.stringify(C)]),nE(()=>{let R=Object.keys(e).reduce((E,D)=>(E[D]=({state:O,query:V})=>{I(B=>{let{defaultValue:P}=e[D],_=x[D],T=O??P??null,A=B[D]??P??null;return Object.is(A,T)?(ht("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). no change, skipping, resolved: %O",o,m,_,O,P,b.current),B):(b.current={...b.current,[D]:T},y.current[_]=V,ht("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). updateInternalState, resolved: %O",o,m,_,O,P,b.current),b.current)})},E),{});for(let E of Object.keys(e)){let D=x[E];ht("[nuq+ %s `%s`] Subscribing to sync for `%s`",o,D,m),kw.on(D,R[E])}return()=>{for(let E of Object.keys(e)){let D=x[E];ht("[nuq+ %s `%s`] Unsubscribing to sync for `%s`",o,D,m),kw.off(D,R[E])}}},[m,x]);let L=iE((R,E={})=>{let D=Object.fromEntries(Object.keys(e).map(A=>[A,null])),O=typeof R=="function"?R(sE(b.current,w))??D:R??D;ht("[nuq+ %s `%s`] setState: %O",o,m,O);let V,B=0,P=!1,_=[];for(let[A,k]of Object.entries(O)){let M=e[A],F=x[A];if(!M||k===void 0)continue;(E.clearOnDefault??M.clearOnDefault??d)&&k!==null&&M.defaultValue!==void 0&&(M.eq??((N,H)=>N===H))(k,M.defaultValue)&&(k=null);let U=k===null?null:(M.serialize??String)(k);kw.emit(F,{state:k,query:U});let q={key:F,query:U,options:{history:E.history??M.history??a,shallow:E.shallow??M.shallow??i,scroll:E.scroll??M.scroll??s,startTransition:E.startTransition??M.startTransition??f}};if(E?.limitUrlUpdates?.method==="debounce"||c?.method==="debounce"||M.limitUrlUpdates?.method==="debounce"){q.options.shallow===!0&&console.warn(Si(422));let N=E?.limitUrlUpdates?.timeMs??c?.timeMs??M.limitUrlUpdates?.timeMs??Jl.timeMs,H=dh.push(q,N,g,n);B<N&&(V=H,B=N)}else{let N=E?.limitUrlUpdates?.timeMs??M?.limitUrlUpdates?.timeMs??c?.timeMs??E.throttleMs??M.throttleMs??u;_.push(dh.abort(F)),Id.push(q,N),P=!0}}let T=_.reduce((A,k)=>k(A),P?Id.flush(g,n):Id.getPendingPromise(g));return V??T},[m,a,i,s,u,c?.method,c?.timeMs,f,x,g.updateUrl,g.getSearchParamsSnapshot,g.rateLimitFactor,n,w]);return[Dw(()=>sE(S,w),[S,w]),L]}function Aw(e,t,o,r,n,a){let s=!1,i=Object.entries(e).reduce((u,[c,d])=>{let f=t?.[c]??c,p=r[f],m=d.type==="multi"?[]:null,x=p===void 0?(d.type==="multi"?o?.getAll(f):o?.get(f))??m:p;return n&&a&&rE(n[f]??m,x)?(u[c]=a[c]??null,u):(s=!0,u[c]=(eE(x)?null:lE(d.parse,x,f))??null,n&&(n[f]=x),u)},{});if(!s){let u=Object.keys(e),c=Object.keys(a??{});s=u.length!==c.length||u.some(d=>!c.includes(d))}return{state:i,hasChanged:s}}function sE(e,t){return Object.fromEntries(Object.keys(e).map(o=>[o,e[o]??t[o]??null]))}function cE(e,t={}){let{parse:o,type:r,serialize:n,eq:a,defaultValue:s,...i}=t,[{[e]:u},c]=uE({[e]:{parse:o??(d=>d),type:r,serialize:n,eq:a,defaultValue:s}},i);return[u,iE((d,f={})=>c(p=>({[e]:typeof d=="function"?d(p[e]):d}),f),[e,c])]}function ss(e,t){return cE(e,t)}l();import{useEffect as A$,useMemo as dE,useState as O$}from"react";var fE={kind:"FilterGroup",filters:[],after:"and",id:tn.generate()},pE=e=>{let t=0;for(let o of e.filters)o.kind==="ColumnFilter"?o.column.trim()&&t++:o.kind==="FilterGroup"&&(t+=pE(o));return t};function mE(){let{filterParam:e,setFilterParam:t}=Ke(),o=dE(()=>JSON.parse(e),[e]),r=i=>{t(JSON.stringify(i))},[n,a]=O$(o);A$(()=>{a(o)},[o]);let s=dE(()=>pE(n),[n]);return{appliedFilter:o,setAppliedFilter:r,editingFilter:n,setEditingFilter:a,totalEditingFilters:s}}l();var hE=-1;function Nn(){let{adapter:e,onEvent:t}=uo();return vd({initialData:{schemas:{[e.defaultSchema||"db"]:{name:e.defaultSchema||"db",tables:{}}},timezone:"UTC",filterOperators:[],query:{parameters:[],sql:""}},initialDataUpdatedAt:hE,queryFn:async({signal:o})=>{let[r,n]=await e.introspect({abortSignal:o});if(r)throw t({name:"studio_operation_error",payload:{operation:"introspect",query:r.query,error:r}}),r;t({name:"studio_operation_success",payload:{operation:"introspect",query:n.query,error:void 0}});let a=Object.values(n.schemas).reduce((s,i)=>s+Object.keys(i.tables).length,0);return t({name:"studio_launched",payload:{tableCount:a}}),n},queryKey:["introspection"],staleTime:o=>o.state.dataUpdatedAt===hE?0:1/0})}import{jsx as V$}from"react/jsx-runtime";function Lw(e){return`#${Object.entries(e).map(([o,r])=>{let n=o.endsWith("Param")?o.slice(0,-5):o;return`${encodeURIComponent(n)}=${encodeURIComponent(r)}`}).join("&")}`}function F$(e){let{adapter:t,introspection:o}=e,{schemas:r}=o,{defaultSchema:n}=t,a=n??Object.keys(r)[0]??"public",s=Object.keys(r[a]?.tables??{})[0]??"",i=JSON.stringify(fE);return{schema:a,table:s,filter:i,pageIndex:"0",pageSize:"25",view:"table"}}function B$(){let{adapter:e}=uo(),{data:t,isFetching:o}=Nn(),{schemas:r}=t,n=gE(()=>F$({adapter:e,introspection:t}),[e,t]),[a,s]=ss("filter",{defaultValue:n.filter}),[i,u]=ss("pageIndex",{defaultValue:n.pageIndex}),[c,d]=ss("pageSize",{defaultValue:n.pageSize}),[f,p]=ss("schema",{defaultValue:n.schema}),[m,x]=ss("sort"),[g,v]=ss("table",{defaultValue:n.table}),[y,w]=ss("view",{defaultValue:n.view}),C=f?r[f]:void 0,S=C?C.tables:void 0,I=S&&g?S[g]:void 0;return{metadata:gE(()=>({activeSchema:C,activeTables:S,activeTable:I,isFetching:o}),[C,S,I,o]),createUrl:Lw,filterParam:a,pageIndexParam:i,pageSizeParam:c,schemaParam:f,sortParam:m,tableParam:g,viewParam:y,setFilterParam:s,setPageIndexParam:u,setPageSizeParam:d,setSchemaParam:p,setSortParam:x,setTableParam:v,setViewParam:w}}var xE=N$(void 0);function QM({children:e}){let t=B$();return V$(xE.Provider,{value:t,children:e})}function Ke(){let e=_$(xE);if(e===void 0)throw new Error("useNavigationContext must be used within a NavigationContextProvider");return e}l();l();function yE(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=yE(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function fh(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=yE(e))&&(r&&(r+=" "),r+=t);return r}l();var H$=(e,t)=>{let o=new Array(e.length+t.length);for(let r=0;r<e.length;r++)o[r]=e[r];for(let r=0;r<t.length;r++)o[e.length+r]=t[r];return o},U$=(e,t)=>({classGroupId:e,validator:t}),RE=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o});var vE=[],z$="arbitrary..",q$=e=>{let t=G$(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return W$(s);let i=s.split("-"),u=i[0]===""&&i.length>1?1:0;return LE(i,u,t)},getConflictingClassGroupIds:(s,i)=>{if(i){let u=r[s],c=o[s];return u?c?H$(c,u):u:c||vE}return o[s]||vE}}},LE=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;let n=e[t],a=o.nextPart.get(n);if(a){let c=LE(e,t+1,a);if(c)return c}let s=o.validators;if(s===null)return;let i=t===0?e.join("-"):e.slice(t).join("-"),u=s.length;for(let c=0;c<u;c++){let d=s[c];if(d.validator(i))return d.classGroupId}},W$=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?z$+r:void 0})(),G$=e=>{let{theme:t,classGroups:o}=e;return $$(o,t)},$$=(e,t)=>{let o=RE();for(let r in e){let n=e[r];Fw(n,o,r,t)}return o},Fw=(e,t,o,r)=>{let n=e.length;for(let a=0;a<n;a++){let s=e[a];j$(s,t,o,r)}},j$=(e,t,o,r)=>{if(typeof e=="string"){K$(e,t,o);return}if(typeof e=="function"){Y$(e,t,o,r);return}X$(e,t,o,r)},K$=(e,t,o)=>{let r=e===""?t:PE(t,e);r.classGroupId=o},Y$=(e,t,o,r)=>{if(Q$(e)){Fw(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push(U$(o,e))},X$=(e,t,o,r)=>{let n=Object.entries(e),a=n.length;for(let s=0;s<a;s++){let[i,u]=n[s];Fw(u,PE(t,i),o,r)}},PE=(e,t)=>{let o=e,r=t.split("-"),n=r.length;for(let a=0;a<n;a++){let s=r[a],i=o.nextPart.get(s);i||(i=RE(),o.nextPart.set(s,i)),o=i}return o},Q$=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Z$=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null),n=(a,s)=>{o[a]=s,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(a){let s=o[a];if(s!==void 0)return s;if((s=r[a])!==void 0)return n(a,s),s},set(a,s){a in o?o[a]=s:n(a,s)}}};var J$=[],wE=(e,t,o,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:n}),e3=e=>{let{prefix:t,experimentalParseClassName:o}=e,r=n=>{let a=[],s=0,i=0,u=0,c,d=n.length;for(let g=0;g<d;g++){let v=n[g];if(s===0&&i===0){if(v===":"){a.push(n.slice(u,g)),u=g+1;continue}if(v==="/"){c=g;continue}}v==="["?s++:v==="]"?s--:v==="("?i++:v===")"&&i--}let f=a.length===0?n:n.slice(u),p=f,m=!1;f.endsWith("!")?(p=f.slice(0,-1),m=!0):f.startsWith("!")&&(p=f.slice(1),m=!0);let x=c&&c>u?c-u:void 0;return wE(a,m,p,x)};if(t){let n=t+":",a=r;r=s=>s.startsWith(n)?a(s.slice(n.length)):wE(J$,!1,s,void 0,!0)}if(o){let n=r;r=a=>o({className:a,parseClassName:n})}return r},t3=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{let r=[],n=[];for(let a=0;a<o.length;a++){let s=o[a],i=s[0]==="[",u=t.has(s);i||u?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(s)):n.push(s)}return n.length>0&&(n.sort(),r.push(...n)),r}},o3=e=>({cache:Z$(e.cacheSize),parseClassName:e3(e),sortModifiers:t3(e),...q$(e)}),r3=/\s+/,n3=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:a}=t,s=[],i=e.trim().split(r3),u="";for(let c=i.length-1;c>=0;c-=1){let d=i[c],{isExternal:f,modifiers:p,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:g}=o(d);if(f){u=d+(u.length>0?" "+u:u);continue}let v=!!g,y=r(v?x.substring(0,g):x);if(!y){if(!v){u=d+(u.length>0?" "+u:u);continue}if(y=r(x),!y){u=d+(u.length>0?" "+u:u);continue}v=!1}let w=p.length===0?"":p.length===1?p[0]:a(p).join(":"),C=m?w+"!":w,S=C+y;if(s.indexOf(S)>-1)continue;s.push(S);let I=n(y,v);for(let b=0;b<I.length;++b){let L=I[b];s.push(C+L)}u=d+(u.length>0?" "+u:u)}return u},a3=(...e)=>{let t=0,o,r,n="";for(;t<e.length;)(o=e[t++])&&(r=ME(o))&&(n&&(n+=" "),n+=r);return n},ME=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=ME(e[r]))&&(o&&(o+=" "),o+=t);return o},CE=(e,...t)=>{let o,r,n,a,s=u=>{let c=t.reduce((d,f)=>f(d),e());return o=o3(c),r=o.cache.get,n=o.cache.set,a=i,i(u)},i=u=>{let c=r(u);if(c)return c;let d=n3(u,o);return n(u,d),d};return a=s,(...u)=>a(a3(...u))},s3=[],Xt=e=>{let t=o=>o[e]||s3;return t.isThemeGetter=!0,t},EE=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,TE=/^\((?:(\w[\w-]*):)?(.+)\)$/i,i3=/^\d+\/\d+$/,l3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,u3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,c3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,d3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,f3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,eu=e=>i3.test(e),Me=e=>!!e&&!Number.isNaN(Number(e)),is=e=>!!e&&Number.isInteger(Number(e)),Nw=e=>e.endsWith("%")&&Me(e.slice(0,-1)),ha=e=>l3.test(e),p3=()=>!0,m3=e=>u3.test(e)&&!c3.test(e),DE=()=>!1,h3=e=>d3.test(e),g3=e=>f3.test(e),x3=e=>!ae(e)&&!se(e),y3=e=>tu(e,OE,DE),ae=e=>EE.test(e),bi=e=>tu(e,NE,m3),_w=e=>tu(e,b3,Me),SE=e=>tu(e,kE,DE),v3=e=>tu(e,AE,g3),ph=e=>tu(e,_E,h3),se=e=>TE.test(e),Rd=e=>ou(e,NE),w3=e=>ou(e,I3),bE=e=>ou(e,kE),C3=e=>ou(e,OE),S3=e=>ou(e,AE),mh=e=>ou(e,_E,!0),tu=(e,t,o)=>{let r=EE.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},ou=(e,t,o=!1)=>{let r=TE.exec(e);return r?r[1]?t(r[1]):o:!1},kE=e=>e==="position"||e==="percentage",AE=e=>e==="image"||e==="url",OE=e=>e==="length"||e==="size"||e==="bg-size",NE=e=>e==="length",b3=e=>e==="number",I3=e=>e==="family-name",_E=e=>e==="shadow";var IE=()=>{let e=Xt("color"),t=Xt("font"),o=Xt("text"),r=Xt("font-weight"),n=Xt("tracking"),a=Xt("leading"),s=Xt("breakpoint"),i=Xt("container"),u=Xt("spacing"),c=Xt("radius"),d=Xt("shadow"),f=Xt("inset-shadow"),p=Xt("text-shadow"),m=Xt("drop-shadow"),x=Xt("blur"),g=Xt("perspective"),v=Xt("aspect"),y=Xt("ease"),w=Xt("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...S(),se,ae],b=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],R=()=>[se,ae,u],E=()=>[eu,"full","auto",...R()],D=()=>[is,"none","subgrid",se,ae],O=()=>["auto",{span:["full",is,se,ae]},is,se,ae],V=()=>[is,"auto",se,ae],B=()=>["auto","min","max","fr",se,ae],P=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...R()],A=()=>[eu,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],k=()=>[e,se,ae],M=()=>[...S(),bE,SE,{position:[se,ae]}],F=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",C3,y3,{size:[se,ae]}],q=()=>[Nw,Rd,bi],N=()=>["","none","full",c,se,ae],H=()=>["",Me,Rd,bi],G=()=>["solid","dashed","dotted","double"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>[Me,Nw,bE,SE],j=()=>["","none",x,se,ae],Z=()=>["none",Me,se,ae],$=()=>["none",Me,se,ae],ue=()=>[Me,se,ae],ne=()=>[eu,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ha],breakpoint:[ha],color:[p3],container:[ha],"drop-shadow":[ha],ease:["in","out","in-out"],font:[x3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ha],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ha],shadow:[ha],spacing:["px",Me],text:[ha],"text-shadow":[ha],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",eu,ae,se,v]}],container:["container"],columns:[{columns:[Me,ae,se,i]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:I()}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-y":[{"overflow-y":b()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{start:E()}],end:[{end:E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[is,"auto",se,ae]}],basis:[{basis:[eu,"full","auto",i,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,eu,"auto","initial","none",ae]}],grow:[{grow:["",Me,se,ae]}],shrink:[{shrink:["",Me,se,ae]}],order:[{order:[is,"first","last","none",se,ae]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...P(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...P()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":P()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:A()}],w:[{w:[i,"screen",...A()]}],"min-w":[{"min-w":[i,"screen","none",...A()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...A()]}],h:[{h:["screen","lh",...A()]}],"min-h":[{"min-h":["screen","lh","none",...A()]}],"max-h":[{"max-h":["screen","lh",...A()]}],"font-size":[{text:["base",o,Rd,bi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,se,_w]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Nw,ae]}],"font-family":[{font:[w3,ae,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,se,ae]}],"line-clamp":[{"line-clamp":[Me,"none",se,_w]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",se,ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,ae]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",se,bi]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[Me,"auto",se,ae]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,ae]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",se,ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},is,se,ae],radial:["",se,ae],conic:[is,se,ae]},S3,v3]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...G(),"hidden","none"]}],"divide-style":[{divide:[...G(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...G(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,se,ae]}],"outline-w":[{outline:["",Me,Rd,bi]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",d,mh,ph]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",f,mh,ph]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[Me,bi]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",p,mh,ph]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[Me,se,ae]}],"mix-blend":[{"mix-blend":[...K(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[se,ae]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,ae]}],filter:[{filter:["","none",se,ae]}],blur:[{blur:j()}],brightness:[{brightness:[Me,se,ae]}],contrast:[{contrast:[Me,se,ae]}],"drop-shadow":[{"drop-shadow":["","none",m,mh,ph]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",Me,se,ae]}],"hue-rotate":[{"hue-rotate":[Me,se,ae]}],invert:[{invert:["",Me,se,ae]}],saturate:[{saturate:[Me,se,ae]}],sepia:[{sepia:["",Me,se,ae]}],"backdrop-filter":[{"backdrop-filter":["","none",se,ae]}],"backdrop-blur":[{"backdrop-blur":j()}],"backdrop-brightness":[{"backdrop-brightness":[Me,se,ae]}],"backdrop-contrast":[{"backdrop-contrast":[Me,se,ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,se,ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,se,ae]}],"backdrop-invert":[{"backdrop-invert":["",Me,se,ae]}],"backdrop-opacity":[{"backdrop-opacity":[Me,se,ae]}],"backdrop-saturate":[{"backdrop-saturate":[Me,se,ae]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,se,ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",se,ae]}],ease:[{ease:["linear","initial",y,se,ae]}],delay:[{delay:[Me,se,ae]}],animate:[{animate:["none",w,se,ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,se,ae]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:$()}],"scale-x":[{"scale-x":$()}],"scale-y":[{"scale-y":$()}],"scale-z":[{"scale-z":$()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[se,ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ne()}],"translate-x":[{"translate-x":ne()}],"translate-y":[{"translate-y":ne()}],"translate-z":[{"translate-z":ne()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",se,ae]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",se,ae]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[Me,Rd,bi,_w]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},R3=(e,{cacheSize:t,prefix:o,experimentalParseClassName:r,extend:n={},override:a={}})=>(Ld(e,"cacheSize",t),Ld(e,"prefix",o),Ld(e,"experimentalParseClassName",r),hh(e.theme,a.theme),hh(e.classGroups,a.classGroups),hh(e.conflictingClassGroups,a.conflictingClassGroups),hh(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),Ld(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),gh(e.theme,n.theme),gh(e.classGroups,n.classGroups),gh(e.conflictingClassGroups,n.conflictingClassGroups),gh(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),FE(e,n,"orderSensitiveModifiers"),e),Ld=(e,t,o)=>{o!==void 0&&(e[t]=o)},hh=(e,t)=>{if(t)for(let o in t)Ld(e,o,t[o])},gh=(e,t)=>{if(t)for(let o in t)FE(e,t,o)},FE=(e,t,o)=>{let r=t[o];r!==void 0&&(e[o]=e[o]?e[o].concat(r):r)},BE=(e,...t)=>typeof e=="function"?CE(IE,e,...t):CE(()=>R3(IE(),e),...t);var L3=BE({});function W(...e){return L3(fh(e))}l();l();import*as Nt from"react";l();import*as HE from"react";function VE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ga(...e){return t=>{let o=!1,r=e.map(n=>{let a=VE(n,t);return!o&&typeof a=="function"&&(o=!0),a});if(o)return()=>{for(let n=0;n<r.length;n++){let a=r[n];typeof a=="function"?a():VE(e[n],null)}}}}function be(...e){return HE.useCallback(ga(...e),e)}import{Fragment as YTe,jsx as UE}from"react/jsx-runtime";var P3=Symbol.for("react.lazy"),xh=Nt[" use ".trim().toString()];function M3(e){return typeof e=="object"&&e!==null&&"then"in e}function zE(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===P3&&"_payload"in e&&M3(e._payload)}function Bw(e){let t=E3(e),o=Nt.forwardRef((r,n)=>{let{children:a,...s}=r;zE(a)&&typeof xh=="function"&&(a=xh(a._payload));let i=Nt.Children.toArray(a),u=i.find(D3);if(u){let c=u.props.children,d=i.map(f=>f===u?Nt.Children.count(c)>1?Nt.Children.only(null):Nt.isValidElement(c)?c.props.children:null:f);return UE(t,{...s,ref:n,children:Nt.isValidElement(c)?Nt.cloneElement(c,void 0,d):null})}return UE(t,{...s,ref:n,children:a})});return o.displayName=`${e}.Slot`,o}var yh=Bw("Slot");function E3(e){let t=Nt.forwardRef((o,r)=>{let{children:n,...a}=o;if(zE(n)&&typeof xh=="function"&&(n=xh(n._payload)),Nt.isValidElement(n)){let s=A3(n),i=k3(a,n.props);return n.type!==Nt.Fragment&&(i.ref=r?ga(r,s):s),Nt.cloneElement(n,i)}return Nt.Children.count(n)>1?Nt.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var T3=Symbol("radix.slottable");function D3(e){return Nt.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===T3}function k3(e,t){let o={...t};for(let r in t){let n=e[r],a=t[r];/^on[A-Z]/.test(r)?n&&a?o[r]=(...i)=>{let u=a(...i);return n(...i),u}:n&&(o[r]=n):r==="style"?o[r]={...n,...a}:r==="className"&&(o[r]=[n,a].filter(Boolean).join(" "))}return{...e,...o}}function A3(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}l();l();import{forwardRef as _3,createElement as F3}from"react";l();var qE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),O3=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,r)=>r?r.toUpperCase():o.toLowerCase()),Vw=e=>{let t=O3(e);return t.charAt(0).toUpperCase()+t.slice(1)},vh=(...e)=>e.filter((t,o,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===o).join(" ").trim(),WE=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};l();import{forwardRef as N3,createElement as $E}from"react";l();var GE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var jE=N3(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:n="",children:a,iconNode:s,...i},u)=>$E("svg",{ref:u,...GE,width:t,height:t,stroke:e,strokeWidth:r?Number(o)*24/Number(t):o,className:vh("lucide",n),...!a&&!WE(i)&&{"aria-hidden":"true"},...i},[...s.map(([c,d])=>$E(c,d)),...Array.isArray(a)?a:[a]]));var te=(e,t)=>{let o=_3(({className:r,...n},a)=>F3(jE,{ref:a,iconNode:t,className:vh(`lucide-${qE(Vw(e))}`,`lucide-${e}`,r),...n}));return o.displayName=Vw(e),o};l();var B3=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]],ls=te("arrow-down-wide-narrow",B3);l();var V3=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Pd=te("arrow-right",V3);l();var H3=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M17 10V4h-2",key:"zcsr5x"}],["path",{d:"M15 10h4",key:"id2lce"}],["rect",{x:"15",y:"14",width:"4",height:"6",ry:"2",key:"33xykx"}]],Md=te("arrow-up-1-0",H3);l();var U3=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]],Ed=te("arrow-up-wide-narrow",U3);l();var z3=[["path",{d:"M12 6v12",key:"1vza4d"}],["path",{d:"M17.196 9 6.804 15",key:"1ah31z"}],["path",{d:"m6.804 9 10.392 6",key:"1b6pxd"}]],Td=te("asterisk",z3);l();var q3=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],Dd=te("calculator",q3);l();var W3=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Cr=te("check",W3);l();var G3=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],_r=te("chevron-down",G3);l();var $3=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],kd=te("chevron-left",$3);l();var j3=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Sr=te("chevron-right",j3);l();var K3=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ad=te("chevron-up",K3);l();var Y3=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],Od=te("chevrons-left",Y3);l();var X3=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],Nd=te("chevrons-right",X3);l();var Q3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],_n=te("circle-alert",Q3);l();var Z3=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],us=te("circle-check-big",Z3);l();var J3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],on=te("circle-question-mark",J3);l();var e5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ii=te("circle",e5);l();var t5=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ri=te("copy",t5);l();var o5=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],_d=te("corner-down-left",o5);l();var r5=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],cs=te("funnel",r5);l();var n5=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],Fd=te("grip-vertical",n5);l();var a5=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],ru=te("key-round",a5);l();var s5=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],xa=te("key",s5);l();var i5=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],Bd=te("maximize",i5);l();var l5=[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]],Vd=te("minimize",l5);l();var u5=[["path",{d:"M5 12h14",key:"1ays0h"}]],Li=te("minus",u5);l();var c5=[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]],Hd=te("move-down",c5);l();var d5=[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]],Ud=te("move-up",d5);l();var f5=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],ds=te("panel-left-close",f5);l();var p5=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],fs=te("panel-left-open",p5);l();var m5=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],zd=te("pin-off",m5);l();var h5=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],qd=te("pin",h5);l();var g5=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Wd=te("refresh-cw",g5);l();var x5=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}]],ps=te("square-arrow-right",x5);l();var y5=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Gd=te("square",y5);l();var v5=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],$d=te("table-2",v5);l();var w5=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ms=te("triangle-alert",w5);l();var C5=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],hs=te("x",C5);var KE='data:image/svg+xml, <svg width="12" height="14" viewBox="0 0 12 14" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <path%0A fill-rule="evenodd"%0A clip-rule="evenodd"%0A d="M0.396923 8.8719C0.25789 9.09869 0.260041 9.38484 0.402469 9.60951L2.98037 13.6761C3.14768 13.94 3.47018 14.0603 3.76949 13.9705L11.2087 11.7388C11.6147 11.617 11.8189 11.1641 11.6415 10.7792L6.8592 0.405309C6.62598 -0.100601 5.92291 -0.142128 5.63176 0.332808L0.396923 8.8719ZM6.73214 2.77688C6.6305 2.54169 6.2863 2.57792 6.23585 2.82912L4.3947 11.9965C4.35588 12.1898 4.53686 12.3549 4.72578 12.2985L9.86568 10.7642C10.0157 10.7194 10.093 10.5537 10.0309 10.41L6.73214 2.77688Z"%0A fill="currentColor"%0A />%0A </svg>';l();l();import*as re from"react";import*as IC from"react-dom";l();function Hw(e,[t,o]){return Math.min(o,Math.max(t,e))}l();var iOe=!!(typeof window<"u"&&window.document&&window.document.createElement);function J(e,t,{checkForDefaultPrevented:o=!0}={}){return function(n){if(e?.(n),o===!1||!n.defaultPrevented)return t?.(n)}}l();import Pi from"react";l();import*as ya from"react";import{jsx as b5}from"react/jsx-runtime";function _t(e,t=[]){let o=[];function r(a,s){let i=ya.createContext(s),u=o.length;o=[...o,s];let c=f=>{let{scope:p,children:m,...x}=f,g=p?.[e]?.[u]||i,v=ya.useMemo(()=>x,Object.values(x));return b5(g.Provider,{value:v,children:m})};c.displayName=a+"Provider";function d(f,p){let m=p?.[e]?.[u]||i,x=ya.useContext(m);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[c,d]}let n=()=>{let a=o.map(s=>ya.createContext(s));return function(i){let u=i?.[e]||a;return ya.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return n.scopeName=e,[r,I5(n,...t)]}function I5(...e){let t=e[0];if(e.length===1)return t;let o=()=>{let r=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(a){let s=r.reduce((i,{useScope:u,scopeName:c})=>{let f=u(a)[`__scope${c}`];return{...i,...f}},{});return ya.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return o.scopeName=t.scopeName,o}l();import*as Qt from"react";import{Fragment as R5,jsx as Uw}from"react/jsx-runtime";function rn(e){let t=L5(e),o=Qt.forwardRef((r,n)=>{let{children:a,...s}=r,i=Qt.Children.toArray(a),u=i.find(P5);if(u){let c=u.props.children,d=i.map(f=>f===u?Qt.Children.count(c)>1?Qt.Children.only(null):Qt.isValidElement(c)?c.props.children:null:f);return Uw(t,{...s,ref:n,children:Qt.isValidElement(c)?Qt.cloneElement(c,void 0,d):null})}return Uw(t,{...s,ref:n,children:a})});return o.displayName=`${e}.Slot`,o}function L5(e){let t=Qt.forwardRef((o,r)=>{let{children:n,...a}=o;if(Qt.isValidElement(n)){let s=E5(n),i=M5(a,n.props);return n.type!==Qt.Fragment&&(i.ref=r?ga(r,s):s),Qt.cloneElement(n,i)}return Qt.Children.count(n)>1?Qt.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var YE=Symbol("radix.slottable");function XE(e){let t=({children:o})=>Uw(R5,{children:o});return t.displayName=`${e}.Slottable`,t.__radixId=YE,t}function P5(e){return Qt.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===YE}function M5(e,t){let o={...t};for(let r in t){let n=e[r],a=t[r];/^on[A-Z]/.test(r)?n&&a?o[r]=(...i)=>{let u=a(...i);return n(...i),u}:n&&(o[r]=n):r==="style"?o[r]={...n,...a}:r==="className"&&(o[r]=[n,a].filter(Boolean).join(" "))}return{...e,...o}}function E5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}import{jsx as zw}from"react/jsx-runtime";import bOe from"react";import{jsx as ROe}from"react/jsx-runtime";function nu(e){let t=e+"CollectionProvider",[o,r]=_t(t),[n,a]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{let{scope:v,children:y}=g,w=Pi.useRef(null),C=Pi.useRef(new Map).current;return zw(n,{scope:v,itemMap:C,collectionRef:w,children:y})};s.displayName=t;let i=e+"CollectionSlot",u=rn(i),c=Pi.forwardRef((g,v)=>{let{scope:y,children:w}=g,C=a(i,y),S=be(v,C.collectionRef);return zw(u,{ref:S,children:w})});c.displayName=i;let d=e+"CollectionItemSlot",f="data-radix-collection-item",p=rn(d),m=Pi.forwardRef((g,v)=>{let{scope:y,children:w,...C}=g,S=Pi.useRef(null),I=be(v,S),b=a(d,y);return Pi.useEffect(()=>(b.itemMap.set(S,{ref:S,...C}),()=>{b.itemMap.delete(S)})),zw(p,{[f]:"",ref:I,children:w})});m.displayName=d;function x(g){let v=a(e+"CollectionConsumer",g);return Pi.useCallback(()=>{let w=v.collectionRef.current;if(!w)return[];let C=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((b,L)=>C.indexOf(b.ref.current)-C.indexOf(L.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:c,ItemSlot:m},x,r]}l();import*as wh from"react";import{jsx as EOe}from"react/jsx-runtime";var T5=wh.createContext(void 0);function au(e){let t=wh.useContext(T5);return e||t||"ltr"}l();import*as gt from"react";l();import*as QE from"react";import*as ZE from"react-dom";import{jsx as D5}from"react/jsx-runtime";var k5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=k5.reduce((e,t)=>{let o=rn(`Primitive.${t}`),r=QE.forwardRef((n,a)=>{let{asChild:s,...i}=n,u=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D5(u,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ch(e,t){e&&ZE.flushSync(()=>e.dispatchEvent(t))}l();import*as su from"react";function Ft(e){let t=su.useRef(e);return su.useEffect(()=>{t.current=e}),su.useMemo(()=>(...o)=>t.current?.(...o),[])}l();import*as JE from"react";function eT(e,t=globalThis?.document){let o=Ft(e);JE.useEffect(()=>{let r=n=>{n.key==="Escape"&&o(n)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[o,t])}import{jsx as rT}from"react/jsx-runtime";var A5="DismissableLayer",qw="dismissableLayer.update",O5="dismissableLayer.pointerDownOutside",N5="dismissableLayer.focusOutside",tT,nT=gt.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),va=gt.forwardRef((e,t)=>{let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:n,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...u}=e,c=gt.useContext(nT),[d,f]=gt.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=gt.useState({}),x=be(t,L=>f(L)),g=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(v),w=d?g.indexOf(d):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,S=w>=y,I=B5(L=>{let R=L.target,E=[...c.branches].some(D=>D.contains(R));!S||E||(n?.(L),s?.(L),L.defaultPrevented||i?.())},p),b=V5(L=>{let R=L.target;[...c.branches].some(D=>D.contains(R))||(a?.(L),s?.(L),L.defaultPrevented||i?.())},p);return eT(L=>{w===c.layers.size-1&&(r?.(L),!L.defaultPrevented&&i&&(L.preventDefault(),i()))},p),gt.useEffect(()=>{if(d)return o&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(tT=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),oT(),()=>{o&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=tT)}},[d,p,o,c]),gt.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),oT())},[d,c]),gt.useEffect(()=>{let L=()=>m({});return document.addEventListener(qw,L),()=>document.removeEventListener(qw,L)},[]),rT(ge.div,{...u,ref:x,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,b.onFocusCapture),onBlurCapture:J(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,I.onPointerDownCapture)})});va.displayName=A5;var _5="DismissableLayerBranch",F5=gt.forwardRef((e,t)=>{let o=gt.useContext(nT),r=gt.useRef(null),n=be(t,r);return gt.useEffect(()=>{let a=r.current;if(a)return o.branches.add(a),()=>{o.branches.delete(a)}},[o.branches]),rT(ge.div,{...e,ref:n})});F5.displayName=_5;function B5(e,t=globalThis?.document){let o=Ft(e),r=gt.useRef(!1),n=gt.useRef(()=>{});return gt.useEffect(()=>{let a=i=>{if(i.target&&!r.current){let c=function(){aT(O5,o,d,{discrete:!0})};var u=c;let d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",n.current),n.current=c,t.addEventListener("click",n.current,{once:!0})):c()}else t.removeEventListener("click",n.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",n.current)}},[t,o]),{onPointerDownCapture:()=>r.current=!0}}function V5(e,t=globalThis?.document){let o=Ft(e),r=gt.useRef(!1);return gt.useEffect(()=>{let n=a=>{a.target&&!r.current&&aT(N5,o,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",n),()=>t.removeEventListener("focusin",n)},[t,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function oT(){let e=new CustomEvent(qw);document.dispatchEvent(e)}function aT(e,t,o,{discrete:r}){let n=o.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});t&&n.addEventListener(e,t,{once:!0}),r?Ch(n,a):n.dispatchEvent(a)}l();import*as iT from"react";var Ww=0;function iu(){iT.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??sT()),document.body.insertAdjacentElement("beforeend",e[1]??sT()),Ww++,()=>{Ww===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ww--}},[])}function sT(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}l();import*as Fr from"react";import{jsx as H5}from"react/jsx-runtime";var Gw="focusScope.autoFocusOnMount",$w="focusScope.autoFocusOnUnmount",lT={bubbles:!1,cancelable:!0},U5="FocusScope",Mi=Fr.forwardRef((e,t)=>{let{loop:o=!1,trapped:r=!1,onMountAutoFocus:n,onUnmountAutoFocus:a,...s}=e,[i,u]=Fr.useState(null),c=Ft(n),d=Ft(a),f=Fr.useRef(null),p=be(t,g=>u(g)),m=Fr.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Fr.useEffect(()=>{if(r){let w=function(b){if(m.paused||!i)return;let L=b.target;i.contains(L)?f.current=L:gs(f.current,{select:!0})},C=function(b){if(m.paused||!i)return;let L=b.relatedTarget;L!==null&&(i.contains(L)||gs(f.current,{select:!0}))},S=function(b){if(document.activeElement===document.body)for(let R of b)R.removedNodes.length>0&&gs(i)};var g=w,v=C,y=S;document.addEventListener("focusin",w),document.addEventListener("focusout",C);let I=new MutationObserver(S);return i&&I.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",C),I.disconnect()}}},[r,i,m.paused]),Fr.useEffect(()=>{if(i){cT.add(m);let g=document.activeElement;if(!i.contains(g)){let y=new CustomEvent(Gw,lT);i.addEventListener(Gw,c),i.dispatchEvent(y),y.defaultPrevented||(z5(j5(fT(i)),{select:!0}),document.activeElement===g&&gs(i))}return()=>{i.removeEventListener(Gw,c),setTimeout(()=>{let y=new CustomEvent($w,lT);i.addEventListener($w,d),i.dispatchEvent(y),y.defaultPrevented||gs(g??document.body,{select:!0}),i.removeEventListener($w,d),cT.remove(m)},0)}}},[i,c,d,m]);let x=Fr.useCallback(g=>{if(!o&&!r||m.paused)return;let v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(v&&y){let w=g.currentTarget,[C,S]=q5(w);C&&S?!g.shiftKey&&y===S?(g.preventDefault(),o&&gs(C,{select:!0})):g.shiftKey&&y===C&&(g.preventDefault(),o&&gs(S,{select:!0})):y===w&&g.preventDefault()}},[o,r,m.paused]);return H5(ge.div,{tabIndex:-1,...s,ref:p,onKeyDown:x})});Mi.displayName=U5;function z5(e,{select:t=!1}={}){let o=document.activeElement;for(let r of e)if(gs(r,{select:t}),document.activeElement!==o)return}function q5(e){let t=fT(e),o=uT(t,e),r=uT(t.reverse(),e);return[o,r]}function fT(e){let t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t}function uT(e,t){for(let o of e)if(!W5(o,{upTo:t}))return o}function W5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function G5(e){return e instanceof HTMLInputElement&&"select"in e}function gs(e,{select:t=!1}={}){if(e&&e.focus){let o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&G5(e)&&t&&e.select()}}var cT=$5();function $5(){let e=[];return{add(t){let o=e[0];t!==o&&o?.pause(),e=dT(e,t),e.unshift(t)},remove(t){e=dT(e,t),e[0]?.resume()}}}function dT(e,t){let o=[...e],r=o.indexOf(t);return r!==-1&&o.splice(r,1),o}function j5(e){return e.filter(t=>t.tagName!=="A")}l();import*as jw from"react";l();import*as pT from"react";var xt=globalThis?.document?pT.useLayoutEffect:()=>{};var K5=jw[" useId ".trim().toString()]||(()=>{}),Y5=0;function Lo(e){let[t,o]=jw.useState(K5());return xt(()=>{e||o(r=>r??String(Y5++))},[e]),e||(t?`radix-${t}`:"")}l();import*as ir from"react";l();l();l();l();var mT=["top","right","bottom","left"];var Fn=Math.min,Vo=Math.max,Kd=Math.round,Yd=Math.floor,nn=e=>({x:e,y:e}),X5={left:"right",right:"left",bottom:"top",top:"bottom"},Q5={start:"end",end:"start"};function bh(e,t,o){return Vo(e,Fn(t,o))}function Bn(e,t){return typeof e=="function"?e(t):e}function Vn(e){return e.split("-")[0]}function Ei(e){return e.split("-")[1]}function Ih(e){return e==="x"?"y":"x"}function Rh(e){return e==="y"?"height":"width"}function wa(e){return["top","bottom"].includes(Vn(e))?"y":"x"}function Lh(e){return Ih(wa(e))}function hT(e,t,o){o===void 0&&(o=!1);let r=Ei(e),n=Lh(e),a=Rh(n),s=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=jd(s)),[s,jd(s)]}function gT(e){let t=jd(e);return[Sh(e),t,Sh(t)]}function Sh(e){return e.replace(/start|end/g,t=>Q5[t])}function Z5(e,t,o){let r=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return o?t?n:r:t?r:n;case"left":case"right":return t?a:s;default:return[]}}function xT(e,t,o,r){let n=Ei(e),a=Z5(Vn(e),o==="start",r);return n&&(a=a.map(s=>s+"-"+n),t&&(a=a.concat(a.map(Sh)))),a}function jd(e){return e.replace(/left|right|bottom|top/g,t=>X5[t])}function J5(e){return{top:0,right:0,bottom:0,left:0,...e}}function Kw(e){return typeof e!="number"?J5(e):{top:e,right:e,bottom:e,left:e}}function Ti(e){let{x:t,y:o,width:r,height:n}=e;return{width:r,height:n,top:o,left:t,right:t+r,bottom:o+n,x:t,y:o}}function yT(e,t,o){let{reference:r,floating:n}=e,a=wa(t),s=Lh(t),i=Rh(s),u=Vn(t),c=a==="y",d=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,p=r[i]/2-n[i]/2,m;switch(u){case"top":m={x:d,y:r.y-n.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-n.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Ei(t)){case"start":m[s]-=p*(o&&c?-1:1);break;case"end":m[s]+=p*(o&&c?-1:1);break}return m}var CT=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,i=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:f}=yT(c,r,u),p=r,m={},x=0;for(let g=0;g<i.length;g++){let{name:v,fn:y}=i[g],{x:w,y:C,data:S,reset:I}=await y({x:d,y:f,initialPlacement:r,placement:p,strategy:n,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});d=w??d,f=C??f,m={...m,[v]:{...m[v],...S}},I&&x<=50&&(x++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(c=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):I.rects),{x:d,y:f}=yT(c,p,u)),g=-1)}return{x:d,y:f,placement:p,strategy:n,middlewareData:m}};async function lu(e,t){var o;t===void 0&&(t={});let{x:r,y:n,platform:a,rects:s,elements:i,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=Bn(t,e),x=Kw(m),v=i[p?f==="floating"?"reference":"floating":f],y=Ti(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(v)))==null||o?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:u})),w=f==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),S=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},I=Ti(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:C,strategy:u}):w);return{top:(y.top-I.top+x.top)/S.y,bottom:(I.bottom-y.bottom+x.bottom)/S.y,left:(y.left-I.left+x.left)/S.x,right:(I.right-y.right+x.right)/S.x}}var ST=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:r,placement:n,rects:a,platform:s,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=Bn(e,t)||{};if(c==null)return{};let f=Kw(d),p={x:o,y:r},m=Lh(n),x=Rh(m),g=await s.getDimensions(c),v=m==="y",y=v?"top":"left",w=v?"bottom":"right",C=v?"clientHeight":"clientWidth",S=a.reference[x]+a.reference[m]-p[m]-a.floating[x],I=p[m]-a.reference[m],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c)),L=b?b[C]:0;(!L||!await(s.isElement==null?void 0:s.isElement(b)))&&(L=i.floating[C]||a.floating[x]);let R=S/2-I/2,E=L/2-g[x]/2-1,D=Fn(f[y],E),O=Fn(f[w],E),V=D,B=L-g[x]-O,P=L/2-g[x]/2+R,_=bh(V,P,B),T=!u.arrow&&Ei(n)!=null&&P!==_&&a.reference[x]/2-(P<V?D:O)-g[x]/2<0,A=T?P<V?P-V:P-B:0;return{[m]:p[m]+A,data:{[m]:_,centerOffset:P-_-A,...T&&{alignmentOffset:A}},reset:T}}});var bT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;let{placement:n,middlewareData:a,rects:s,initialPlacement:i,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:g=!0,...v}=Bn(e,t);if((o=a.arrow)!=null&&o.alignmentOffset)return{};let y=Vn(n),w=wa(i),C=Vn(i)===i,S=await(u.isRTL==null?void 0:u.isRTL(c.floating)),I=p||(C||!g?[jd(i)]:gT(i)),b=x!=="none";!p&&b&&I.push(...xT(i,g,x,S));let L=[i,...I],R=await lu(t,v),E=[],D=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&E.push(R[y]),f){let P=hT(n,s,S);E.push(R[P[0]],R[P[1]])}if(D=[...D,{placement:n,overflows:E}],!E.every(P=>P<=0)){var O,V;let P=(((O=a.flip)==null?void 0:O.index)||0)+1,_=L[P];if(_)return{data:{index:P,overflows:D},reset:{placement:_}};let T=(V=D.filter(A=>A.overflows[0]<=0).sort((A,k)=>A.overflows[1]-k.overflows[1])[0])==null?void 0:V.placement;if(!T)switch(m){case"bestFit":{var B;let A=(B=D.filter(k=>{if(b){let M=wa(k.placement);return M===w||M==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(M=>M>0).reduce((M,F)=>M+F,0)]).sort((k,M)=>k[1]-M[1])[0])==null?void 0:B[0];A&&(T=A);break}case"initialPlacement":T=i;break}if(n!==T)return{reset:{placement:T}}}return{}}}};function vT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wT(e){return mT.some(t=>e[t]>=0)}var IT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:o}=t,{strategy:r="referenceHidden",...n}=Bn(e,t);switch(r){case"referenceHidden":{let a=await lu(t,{...n,elementContext:"reference"}),s=vT(a,o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:wT(s)}}}case"escaped":{let a=await lu(t,{...n,altBoundary:!0}),s=vT(a,o.floating);return{data:{escapedOffsets:s,escaped:wT(s)}}}default:return{}}}}};async function ej(e,t){let{placement:o,platform:r,elements:n}=e,a=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=Vn(o),i=Ei(o),u=wa(o)==="y",c=["left","top"].includes(s)?-1:1,d=a&&u?-1:1,f=Bn(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof x=="number"&&(m=i==="end"?x*-1:x),u?{x:m*d,y:p*c}:{x:p*c,y:m*d}}var RT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;let{x:n,y:a,placement:s,middlewareData:i}=t,u=await ej(t,e);return s===((o=i.offset)==null?void 0:o.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:n+u.x,y:a+u.y,data:{...u,placement:s}}}}},LT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:r,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:v=>{let{x:y,y:w}=v;return{x:y,y:w}}},...u}=Bn(e,t),c={x:o,y:r},d=await lu(t,u),f=wa(Vn(n)),p=Ih(f),m=c[p],x=c[f];if(a){let v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",w=m+d[v],C=m-d[y];m=bh(w,m,C)}if(s){let v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",w=x+d[v],C=x-d[y];x=bh(w,x,C)}let g=i.fn({...t,[p]:m,[f]:x});return{...g,data:{x:g.x-o,y:g.y-r,enabled:{[p]:a,[f]:s}}}}}},PT=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:o,y:r,placement:n,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:u=!0,crossAxis:c=!0}=Bn(e,t),d={x:o,y:r},f=wa(n),p=Ih(f),m=d[p],x=d[f],g=Bn(i,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){let C=p==="y"?"height":"width",S=a.reference[p]-a.floating[C]+v.mainAxis,I=a.reference[p]+a.reference[C]-v.mainAxis;m<S?m=S:m>I&&(m=I)}if(c){var y,w;let C=p==="y"?"width":"height",S=["top","left"].includes(Vn(n)),I=a.reference[f]-a.floating[C]+(S&&((y=s.offset)==null?void 0:y[f])||0)+(S?0:v.crossAxis),b=a.reference[f]+a.reference[C]+(S?0:((w=s.offset)==null?void 0:w[f])||0)-(S?v.crossAxis:0);x<I?x=I:x>b&&(x=b)}return{[p]:m,[f]:x}}}},MT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,r;let{placement:n,rects:a,platform:s,elements:i}=t,{apply:u=()=>{},...c}=Bn(e,t),d=await lu(t,c),f=Vn(n),p=Ei(n),m=wa(n)==="y",{width:x,height:g}=a.floating,v,y;f==="top"||f==="bottom"?(v=f,y=p===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=f,v=p==="end"?"top":"bottom");let w=g-d.top-d.bottom,C=x-d.left-d.right,S=Fn(g-d[v],w),I=Fn(x-d[y],C),b=!t.middlewareData.shift,L=S,R=I;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(R=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(L=w),b&&!p){let D=Vo(d.left,0),O=Vo(d.right,0),V=Vo(d.top,0),B=Vo(d.bottom,0);m?R=x-2*(D!==0||O!==0?D+O:Vo(d.left,d.right)):L=g-2*(V!==0||B!==0?V+B:Vo(d.top,d.bottom))}await u({...t,availableWidth:R,availableHeight:L});let E=await s.getDimensions(i.floating);return x!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};l();function Ph(){return typeof window<"u"}function ki(e){return TT(e)?(e.nodeName||"").toLowerCase():"#document"}function sr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function an(e){var t;return(t=(TT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function TT(e){return Ph()?e instanceof Node||e instanceof sr(e).Node:!1}function Br(e){return Ph()?e instanceof Element||e instanceof sr(e).Element:!1}function sn(e){return Ph()?e instanceof HTMLElement||e instanceof sr(e).HTMLElement:!1}function ET(e){return!Ph()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof sr(e).ShadowRoot}function uu(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=Vr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(n)}function DT(e){return["table","td","th"].includes(ki(e))}function Xd(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Mh(e){let t=Eh(),o=Br(e)?Vr(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>o[r]?o[r]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(o.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(o.contain||"").includes(r))}function kT(e){let t=Ca(e);for(;sn(t)&&!Ai(t);){if(Mh(t))return t;if(Xd(t))return null;t=Ca(t)}return null}function Eh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ai(e){return["html","body","#document"].includes(ki(e))}function Vr(e){return sr(e).getComputedStyle(e)}function Qd(e){return Br(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ca(e){if(ki(e)==="html")return e;let t=e.assignedSlot||e.parentNode||ET(e)&&e.host||an(e);return ET(t)?t.host:t}function AT(e){let t=Ca(e);return Ai(t)?e.ownerDocument?e.ownerDocument.body:e.body:sn(t)&&uu(t)?t:AT(t)}function Di(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=AT(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),s=sr(n);if(a){let i=Th(s);return t.concat(s,s.visualViewport||[],uu(n)?n:[],i&&o?Di(i):[])}return t.concat(n,Di(n,[],o))}function Th(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _T(e){let t=Vr(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=sn(e),a=n?e.offsetWidth:o,s=n?e.offsetHeight:r,i=Kd(o)!==a||Kd(r)!==s;return i&&(o=a,r=s),{width:o,height:r,$:i}}function Xw(e){return Br(e)?e:e.contextElement}function cu(e){let t=Xw(e);if(!sn(t))return nn(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:a}=_T(t),s=(a?Kd(o.width):o.width)/r,i=(a?Kd(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}var tj=nn(0);function FT(e){let t=sr(e);return!Eh()||!t.visualViewport?tj:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oj(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==sr(e)?!1:t}function Oi(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),a=Xw(e),s=nn(1);t&&(r?Br(r)&&(s=cu(r)):s=cu(e));let i=oj(a,o,r)?FT(a):nn(0),u=(n.left+i.x)/s.x,c=(n.top+i.y)/s.y,d=n.width/s.x,f=n.height/s.y;if(a){let p=sr(a),m=r&&Br(r)?sr(r):r,x=p,g=Th(x);for(;g&&r&&m!==x;){let v=cu(g),y=g.getBoundingClientRect(),w=Vr(g),C=y.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,S=y.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;u*=v.x,c*=v.y,d*=v.x,f*=v.y,u+=C,c+=S,x=sr(g),g=Th(x)}}return Ti({width:d,height:f,x:u,y:c})}function Qw(e,t){let o=Qd(e).scrollLeft;return t?t.left+o:Oi(an(e)).left+o}function BT(e,t,o){o===void 0&&(o=!1);let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-(o?0:Qw(e,r)),a=r.top+t.scrollTop;return{x:n,y:a}}function rj(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,a=n==="fixed",s=an(r),i=t?Xd(t.floating):!1;if(r===s||i&&a)return o;let u={scrollLeft:0,scrollTop:0},c=nn(1),d=nn(0),f=sn(r);if((f||!f&&!a)&&((ki(r)!=="body"||uu(s))&&(u=Qd(r)),sn(r))){let m=Oi(r);c=cu(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}let p=s&&!f&&!a?BT(s,u,!0):nn(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-u.scrollLeft*c.x+d.x+p.x,y:o.y*c.y-u.scrollTop*c.y+d.y+p.y}}function nj(e){return Array.from(e.getClientRects())}function aj(e){let t=an(e),o=Qd(e),r=e.ownerDocument.body,n=Vo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Vo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-o.scrollLeft+Qw(e),i=-o.scrollTop;return Vr(r).direction==="rtl"&&(s+=Vo(t.clientWidth,r.clientWidth)-n),{width:n,height:a,x:s,y:i}}function sj(e,t){let o=sr(e),r=an(e),n=o.visualViewport,a=r.clientWidth,s=r.clientHeight,i=0,u=0;if(n){a=n.width,s=n.height;let c=Eh();(!c||c&&t==="fixed")&&(i=n.offsetLeft,u=n.offsetTop)}return{width:a,height:s,x:i,y:u}}function ij(e,t){let o=Oi(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,a=sn(e)?cu(e):nn(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,u=n*a.x,c=r*a.y;return{width:s,height:i,x:u,y:c}}function OT(e,t,o){let r;if(t==="viewport")r=sj(e,o);else if(t==="document")r=aj(an(e));else if(Br(t))r=ij(t,o);else{let n=FT(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ti(r)}function VT(e,t){let o=Ca(e);return o===t||!Br(o)||Ai(o)?!1:Vr(o).position==="fixed"||VT(o,t)}function lj(e,t){let o=t.get(e);if(o)return o;let r=Di(e,[],!1).filter(i=>Br(i)&&ki(i)!=="body"),n=null,a=Vr(e).position==="fixed",s=a?Ca(e):e;for(;Br(s)&&!Ai(s);){let i=Vr(s),u=Mh(s);!u&&i.position==="fixed"&&(n=null),(a?!u&&!n:!u&&i.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||uu(s)&&!u&&VT(e,s))?r=r.filter(d=>d!==s):n=i,s=Ca(s)}return t.set(e,r),r}function uj(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,s=[...o==="clippingAncestors"?Xd(t)?[]:lj(t,this._c):[].concat(o),r],i=s[0],u=s.reduce((c,d)=>{let f=OT(t,d,n);return c.top=Vo(f.top,c.top),c.right=Fn(f.right,c.right),c.bottom=Fn(f.bottom,c.bottom),c.left=Vo(f.left,c.left),c},OT(t,i,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function cj(e){let{width:t,height:o}=_T(e);return{width:t,height:o}}function dj(e,t,o){let r=sn(t),n=an(t),a=o==="fixed",s=Oi(e,!0,a,t),i={scrollLeft:0,scrollTop:0},u=nn(0);if(r||!r&&!a)if((ki(t)!=="body"||uu(n))&&(i=Qd(t)),r){let p=Oi(t,!0,a,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else n&&(u.x=Qw(n));let c=n&&!r&&!a?BT(n,i):nn(0),d=s.left+i.scrollLeft-u.x-c.x,f=s.top+i.scrollTop-u.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function Yw(e){return Vr(e).position==="static"}function NT(e,t){if(!sn(e)||Vr(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return an(e)===o&&(o=o.ownerDocument.body),o}function HT(e,t){let o=sr(e);if(Xd(e))return o;if(!sn(e)){let n=Ca(e);for(;n&&!Ai(n);){if(Br(n)&&!Yw(n))return n;n=Ca(n)}return o}let r=NT(e,t);for(;r&&DT(r)&&Yw(r);)r=NT(r,t);return r&&Ai(r)&&Yw(r)&&!Mh(r)?o:r||kT(e)||o}var fj=async function(e){let t=this.getOffsetParent||HT,o=this.getDimensions,r=await o(e.floating);return{reference:dj(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function pj(e){return Vr(e).direction==="rtl"}var UT={convertOffsetParentRelativeRectToViewportRelativeRect:rj,getDocumentElement:an,getClippingRect:uj,getOffsetParent:HT,getElementRects:fj,getClientRects:nj,getDimensions:cj,getScale:cu,isElement:Br,isRTL:pj};function zT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mj(e,t){let o=null,r,n=an(e);function a(){var i;clearTimeout(r),(i=o)==null||i.disconnect(),o=null}function s(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),a();let c=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=c;if(i||t(),!p||!m)return;let x=Yd(f),g=Yd(n.clientWidth-(d+p)),v=Yd(n.clientHeight-(f+m)),y=Yd(d),C={rootMargin:-x+"px "+-g+"px "+-v+"px "+-y+"px",threshold:Vo(0,Fn(1,u))||1},S=!0;function I(b){let L=b[0].intersectionRatio;if(L!==u){if(!S)return s();L?s(!1,L):r=setTimeout(()=>{s(!1,1e-7)},1e3)}L===1&&!zT(c,e.getBoundingClientRect())&&s(),S=!1}try{o=new IntersectionObserver(I,{...C,root:n.ownerDocument})}catch{o=new IntersectionObserver(I,C)}o.observe(e)}return s(!0),a}function Zw(e,t,o,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=Xw(e),d=n||a?[...c?Di(c):[],...Di(t)]:[];d.forEach(y=>{n&&y.addEventListener("scroll",o,{passive:!0}),a&&y.addEventListener("resize",o)});let f=c&&i?mj(c,o):null,p=-1,m=null;s&&(m=new ResizeObserver(y=>{let[w]=y;w&&w.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),o()}),c&&!u&&m.observe(c),m.observe(t));let x,g=u?Oi(e):null;u&&v();function v(){let y=Oi(e);g&&!zT(g,y)&&o(),g=y,x=requestAnimationFrame(v)}return o(),()=>{var y;d.forEach(w=>{n&&w.removeEventListener("scroll",o),a&&w.removeEventListener("resize",o)}),f?.(),(y=m)==null||y.disconnect(),m=null,u&&cancelAnimationFrame(x)}}var qT=RT;var WT=LT,GT=bT,$T=MT,jT=IT,Jw=ST;var KT=PT,eC=(e,t,o)=>{let r=new Map,n={platform:UT,...o},a={...n.platform,_c:r};return CT(e,t,{...n,platform:a})};import*as Bt from"react";import{useLayoutEffect as hj,useEffect as gj}from"react";import*as XT from"react-dom";var Dh=typeof document<"u"?hj:gj;function kh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,r,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(r=o;r--!==0;)if(!kh(e[r],t[r]))return!1;return!0}if(n=Object.keys(e),o=n.length,o!==Object.keys(t).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(t,n[r]))return!1;for(r=o;r--!==0;){let a=n[r];if(!(a==="_owner"&&e.$$typeof)&&!kh(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function QT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function YT(e,t){let o=QT(e);return Math.round(t*o)/o}function tC(e){let t=Bt.useRef(e);return Dh(()=>{t.current=e}),t}function ZT(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:r=[],platform:n,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:u,open:c}=e,[d,f]=Bt.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=Bt.useState(r);kh(p,r)||m(r);let[x,g]=Bt.useState(null),[v,y]=Bt.useState(null),w=Bt.useCallback(k=>{k!==b.current&&(b.current=k,g(k))},[]),C=Bt.useCallback(k=>{k!==L.current&&(L.current=k,y(k))},[]),S=a||x,I=s||v,b=Bt.useRef(null),L=Bt.useRef(null),R=Bt.useRef(d),E=u!=null,D=tC(u),O=tC(n),V=tC(c),B=Bt.useCallback(()=>{if(!b.current||!L.current)return;let k={placement:t,strategy:o,middleware:p};O.current&&(k.platform=O.current),eC(b.current,L.current,k).then(M=>{let F={...M,isPositioned:V.current!==!1};P.current&&!kh(R.current,F)&&(R.current=F,XT.flushSync(()=>{f(F)}))})},[p,t,o,O,V]);Dh(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(k=>({...k,isPositioned:!1})))},[c]);let P=Bt.useRef(!1);Dh(()=>(P.current=!0,()=>{P.current=!1}),[]),Dh(()=>{if(S&&(b.current=S),I&&(L.current=I),S&&I){if(D.current)return D.current(S,I,B);B()}},[S,I,B,D,E]);let _=Bt.useMemo(()=>({reference:b,floating:L,setReference:w,setFloating:C}),[w,C]),T=Bt.useMemo(()=>({reference:S,floating:I}),[S,I]),A=Bt.useMemo(()=>{let k={position:o,left:0,top:0};if(!T.floating)return k;let M=YT(T.floating,d.x),F=YT(T.floating,d.y);return i?{...k,transform:"translate("+M+"px, "+F+"px)",...QT(T.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:M,top:F}},[o,i,T.floating,d.x,d.y]);return Bt.useMemo(()=>({...d,update:B,refs:_,elements:T,floatingStyles:A}),[d,B,_,T,A])}var xj=e=>{function t(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){let{element:r,padding:n}=typeof e=="function"?e(o):e;return r&&t(r)?r.current!=null?Jw({element:r.current,padding:n}).fn(o):{}:r?Jw({element:r,padding:n}).fn(o):{}}}},JT=(e,t)=>({...qT(e),options:[e,t]}),eD=(e,t)=>({...WT(e),options:[e,t]}),tD=(e,t)=>({...KT(e),options:[e,t]}),oD=(e,t)=>({...GT(e),options:[e,t]}),rD=(e,t)=>({...$T(e),options:[e,t]});var nD=(e,t)=>({...jT(e),options:[e,t]});var aD=(e,t)=>({...xj(e),options:[e,t]});l();import*as iD from"react";import{jsx as sD}from"react/jsx-runtime";var yj="Arrow",lD=iD.forwardRef((e,t)=>{let{children:o,width:r=10,height:n=5,...a}=e;return sD(ge.svg,{...a,ref:t,width:r,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:sD("polygon",{points:"0,0 30,0 15,10"})})});lD.displayName=yj;var uD=lD;l();import*as cD from"react";function Ah(e){let[t,o]=cD.useState(void 0);return xt(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;let a=n[0],s,i;if("borderBoxSize"in a){let u=a.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;o({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else o(void 0)},[e]),t}import{jsx as Ni}from"react/jsx-runtime";var oC="Popper",[dD,Hr]=_t(oC),[wj,fD]=dD(oC),pD=e=>{let{__scopePopper:t,children:o}=e,[r,n]=ir.useState(null);return Ni(wj,{scope:t,anchor:r,onAnchorChange:n,children:o})};pD.displayName=oC;var mD="PopperAnchor",hD=ir.forwardRef((e,t)=>{let{__scopePopper:o,virtualRef:r,...n}=e,a=fD(mD,o),s=ir.useRef(null),i=be(t,s),u=ir.useRef(null);return ir.useEffect(()=>{let c=u.current;u.current=r?.current||s.current,c!==u.current&&a.onAnchorChange(u.current)}),r?null:Ni(ge.div,{...n,ref:i})});hD.displayName=mD;var rC="PopperContent",[Cj,Sj]=dD(rC),gD=ir.forwardRef((e,t)=>{let{__scopePopper:o,side:r="bottom",sideOffset:n=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:x,...g}=e,v=fD(rC,o),[y,w]=ir.useState(null),C=be(t,z=>w(z)),[S,I]=ir.useState(null),b=Ah(S),L=b?.width??0,R=b?.height??0,E=r+(a!=="center"?"-"+a:""),D=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},O=Array.isArray(c)?c:[c],V=O.length>0,B={padding:D,boundary:O.filter(Ij),altBoundary:V},{refs:P,floatingStyles:_,placement:T,isPositioned:A,middlewareData:k}=ZT({strategy:"fixed",placement:E,whileElementsMounted:(...z)=>Zw(...z,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[JT({mainAxis:n+R,alignmentAxis:s}),u&&eD({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?tD():void 0,...B}),u&&oD({...B}),rD({...B,apply:({elements:z,rects:j,availableWidth:Z,availableHeight:$})=>{let{width:ue,height:ne}=j.reference,Pe=z.floating.style;Pe.setProperty("--radix-popper-available-width",`${Z}px`),Pe.setProperty("--radix-popper-available-height",`${$}px`),Pe.setProperty("--radix-popper-anchor-width",`${ue}px`),Pe.setProperty("--radix-popper-anchor-height",`${ne}px`)}}),S&&aD({element:S,padding:i}),Rj({arrowWidth:L,arrowHeight:R}),p&&nD({strategy:"referenceHidden",...B})]}),[M,F]=vD(T),U=Ft(x);xt(()=>{A&&U?.()},[A,U]);let q=k.arrow?.x,N=k.arrow?.y,H=k.arrow?.centerOffset!==0,[G,K]=ir.useState();return xt(()=>{y&&K(window.getComputedStyle(y).zIndex)},[y]),Ni("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:A?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:G,"--radix-popper-transform-origin":[k.transformOrigin?.x,k.transformOrigin?.y].join(" "),...k.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Ni(Cj,{scope:o,placedSide:M,onArrowChange:I,arrowX:q,arrowY:N,shouldHideArrow:H,children:Ni(ge.div,{"data-side":M,"data-align":F,...g,ref:C,style:{...g.style,animation:A?void 0:"none"}})})})});gD.displayName=rC;var xD="PopperArrow",bj={top:"bottom",right:"left",bottom:"top",left:"right"},yD=ir.forwardRef(function(t,o){let{__scopePopper:r,...n}=t,a=Sj(xD,r),s=bj[a.placedSide];return Ni("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:Ni(uD,{...n,ref:o,style:{...n.style,display:"block"}})})});yD.displayName=xD;function Ij(e){return e!==null}var Rj=e=>({name:"transformOrigin",options:e,fn(t){let{placement:o,rects:r,middlewareData:n}=t,s=n.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[c,d]=vD(o),f={start:"0%",center:"50%",end:"100%"}[d],p=(n.arrow?.x??0)+i/2,m=(n.arrow?.y??0)+u/2,x="",g="";return c==="bottom"?(x=s?f:`${p}px`,g=`${-u}px`):c==="top"?(x=s?f:`${p}px`,g=`${r.floating.height+u}px`):c==="right"?(x=`${-u}px`,g=s?f:`${m}px`):c==="left"&&(x=`${r.floating.width+u}px`,g=s?f:`${m}px`),{data:{x,y:g}}}});function vD(e){let[t,o="center"]=e.split("-");return[t,o]}var Sa=pD,ba=hD,xs=gD,ys=yD;l();import*as Nh from"react";import Lj from"react-dom";import{jsx as Pj}from"react/jsx-runtime";var Mj="Portal",Ia=Nh.forwardRef((e,t)=>{let{container:o,...r}=e,[n,a]=Nh.useState(!1);xt(()=>a(!0),[]);let s=o||n&&globalThis?.document?.body;return s?Lj.createPortal(Pj(ge.div,{...r,ref:t}),s):null});Ia.displayName=Mj;l();import*as Ur from"react";import*as _h from"react";var Ej=Ur[" useInsertionEffect ".trim().toString()]||xt;function Ho({prop:e,defaultProp:t,onChange:o=()=>{},caller:r}){let[n,a,s]=Tj({defaultProp:t,onChange:o}),i=e!==void 0,u=i?e:n;{let d=Ur.useRef(e!==void 0);Ur.useEffect(()=>{let f=d.current;f!==i&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,r])}let c=Ur.useCallback(d=>{if(i){let f=Dj(d)?d(e):d;f!==e&&s.current?.(f)}else a(d)},[i,e,a,s]);return[u,c]}function Tj({defaultProp:e,onChange:t}){let[o,r]=Ur.useState(e),n=Ur.useRef(o),a=Ur.useRef(t);return Ej(()=>{a.current=t},[t]),Ur.useEffect(()=>{n.current!==o&&(a.current?.(o),n.current=o)},[o,n]),[o,r,a]}function Dj(e){return typeof e=="function"}l();import*as Fh from"react";function Bh(e){let t=Fh.useRef({value:e,previous:e});return Fh.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}l();import*as wD from"react";import{jsx as kj}from"react/jsx-runtime";var nC=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Aj="VisuallyHidden",CD=wD.forwardRef((e,t)=>kj(ge.span,{...e,ref:t,style:{...nC,...e.style}}));CD.displayName=Aj;var SD=CD;l();var Nj=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},du=new WeakMap,Vh=new WeakMap,Hh={},aC=0,bD=function(e){return e&&(e.host||bD(e.parentNode))},_j=function(e,t){return t.map(function(o){if(e.contains(o))return o;var r=bD(o);return r&&e.contains(r)?r:(console.error("aria-hidden",o,"in not contained inside",e,". Doing nothing"),null)}).filter(function(o){return!!o})},Fj=function(e,t,o,r){var n=_j(t,Array.isArray(e)?e:[e]);Hh[o]||(Hh[o]=new WeakMap);var a=Hh[o],s=[],i=new Set,u=new Set(n),c=function(f){!f||i.has(f)||(i.add(f),c(f.parentNode))};n.forEach(c);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(p){if(i.has(p))d(p);else try{var m=p.getAttribute(r),x=m!==null&&m!=="false",g=(du.get(p)||0)+1,v=(a.get(p)||0)+1;du.set(p,g),a.set(p,v),s.push(p),g===1&&x&&Vh.set(p,!0),v===1&&p.setAttribute(o,"true"),x||p.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return d(t),i.clear(),aC++,function(){s.forEach(function(f){var p=du.get(f)-1,m=a.get(f)-1;du.set(f,p),a.set(f,m),p||(Vh.has(f)||f.removeAttribute(r),Vh.delete(f)),m||f.removeAttribute(o)}),aC--,aC||(du=new WeakMap,du=new WeakMap,Vh=new WeakMap,Hh={})}},fu=function(e,t,o){o===void 0&&(o="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),n=t||Nj(e);return n?(r.push.apply(r,Array.from(n.querySelectorAll("[aria-live]"))),Fj(r,n,o,"aria-hidden")):function(){return null}};l();l();l();var lr=function(){return lr=Object.assign||function(t){for(var o,r=1,n=arguments.length;r<n;r++){o=arguments[r];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a])}return t},lr.apply(this,arguments)};function Uh(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]]);return o}function ID(e,t,o){if(o||arguments.length===2)for(var r=0,n=t.length,a;r<n;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}import*as $h from"react";l();import*as Po from"react";l();var _i="right-scroll-bar-position",Fi="width-before-scroll-bar",sC="with-scroll-bars-hidden",iC="--removed-body-scroll-bar-size";l();l();function zh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}l();import{useState as Bj}from"react";function RD(e,t){var o=Bj(function(){return{value:e,callback:t,facade:{get current(){return o.value},set current(r){var n=o.value;n!==r&&(o.value=r,o.callback(r,n))}}}})[0];return o.callback=t,o.facade}l();import*as qh from"react";var Vj=typeof window<"u"?qh.useLayoutEffect:qh.useEffect,LD=new WeakMap;function lC(e,t){var o=RD(t||null,function(r){return e.forEach(function(n){return zh(n,r)})});return Vj(function(){var r=LD.get(o);if(r){var n=new Set(r),a=new Set(e),s=o.current;n.forEach(function(i){a.has(i)||zh(i,null)}),a.forEach(function(i){n.has(i)||zh(i,s)})}LD.set(o,e)},[e]),o}l();l();l();function Hj(e){return e}function Uj(e,t){t===void 0&&(t=Hj);var o=[],r=!1,n={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:e},useMedium:function(a){var s=t(a,r);return o.push(s),function(){o=o.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;o.length;){var s=o;o=[],s.forEach(a)}o={push:function(i){return a(i)},filter:function(){return o}}},assignMedium:function(a){r=!0;var s=[];if(o.length){var i=o;o=[],i.forEach(a),s=o}var u=function(){var d=s;s=[],d.forEach(a)},c=function(){return Promise.resolve().then(u)};c(),o={push:function(d){s.push(d),c()},filter:function(d){return s=s.filter(d),o}}}};return n}function uC(e){e===void 0&&(e={});var t=Uj(null);return t.options=lr({async:!0,ssr:!1},e),t}l();import*as PD from"react";var MD=function(e){var t=e.sideCar,o=Uh(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return PD.createElement(r,lr({},o))};MD.isSideCarExport=!0;function cC(e,t){return e.useMedium(t),MD}var Wh=uC();var dC=function(){},Zd=Po.forwardRef(function(e,t){var o=Po.useRef(null),r=Po.useState({onScrollCapture:dC,onWheelCapture:dC,onTouchMoveCapture:dC}),n=r[0],a=r[1],s=e.forwardProps,i=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,x=e.inert,g=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,w=e.gapMode,C=Uh(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,I=lC([o,t]),b=lr(lr({},C),n);return Po.createElement(Po.Fragment,null,d&&Po.createElement(S,{sideCar:Wh,removeScrollBar:c,shards:f,noIsolation:m,inert:x,setCallbacks:a,allowPinchZoom:!!g,lockRef:o,gapMode:w}),s?Po.cloneElement(Po.Children.only(i),lr(lr({},b),{ref:I})):Po.createElement(y,lr({},b,{className:u,ref:I}),i))});Zd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Zd.classNames={fullWidth:Fi,zeroRight:_i};l();l();import*as st from"react";l();l();import*as mu from"react";l();l();l();import*as DD from"react";l();l();var ED;var TD=function(){if(ED)return ED;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zj(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=TD();return t&&e.setAttribute("nonce",t),e}function qj(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Wj(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var fC=function(){var e=0,t=null;return{add:function(o){e==0&&(t=zj())&&(qj(t,o),Wj(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var pC=function(){var e=fC();return function(t,o){DD.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])}};var Jd=function(){var e=pC(),t=function(o){var r=o.styles,n=o.dynamic;return e(r,n),null};return t};l();var Gj={left:0,top:0,right:0,gap:0},mC=function(e){return parseInt(e||"",10)||0},$j=function(e){var t=window.getComputedStyle(document.body),o=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],n=t[e==="padding"?"paddingRight":"marginRight"];return[mC(o),mC(r),mC(n)]},hC=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Gj;var t=$j(e),o=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-o+t[2]-t[0])}};var jj=Jd(),pu="data-scroll-locked",Kj=function(e,t,o,r){var n=e.left,a=e.top,s=e.right,i=e.gap;return o===void 0&&(o="margin"),`
|
|
19
19
|
.`.concat(sC,` {
|
|
20
20
|
overflow: hidden `).concat(r,`;
|
|
21
21
|
padding-right: `).concat(i,"px ").concat(r,`;
|