@prisma/studio-core 0.11.1 → 0.11.2
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/data/sqlite-core/index.cjs +2 -2
- package/dist/data/sqlite-core/index.d.cts +1 -1
- package/dist/data/sqlite-core/index.d.ts +1 -1
- package/dist/data/sqlite-core/index.js +2 -2
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- 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 al,a as X0,b as wn,d as sc,e as rp,f as Bi,g as Vi}from"../chunk-R7U
|
|
|
15
15
|
top: ${c}px !important;
|
|
16
16
|
}
|
|
17
17
|
`),()=>{document.head.removeChild(m)}},[t]),gU(Dy,{isPresent:t,childRef:n,sizeRef:a,children:np.cloneElement(e,{ref:n})})}var oI=({children:e,initial:t,isPresent:o,onExitComplete:r,custom:n,presenceAffectsLayout:a,mode:i,anchorX:s})=>{let u=Na(CU),c=wU(),d=!0,f=eI(()=>(d=!1,{id:c,initial:t,isPresent:o,custom:n,onExitComplete:p=>{u.set(p,!0);for(let m of u.values())if(!m)return;r&&r()},register:p=>(u.set(p,!1),()=>u.delete(p))}),[o,u,r]);return a&&d&&(f={...f}),eI(()=>{u.forEach((p,m)=>u.set(m,!1))},[o]),tI.useEffect(()=>{!o&&!u.size&&r&&r()},[o]),i==="popLayout"&&(e=J0(Z0,{isPresent:o,anchorX:s,children:e})),J0(ea.Provider,{value:f,children:e})};function CU(){return new Map}l();import{useContext as rI,useId as SU,useEffect as bU,useCallback as IU}from"react";function lc(e=!0){let t=rI(ea);if(t===null)return[!0,null];let{isPresent:o,onExitComplete:r,register:n}=t,a=SU();bU(()=>{if(e)return n(a)},[e]);let i=IU(()=>e&&r&&r(a),[a,r,e]);return!o&&r?[!1,i]:[!0]}function uc(){return RU(rI(ea))}function RU(e){return e===null?!0:e.isPresent}l();import{Children as LU,isValidElement as PU}from"react";var cc=e=>e.key||"";function Ay(e){let t=[];return LU.forEach(e,o=>{PU(o)&&t.push(o)}),t}var Qr=({children:e,custom:t,initial:o=!0,onExitComplete:r,presenceAffectsLayout:n=!0,mode:a="sync",propagate:i=!1,anchorX:s="left"})=>{let[u,c]=lc(i),d=EU(()=>Ay(e),[e]),f=i&&!u?[]:d.map(cc),p=aI(!0),m=aI(d),x=Na(()=>new Map),[g,v]=iI(d),[y,w]=iI(d);sl(()=>{p.current=!1,m.current=d;for(let b=0;b<y.length;b++){let I=cc(y[b]);f.includes(I)?x.delete(I):x.get(I)!==!0&&x.set(I,!1)}},[y,f.length,f.join("-")]);let C=[];if(d!==g){let b=[...d];for(let I=0;I<y.length;I++){let R=y[I],P=cc(R);f.includes(P)||(b.splice(I,0,R),C.push(R))}return a==="wait"&&C.length&&(b=C),w(Ay(b)),v(d),null}a==="wait"&&y.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:S}=TU(Jn);return nI(MU,{children:y.map(b=>{let I=cc(b),R=i&&!u?!1:d===y||f.includes(I),P=()=>{if(x.has(I))x.set(I,!0);else return;let E=!0;x.forEach(D=>{D||(E=!1)}),E&&(S?.(),w(m.current),i&&c?.(),r&&r())};return nI(oI,{isPresent:R,initial:!p.current||o?void 0:!1,custom:t,presenceAffectsLayout:n,mode:a,onExitComplete:R?void 0:P,anchorX:s,children:b},I)})})};l();import{jsx as _U}from"react/jsx-runtime";import{useContext as fI,useRef as FU,useMemo as BU}from"react";l();import{createContext as DU}from"react";var sI=DU(null);l();import{useState as OU,useCallback as cI}from"react";l();import{useRef as AU}from"react";function lI(){let e=AU(!1);return sl(()=>(e.current=!0,()=>{e.current=!1}),[]),e}l();l();l();var dc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];l();l();var yr={value:null,addProjectionMetrics:null};function uI(e,t){let o=new Set,r=new Set,n=!1,a=!1,i=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},u=0;function c(f){i.has(f)&&(d.schedule(f),e()),u++,f(s)}let d={schedule:(f,p=!1,m=!1)=>{let g=m&&n?o:r;return p&&i.add(f),g.has(f)||g.add(f),f},cancel:f=>{r.delete(f),i.delete(f)},process:f=>{if(s=f,n){a=!0;return}n=!0,[o,r]=[r,o],o.forEach(c),t&&yr.value&&yr.value.frameloop[t].push(u),u=0,o.clear(),n=!1,a&&(a=!1,d.process(f))}};return d}l();var Ho={};var kU=40;function ap(e,t){let o=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},a=()=>o=!0,i=dc.reduce((C,S)=>(C[S]=uI(a,t?S:void 0),C),{}),{setup:s,read:u,resolveKeyframes:c,preUpdate:d,update:f,preRender:p,render:m,postRender:x}=i,g=()=>{let C=Ho.useManualTiming?n.timestamp:performance.now();o=!1,Ho.useManualTiming||(n.delta=r?1e3/60:Math.max(Math.min(C-n.timestamp,kU),1)),n.timestamp=C,n.isProcessing=!0,s.process(n),u.process(n),c.process(n),d.process(n),f.process(n),p.process(n),m.process(n),x.process(n),n.isProcessing=!1,o&&t&&(r=!1,e(g))},v=()=>{o=!0,r=!0,n.isProcessing||e(g)};return{schedule:dc.reduce((C,S)=>{let b=i[S];return C[S]=(I,R=!1,P=!1)=>(o||v(),b.schedule(I,R,P)),C},{}),cancel:C=>{for(let S=0;S<dc.length;S++)i[dc[S]].cancel(C)},state:n,steps:i}}l();var It=e=>e;var{schedule:be,cancel:vr,state:Tt,steps:ip}=ap(typeof requestAnimationFrame<"u"?requestAnimationFrame:It,!0);function dI(){let e=lI(),[t,o]=OU(0),r=cI(()=>{e.current&&o(t+1)},[t]);return[cI(()=>be.postRender(r),[r]),t]}l();var NU=e=>!e.isLayoutDirty&&e.willUpdate(!1);function ky(){let e=new Set,t=new WeakMap,o=()=>e.forEach(NU);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",o))},remove:r=>{e.delete(r);let n=t.get(r);n&&(n(),t.delete(r)),o()},dirty:o}}var pI=e=>e===!0,VU=e=>pI(e===!0)||e==="id",Oy=({children:e,id:t,inherit:o=!0})=>{let r=fI(Jn),n=fI(sI),[a,i]=dI(),s=FU(null),u=r.id||n;s.current===null&&(VU(o)&&u&&(t=t?u+"-"+t:u),s.current={id:t,group:pI(o)?r.group||ky():ky()});let c=BU(()=>({...s.current,forceRender:a}),[i]);return _U(Jn.Provider,{value:c,children:e})};l();import{createContext as HU}from"react";var sp=HU({strict:!1});l();l();var mI={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"]},ta={};for(let e in mI)ta[e]={isEnabled:t=>mI[e].some(o=>!!t[o])};function hI(e){for(let t in e)ta[t]={...ta[t],...e[t]}}l();import{jsx as zU}from"react/jsx-runtime";import{useContext as qU,useMemo as WU}from"react";l();l();var UU=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 fc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||UU.has(e)}var gI=e=>!fc(e);function Ny(e){e&&(gI=t=>t.startsWith("on")?!fc(t):e(t))}try{Ny(Ey("@emotion/is-prop-valid").default)}catch{}function xI(e,t,o){let r={};for(let n in e)n==="values"&&typeof e.values=="object"||(gI(n)||o===!0&&fc(n)||!t&&!fc(n)||e.draggable&&n.startsWith("onDrag"))&&(r[n]=e[n]);return r}function _y({children:e,isValidProp:t,...o}){t&&Ny(t),o={...qU(er),...o},o.isStatic=Na(()=>o.isStatic);let r=WU(()=>o,[JSON.stringify(o.transition),o.transformPagePoint,o.reducedMotion]);return zU(er.Provider,{value:r,children:e})}l();l();var yI=new Set;function ll(e,t,o){e||yI.has(t)||(console.warn(t),o&&console.warn(o),yI.add(t))}function vI(e){if(typeof Proxy>"u")return e;let t=new Map,o=(...r)=>(ll(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(o,{get:(r,n)=>n==="create"?e:(t.has(n)||t.set(n,e(n)),t.get(n))})}l();l();import{jsxs as ez,jsx as tz}from"react/jsx-runtime";import{forwardRef as oz,useContext as By}from"react";l();import{createContext as $U}from"react";var _a=$U({});l();import{useContext as GU,useMemo as jU}from"react";l();l();l();function Fa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}l();function oa(e){return typeof e=="string"||Array.isArray(e)}l();var lp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pc=["initial",...lp];function Hi(e){return Fa(e.animate)||pc.some(t=>oa(e[t]))}function up(e){return!!(Hi(e)||e.variants)}function wI(e,t){if(Hi(e)){let{initial:o,animate:r}=e;return{initial:o===!1||oa(o)?o:void 0,animate:oa(r)?r:void 0}}return e.inherit!==!1?t:{}}function SI(e){let{initial:t,animate:o}=wI(e,GU(_a));return jU(()=>({initial:t,animate:o}),[CI(t),CI(o)])}function CI(e){return Array.isArray(e)?e.join(" "):e}l();var bI=Symbol.for("motionComponentSymbol");l();import{useCallback as KU}from"react";l();function ra(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function II(e,t,o){return KU(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),o&&(typeof o=="function"?o(r):ra(o)&&(o.current=r))},[t])}l();import{useContext as mc,useRef as Fy,useInsertionEffect as QU,useEffect as ZU}from"react";l();l();var ul=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var YU="framerAppearId",cp="data-"+ul(YU);l();import{createContext as XU}from"react";var dp=XU({});l();var{schedule:cl,cancel:Kie}=ap(queueMicrotask,!1);function RI(e,t,o,r,n){let{visualElement:a}=mc(_a),i=mc(sp),s=mc(ea),u=mc(er).reducedMotion,c=Fy(null);r=r||i.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:a,props:o,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:u}));let d=c.current,f=mc(dp);d&&!d.projection&&n&&(d.type==="html"||d.type==="svg")&&JU(c.current,o,n,f);let p=Fy(!1);QU(()=>{d&&p.current&&d.update(o,s)});let m=o[cp],x=Fy(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return sl(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),cl.render(d.render),x.current&&d.animationState&&d.animationState.animateChanges())}),ZU(()=>{d&&(!x.current&&d.animationState&&d.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),x.current=!1))}),d}function JU(e,t,o,r){let{layoutId:n,layout:a,drag:i,dragConstraints:s,layoutScroll:u,layoutRoot:c,layoutCrossfade:d}=t;e.projection=new o(e.latestValues,t["data-framer-portal-id"]?void 0:LI(e.parent)),e.projection.setOptions({layoutId:n,layout:a,alwaysMeasureLayout:!!i||s&&ra(s),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:u,layoutRoot:c})}function LI(e){if(e)return e.options.allowProjection!==!1?e.projection:LI(e.parent)}l();var Zr=()=>{},Nt=()=>{};Zr=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Nt=(e,t)=>{if(!e)throw new Error(t)};function PI({preloadedFeatures:e,createVisualElement:t,useRender:o,useVisualState:r,Component:n}){e&&hI(e);function a(s,u){let c,d={...By(er),...s,layoutId:rz(s)},{isStatic:f}=d,p=SI(s),m=r(s,f);if(!f&&il){nz(d,e);let x=az(d);c=x.MeasureLayout,p.visualElement=RI(n,m,d,t,x.ProjectionNode)}return ez(_a.Provider,{value:p,children:[c&&p.visualElement?tz(c,{visualElement:p.visualElement,...d}):null,o(n,s,II(m,p.visualElement,u),m,f,p.visualElement)]})}a.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;let i=oz(a);return i[bI]=n,i}function rz({layoutId:e}){let t=By(Jn).id;return t&&e!==void 0?t+"-"+e:e}function nz(e,t){let o=By(sp).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?Zr(!1,r):Nt(!1,r)}}function az(e){let{drag:t,layout:o}=ta;if(!t&&!o)return{};let r={...t,...o};return{MeasureLayout:t?.isEnabled(e)||o?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}l();import{Fragment as gz,useMemo as xz,createElement as yz}from"react";l();import{useMemo as cz}from"react";l();l();l();var MI=e=>t=>typeof t=="string"&&t.startsWith(e),dl=MI("--"),iz=MI("var(--"),fl=e=>iz(e)?sz.test(e.split("/*")[0].trim()):!1,sz=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var Ui={};function hc(e){for(let t in e)Ui[t]=e[t],dl(t)&&(Ui[t].isCSSVariable=!0)}l();var Cn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_r=new Set(Cn);function fp(e,{layout:t,layoutId:o}){return _r.has(e)||e.startsWith("origin")||(t||o!==void 0)&&(!!Ui[e]||e==="opacity")}l();var ze=e=>!!(e&&e.getVelocity);l();l();l();var pp=(e,t)=>t&&typeof e=="number"?t.transform(e):e;l();l();l();l();var mo=(e,t,o)=>o>t?t:o<e?e:o;var Sn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},na={...Sn,transform:e=>mo(0,1,e)},gc={...Sn,default:1};var Vy={...Sn,transform:Math.round};l();var xc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),bn=xc("deg"),Uo=xc("%"),ue=xc("px"),EI=xc("vh"),TI=xc("vw"),Hy={...Uo,parse:e=>Uo.parse(e)/100,transform:e=>Uo.transform(e*100)};l();var DI={rotate:bn,rotateX:bn,rotateY:bn,rotateZ:bn,scale:gc,scaleX:gc,scaleY:gc,scaleZ:gc,skew:bn,skewX:bn,skewY:bn,distance:ue,translateX:ue,translateY:ue,translateZ:ue,x:ue,y:ue,z:ue,perspective:ue,transformPerspective:ue,opacity:na,originX:Hy,originY:Hy,originZ:ue};var pl={borderWidth:ue,borderTopWidth:ue,borderRightWidth:ue,borderBottomWidth:ue,borderLeftWidth:ue,borderRadius:ue,radius:ue,borderTopLeftRadius:ue,borderTopRightRadius:ue,borderBottomRightRadius:ue,borderBottomLeftRadius:ue,width:ue,maxWidth:ue,height:ue,maxHeight:ue,top:ue,right:ue,bottom:ue,left:ue,padding:ue,paddingTop:ue,paddingRight:ue,paddingBottom:ue,paddingLeft:ue,margin:ue,marginTop:ue,marginRight:ue,marginBottom:ue,marginLeft:ue,backgroundPositionX:ue,backgroundPositionY:ue,...DI,zIndex:Vy,fillOpacity:na,strokeOpacity:na,numOctaves:Vy};var lz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},uz=Cn.length;function AI(e,t,o){let r="",n=!0;for(let a=0;a<uz;a++){let i=Cn[a],s=e[i];if(s===void 0)continue;let u=!0;if(typeof s=="number"?u=s===(i.startsWith("scale")?1:0):u=parseFloat(s)===0,!u||o){let c=pp(s,pl[i]);if(!u){n=!1;let d=lz[i]||i;r+=`${d}(${c}) `}o&&(t[i]=c)}}return r=r.trim(),o?r=o(t,n?"":r):n&&(r="none"),r}function ml(e,t,o){let{style:r,vars:n,transformOrigin:a}=e,i=!1,s=!1;for(let u in t){let c=t[u];if(_r.has(u)){i=!0;continue}else if(dl(u)){n[u]=c;continue}else{let d=pp(c,pl[u]);u.startsWith("origin")?(s=!0,a[u]=d):r[u]=d}}if(t.transform||(i||o?r.transform=AI(t,e.transform,o):r.transform&&(r.transform="none")),s){let{originX:u="50%",originY:c="50%",originZ:d=0}=a;r.transformOrigin=`${u} ${c} ${d}`}}l();var hl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Uy(e,t,o){for(let r in t)!ze(t[r])&&!fp(r,o)&&(e[r]=t[r])}function dz({transformTemplate:e},t){return cz(()=>{let o=hl();return ml(o,t,e),Object.assign({},o.vars,o.style)},[t])}function fz(e,t){let o=e.style||{},r={};return Uy(r,o,e),Object.assign(r,dz(e,t)),r}function kI(e,t){let o={},r=fz(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();l();var OI=["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 gl(e){return typeof e!="string"||e.includes("-")?!1:!!(OI.indexOf(e)>-1||/[A-Z]/u.test(e))}l();import{useMemo as hz}from"react";l();l();var pz={offset:"stroke-dashoffset",array:"stroke-dasharray"},mz={offset:"strokeDashoffset",array:"strokeDasharray"};function NI(e,t,o=1,r=0,n=!0){e.pathLength=1;let a=n?pz:mz;e[a.offset]=ue.transform(-r);let i=ue.transform(t),s=ue.transform(o);e[a.array]=`${i} ${s}`}function mp(e,{attrX:t,attrY:o,attrScale:r,pathLength:n,pathSpacing:a=1,pathOffset:i=0,...s},u,c){if(ml(e,s,c),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox="fill-box",delete d.transformBox),t!==void 0&&(d.x=t),o!==void 0&&(d.y=o),r!==void 0&&(d.scale=r),n!==void 0&&NI(d,n,a,i,!1)}l();var hp=()=>({...hl(),attrs:{}});l();var gp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function _I(e,t,o,r){let n=hz(()=>{let a=hp();return mp(a,t,gp(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){let a={};Uy(a,e.style,e),n.style={...a,...n.style}}return n}function FI(e=!1){return(o,r,n,{latestValues:a},i)=>{let u=(gl(o)?_I:kI)(r,a,i,o),c=xI(r,typeof o=="string",e),d=o!==gz?{...c,...u,ref:n}:{},{children:f}=r,p=xz(()=>ze(f)?f.get():f,[f]);return yz(o,{...d,children:p})}}l();l();import{useContext as VI}from"react";l();function BI(e){let t=[{},{}];return e?.values.forEach((o,r)=>{t[0][r]=o.get(),t[1][r]=o.getVelocity()}),t}function xl(e,t,o,r){if(typeof t=="function"){let[n,a]=BI(r);t=t(o!==void 0?o:e.custom,n,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[n,a]=BI(r);t=t(o!==void 0?o:e.custom,n,a)}return t}l();function yl(e){return ze(e)?e.get():e}function vz({scrapeMotionValuesFromProps:e,createRenderState:t},o,r,n){return{latestValues:wz(o,r,n,e),renderState:t()}}var xp=e=>(t,o)=>{let r=VI(_a),n=VI(ea),a=()=>vz(e,t,r,n);return o?a():Na(a)};function wz(e,t,o,r){let n={},a=r(e,{});for(let p in a)n[p]=yl(a[p]);let{initial:i,animate:s}=e,u=Hi(e),c=up(e);t&&c&&!u&&e.inherit!==!1&&(i===void 0&&(i=t.initial),s===void 0&&(s=t.animate));let d=o?o.initial===!1:!1;d=d||i===!1;let f=d?s:i;if(f&&typeof f!="boolean"&&!Fa(f)){let p=Array.isArray(f)?f:[f];for(let m=0;m<p.length;m++){let x=xl(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}l();function vl(e,t,o){let{style:r}=e,n={};for(let a in r)(ze(r[a])||t.style&&ze(t.style[a])||fp(a,e)||o?.getValue(a)?.liveStyle!==void 0)&&(n[a]=r[a]);return n}var HI={useVisualState:xp({scrapeMotionValuesFromProps:vl,createRenderState:hl})};l();l();function yp(e,t,o){let r=vl(e,t,o);for(let n in e)if(ze(e[n])||ze(t[n])){let a=Cn.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[a]=e[n]}return r}var UI={useVisualState:xp({scrapeMotionValuesFromProps:yp,createRenderState:hp})};function zI(e,t){return function(r,{forwardMotionProps:n}={forwardMotionProps:!1}){let i={...gl(r)?UI:HI,preloadedFeatures:e,useRender:FI(n),createVisualElement:t,Component:r};return PI(i)}}l();l();l();l();l();l();l();function aa(e,t,o){let r=e.getProps();return xl(r,t,o!==void 0?o:r.custom,e)}l();l();l();var yc=e=>Array.isArray(e);l();l();var vp;function Cz(){vp=void 0}var Dt={now:()=>(vp===void 0&&Dt.set(Tt.isProcessing||Ho.useManualTiming?Tt.timestamp:performance.now()),vp),set:e=>{vp=e,queueMicrotask(Cz)}};l();l();function wl(e,t){e.indexOf(t)===-1&&e.push(t)}function Ba(e,t){let o=e.indexOf(t);o>-1&&e.splice(o,1)}var Va=class{constructor(){this.subscriptions=[]}add(t){return wl(this.subscriptions,t),()=>Ba(this.subscriptions,t)}notify(t,o,r){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](t,o,r);else for(let a=0;a<n;a++){let i=this.subscriptions[a];i&&i(t,o,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};l();function wp(e,t){return t?e*(1e3/t):0}var qI=30,Sz=e=>!isNaN(parseFloat(e)),WI={current:void 0},zy=class{constructor(t,o={}){this.version="12.9.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,n=!0)=>{let a=Dt.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change?.notify(this.current),n&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=o.owner}setCurrent(t){this.current=t,this.updatedAt=Dt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Sz(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return ll(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,o){this.events[t]||(this.events[t]=new Va);let r=this.events[t].add(o);return t==="change"?()=>{r(),be.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,o){this.passiveEffect=t,this.stopPassiveEffect=o}set(t,o=!0){!o||!this.passiveEffect?this.updateAndNotify(t,o):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,o,r){this.set(o),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,o=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return WI.current&&WI.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Dt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>qI)return 0;let o=Math.min(this.updatedAt-this.prevUpdatedAt,qI);return wp(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(t){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=t(o),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function ia(e,t){return new zy(e,t)}function bz(e,t,o){e.hasValue(t)?e.getValue(t).set(o):e.addValue(t,ia(o))}function Iz(e){return yc(e)?e[e.length-1]||0:e}function $I(e,t){let o=aa(e,t),{transitionEnd:r={},transition:n={},...a}=o||{};a={...a,...r};for(let i in a){let s=Iz(a[i]);bz(e,i,s)}}l();l();function GI(e){return!!(ze(e)&&e.add)}function vc(e,t){let o=e.getValue("willChange");if(GI(o))return o.add(t);if(!o&&Ho.WillChange){let r=new Ho.WillChange("auto");e.addValue("willChange",r),r.add(t)}}l();function Cp(e){return e.props[cp]}l();l();var Rz=e=>e!==null;function jI(e,{repeat:t,repeatType:o="loop"},r){let n=e.filter(Rz),a=t&&o!=="loop"&&t%2===1?0:n.length-1;return!a||r===void 0?n[a]:r}l();var Lz={type:"spring",stiffness:500,damping:25,restSpeed:10},Pz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Mz={type:"keyframes",duration:.8},Ez={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},KI=(e,{keyframes:t})=>t.length>2?Mz:_r.has(e)?e.startsWith("scale")?Pz(t[1]):Lz:Ez;l();function YI({when:e,delay:t,delayChildren:o,staggerChildren:r,staggerDirection:n,repeat:a,repeatType:i,repeatDelay:s,from:u,elapsed:c,...d}){return!!Object.keys(d).length}l();function Cl(e,t){return e?.[t]??e?.default??e}l();var _t=e=>e*1e3,bo=e=>e/1e3;l();l();l();var In={layout:0,mainThread:0,waapi:0};l();l();l();l();l();l();var Ha=e=>Math.round(e*1e5)/1e5;l();l();var Sl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;l();function XI(e){return e==null}l();var QI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var bl=(e,t)=>o=>!!(typeof o=="string"&&QI.test(o)&&o.startsWith(e)||t&&!XI(o)&&Object.prototype.hasOwnProperty.call(o,t)),Sp=(e,t,o)=>r=>{if(typeof r!="string")return r;let[n,a,i,s]=r.match(Sl);return{[e]:parseFloat(n),[t]:parseFloat(a),[o]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}};var Tz=e=>mo(0,255,e),qy={...Sn,transform:e=>Math.round(Tz(e))},Rn={test:bl("rgb","red"),parse:Sp("red","green","blue"),transform:({red:e,green:t,blue:o,alpha:r=1})=>"rgba("+qy.transform(e)+", "+qy.transform(t)+", "+qy.transform(o)+", "+Ha(na.transform(r))+")"};function Dz(e){let t="",o="",r="",n="";return e.length>5?(t=e.substring(1,3),o=e.substring(3,5),r=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),o=e.substring(2,3),r=e.substring(3,4),n=e.substring(4,5),t+=t,o+=o,r+=r,n+=n),{red:parseInt(t,16),green:parseInt(o,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}}var wc={test:bl("#"),parse:Dz,transform:Rn.transform};l();var Ua={test:bl("hsl","hue"),parse:Sp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:o,alpha:r=1})=>"hsla("+Math.round(e)+", "+Uo.transform(Ha(t))+", "+Uo.transform(Ha(o))+", "+Ha(na.transform(r))+")"};var Ft={test:e=>Rn.test(e)||wc.test(e)||Ua.test(e),parse:e=>Rn.test(e)?Rn.parse(e):Ua.test(e)?Ua.parse(e):wc.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Rn.transform(e):Ua.transform(e)};l();l();var ZI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Az(e){return isNaN(e)&&typeof e=="string"&&(e.match(Sl)?.length||0)+(e.match(ZI)?.length||0)>0}var eR="number",tR="color",kz="var",Oz="var(",JI="${}",Nz=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function zi(e){let t=e.toString(),o=[],r={color:[],number:[],var:[]},n=[],a=0,s=t.replace(Nz,u=>(Ft.test(u)?(r.color.push(a),n.push(tR),o.push(Ft.parse(u))):u.startsWith(Oz)?(r.var.push(a),n.push(kz),o.push(u)):(r.number.push(a),n.push(eR),o.push(parseFloat(u))),++a,JI)).split(JI);return{values:o,split:s,indexes:r,types:n}}function oR(e){return zi(e).values}function rR(e){let{split:t,types:o}=zi(e),r=t.length;return n=>{let a="";for(let i=0;i<r;i++)if(a+=t[i],n[i]!==void 0){let s=o[i];s===eR?a+=Ha(n[i]):s===tR?a+=Ft.transform(n[i]):a+=n[i]}return a}}var _z=e=>typeof e=="number"?0:e;function Fz(e){let t=oR(e);return rR(e)(t.map(_z))}var zo={test:Az,parse:oR,createTransformer:rR,getAnimatableNone:Fz};l();l();function Wy(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*6*o:o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function nR({hue:e,saturation:t,lightness:o,alpha:r}){e/=360,t/=100,o/=100;let n=0,a=0,i=0;if(!t)n=a=i=o;else{let s=o<.5?o*(1+t):o+t-o*t,u=2*o-s;n=Wy(u,s,e+1/3),a=Wy(u,s,e),i=Wy(u,s,e-1/3)}return{red:Math.round(n*255),green:Math.round(a*255),blue:Math.round(i*255),alpha:r}}l();function Il(e,t){return o=>o>0?t:e}l();var Le=(e,t,o)=>e+(t-e)*o;var $y=(e,t,o)=>{let r=e*e,n=o*(t*t-r)+r;return n<0?0:Math.sqrt(n)},Bz=[wc,Rn,Ua],Vz=e=>Bz.find(t=>t.test(e));function aR(e){let t=Vz(e);if(Zr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let o=t.parse(e);return t===Ua&&(o=nR(o)),o}var Gy=(e,t)=>{let o=aR(e),r=aR(t);if(!o||!r)return Il(e,t);let n={...o};return a=>(n.red=$y(o.red,r.red,a),n.green=$y(o.green,r.green,a),n.blue=$y(o.blue,r.blue,a),n.alpha=Le(o.alpha,r.alpha,a),Rn.transform(n))};l();var bp=new Set(["none","hidden"]);function iR(e,t){return bp.has(e)?o=>o<=0?e:t:o=>o>=1?t:e}l();var Hz=(e,t)=>o=>t(e(o)),Ln=(...e)=>e.reduce(Hz);function Uz(e,t){return o=>Le(e,t,o)}function Ip(e){return typeof e=="number"?Uz:typeof e=="string"?fl(e)?Il:Ft.test(e)?Gy:Wz:Array.isArray(e)?sR:typeof e=="object"?Ft.test(e)?Gy:zz:Il}function sR(e,t){let o=[...e],r=o.length,n=e.map((a,i)=>Ip(a)(a,t[i]));return a=>{for(let i=0;i<r;i++)o[i]=n[i](a);return o}}function zz(e,t){let o={...e,...t},r={};for(let n in o)e[n]!==void 0&&t[n]!==void 0&&(r[n]=Ip(e[n])(e[n],t[n]));return n=>{for(let a in r)o[a]=r[a](n);return o}}function qz(e,t){let o=[],r={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let a=t.types[n],i=e.indexes[a][r[a]],s=e.values[i]??0;o[n]=s,r[a]++}return o}var Wz=(e,t)=>{let o=zo.createTransformer(t),r=zi(e),n=zi(t);return r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length?bp.has(e)&&!n.values.length||bp.has(t)&&!r.values.length?iR(e,t):Ln(sR(qz(r,n),n.values),o):(Zr(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Il(e,t))};function Rp(e,t,o){return typeof e=="number"&&typeof t=="number"&&typeof o=="number"?Le(e,t,o):Ip(e)(e,t)}l();var lR=e=>{let t=({timestamp:o})=>e(o);return{start:()=>be.update(t,!0),stop:()=>vr(t),now:()=>Tt.isProcessing?Tt.timestamp:Dt.now()}};l();l();l();var Lp=(e,t,o=10)=>{let r="",n=Math.max(Math.round(t/o),2);for(let a=0;a<n;a++)r+=e(a/(n-1))+", ";return`linear(${r.substring(0,r.length-2)})`};l();function Rl(e){let t=0,o=50,r=e.next(t);for(;!r.done&&t<2e4;)t+=o,r=e.next(t);return t>=2e4?1/0:t}l();function Pp(e,t=100,o){let r=o({...e,keyframes:[0,t]}),n=Math.min(Rl(r),2e4);return{type:"keyframes",ease:a=>r.next(n*a).value/t,duration:bo(n)}}l();var $z=5;function Mp(e,t,o){let r=Math.max(t-$z,0);return wp(o-e(r),t-r)}l();var at={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};l();var Ky=.001;function uR({duration:e=at.duration,bounce:t=at.bounce,velocity:o=at.velocity,mass:r=at.mass}){let n,a;Zr(e<=_t(at.maxDuration),"Spring duration must be 10 seconds or less");let i=1-t;i=mo(at.minDamping,at.maxDamping,i),e=mo(at.minDuration,at.maxDuration,bo(e)),i<1?(n=c=>{let d=c*i,f=d*e,p=d-o,m=Ep(c,i),x=Math.exp(-f);return Ky-p/m*x},a=c=>{let f=c*i*e,p=f*o+o,m=Math.pow(i,2)*Math.pow(c,2)*e,x=Math.exp(-f),g=Ep(Math.pow(c,2),i);return(-n(c)+Ky>0?-1:1)*((p-m)*x)/g}):(n=c=>{let d=Math.exp(-c*e),f=(c-o)*e+1;return-Ky+d*f},a=c=>{let d=Math.exp(-c*e),f=(o-c)*(e*e);return d*f});let s=5/e,u=jz(n,a,s);if(e=_t(e),isNaN(u))return{stiffness:at.stiffness,damping:at.damping,duration:e};{let c=Math.pow(u,2)*r;return{stiffness:c,damping:i*2*Math.sqrt(r*c),duration:e}}}var Gz=12;function jz(e,t,o){let r=o;for(let n=1;n<Gz;n++)r=r-e(r)/t(r);return r}function Ep(e,t){return e*Math.sqrt(1-t*t)}var Kz=["duration","bounce"],Yz=["stiffness","damping","mass"];function cR(e,t){return t.some(o=>e[o]!==void 0)}function Xz(e){let t={velocity:at.velocity,stiffness:at.stiffness,damping:at.damping,mass:at.mass,isResolvedFromDuration:!1,...e};if(!cR(e,Yz)&&cR(e,Kz))if(e.visualDuration){let o=e.visualDuration,r=2*Math.PI/(o*1.2),n=r*r,a=2*mo(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:at.mass,stiffness:n,damping:a}}else{let o=uR(e);t={...t,...o,mass:at.mass},t.isResolvedFromDuration=!0}return t}function za(e=at.visualDuration,t=at.bounce){let o=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:n}=o,a=o.keyframes[0],i=o.keyframes[o.keyframes.length-1],s={done:!1,value:a},{stiffness:u,damping:c,mass:d,duration:f,velocity:p,isResolvedFromDuration:m}=Xz({...o,velocity:-bo(o.velocity||0)}),x=p||0,g=c/(2*Math.sqrt(u*d)),v=i-a,y=bo(Math.sqrt(u/d)),w=Math.abs(v)<5;r||(r=w?at.restSpeed.granular:at.restSpeed.default),n||(n=w?at.restDelta.granular:at.restDelta.default);let C;if(g<1){let b=Ep(y,g);C=I=>{let R=Math.exp(-g*y*I);return i-R*((x+g*y*v)/b*Math.sin(b*I)+v*Math.cos(b*I))}}else if(g===1)C=b=>i-Math.exp(-y*b)*(v+(x+y*v)*b);else{let b=y*Math.sqrt(g*g-1);C=I=>{let R=Math.exp(-g*y*I),P=Math.min(b*I,300);return i-R*((x+g*y*v)*Math.sinh(P)+b*v*Math.cosh(P))/b}}let S={calculatedDuration:m&&f||null,next:b=>{let I=C(b);if(m)s.done=b>=f;else{let R=b===0?x:0;g<1&&(R=b===0?_t(x):Mp(C,b,I));let P=Math.abs(R)<=r,E=Math.abs(i-I)<=n;s.done=P&&E}return s.value=s.done?i:I,s},toString:()=>{let b=Math.min(Rl(S),2e4),I=Lp(R=>S.next(b*R).value,b,30);return b+"ms "+I},toTransition:()=>{}};return S}za.applyToOptions=e=>{let t=Pp(e,100,za);return e.ease=t.ease,e.duration=_t(t.duration),e.type="keyframes",e};function Cc({keyframes:e,velocity:t=0,power:o=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:a=500,modifyTarget:i,min:s,max:u,restDelta:c=.5,restSpeed:d}){let f=e[0],p={done:!1,value:f},m=P=>s!==void 0&&P<s||u!==void 0&&P>u,x=P=>s===void 0?u:u===void 0||Math.abs(s-P)<Math.abs(u-P)?s:u,g=o*t,v=f+g,y=i===void 0?v:i(v);y!==v&&(g=y-f);let w=P=>-g*Math.exp(-P/r),C=P=>y+w(P),S=P=>{let E=w(P),D=C(P);p.done=Math.abs(E)<=c,p.value=p.done?y:D},b,I,R=P=>{m(p.value)&&(b=P,I=za({keyframes:[p.value,x(p.value)],velocity:Mp(C,P,p.value),damping:n,stiffness:a,restDelta:c,restSpeed:d}))};return R(0),{calculatedDuration:null,next:P=>{let E=!1;return!I&&b===void 0&&(E=!0,S(P),R(P)),b!==void 0&&P>=b?I.next(P-b):(!E&&S(P),p)}}}l();l();l();var Jr=(e,t,o)=>{let r=t-e;return r===0?1:(o-e)/r};function Qz(e,t,o){let r=[],n=o||Ho.mix||Rp,a=e.length-1;for(let i=0;i<a;i++){let s=n(e[i],e[i+1]);if(t){let u=Array.isArray(t)?t[i]||It:t;s=Ln(u,s)}r.push(s)}return r}function dR(e,t,{clamp:o=!0,ease:r,mixer:n}={}){let a=e.length;if(Nt(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let i=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Qz(t,r,n),u=s.length,c=d=>{if(i&&d<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);let p=Jr(e[f],e[f+1],d);return s[f](p)};return o?d=>c(mo(e[0],e[a-1],d)):c}l();l();function Tp(e,t){let o=e[e.length-1];for(let r=1;r<=t;r++){let n=Jr(0,t,r);e.push(Le(o,1,n))}}function Dp(e){let t=[0];return Tp(t,e.length-1),t}l();function fR(e,t){return e.map(o=>o*t)}l();l();var pR=(e,t,o)=>(((1-3*o+3*t)*e+(3*o-6*t))*e+3*t)*e,Zz=1e-7,Jz=12;function eq(e,t,o,r,n){let a,i,s=0;do i=t+(o-t)/2,a=pR(i,r,n)-e,a>0?o=i:t=i;while(Math.abs(a)>Zz&&++s<Jz);return i}function qa(e,t,o,r){if(e===t&&o===r)return It;let n=a=>eq(a,0,1,e,o);return a=>a===0||a===1?a:pR(n(a),t,r)}var Yy=qa(.42,0,1,1),Sc=qa(0,0,.58,1),bc=qa(.42,0,.58,1);l();var Ap=e=>Array.isArray(e)&&typeof e[0]!="number";l();l();l();l();var kp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;l();var Op=e=>t=>1-e(1-t);var Xy=qa(.33,1.53,.69,.99),Ic=Op(Xy),Np=kp(Ic);var _p=e=>(e*=2)<1?.5*Ic(e):.5*(2-Math.pow(2,-10*(e-1)));l();var Fp=e=>1-Math.sin(Math.acos(e)),Bp=Op(Fp),Vp=kp(Fp);l();var Hp=e=>Array.isArray(e)&&typeof e[0]=="number";var mR={linear:It,easeIn:Yy,easeInOut:bc,easeOut:Sc,circIn:Fp,circInOut:Vp,circOut:Bp,backIn:Ic,backInOut:Np,backOut:Xy,anticipate:_p},tq=e=>typeof e=="string",Qy=e=>{if(Hp(e)){Nt(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,o,r,n]=e;return qa(t,o,r,n)}else if(tq(e))return Nt(mR[e]!==void 0,`Invalid easing type '${e}'`),mR[e];return e};function oq(e,t){return e.map(()=>t||bc).splice(0,e.length-1)}function Wa({duration:e=300,keyframes:t,times:o,ease:r="easeInOut"}){let n=Ap(r)?r.map(Qy):Qy(r),a={done:!1,value:t[0]},i=fR(o&&o.length===t.length?o:Dp(t),e),s=dR(i,t,{ease:Array.isArray(n)?n:oq(t,n)});return{calculatedDuration:e,next:u=>(a.value=s(u),a.done=u>=e,a)}}l();var rq=e=>e!==null;function Ll(e,{repeat:t,repeatType:o="loop"},r,n=1){let a=e.filter(rq),s=n<0||t&&o!=="loop"&&t%2===1?0:a.length-1;return!s||r===void 0?a[s]:r}l();var nq={decay:Cc,inertia:Cc,tween:Wa,keyframes:Wa,spring:za};function Up(e){typeof e.type=="string"&&(e.type=nq[e.type])}l();var $a=class{constructor(){this.count=0,this.updateFinished()}get finished(){return this._finished}updateFinished(){this.count++,this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,o){return this.finished.then(t,o)}};var aq=e=>e/100,Pl=class extends $a{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:o}=this.options;if(o&&o.updatedAt!==Dt.now()&&this.tick(Dt.now()),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:r}=this.options;r&&r()},In.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;Up(t);let{type:o=Wa,repeat:r=0,repeatDelay:n=0,repeatType:a,velocity:i=0}=t,{keyframes:s}=t,u=o||Wa;u!==Wa&&Nt(s.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`),u!==Wa&&typeof s[0]!="number"&&(this.mixKeyframes=Ln(aq,Rp(s[0],s[1])),s=[0,100]);let c=u({...t,keyframes:s});a==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...s].reverse(),velocity:-i})),c.calculatedDuration===null&&(c.calculatedDuration=Rl(c));let{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=c}updateTime(t){let o=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(t,o=!1){let{generator:r,totalDuration:n,mixKeyframes:a,mirroredGenerator:i,resolvedDuration:s,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);let{delay:c=0,keyframes:d,repeat:f,repeatType:p,repeatDelay:m,type:x,onUpdate:g,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),o?this.currentTime=t:this.updateTime(t);let y=this.currentTime-c*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let C=this.currentTime,S=r;if(f){let P=Math.min(this.currentTime,n)/s,E=Math.floor(P),D=P%1;!D&&P>=1&&(D=1),D===1&&E--,E=Math.min(E,f+1),!!(E%2)&&(p==="reverse"?(D=1-D,m&&(D-=m/s)):p==="mirror"&&(S=i)),C=mo(0,1,D)*s}let b=w?{done:!1,value:d[0]}:S.next(C);a&&(b.value=a(b.value));let{done:I}=b;!w&&u!==null&&(I=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return R&&x!==Cc&&(b.value=Ll(d,this.options,v,this.speed)),g&&g(b.value),R&&this.finish(),b}then(t,o){return this.finished.then(t,o)}get duration(){return bo(this.calculatedDuration)}get time(){return bo(this.currentTime)}set time(t){t=_t(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Dt.now());let o=this.playbackSpeed!==t;this.playbackSpeed=t,o&&(this.time=bo(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=lR,onPlay:o,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),o&&o();let n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Dt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown()}teardown(){this.notifyFinished(),this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,In.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),t.observe(this)}};l();l();function hR(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}l();l();var qi=e=>e*180/Math.PI,Zy=e=>{let t=qi(Math.atan2(e[1],e[0]));return Jy(t)},iq={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Zy,rotateZ:Zy,skewX:e=>qi(Math.atan(e[1])),skewY:e=>qi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Jy=e=>(e=e%360,e<0&&(e+=360),e),gR=Zy,xR=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),yR=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),sq={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:xR,scaleY:yR,scale:e=>(xR(e)+yR(e))/2,rotateX:e=>Jy(qi(Math.atan2(e[6],e[5]))),rotateY:e=>Jy(qi(Math.atan2(-e[2],e[0]))),rotateZ:gR,rotate:gR,skewX:e=>qi(Math.atan(e[4])),skewY:e=>qi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function vR(e){return e.includes("scale")?1:0}function zp(e,t){if(!e||e==="none")return vR(t);let o=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,n;if(o)r=sq,n=o;else{let s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=iq,n=s}if(!n)return vR(t);let a=r[t],i=n[1].split(",").map(lq);return typeof a=="function"?a(i):i[a]}var wR=(e,t)=>{let{transform:o="none"}=getComputedStyle(e);return zp(o,t)};function lq(e){return parseFloat(e.trim())}var ev=e=>e===Sn||e===ue,uq=new Set(["x","y","z"]),cq=Cn.filter(e=>!uq.has(e));function CR(e){let t=[];return cq.forEach(o=>{let r=e.getValue(o);r!==void 0&&(t.push([o,r.get()]),r.set(o.startsWith("scale")?1:0))}),t}var Wi={width:({x:e},{paddingLeft:t="0",paddingRight:o="0"})=>e.max-e.min-parseFloat(t)-parseFloat(o),height:({y:e},{paddingTop:t="0",paddingBottom:o="0"})=>e.max-e.min-parseFloat(t)-parseFloat(o),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>zp(t,"x"),y:(e,{transform:t})=>zp(t,"y")};Wi.translateX=Wi.x;Wi.translateY=Wi.y;var $i=new Set,tv=!1,ov=!1,rv=!1;function SR(){if(ov){let e=Array.from($i).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),o=new Map;t.forEach(r=>{let n=CR(r);n.length&&(o.set(r,n),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let n=o.get(r);n&&n.forEach(([a,i])=>{r.getValue(a)?.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ov=!1,tv=!1,$i.forEach(e=>e.complete(rv)),$i.clear()}function bR(){$i.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ov=!0)})}function IR(){rv=!0,bR(),SR(),rv=!1}var Ga=class{constructor(t,o,r,n,a,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=o,this.name=r,this.motionValue=n,this.element=a,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?($i.add(this),tv||(tv=!0,be.read(bR),be.resolveKeyframes(SR))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:o,element:r,motionValue:n}=this;if(t[0]===null){let a=n?.get(),i=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&o){let s=r.readValue(o,i);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=i),n&&a===void 0&&n.set(t[0])}hR(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),$i.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,$i.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};l();l();l();l();var RR=e=>e.startsWith("--");function LR(e,t,o){RR(t)?e.style.setProperty(t,o):e.style[t]=o}l();l();function Ml(e){let t;return()=>(t===void 0&&(t=e()),t)}var PR=Ml(()=>window.ScrollTimeline!==void 0);l();l();l();l();l();var MR={};function ER(e,t){let o=Ml(e);return()=>MR[t]??o()}var qp=ER(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");l();var Gi=([e,t,o,r])=>`cubic-bezier(${e}, ${t}, ${o}, ${r})`;l();var nv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gi([0,.65,.55,1]),circOut:Gi([.55,0,1,.45]),backIn:Gi([.31,.01,.66,-.59]),backOut:Gi([.33,1.53,.69,.99])};function av(e,t){if(e)return typeof e=="function"?qp()?Lp(e,t):"ease-out":Hp(e)?Gi(e):Array.isArray(e)?e.map(o=>av(o,t)||nv.easeOut):nv[e]}function TR(e,t,o,{delay:r=0,duration:n=300,repeat:a=0,repeatType:i="loop",ease:s="easeOut",times:u}={},c=void 0){let d={[t]:o};u&&(d.offset=u);let f=av(s,n);Array.isArray(f)&&(d.easing=f),yr.value&&In.waapi++;let p={delay:r,duration:n,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:a+1,direction:i==="reverse"?"alternate":"normal"};c&&(p.pseudoElement=c);let m=e.animate(d,p);return yr.value&&m.finished.finally(()=>{In.waapi--}),m}l();l();function El(e){return typeof e=="function"&&"applyToOptions"in e}function DR({type:e,...t}){return El(e)&&qp()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var Wp=class extends $a{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:o,name:r,keyframes:n,pseudoElement:a,allowFlatten:i=!1,finalKeyframe:s,onComplete:u}=t;this.isPseudoElement=!!a,this.allowFlatten=i,this.options=t,Nt(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);let c=DR(t);this.animation=TR(o,r,n,c,a),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){let d=Ll(n,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(d):LR(o,r,d),this.animation.cancel()}u?.(),this.notifyFinished()},this.animation.oncancel=()=>this.notifyFinished()}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return bo(Number(t))}get time(){return bo(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=_t(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&PR()?(this.animation.timeline=t,It):o(this)}};l();var AR={anticipate:_p,backInOut:Np,circInOut:Vp};function dq(e){return e in AR}function kR(e){typeof e.ease=="string"&&dq(e.ease)&&(e.ease=AR[e.ease])}var OR=10,$p=class extends Wp{constructor(t){kR(t),Up(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:o,onUpdate:r,onComplete:n,element:a,...i}=this.options;if(!o)return;if(t!==void 0){o.set(t);return}let s=new Pl({...i,autoplay:!1}),u=_t(this.finishedTime??this.time);o.setWithVelocity(s.sample(u-OR).value,s.sample(u).value,OR),s.stop()}};l();l();var iv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(zo.test(e)||e==="0")&&!e.startsWith("url("));function fq(e){let t=e[0];if(e.length===1)return!0;for(let o=0;o<e.length;o++)if(e[o]!==t)return!0}function NR(e,t,o,r){let n=e[0];if(n===null)return!1;if(t==="display"||t==="visibility")return!0;let a=e[e.length-1],i=iv(n,t),s=iv(a,t);return Zr(i===s,`You are trying to animate ${t} from "${n}" to "${a}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${a} via the \`style\` property.`),!i||!s?!1:fq(e)||(o==="spring"||El(o))&&r}l();var pq=new Set(["opacity","clipPath","filter","transform"]),mq=Ml(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function _R(e){let{motionValue:t,name:o,repeatDelay:r,repeatType:n,damping:a,type:i}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:u}=t.owner.getProps();return mq()&&o&&pq.has(o)&&(o!=="transform"||!u)&&!s&&!r&&n!=="mirror"&&a!==0&&i!=="inertia"}var hq=40,Gp=class extends $a{constructor({autoplay:t=!0,delay:o=0,type:r="keyframes",repeat:n=0,repeatDelay:a=0,repeatType:i="loop",keyframes:s,name:u,motionValue:c,element:d,...f}){super(),this.stop=()=>{this._animation?(this._animation.stop(),this.stopTimeline?.()):this.keyframeResolver?.cancel()},this.createdAt=Dt.now();let p={autoplay:t,delay:o,type:r,repeat:n,repeatDelay:a,repeatType:i,name:u,motionValue:c,element:d,...f},m=d?.KeyframeResolver||Ga;this.keyframeResolver=new m(s,(x,g,v)=>this.onKeyframesResolved(x,g,p,!v),u,c,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,o,r,n){this.keyframeResolver=void 0;let{name:a,type:i,velocity:s,delay:u,isHandoff:c,onUpdate:d}=r;this.resolvedAt=Dt.now(),NR(t,a,i,s)||((Ho.instantAnimations||!u)&&d?.(Ll(t,r,o)),t[0]=t[t.length-1],r.duration=0,r.repeat=0);let p={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>hq?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...r,keyframes:t},m=!c&&_R(p)?new $p({...p,element:p.motionValue.owner.current}):new Pl(p);m.finished.then(()=>this.notifyFinished()).catch(It),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,o){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||IR(),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this.animation.cancel()}};var Tl=(e,t,o,r={},n,a)=>i=>{let s=Cl(r,e)||{},u=s.delay||r.delay||0,{elapsed:c=0}=r;c=c-_t(u);let d={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:p=>{t.set(p),s.onUpdate&&s.onUpdate(p)},onComplete:()=>{i(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:n};YI(s)||Object.assign(d,KI(e,d)),d.duration&&(d.duration=_t(d.duration)),d.repeatDelay&&(d.repeatDelay=_t(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),(Ho.instantAnimations||Ho.skipAnimations)&&(f=!0,d.duration=0,d.delay=0),d.allowFlatten=!s.type&&!s.ease,f&&!a&&t.get()!==void 0){let p=jI(d.keyframes,s);if(p!==void 0){be.update(()=>{d.onUpdate(p),d.onComplete()});return}}return new Gp(d)};l();var jp=new Set(["width","height","top","left","right","bottom",...Cn]);function gq({protectedKeys:e,needsAnimating:t},o){let r=e.hasOwnProperty(o)&&t[o]!==!0;return t[o]=!1,r}function Dl(e,t,{delay:o=0,transitionOverride:r,type:n}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:i,...s}=t;r&&(a=r);let u=[],c=n&&e.animationState&&e.animationState.getState()[n];for(let d in s){let f=e.getValue(d,e.latestValues[d]??null),p=s[d];if(p===void 0||c&&gq(c,d))continue;let m={delay:o,...Cl(a||{},d)},x=f.get();if(x!==void 0&&!f.isAnimating&&!Array.isArray(p)&&p===x&&!m.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){let y=Cp(e);if(y){let w=window.MotionHandoffAnimation(y,d,be);w!==null&&(m.startTime=w,g=!0)}}vc(e,d),f.start(Tl(d,f,p,e.shouldReduceMotion&&jp.has(d)?{type:!1}:m,e,g));let v=f.animation;v&&u.push(v)}return i&&Promise.all(u).then(()=>{be.update(()=>{i&&$I(e,i)})}),u}l();function Kp(e,t,o={}){let r=aa(e,t,o.type==="exit"?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=r||{};o.transitionOverride&&(n=o.transitionOverride);let a=r?()=>Promise.all(Dl(e,r,o)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(u=0)=>{let{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=n;return xq(e,t,c+u,d,f,o)}:()=>Promise.resolve(),{when:s}=n;if(s){let[u,c]=s==="beforeChildren"?[a,i]:[i,a];return u().then(()=>c())}else return Promise.all([a(),i(o.delay)])}function xq(e,t,o=0,r=0,n=1,a){let i=[],s=(e.variantChildren.size-1)*r,u=n===1?(c=0)=>c*r:(c=0)=>s-c*r;return Array.from(e.variantChildren).sort(yq).forEach((c,d)=>{c.notify("AnimationStart",t),i.push(Kp(c,t,{...a,delay:o+u(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(i)}function yq(e,t){return e.sortNodePosition(t)}function FR(e,t,o={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){let n=t.map(a=>Kp(e,a,o));r=Promise.all(n)}else if(typeof t=="string")r=Kp(e,t,o);else{let n=typeof t=="function"?aa(e,t,o.custom):t;r=Promise.all(Dl(e,n,o))}return r.then(()=>{e.notify("AnimationComplete",t)})}l();function sv(e,t){if(!Array.isArray(t))return!1;let o=t.length;if(o!==e.length)return!1;for(let r=0;r<o;r++)if(t[r]!==e[r])return!1;return!0}l();var vq=pc.length;function lv(e){if(!e)return;if(!e.isControllingVariants){let o=e.parent?lv(e.parent)||{}:{};return e.props.initial!==void 0&&(o.initial=e.props.initial),o}let t={};for(let o=0;o<vq;o++){let r=pc[o],n=e.props[r];(oa(n)||n===!1)&&(t[r]=n)}return t}var wq=[...lp].reverse(),Cq=lp.length;function Sq(e){return t=>Promise.all(t.map(({animation:o,options:r})=>FR(e,o,r)))}function VR(e){let t=Sq(e),o=BR(),r=!0,n=u=>(c,d)=>{let f=aa(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(f){let{transition:p,transitionEnd:m,...x}=f;c={...c,...x,...m}}return c};function a(u){t=u(e)}function i(u){let{props:c}=e,d=lv(e.parent)||{},f=[],p=new Set,m={},x=1/0;for(let v=0;v<Cq;v++){let y=wq[v],w=o[y],C=c[y]!==void 0?c[y]:d[y],S=oa(C),b=y===u?w.isActive:null;b===!1&&(x=v);let I=C===d[y]&&C!==c[y]&&S;if(I&&r&&e.manuallyAnimateOnMount&&(I=!1),w.protectedKeys={...m},!w.isActive&&b===null||!C&&!w.prevProp||Fa(C)||typeof C=="boolean")continue;let R=bq(w.prevProp,C),P=R||y===u&&w.isActive&&!I&&S||v>x&&S,E=!1,D=Array.isArray(C)?C:[C],A=D.reduce(n(y),{});b===!1&&(A={});let{prevResolvedValues:O={}}=w,V={...O,...A},L=k=>{P=!0,p.has(k)&&(E=!0,p.delete(k)),w.needsAnimating[k]=!0;let _=e.getValue(k);_&&(_.liveStyle=!1)};for(let k in V){let _=A[k],M=O[k];if(m.hasOwnProperty(k))continue;let H=!1;yc(_)&&yc(M)?H=!sv(_,M):H=_!==M,H?_!=null?L(k):p.add(k):_!==void 0&&p.has(k)?L(k):w.protectedKeys[k]=!0}w.prevProp=C,w.prevResolvedValues=A,w.isActive&&(m={...m,...A}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(I&&R)||E)&&f.push(...D.map(k=>({animation:k,options:{type:y}})))}if(p.size){let v={};if(typeof c.initial!="boolean"){let y=aa(e,Array.isArray(c.initial)?c.initial[0]:c.initial);y&&y.transition&&(v.transition=y.transition)}p.forEach(y=>{let w=e.getBaseTarget(y),C=e.getValue(y);C&&(C.liveStyle=!0),v[y]=w??null}),f.push({animation:v})}let g=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(f):Promise.resolve()}function s(u,c){if(o[u].isActive===c)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(u,c)),o[u].isActive=c;let d=i(u);for(let f in o)o[f].protectedKeys={};return d}return{animateChanges:i,setActive:s,setAnimateFunction:a,getState:()=>o,reset:()=>{o=BR(),r=!0}}}function bq(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sv(t,e):!1}function ji(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function BR(){return{animate:ji(!0),whileInView:ji(),whileHover:ji(),whileTap:ji(),whileDrag:ji(),whileFocus:ji(),exit:ji()}}l();var ro=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};var Yp=class extends ro{constructor(t){super(t),t.animationState||(t.animationState=VR(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();Fa(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 Iq=0,Xp=class extends ro{constructor(){super(...arguments),this.id=Iq++}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 HR={animation:{Feature:Yp},exit:{Feature:Xp}};l();l();l();l();function sa(e,t,o,r={passive:!0}){return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o)}l();l();l();var Al=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function la(e){return{point:{x:e.pageX,y:e.pageY}}}var UR=e=>t=>Al(t)&&e(t,la(t));function ja(e,t,o,r){return sa(e,t,UR(o),r)}l();function Qp({top:e,left:t,right:o,bottom:r}){return{x:{min:t,max:o},y:{min:e,max:r}}}function zR({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function qR(e,t){if(!t)return e;let o=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:o.y,left:o.x,bottom:r.y,right:r.x}}l();var jR=1e-4,Rq=1-jR,Lq=1+jR,KR=.01,Pq=0-KR,Mq=0+KR;function Wt(e){return e.max-e.min}function YR(e,t,o){return Math.abs(e-t)<=o}function WR(e,t,o,r=.5){e.origin=r,e.originPoint=Le(t.min,t.max,e.origin),e.scale=Wt(o)/Wt(t),e.translate=Le(o.min,o.max,e.origin)-e.originPoint,(e.scale>=Rq&&e.scale<=Lq||isNaN(e.scale))&&(e.scale=1),(e.translate>=Pq&&e.translate<=Mq||isNaN(e.translate))&&(e.translate=0)}function kl(e,t,o,r){WR(e.x,t.x,o.x,r?r.originX:void 0),WR(e.y,t.y,o.y,r?r.originY:void 0)}function $R(e,t,o){e.min=o.min+t.min,e.max=e.min+Wt(t)}function XR(e,t,o){$R(e.x,t.x,o.x),$R(e.y,t.y,o.y)}function GR(e,t,o){e.min=t.min-o.min,e.max=e.min+Wt(t)}function Ol(e,t,o){GR(e.x,t.x,o.x),GR(e.y,t.y,o.y)}l();var QR=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ki=()=>({x:QR(),y:QR()}),ZR=()=>({min:0,max:0}),Xe=()=>({x:ZR(),y:ZR()});l();function tr(e){return[e("x"),e("y")]}l();l();l();function uv(e){return e===void 0||e===1}function Zp({scale:e,scaleX:t,scaleY:o}){return!uv(e)||!uv(t)||!uv(o)}function ua(e){return Zp(e)||cv(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function cv(e){return JR(e.x)||JR(e.y)}function JR(e){return e&&e!=="0%"}function Rc(e,t,o){let r=e-o,n=t*r;return o+n}function eL(e,t,o,r,n){return n!==void 0&&(e=Rc(e,n,r)),Rc(e,o,r)+t}function dv(e,t=0,o=1,r,n){e.min=eL(e.min,t,o,r,n),e.max=eL(e.max,t,o,r,n)}function fv(e,{x:t,y:o}){dv(e.x,t.translate,t.scale,t.originPoint),dv(e.y,o.translate,o.scale,o.originPoint)}var tL=.999999999999,oL=1.0000000000001;function nL(e,t,o,r=!1){let n=o.length;if(!n)return;t.x=t.y=1;let a,i;for(let s=0;s<n;s++){a=o[s],i=a.projectionDelta;let{visualElement:u}=a.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Yi(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,fv(e,i)),r&&ua(a.latestValues)&&Yi(e,a.latestValues))}t.x<oL&&t.x>tL&&(t.x=1),t.y<oL&&t.y>tL&&(t.y=1)}function Ka(e,t){e.min=e.min+t,e.max=e.max+t}function rL(e,t,o,r,n=.5){let a=Le(e.min,e.max,n);dv(e,t,o,a,r)}function Yi(e,t){rL(e.x,t.x,t.scaleX,t.scale,t.originX),rL(e.y,t.y,t.scaleY,t.scale,t.originY)}function pv(e,t){return Qp(qR(e.getBoundingClientRect(),t))}function aL(e,t,o){let r=pv(e,o),{scroll:n}=t;return n&&(Ka(r.x,n.offset.x),Ka(r.y,n.offset.y)),r}l();var Jp=({current:e})=>e?e.ownerDocument.defaultView:null;l();l();var iL=(e,t)=>Math.abs(e-t);function sL(e,t){let o=iL(e.x,t.x),r=iL(e.y,t.y);return Math.sqrt(o**2+r**2)}var Nl=class{constructor(t,o,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let f=hv(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,m=sL(f.offset,{x:0,y:0})>=3;if(!p&&!m)return;let{point:x}=f,{timestamp:g}=Tt;this.history.push({...x,timestamp:g});let{onStart:v,onMove:y}=this.handlers;p||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=mv(p,this.transformPagePoint),be.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();let{onEnd:m,onSessionEnd:x,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let v=hv(f.type==="pointercancel"?this.lastMoveEventInfo:mv(p,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,v),x&&x(f,v)},!Al(t))return;this.dragSnapToOrigin=a,this.handlers=o,this.transformPagePoint=r,this.contextWindow=n||window;let i=la(t),s=mv(i,this.transformPagePoint),{point:u}=s,{timestamp:c}=Tt;this.history=[{...u,timestamp:c}];let{onSessionStart:d}=o;d&&d(t,hv(s,this.history)),this.removeListeners=Ln(ja(this.contextWindow,"pointermove",this.handlePointerMove),ja(this.contextWindow,"pointerup",this.handlePointerUp),ja(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),vr(this.updatePoint)}};function mv(e,t){return t?{point:t(e.point)}:e}function lL(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hv({point:e},t){return{point:e,delta:lL(e,uL(t)),offset:lL(e,Eq(t)),velocity:Tq(t,.1)}}function Eq(e){return e[0]}function uL(e){return e[e.length-1]}function Tq(e,t){if(e.length<2)return{x:0,y:0};let o=e.length-1,r=null,n=uL(e);for(;o>=0&&(r=e[o],!(n.timestamp-r.timestamp>_t(t)));)o--;if(!r)return{x:0,y:0};let a=bo(n.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let i={x:(n.x-r.x)/a,y:(n.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}l();function mL(e,{min:t,max:o},r){return t!==void 0&&e<t?e=r?Le(t,e,r.min):Math.max(e,t):o!==void 0&&e>o&&(e=r?Le(o,e,r.max):Math.min(e,o)),e}function cL(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 hL(e,{top:t,left:o,bottom:r,right:n}){return{x:cL(e.x,o,n),y:cL(e.y,t,r)}}function dL(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 gL(e,t){return{x:dL(e.x,t.x),y:dL(e.y,t.y)}}function xL(e,t){let o=.5,r=Wt(e),n=Wt(t);return n>r?o=Jr(t.min,t.max-r,e.min):r>n&&(o=Jr(e.min,e.max-n,t.min)),mo(0,1,o)}function yL(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 em=.35;function vL(e=em){return e===!1?e=0:e===!0&&(e=em),{x:fL(e,"left","right"),y:fL(e,"top","bottom")}}function fL(e,t,o){return{min:pL(e,t),max:pL(e,o)}}function pL(e,t){return typeof e=="number"?e:e[t]||0}l();l();var Fr={x:!1,y:!1};function tm(){return Fr.x||Fr.y}function wL(e){return e==="x"||e==="y"?Fr[e]?null:(Fr[e]=!0,()=>{Fr[e]=!1}):Fr.x||Fr.y?null:(Fr.x=Fr.y=!0,()=>{Fr.x=Fr.y=!1})}var Dq=new WeakMap,rm=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=Xe(),this.visualElement=t}start(t,{snapToCursor:o=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let n=d=>{let{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),o&&this.snapToCursor(la(d).point)},a=(d,f)=>{let{drag:p,dragPropagation:m,onDragStart:x}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=wL(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tr(v=>{let y=this.getAxisMotionValue(v).get()||0;if(Uo.test(y)){let{projection:w}=this.visualElement;if(w&&w.layout){let C=w.layout.layoutBox[v];C&&(y=Wt(C)*(parseFloat(y)/100))}}this.originPoint[v]=y}),x&&be.postRender(()=>x(d,f)),vc(this.visualElement,"transform");let{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},i=(d,f)=>{let{dragPropagation:p,dragDirectionLock:m,onDirectionLock:x,onDrag:g}=this.getProps();if(!p&&!this.openDragLock)return;let{offset:v}=f;if(m&&this.currentDirection===null){this.currentDirection=Aq(v),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),g&&g(d,f)},s=(d,f)=>this.stop(d,f),u=()=>tr(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Nl(t,{onSessionStart:n,onStart:a,onMove:i,onSessionEnd:s,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Jp(this.visualElement)})}stop(t,o){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=o;this.startAnimation(n);let{onDragEnd:a}=this.getProps();a&&be.postRender(()=>a(t,o))}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),i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=mL(i,this.constraints[t],this.elastic[t])),a.set(i)}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&&ra(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=hL(r.layoutBox,t):this.constraints=!1,this.elastic=vL(o),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&tr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=yL(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:o}=this.getProps();if(!t||!ra(t))return!1;let r=t.current;Nt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let a=aL(r,n.root,this.visualElement.getTransformPagePoint()),i=gL(n.layout.layoutBox,a);if(o){let s=o(zR(i));this.hasMutatedConstraints=!!s,s&&(i=Qp(s))}return i}startAnimation(t){let{drag:o,dragMomentum:r,dragElastic:n,dragTransition:a,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),u=this.constraints||{},c=tr(d=>{if(!om(d,o,this.currentDirection))return;let f=u&&u[d]||{};i&&(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(s)}startAxisValueAnimation(t,o){let r=this.getAxisMotionValue(t);return vc(this.visualElement,t),r.start(Tl(t,r,0,o,this.visualElement,!1))}stopAnimation(){tr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tr(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){tr(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:i,max:s}=n.layout.layoutBox[o];a.set(t[o]-Le(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:o}=this.getProps(),{projection:r}=this.visualElement;if(!ra(o)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};tr(i=>{let s=this.getAxisMotionValue(i);if(s&&this.constraints!==!1){let u=s.get();n[i]=xL({min:u,max:u},this.constraints[i])}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),tr(i=>{if(!om(i,t,null))return;let s=this.getAxisMotionValue(i),{min:u,max:c}=this.constraints[i];s.set(Le(u,c,n[i]))})}addListeners(){if(!this.visualElement.current)return;Dq.set(this.visualElement,this);let t=this.visualElement.current,o=ja(t,"pointerdown",u=>{let{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(u)}),r=()=>{let{dragConstraints:u}=this.getProps();ra(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()),be.read(r);let i=sa(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(tr(d=>{let f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())});return()=>{i(),o(),a(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:a=!1,dragElastic:i=em,dragMomentum:s=!0}=t;return{...t,drag:o,dragDirectionLock:r,dragPropagation:n,dragConstraints:a,dragElastic:i,dragMomentum:s}}};function om(e,t,o){return(t===!0||t===e)&&(o===null||o===e)}function Aq(e,t=10){let o=null;return Math.abs(e.y)>t?o="y":Math.abs(e.x)>t&&(o="x"),o}var nm=class extends ro{constructor(t){super(t),this.removeGroupControls=It,this.removeListeners=It,this.controls=new rm(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||It}unmount(){this.removeGroupControls(),this.removeListeners()}};l();var CL=e=>(t,o)=>{e&&be.postRender(()=>e(t,o))},am=class extends ro{constructor(){super(...arguments),this.removePointerDownListener=It}onPointerDown(t){this.session=new Nl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Jp(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:o,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:CL(t),onStart:CL(o),onMove:r,onEnd:(a,i)=>{delete this.session,n&&be.postRender(()=>n(a,i))}}}mount(){this.removePointerDownListener=ja(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 kq}from"react/jsx-runtime";import{useContext as IL,Component as Oq}from"react";l();var _l={hasAnimatedSinceResize:!0,hasEverUpdated:!1};l();function SL(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Fl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ue.test(e))e=parseFloat(e);else return e;let o=SL(e,t.target.x),r=SL(e,t.target.y);return`${o}% ${r}%`}};l();var bL={correct:(e,{treeScale:t,projectionDelta:o})=>{let r=e,n=zo.parse(e);if(n.length>5)return r;let a=zo.createTransformer(e),i=typeof n[0]!="number"?1:0,s=o.x.scale*t.x,u=o.y.scale*t.y;n[0+i]/=s,n[1+i]/=u;let c=Le(s,u,.5);return typeof n[2+i]=="number"&&(n[2+i]/=c),typeof n[3+i]=="number"&&(n[3+i]/=c),a(n)}};var gv=class extends Oq{componentDidMount(){let{visualElement:t,layoutGroup:o,switchLayoutGroup:r,layoutId:n}=this.props,{projection:a}=t;hc(Nq),a&&(o.group&&o.group.add(a),r&&r.register&&n&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),_l.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:o,visualElement:r,drag:n,isPresent:a}=this.props,i=r.projection;return i&&(i.isPresent=a,n||t.layoutDependency!==o||o===void 0||t.isPresent!==a?i.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?i.promote():i.relegate()||be.postRender(()=>{let s=i.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),cl.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:o,switchLayoutGroup:r}=this.props,{projection:n}=t;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 im(e){let[t,o]=lc(),r=IL(Jn);return kq(gv,{...e,layoutGroup:r,switchLayoutGroup:IL(dp),isPresent:t,safeToRemove:o})}var Nq={borderRadius:{...Fl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fl,borderTopRightRadius:Fl,borderBottomLeftRadius:Fl,borderBottomRightRadius:Fl,boxShadow:bL};l();l();l();function sm(e,t,o){let r=ze(e)?e:ia(e);return r.start(Tl("",r,t,o)),r.animation}l();function lm(e){return e instanceof SVGElement&&e.tagName!=="svg"}l();l();var RL=(e,t)=>e.depth-t.depth;var um=class{constructor(){this.children=[],this.isDirty=!1}add(t){wl(this.children,t),this.isDirty=!0}remove(t){Ba(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(RL),this.isDirty=!1,this.children.forEach(t)}};l();function LL(e,t){let o=Dt.now(),r=({timestamp:n})=>{let a=n-o;a>=t&&(vr(r),e(a-t))};return be.setup(r,!0),()=>vr(r)}l();var TL=["TopLeft","TopRight","BottomLeft","BottomRight"],_q=TL.length,PL=e=>typeof e=="string"?parseFloat(e):e,ML=e=>typeof e=="number"||ue.test(e);function DL(e,t,o,r,n,a){n?(e.opacity=Le(0,o.opacity??1,Fq(r)),e.opacityExit=Le(t.opacity??1,0,Bq(r))):a&&(e.opacity=Le(t.opacity??1,o.opacity??1,r));for(let i=0;i<_q;i++){let s=`border${TL[i]}Radius`,u=EL(t,s),c=EL(o,s);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||ML(u)===ML(c)?(e[s]=Math.max(Le(PL(u),PL(c),r),0),(Uo.test(c)||Uo.test(u))&&(e[s]+="%")):e[s]=c}(t.rotate||o.rotate)&&(e.rotate=Le(t.rotate||0,o.rotate||0,r))}function EL(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var Fq=AL(0,.5,Bp),Bq=AL(.5,.95,It);function AL(e,t,o){return r=>r<e?0:r>t?1:o(Jr(e,t,r))}l();function kL(e,t){e.min=t.min,e.max=t.max}function wr(e,t){kL(e.x,t.x),kL(e.y,t.y)}function xv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}l();function OL(e,t,o,r,n){return e-=t,e=Rc(e,1/o,r),n!==void 0&&(e=Rc(e,1/n,r)),e}function Vq(e,t=0,o=1,r=.5,n,a=e,i=e){if(Uo.test(t)&&(t=parseFloat(t),t=Le(i.min,i.max,t/100)-i.min),typeof t!="number")return;let s=Le(a.min,a.max,r);e===a&&(s-=t),e.min=OL(e.min,t,o,s,n),e.max=OL(e.max,t,o,s,n)}function NL(e,t,[o,r,n],a,i){Vq(e,t[o],t[r],t[n],t.scale,a,i)}var Hq=["x","scaleX","originX"],Uq=["y","scaleY","originY"];function yv(e,t,o,r){NL(e.x,t,Hq,o?o.x:void 0,r?r.x:void 0),NL(e.y,t,Uq,o?o.y:void 0,r?r.y:void 0)}l();function _L(e){return e.translate===0&&e.scale===1}function vv(e){return _L(e.x)&&_L(e.y)}function FL(e,t){return e.min===t.min&&e.max===t.max}function VL(e,t){return FL(e.x,t.x)&&FL(e.y,t.y)}function BL(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function wv(e,t){return BL(e.x,t.x)&&BL(e.y,t.y)}function Cv(e){return Wt(e.x)/Wt(e.y)}function Sv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}l();var cm=class{constructor(){this.members=[]}add(t){wl(this.members,t),t.scheduleRender()}remove(t){if(Ba(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(t){let o=this.members.findIndex(n=>t===n);if(o===0)return!1;let r;for(let n=o;n>=0;n--){let a=this.members[n];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,o){let r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,o&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;n===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:o,resumingFrom:r}=t;o.onExitComplete&&o.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};l();function HL(e,t,o){let r="",n=e.x.translate/t.x,a=e.y.translate/t.y,i=o?.z||0;if((n||a||i)&&(r=`translate3d(${n}px, ${a}px, ${i}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),o){let{transformPerspective:c,rotate:d,rotateX:f,rotateY:p,skewX:m,skewY:x}=o;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),m&&(r+=`skewX(${m}deg) `),x&&(r+=`skewY(${x}deg) `)}let s=e.x.scale*t.x,u=e.y.scale*t.y;return(s!==1||u!==1)&&(r+=`scale(${s}, ${u})`),r||"none"}var Xi={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},bv=["","X","Y","Z"],zq={visibility:"hidden"},UL=1e3,qq=0;function Iv(e,t,o,r){let{latestValues:n}=t;n[e]&&(o[e]=n[e],t.setStaticValue(e,0),r&&(r[e]=0))}function YL(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let o=Cp(t);if(window.MotionHasOptimisedAnimation(o,"transform")){let{layout:n,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(o,"transform",be,!(n||a))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&YL(r)}function dm({attachResizeListener:e,defaultParent:t,measureScroll:o,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(i={},s=t?.()){this.id=qq++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,yr.value&&(Xi.nodes=Xi.calculatedTargetDeltas=Xi.calculatedProjections=0),this.nodes.forEach(Gq),this.nodes.forEach(Qq),this.nodes.forEach(Zq),this.nodes.forEach(jq),yr.addProjectionMetrics&&yr.addProjectionMetrics(Xi)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new um)}addEventListener(i,s){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new Va),this.eventHandlers.get(i).add(s)}notifyListeners(i,...s){let u=this.eventHandlers.get(i);u&&u.notify(...s)}hasListeners(i){return this.eventHandlers.has(i)}mount(i,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=lm(i),this.instance=i;let{layoutId:u,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(c||u)&&(this.isLayoutDirty=!0),e){let f,p=()=>this.root.updateBlockedByResize=!1;e(i,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=LL(p,250),_l.hasAnimatedSinceResize&&(_l.hasAnimatedSinceResize=!1,this.nodes.forEach(qL))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeLayoutChanged:m,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let g=this.options.transition||d.getDefaultTransition()||rW,{onLayoutAnimationStart:v,onLayoutAnimationComplete:y}=d.getProps(),w=!this.targetLayout||!wv(this.targetLayout,x),C=!p&&m;if(this.options.layoutRoot||this.resumeFrom||C||p&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,C);let S={...Cl(g,"layout"),onPlay:v,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else p||qL(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,vr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Jq),this.animationId++)}getTransformTemplate(){let{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&YL(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){let f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}let{layoutId:s,layout:u}=this.options;if(s===void 0&&!u)return;let c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(zL);return}this.isUpdating||this.nodes.forEach(Yq),this.isUpdating=!1,this.nodes.forEach(Xq),this.nodes.forEach(Wq),this.nodes.forEach($q),this.clearAllSnapshots();let s=Dt.now();Tt.delta=mo(0,1e3/60,s-Tt.timestamp),Tt.timestamp=s,Tt.isProcessing=!0,ip.update.process(Tt),ip.preRender.process(Tt),ip.render.process(Tt),Tt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Kq),this.sharedNodes.forEach(eW)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,be.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){be.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Wt(this.snapshot.measuredBox.x)&&!Wt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();let i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Xe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(s=!1),s){let u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:u,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!n)return;let i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!vv(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;i&&(s||ua(this.latestValues)||d)&&(n(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){let s=this.measurePageBox(),u=this.removeElementScroll(s);return i&&(u=this.removeTransform(u)),nW(u),{animationId:this.root.animationId,measuredBox:s,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:i}=this.options;if(!i)return Xe();let s=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(aW))){let{scroll:c}=this.root;c&&(Ka(s.x,c.offset.x),Ka(s.y,c.offset.y))}return s}removeElementScroll(i){let s=Xe();if(wr(s,i),this.scroll?.wasRoot)return s;for(let u=0;u<this.path.length;u++){let c=this.path[u],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&wr(s,i),Ka(s.x,d.offset.x),Ka(s.y,d.offset.y))}return s}applyTransform(i,s=!1){let u=Xe();wr(u,i);for(let c=0;c<this.path.length;c++){let d=this.path[c];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Yi(u,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),ua(d.latestValues)&&Yi(u,d.latestValues)}return ua(this.latestValues)&&Yi(u,this.latestValues),u}removeTransform(i){let s=Xe();wr(s,i);for(let u=0;u<this.path.length;u++){let c=this.path[u];if(!c.instance||!ua(c.latestValues))continue;Zp(c.latestValues)&&c.updateSnapshot();let d=Xe(),f=c.measurePageBox();wr(d,f),yv(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return ua(this.latestValues)&&yv(s,this.latestValues),s}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Tt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let u=!!this.resumingFrom||this!==s;if(!(i||u&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=Tt.timestamp,!this.targetDelta&&!this.relativeTarget){let p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Xe(),this.relativeTargetOrigin=Xe(),Ol(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),wr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Xe(),this.targetWithTransforms=Xe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),XR(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):wr(this.target,this.layout.layoutBox),fv(this.target,this.targetDelta)):wr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Xe(),this.relativeTargetOrigin=Xe(),Ol(this.relativeTargetOrigin,this.target,p.target),wr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}yr.value&&Xi.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Zp(this.parent.latestValues)||cv(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let i=this.getLead(),s=!!this.resumingFrom||this!==i,u=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(u=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Tt.timestamp&&(u=!1),u)return;let{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;wr(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,p=this.treeScale.y;nL(this.layoutCorrected,this.treeScale,this.path,s),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=Xe());let{target:m}=i;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(xv(this.prevProjectionDelta.x,this.projectionDelta.x),xv(this.prevProjectionDelta.y,this.projectionDelta.y)),kl(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!Sv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Sv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),yr.value&&Xi.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){let s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ki(),this.projectionDelta=Ki(),this.projectionDeltaWithTransform=Ki()}setAnimationOrigin(i,s=!1){let u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},f=Ki();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let p=Xe(),m=u?u.source:void 0,x=this.layout?this.layout.source:void 0,g=m!==x,v=this.getStack(),y=!v||v.members.length<=1,w=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(oW));this.animationProgress=0;let C;this.mixTargetDelta=S=>{let b=S/1e3;WL(f.x,i.x,b),WL(f.y,i.y,b),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ol(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),tW(this.relativeTarget,this.relativeTargetOrigin,p,b),C&&VL(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Xe()),wr(C,this.relativeTarget)),g&&(this.animationValues=d,DL(d,c,this.latestValues,b,w,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(vr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=be.update(()=>{_l.hasAnimatedSinceResize=!0,In.layout++,this.currentAnimation=sm(0,UL,{...i,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},onStop:()=>{In.layout--},onComplete:()=>{In.layout--,i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(UL),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let i=this.getLead(),{targetWithTransforms:s,target:u,layout:c,latestValues:d}=i;if(!(!s||!u||!c)){if(this!==i&&this.layout&&c&&XL(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||Xe();let f=Wt(this.layout.layoutBox.x);u.x.min=i.target.x.min,u.x.max=u.x.min+f;let p=Wt(this.layout.layoutBox.y);u.y.min=i.target.y.min,u.y.max=u.y.min+p}wr(s,u),Yi(s,d),kl(this.projectionDeltaWithTransform,this.layoutCorrected,s,d)}}registerSharedNode(i,s){this.sharedNodes.has(i)||this.sharedNodes.set(i,new cm),this.sharedNodes.get(i).add(s);let c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){let i=this.getStack();return i?i.lead===this:!0}getLead(){let{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:s,preserveFollowOpacity:u}={}){let c=this.getStack();c&&c.promote(this,u),i&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){let i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){let{visualElement:i}=this.options;if(!i)return;let s=!1,{latestValues:u}=i;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(s=!0),!s)return;let c={};u.z&&Iv("z",i,c,this.animationValues);for(let d=0;d<bv.length;d++)Iv(`rotate${bv[d]}`,i,c,this.animationValues),Iv(`skew${bv[d]}`,i,c,this.animationValues);i.render();for(let d in c)i.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);i.scheduleRender()}getProjectionStyles(i){if(!this.instance||this.isSVG)return;if(!this.isVisible)return zq;let s={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=yl(i?.pointerEvents)||"",s.transform=u?u(this.latestValues,""):"none",s;let c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){let m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=yl(i?.pointerEvents)||""),this.hasProjected&&!ua(this.latestValues)&&(m.transform=u?u({},""):"none",this.hasProjected=!1),m}let d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=HL(this.projectionDeltaWithTransform,this.treeScale,d),u&&(s.transform=u(d,s.transform));let{x:f,y:p}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,c.animationValues?s.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(let m in Ui){if(d[m]===void 0)continue;let{correct:x,applyTo:g,isCSSVariable:v}=Ui[m],y=s.transform==="none"?d[m]:x(d[m],c);if(g){let w=g.length;for(let C=0;C<w;C++)s[g[C]]=y}else v?this.options.visualElement.renderState.vars[m]=y:s[m]=y}return this.options.layoutId&&(s.pointerEvents=c===this?yl(i?.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(zL),this.root.sharedNodes.clear()}}}function Wq(e){e.updateLayout()}function $q(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:r}=e.layout,{animationType:n}=e.options,a=t.source!==e.layout.source;n==="size"?tr(d=>{let f=a?t.measuredBox[d]:t.layoutBox[d],p=Wt(f);f.min=o[d].min,f.max=f.min+p}):XL(n,t.layoutBox,o)&&tr(d=>{let f=a?t.measuredBox[d]:t.layoutBox[d],p=Wt(o[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});let i=Ki();kl(i,o,t.layoutBox);let s=Ki();a?kl(s,e.applyTransform(r,!0),t.measuredBox):kl(s,o,t.layoutBox);let u=!vv(i),c=!1;if(!e.resumeFrom){let d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){let{snapshot:f,layout:p}=d;if(f&&p){let m=Xe();Ol(m,t.layoutBox,f.layoutBox);let x=Xe();Ol(x,o,p.layoutBox),wv(m,x)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:t,delta:s,layoutDelta:i,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function Gq(e){yr.value&&Xi.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function jq(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Kq(e){e.clearSnapshot()}function zL(e){e.clearMeasurements()}function Yq(e){e.isLayoutDirty=!1}function Xq(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function qL(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Qq(e){e.resolveTargetDelta()}function Zq(e){e.calcProjection()}function Jq(e){e.resetSkewAndRotation()}function eW(e){e.removeLeadSnapshot()}function WL(e,t,o){e.translate=Le(t.translate,0,o),e.scale=Le(t.scale,1,o),e.origin=t.origin,e.originPoint=t.originPoint}function $L(e,t,o,r){e.min=Le(t.min,o.min,r),e.max=Le(t.max,o.max,r)}function tW(e,t,o,r){$L(e.x,t.x,o.x,r),$L(e.y,t.y,o.y,r)}function oW(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var rW={duration:.45,ease:[.4,0,.1,1]},GL=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),jL=GL("applewebkit/")&&!GL("chrome/")?Math.round:It;function KL(e){e.min=jL(e.min),e.max=jL(e.max)}function nW(e){KL(e.x),KL(e.y)}function XL(e,t,o){return e==="position"||e==="preserve-aspect"&&!YR(Cv(t),Cv(o),.2)}function aW(e){return e!==e.root&&e.scroll?.wasRoot}l();var QL=dm({attachResizeListener:(e,t)=>sa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Rv={current:void 0},fm=dm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Rv.current){let e=new QL({});e.mount(window),e.setOptions({layoutScroll:!0}),Rv.current=e}return Rv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var ZL={pan:{Feature:am},drag:{Feature:nm,ProjectionNode:fm,MeasureLayout:im}};l();l();l();l();l();function pm(e,t,o){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;t&&(r=t.current);let n=o?.[e]??r.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}function mm(e,t){let o=pm(e),r=new AbortController,n={passive:!0,...t,signal:r.signal};return[o,n,()=>r.abort()]}function JL(e){return!(e.pointerType==="touch"||tm())}function eP(e,t,o={}){let[r,n,a]=mm(e,o),i=s=>{if(!JL(s))return;let{target:u}=s,c=t(u,s);if(typeof c!="function"||!u)return;let d=f=>{JL(f)&&(c(f),u.removeEventListener("pointerleave",d))};u.addEventListener("pointerleave",d,n)};return r.forEach(s=>{s.addEventListener("pointerenter",i,n)}),a}function tP(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&&be.postRender(()=>a(t,la(t)))}var hm=class extends ro{mount(){let{current:t}=this.node;t&&(this.unmount=eP(t,(o,r)=>(tP(this.node,r,"Start"),n=>tP(this.node,n,"End"))))}unmount(){}};l();var gm=class extends ro{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=Ln(sa(this.node.current,"focus",()=>this.onFocus()),sa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};l();l();l();var Lv=(e,t)=>t?e===t?!0:Lv(e,t.parentElement):!1;l();var iW=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function oP(e){return iW.has(e.tagName)||e.tabIndex!==-1}l();l();var Qi=new WeakSet;function rP(e){return t=>{t.key==="Enter"&&e(t)}}function Pv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var nP=(e,t)=>{let o=e.currentTarget;if(!o)return;let r=rP(()=>{if(Qi.has(o))return;Pv(o,"down");let n=rP(()=>{Pv(o,"up")}),a=()=>Pv(o,"cancel");o.addEventListener("keyup",n,t),o.addEventListener("blur",a,t)});o.addEventListener("keydown",r,t),o.addEventListener("blur",()=>o.removeEventListener("keydown",r),t)};function aP(e){return Al(e)&&!tm()}function iP(e,t,o={}){let[r,n,a]=mm(e,o),i=s=>{let u=s.currentTarget;if(!aP(s)||Qi.has(u))return;Qi.add(u);let c=t(u,s),d=(m,x)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!aP(m)||!Qi.has(u))&&(Qi.delete(u),typeof c=="function"&&c(m,{success:x}))},f=m=>{d(m,u===window||u===document||o.useGlobalTarget||Lv(u,m.target))},p=m=>{d(m,!1)};window.addEventListener("pointerup",f,n),window.addEventListener("pointercancel",p,n)};return r.forEach(s=>{(o.useGlobalTarget?window:s).addEventListener("pointerdown",i,n),s instanceof HTMLElement&&(s.addEventListener("focus",c=>nP(c,n)),!oP(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),a}function sP(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&&be.postRender(()=>a(t,la(t)))}var xm=class extends ro{mount(){let{current:t}=this.node;t&&(this.unmount=iP(t,(o,r)=>(sP(this.node,r,"Start"),(n,{success:a})=>sP(this.node,n,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};l();l();var Ev=new WeakMap,Mv=new WeakMap,sW=e=>{let t=Ev.get(e.target);t&&t(e)},lW=e=>{e.forEach(sW)};function uW({root:e,...t}){let o=e||document;Mv.has(o)||Mv.set(o,{});let r=Mv.get(o),n=JSON.stringify(t);return r[n]||(r[n]=new IntersectionObserver(lW,{root:e,...t})),r[n]}function lP(e,t,o){let r=uW(t);return Ev.set(e,o),r.observe(e),()=>{Ev.delete(e),r.unobserve(e)}}var cW={some:0,all:1},ym=class extends ro{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,i={root:o?o.current:void 0,rootMargin:r,threshold:typeof n=="number"?n:cW[n]},s=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 lP(this.node.current,i,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:o}=this.node;["amount","margin","root"].some(dW(t,o))&&this.startObserver()}unmount(){}};function dW({viewport:e={}},{viewport:t={}}={}){return o=>e[o]!==t[o]}var uP={inView:{Feature:ym},tap:{Feature:xm},focus:{Feature:gm},hover:{Feature:hm}};l();var cP={layout:{ProjectionNode:fm,MeasureLayout:im}};l();import{Fragment as SW}from"react";l();l();l();l();l();var Lc={current:null},vm={current:!1};function dP(){if(vm.current=!0,!!il)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Lc.current=e.matches;e.addListener(t),t()}else Lc.current=!1}l();var Ya=new WeakMap;l();function fP(e,t,o){for(let r in t){let n=t[r],a=o[r];if(ze(n))e.addValue(r,n);else if(ze(a))e.addValue(r,ia(n,{owner:e}));else if(a!==n)if(e.hasValue(r)){let i=e.getValue(r);i.liveStyle===!0?i.jump(n):i.hasAnimated||i.set(n)}else{let i=e.getStaticValue(r);e.addValue(r,ia(i!==void 0?i:n,{owner:e}))}}for(let r in o)t[r]===void 0&&e.removeValue(r);return t}l();var wm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);l();var Cm=e=>/^0[^.\s]+$/u.test(e);l();l();l();var pP={test:e=>e==="auto",parse:e=>e};l();var Sm=e=>t=>t.test(e);var Tv=[Sn,ue,Uo,bn,TI,EI,pP],Dv=e=>Tv.find(Sm(e));var fW=[...Tv,Ft,zo],mP=e=>fW.find(Sm(e));l();l();var pW=new Set(["brightness","contrast","saturate","opacity"]);function mW(e){let[t,o]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[r]=o.match(Sl)||[];if(!r)return e;let n=o.replace(r,""),a=pW.has(t)?1:0;return r!==o&&(a*=100),t+"("+a+n+")"}var hW=/\b([a-z-]*)\(.*?\)/gu,Pc={...zo,getAnimatableNone:e=>{let t=e.match(hW);return t?t.map(mW).join(" "):e}};l();var gW={...pl,color:Ft,backgroundColor:Ft,outlineColor:Ft,fill:Ft,stroke:Ft,borderColor:Ft,borderTopColor:Ft,borderRightColor:Ft,borderBottomColor:Ft,borderLeftColor:Ft,filter:Pc,WebkitFilter:Pc},bm=e=>gW[e];function Im(e,t){let o=bm(e);return o!==Pc&&(o=zo),o.getAnimatableNone?o.getAnimatableNone(t):void 0}var hP=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Bl=class{scrapeMotionValuesFromProps(t,o,r){return{}}constructor({parent:t,props:o,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:a,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ga,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let p=Dt.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,be.render(this.render,!1,!0))};let{latestValues:u,renderState:c}=i;this.latestValues=u,this.baseTarget={...u},this.initialValues=o.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=o,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Hi(o),this.isVariantNode=up(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...f}=this.scrapeMotionValuesFromProps(o,{},this);for(let p in f){let m=f[p];u[p]!==void 0&&ze(m)&&m.set(u[p],!1)}}mount(t){this.current=t,Ya.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,r)=>this.bindToMotionValue(r,o)),vm.current||dP(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Lc.current,ll(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),vr(this.notifyUpdate),vr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let o=this.features[t];o&&(o.unmount(),o.isMounted=!1)}this.current=null}bindToMotionValue(t,o){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=_r.has(t);r&&this.onBindTransform&&this.onBindTransform();let n=o.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&be.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=o.on("renderRequest",this.scheduleRender),i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,o)),this.valueSubscriptions.set(t,()=>{n(),a(),i&&i(),o.owner&&o.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ta){let o=ta[t];if(!o)continue;let{isEnabled:r,Feature:n}=o;if(!this.features[t]&&n&&r(this.props)&&(this.features[t]=new n(this)),this.features[t]){let a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Xe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,o){this.latestValues[t]=o}update(t,o){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let r=0;r<hP.length;r++){let n=hP[r];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let a="on"+n,i=t[a];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=fP(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let o=this.getClosestVariantNode();if(o)return o.variantChildren&&o.variantChildren.add(t),()=>o.variantChildren.delete(t)}addValue(t,o){let r=this.values.get(t);o!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,o),this.values.set(t,o),this.latestValues[t]=o.get())}removeValue(t){this.values.delete(t);let o=this.valueSubscriptions.get(t);o&&(o(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,o){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&o!==void 0&&(r=ia(o===null?void 0:o,{owner:this}),this.addValue(t,r)),r}readValue(t,o){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(wm(r)||Cm(r))?r=parseFloat(r):!mP(r)&&zo.test(o)&&(r=Im(t,o)),this.setBaseTarget(t,ze(r)?r.get():r)),ze(r)?r.get():r}setBaseTarget(t,o){this.baseTarget[t]=o}getBaseTarget(t){let{initial:o}=this.props,r;if(typeof o=="string"||typeof o=="object"){let a=xl(this.props,o,this.presenceContext?.custom);a&&(r=a[t])}if(o&&r!==void 0)return r;let n=this.getBaseTargetFromProps(this.props,t);return n!==void 0&&!ze(n)?n:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,o){return this.events[t]||(this.events[t]=new Va),this.events[t].add(o)}notify(t,...o){this.events[t]&&this.events[t].notify(...o)}};l();l();var xW=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yW(e){let t=xW.exec(e);if(!t)return[,];let[,o,r,n]=t;return[`--${o??r}`,n]}var vW=4;function Av(e,t,o=1){Nt(o<=vW,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,n]=yW(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let i=a.trim();return wm(i)?parseFloat(i):i}return fl(n)?Av(n,t,o+1):n}l();function gP(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Cm(e):!0}l();var wW=new Set(["auto","none","0"]);function xP(e,t,o){let r=0,n;for(;r<e.length&&!n;){let a=e[r];typeof a=="string"&&!wW.has(a)&&zi(a).values.length&&(n=e[r]),r++}if(n&&o)for(let a of t)e[a]=Im(o,n)}var Rm=class extends Ga{constructor(t,o,r,n,a){super(t,o,r,n,a,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:o,name:r}=this;if(!o||!o.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let c=t[u];if(typeof c=="string"&&(c=c.trim(),fl(c))){let d=Av(c,o.current);d!==void 0&&(t[u]=d),u===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!jp.has(r)||t.length!==2)return;let[n,a]=t,i=Dv(n),s=Dv(a);if(i!==s)if(ev(i)&&ev(s))for(let u=0;u<t.length;u++){let c=t[u];typeof c=="string"&&(t[u]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:o}=this,r=[];for(let n=0;n<t.length;n++)(t[n]===null||gP(t[n]))&&r.push(n);r.length&&xP(t,r,o)}measureInitialState(){let{element:t,unresolvedKeyframes:o,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Wi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),o[0]=this.measuredOrigin;let n=o[o.length-1];n!==void 0&&t.getValue(r,n).jump(n,!1)}measureEndState(){let{element:t,name:o,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let n=t.getValue(o);n&&n.jump(this.measuredOrigin,!1);let a=r.length-1,i=r[a];r[a]=Wi[o](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([s,u])=>{t.getValue(s).set(u)}),this.resolveNoneKeyframes()}};var Vl=class extends Bl{constructor(){super(...arguments),this.KeyframeResolver=Rm}sortInstanceNodePosition(t,o){return t.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(t,o){return t.style?t.style[o]:void 0}removeValueFromRenderState(t,{vars:o,style:r}){delete o[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;ze(t)&&(this.childSubscription=t.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}};l();function Lm(e,{style:t,vars:o},r,n){Object.assign(e.style,t,n&&n.getProjectionStyles(r));for(let a in o)e.style.setProperty(a,o[a])}function CW(e){return window.getComputedStyle(e)}var Hl=class extends Vl{constructor(){super(...arguments),this.type="html",this.renderInstance=Lm}readValueFromInstance(t,o){if(_r.has(o))return wR(t,o);{let r=CW(t),n=(dl(o)?r.getPropertyValue(o):r[o])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:o}){return pv(t,o)}build(t,o,r){ml(t,o,r.transformTemplate)}scrapeMotionValuesFromProps(t,o,r){return vl(t,o,r)}};l();l();var Pm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);l();function yP(e,t,o,r){Lm(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Pm.has(n)?n:ul(n),t.attrs[n])}var Ul=class extends Vl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Xe}getBaseTargetFromProps(t,o){return t[o]}readValueFromInstance(t,o){if(_r.has(o)){let r=bm(o);return r&&r.default||0}return o=Pm.has(o)?o:ul(o),t.getAttribute(o)}scrapeMotionValuesFromProps(t,o,r){return yp(t,o,r)}build(t,o,r){mp(t,o,this.isSVGTag,r.transformTemplate)}renderInstance(t,o,r,n){yP(t,o,r,n)}mount(t){this.isSVGTag=gp(t.tagName),super.mount(t)}};var vP=(e,t)=>gl(e)?new Ul(t):new Hl(t,{allowProjection:e!==SW});var wP=zI({...HR,...uP,...ZL,...cP},vP);var Qe=vI(wP);l();l();l();l();l();function Mc(e){return typeof e=="object"&&!Array.isArray(e)}function Mm(e,t,o,r){return typeof e=="string"&&Mc(t)?pm(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 kv(e,t,o,r){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?o:r.get(t)??e}l();l();l();var SP=(e,t,o)=>{let r=t-e;return((o-e)%r+r)%r+e};function Em(e,t){return Ap(e)?e[SP(0,e.length,t)]:e}function bW(e,t,o){for(let r=0;r<e.length;r++){let n=e[r];n.at>t&&n.at<o&&(Ba(e,n),r--)}}function bP(e,t,o,r,n,a){bW(e,n,a);for(let i=0;i<t.length;i++)e.push({value:t[i],at:Le(n,a,r[i]),easing:Em(o,i)})}l();function IP(e,t){for(let o=0;o<e.length;o++)e[o]=e[o]/(t+1)}l();function RP(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var IW="easeInOut",RW=20;function MP(e,{defaultTransition:t={},...o}={},r,n){let a=t.duration||.3,i=new Map,s=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,kv(f,x.at,d,c));continue}let[g,v,y={}]=x;y.at!==void 0&&(f=kv(f,y.at,d,c));let w=0,C=(S,b,I,R=0,P=0)=>{let E=LW(S),{delay:D=0,times:A=Dp(E),type:O="keyframes",repeat:V,repeatType:L,repeatDelay:N=0,...T}=b,{ease:k=t.ease||"easeOut",duration:_}=b,M=typeof D=="function"?D(R,P):D,H=E.length,B=El(O)?O:n?.[O];if(H<=2&&B){let $=100;if(H===2&&EW(E)){let Y=E[1]-E[0];$=Math.abs(Y)}let G={...T};_!==void 0&&(G.duration=_t(_));let W=Pp(G,$,B);k=W.ease,_=W.duration}_??(_=a);let U=f+M;A.length===1&&A[0]===0&&(A[1]=1);let F=A.length-E.length;if(F>0&&Tp(A,F),E.length===1&&E.unshift(null),V){Nt(V<RW,"Repeat count too high, must be less than 20"),_=CP(_,V);let $=[...E],G=[...A];k=Array.isArray(k)?[...k]:[k];let W=[...k];for(let Y=0;Y<V;Y++){E.push(...$);for(let J=0;J<$.length;J++)A.push(G[J]+(Y+1)),k.push(J===0?"linear":Em(W,J-1))}IP(A,V)}let z=U+_;bP(I,E,k,A,U,z),w=Math.max(M+_,w),p=Math.max(z,p)};if(ze(g)){let S=LP(g,s);C(v,y,PP("default",S))}else{let S=Mm(g,v,r,u),b=S.length;for(let I=0;I<b;I++){v=v,y=y;let R=S[I],P=LP(R,s);for(let E in v)C(v[E],PW(y,E),PP(E,P),I,b)}}d=f,f+=w}return s.forEach((m,x)=>{for(let g in m){let v=m[g];v.sort(RP);let y=[],w=[],C=[];for(let b=0;b<v.length;b++){let{at:I,value:R,easing:P}=v[b];y.push(R),w.push(Jr(0,p,I)),C.push(P||"easeOut")}w[0]!==0&&(w.unshift(0),y.unshift(y[0]),C.unshift(IW)),w[w.length-1]!==1&&(w.push(1),y.push(null)),i.has(x)||i.set(x,{keyframes:{},transition:{}});let S=i.get(x);S.keyframes[g]=y,S.transition[g]={...t,duration:p,ease:C,times:w,...o}}}),i}function LP(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function PP(e,t){return t[e]||(t[e]=[]),t[e]}function LW(e){return Array.isArray(e)?e:[e]}function PW(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var MW=e=>typeof e=="number",EW=e=>e.every(MW);l();l();l();function TW(e,t){return e in t}var Tm=class extends Bl{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,o){if(TW(o,t)){let r=t[o];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,o){delete o.output[t]}measureInstanceViewportBox(){return Xe()}build(t,o){Object.assign(t.output,o)}renderInstance(t,{output:o}){Object.assign(t,o)}sortInstanceNodePosition(){return 0}};function EP(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},o=lm(e)?new Ul(t):new Hl(t);o.mount(e),Ya.set(e,o)}function TP(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},o=new Tm(t);o.mount(e),Ya.set(e,o)}function DW(e,t){return ze(e)||typeof e=="number"||typeof e=="string"&&!Mc(t)}function Dm(e,t,o,r){let n=[];if(DW(e,t))n.push(sm(e,Mc(t)&&t.default||t,o&&(o.default||o)));else{let a=Mm(e,t,r),i=a.length;Nt(!!i,"No valid elements provided.");for(let s=0;s<i;s++){let u=a[s],c=u instanceof Element?EP:TP;Ya.has(u)||c(u);let d=Ya.get(u),f={...o};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(s,i)),n.push(...Dl(d,{...t,transition:f},{}))}}return n}function DP(e,t,o){let r=[];return MP(e,t,o,{spring:za}).forEach(({keyframes:a,transition:i},s)=>{r.push(...Dm(s,a,i))}),r}l();l();var Am=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,o){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=o}attachTimeline(t){let o=this.animations.map(r=>r.attachTimeline(t));return()=>{o.forEach((r,n)=>{r&&r(),this.animations[n].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let o=0;o<this.animations.length;o++)t=Math.max(t,this.animations[o].duration);return t}runAll(t){this.animations.forEach(o=>o[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};var km=class extends Am{then(t,o){return this.finished.finally(t).then(()=>{})}};function AW(e){return Array.isArray(e)&&e.some(Array.isArray)}function AP(e){function t(o,r,n){let a=[];AW(o)?a=DP(o,r,e):a=Dm(o,r,n,e);let i=new km(a);return e&&e.animations.push(i),i}return t}var Ov=AP();l();import{createContext as z$,useContext as q$,useMemo as CE}from"react";l();l();l();var Om=Object.create(null),Ec=e=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?Om:globalThis),Xa=new Proxy(Om,{get(e,t){return Ec()[t]??Om[t]},has(e,t){let o=Ec();return t in o||t in Om},set(e,t,o){let r=Ec(!0);return r[t]=o,!0},deleteProperty(e,t){if(!t)return!1;let o=Ec(!0);return delete o[t],!0},ownKeys(){let e=Ec(!0);return Object.keys(e)}}),kW=typeof process<"u"&&process.env&&"true"||"",OW=[["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 NW(){if(globalThis.process?.env)for(let e of OW){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 OP=NW(),NP=OP.name;function Zi(e){return e?e!=="false":!1}var Tc=globalThis.process?.platform||"",Nm=Zi(Xa.CI)||OP.ci!==!1,_P=Zi(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);var _Re=Zi(Xa.DEBUG),_W=kW==="test"||Zi(Xa.TEST);var FRe=Zi(Xa.MINIMAL)||Nm||_W||!_P,FW=/^win/i.test(Tc),BRe=/^linux/i.test(Tc),VRe=/^darwin/i.test(Tc),HRe=!Zi(Xa.NO_COLOR)&&(Zi(Xa.FORCE_COLOR)||(_P||FW)&&Xa.TERM!=="dumb"||Nm),Nv=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null,URe=Number(Nv?.split(".")[0])||null,BW=globalThis.process||Object.create(null),kP={versions:{}},FP=new Proxy(BW,{get(e,t){if(t==="env")return Xa;if(t in e)return e[t];if(t in kP)return kP[t]}}),VW=globalThis.process?.release?.name==="node",HW=!!globalThis.Bun||!!globalThis.process?.versions?.bun,UW=!!globalThis.Deno,zW=!!globalThis.fastly,qW=!!globalThis.Netlify,WW=!!globalThis.EdgeRuntime,$W=globalThis.navigator?.userAgent==="Cloudflare-Workers",GW=[[qW,"netlify"],[WW,"edge-light"],[$W,"workerd"],[zW,"fastly"],[UW,"deno"],[HW,"bun"],[VW,"node"]];function jW(){let e=GW.find(t=>t[0]);if(e)return{name:e[1]}}var KW=jW(),zRe=KW?.name||"";l();function BP(e=new Date){return`${YW(e)}T${XW(e)}${QW(e)}`}function YW(e){return[e.getFullYear(),Ji(e.getMonth()+1),Ji(e.getDate())].join("-")}function XW(e){return[Ji(e.getHours()),Ji(e.getMinutes()),Ji(e.getSeconds())].join(":")}function QW(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?"-":"+"}${Ji(r)}:${Ji(n)}`}function Ji(e){return String(e).padStart(2,"0")}var ZW="https://checkpoint.prisma.io/v1";var JW="check/:product";async function VP(e){let t=new URL(JW,e.baseURL||ZW);t.pathname=t.pathname.replace(":product",e.product);let{additionalData:o}=e;t.search=new URLSearchParams([...Object.entries({arch:e.architecture||FP.arch||"unknown",check_if_update_available:`${e.skipUpdateCheck!==!0}`,ci:`${Nm}`,ci_name:NP,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:BP(e.timestamp),node_version:Nv||"0.0.0",os:e.platform||Tc||"unknown",previous_client_event_id:e.previousEventId||"",project_hash:e.projectHash||"",signature:e.signature,version:e.version}),..._v("schema_generators_providers",e.ormGeneratorProviders),..._v("schema_preview_features",e.ormPreviewFeatures),..._v("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 _v(e,t){return t?.filter(Boolean).map(o=>[e,o])||[]}l();l();l();l();l();var Br=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();var or=typeof window>"u"||"Deno"in globalThis;function Io(){}function zP(e,t){return typeof e=="function"?e(t):e}function Dc(e){return typeof e=="number"&&e>=0&&e!==1/0}function _m(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Qa(e,t){return typeof e=="function"?e(t):e}function Cr(e,t){return typeof e=="function"?e(t):e}function Fm(e,t){let{type:o="all",exact:r,fetchStatus:n,predicate:a,queryKey:i,stale:s}=e;if(i){if(r){if(t.queryHash!==Ac(i,t.options))return!1}else if(!ql(t.queryKey,i))return!1}if(o!=="all"){let u=t.isActive();if(o==="active"&&!u||o==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||n&&n!==t.state.fetchStatus||a&&!a(t))}function Bm(e,t){let{exact:o,status:r,predicate:n,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(o){if(Pn(t.options.mutationKey)!==Pn(a))return!1}else if(!ql(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||n&&!n(t))}function Ac(e,t){return(t?.queryKeyHashFn||Pn)(e)}function Pn(e){return JSON.stringify(e,(t,o)=>Fv(o)?Object.keys(o).sort().reduce((r,n)=>(r[n]=o[n],r),{}):o)}function ql(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(o=>ql(e[o],t[o])):!1}function zl(e,t){if(e===t)return e;let o=HP(e)&&HP(t);if(o||Fv(e)&&Fv(t)){let r=o?e:Object.keys(e),n=r.length,a=o?t:Object.keys(t),i=a.length,s=o?[]:{},u=0;for(let c=0;c<i;c++){let d=o?c:a[c];(!o&&r.includes(d)||o)&&e[d]===void 0&&t[d]===void 0?(s[d]=void 0,u++):(s[d]=zl(e[d],t[d]),s[d]===e[d]&&e[d]!==void 0&&u++)}return n===i&&u===n?e:s}return t}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 Fv(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=>{setTimeout(t,e)})}function kc(e,t,o){if(typeof o.structuralSharing=="function")return o.structuralSharing(e,t);if(o.structuralSharing!==!1){try{return zl(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 zl(e,t)}return t}function WP(e,t,o=0){let r=[...e,t];return o&&r.length>o?r.slice(1):r}function $P(e,t,o=0){let r=[t,...e];return o&&r.length>o?r.slice(0,-1):r}var es=Symbol();function Vm(e,t){return e.queryFn===es&&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===es?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var e3=class extends Br{#t;#e;#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.#e||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#o=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},$l=new e3;l();var t3=class extends Br{#t=!0;#e;#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.#e||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#o=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(o=>{o(e)}))}isOnline(){return this.#t}},Gl=new t3;l();function Oc(){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}function o3(e){return Math.min(1e3*2**e,3e4)}function Bv(e){return(e??"online")==="online"?Gl.isOnline():!0}var GP=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Hm(e){return e instanceof GP}function Um(e){let t=!1,o=0,r=!1,n,a=Oc(),i=g=>{r||(p(new GP(g)),e.abort?.())},s=()=>{t=!0},u=()=>{t=!1},c=()=>$l.isFocused()&&(e.networkMode==="always"||Gl.isOnline())&&e.canRun(),d=()=>Bv(e.networkMode)&&e.canRun(),f=g=>{r||(r=!0,e.onSuccess?.(g),n?.(),a.resolve(g))},p=g=>{r||(r=!0,e.onError?.(g),n?.(),a.reject(g))},m=()=>new Promise(g=>{n=v=>{(r||c())&&g(v)},e.onPause?.()}).then(()=>{n=void 0,r||e.onContinue?.()}),x=()=>{if(r)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(r)return;let w=e.retry??(or?0:3),C=e.retryDelay??o3,S=typeof C=="function"?C(o,y):C,b=w===!0||typeof w=="number"&&o<w||typeof w=="function"&&w(o,y);if(t||!b){p(y);return}o++,e.onFail?.(o,y),qP(S).then(()=>c()?void 0:m()).then(()=>{t?p(y):x()})})};return{promise:a,cancel:i,continue:()=>(n?.(),a),cancelRetry:s,continueRetry:u,canStart:d,start:()=>(d()?x():m().then(x),a)}}l();l();l();var jP=e=>setTimeout(e,0);function r3(){let e=[],t=0,o=s=>{s()},r=s=>{s()},n=jP,a=s=>{t?e.push(s):n(()=>{o(s)})},i=()=>{let s=e;e=[],s.length&&n(()=>{r(()=>{s.forEach(u=>{o(u)})})})};return{batch:s=>{let u;t++;try{u=s()}finally{t--,t||i()}return u},batchCalls:s=>(...u)=>{a(()=>{s(...u)})},schedule:a,setNotifyFunction:s=>{o=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{n=s}}}var He=r3();l();var zm=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Dc(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(or?1/0:5*60*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}};var KP=class extends zm{#t;#e;#o;#r;#n;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#o=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=n3(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#o.remove(this)}setData(e,t){let o=kc(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.#n?.promise;return this.#n?.cancel(e),t?t.then(Io).catch(Io):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Cr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===es||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!_m(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.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.#n&&(this.#s?this.#n.cancel({revert:!0}):this.#n.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"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){let s=this.observers.find(u=>u.options.queryFn);s&&this.setOptions(s.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=s=>{Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(this.#s=!0,o.signal)})},n=()=>{let s=Vm(this.options,t),u={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(u),this.#s=!1,this.options.persister?this.options.persister(s,u,this):s(u)},a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:n};r(a),this.options.behavior?.onFetch(a,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#a({type:"fetch",meta:a.fetchOptions?.meta});let i=s=>{Hm(s)&&s.silent||this.#a({type:"error",error:s}),Hm(s)||(this.#o.config.onError?.(s,this),this.#o.config.onSettled?.(this.state.data,s,this)),this.scheduleGc()};return this.#n=Um({initialPromise:t?.initialPromise,fn:a.fetchFn,abort:o.abort.bind(o),onSuccess:s=>{if(s===void 0){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}`),i(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(s)}catch(u){i(u);return}this.#o.config.onSuccess?.(s,this),this.#o.config.onSettled?.(s,this.state.error,this),this.scheduleGc()},onError:i,onFail:(s,u)=>{this.#a({type:"failed",failureCount:s,error:u})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#n.start()}#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,...Vv(o.data,this.options),fetchMeta:e.meta??null};case"success":return{...o,data:e.data,dataUpdateCount:o.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let r=e.error;return Hm(r)&&r.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...o,error:r,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...e.state}}};this.state=t(this.state),He.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:e})})}};function Vv(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Bv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function n3(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 YP=class extends Br{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,o){let r=t.queryKey,n=t.queryHash??Ac(r,t),a=this.get(n);return a||(a=new KP({client:e,queryKey:r,queryHash:n,options:e.defaultQueryOptions(t),state:o,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){He.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(o=>Fm(t,o))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(o=>Fm(e,o)):t}notify(e){He.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){He.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){He.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}};l();l();l();var XP=class extends zm{#t;#e;#o;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||Hv(),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.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){this.#o=Um({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(r,n)=>{this.#r({type:"failed",failureCount:r,error:n})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});let t=this.state.status==="pending",o=!this.#o.canStart();try{if(!t){this.#r({type:"pending",variables:e,isPaused:o}),await this.#e.config.onMutate?.(e,this);let n=await this.options.onMutate?.(e);n!==this.state.context&&this.#r({type:"pending",context:n,variables:e,isPaused:o})}let r=await this.#o.start();return await this.#e.config.onSuccess?.(r,e,this.state.context,this),await this.options.onSuccess?.(r,e,this.state.context),await this.#e.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,e,this.state.context),this.#r({type:"success",data:r}),r}catch(r){try{throw await this.#e.config.onError?.(r,e,this.state.context,this),await this.options.onError?.(r,e,this.state.context),await this.#e.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,r,e,this.state.context),r}finally{this.#r({type:"error",error:r})}}finally{this.#e.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),He.batch(()=>{this.#t.forEach(o=>{o.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function Hv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var QP=class extends Br{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#o=0}#t;#e;#o;build(e,t,o){let r=new XP({mutationCache:this,mutationId:++this.#o,options:e.defaultMutationOptions(t),state:o});return this.add(r),r}add(e){this.#t.add(e);let t=qm(e);if(typeof t=="string"){let o=this.#e.get(t);o?o.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){let t=qm(e);if(typeof t=="string"){let o=this.#e.get(t);if(o)if(o.length>1){let r=o.indexOf(e);r!==-1&&o.splice(r,1)}else o[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=qm(e);if(typeof t=="string"){let r=this.#e.get(t)?.find(n=>n.state.status==="pending");return!r||r===e}else return!0}runNext(e){let t=qm(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){He.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){let t={exact:!0,...e};return this.getAll().find(o=>Bm(t,o))}findAll(e={}){return this.getAll().filter(t=>Bm(e,t))}notify(e){He.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(t=>t.state.isPaused);return He.batch(()=>Promise.all(e.map(t=>t.continue().catch(Io))))}};function qm(e){return e.options.scope?.id}l();function Uv(e){return{onFetch:(t,o)=>{let r=t.options,n=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],i=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},u=0,c=async()=>{let d=!1,f=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?d=!0:t.signal.addEventListener("abort",()=>{d=!0}),t.signal)})},p=Vm(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 y={client:t.client,queryKey:t.queryKey,pageParam:g,direction:v?"backward":"forward",meta:t.options.meta};f(y);let w=await p(y),{maxPages:C}=t.options,S=v?$P:WP;return{pages:S(x.pages,w,C),pageParams:S(x.pageParams,g,C)}};if(n&&a.length){let x=n==="backward",g=x?a3:ZP,v={pages:a,pageParams:i},y=g(r,v);s=await m(v,y,x)}else{let x=e??a.length;do{let g=u===0?i[0]??r.initialPageParam:ZP(r,s);if(u>0&&g==null)break;s=await m(s,g),u++}while(u<x)}return s};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 ZP(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 a3(e,{pages:t,pageParams:o}){return t.length>0?e.getPreviousPageParam?.(t[0],t,o[0],o):void 0}var zv=class{#t;#e;#o;#r;#n;#i;#s;#a;constructor(e={}){this.#t=e.queryCache||new YP,this.#e=e.mutationCache||new QP,this.#o=e.defaultOptions||{},this.#r=new Map,this.#n=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=$l.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#a=Gl.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),o=this.#t.build(this,t),r=o.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&o.isStaleByTime(Qa(t.staleTime,o))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.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.#t.get(r.queryHash)?.state.data,i=zP(t,a);if(i!==void 0)return this.#t.build(this,r).setData(i,{...o,manual:!0})}setQueriesData(e,t,o){return He.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,o)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){let t=this.#t;He.batch(()=>{t.findAll(e).forEach(o=>{t.remove(o)})})}resetQueries(e,t){let o=this.#t;return He.batch(()=>(o.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let o={revert:!0,...t},r=He.batch(()=>this.#t.findAll(e).map(n=>n.cancel(o)));return Promise.all(r).then(Io).catch(Io)}invalidateQueries(e,t={}){return He.batch(()=>(this.#t.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=He.batch(()=>this.#t.findAll(e).filter(n=>!n.isDisabled()).map(n=>{let a=n.fetch(void 0,o);return o.throwOnError||(a=a.catch(Io)),n.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Io)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let o=this.#t.build(this,t);return o.isStaleByTime(Qa(t.staleTime,o))?o.fetch(t):Promise.resolve(o.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Io).catch(Io)}fetchInfiniteQuery(e){return e.behavior=Uv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Io).catch(Io)}ensureInfiniteQueryData(e){return e.behavior=Uv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Gl.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#o}setDefaultOptions(e){this.#o=e}setQueryDefaults(e,t){this.#r.set(Pn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],o={};return t.forEach(r=>{ql(e,r.queryKey)&&Object.assign(o,r.defaultOptions)}),o}setMutationDefaults(e,t){this.#n.set(Pn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#n.values()],o={};return t.forEach(r=>{ql(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=Ac(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===es&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#o.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}};l();var Wv=class extends Br{constructor(e,t){super(),this.options=t,this.#t=e,this.#a=null,this.#s=Oc(),this.options.experimental_prefetchInRender||this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#o=void 0;#r=void 0;#n;#i;#s;#a;#h;#f;#p;#u;#c;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),JP(this.#e,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return qv(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return qv(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#C(),this.#e.removeObserver(this)}setOptions(e){let t=this.options,o=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Cr(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!Wl(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});let r=this.hasListeners();r&&eM(this.#e,o,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==o||Cr(this.options.enabled,this.#e)!==Cr(t.enabled,this.#e)||Qa(this.options.staleTime,this.#e)!==Qa(t.staleTime,this.#e))&&this.#g();let n=this.#x();r&&(this.#e!==o||Cr(this.options.enabled,this.#e)!==Cr(t.enabled,this.#e)||n!==this.#l)&&this.#y(n)}getOptimisticResult(e){let t=this.#t.getQueryCache().build(this.#t,e),o=this.createResult(t,e);return s3(this,o)&&(this.#r=o,this.#i=this.options,this.#n=this.#e.state),o}getCurrentResult(){return this.#r}trackResult(e,t){let o={};return Object.keys(e).forEach(r=>{Object.defineProperty(o,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})}),o}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#t.defaultQueryOptions(e),o=this.#t.getQueryCache().build(this.#t,t);return o.fetch().then(()=>this.createResult(o,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Io)),t}#g(){this.#w();let e=Qa(this.options.staleTime,this.#e);if(or||this.#r.isStale||!Dc(e))return;let o=_m(this.#r.dataUpdatedAt,e)+1;this.#u=setTimeout(()=>{this.#r.isStale||this.updateResult()},o)}#x(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(e){this.#C(),this.#l=e,!(or||Cr(this.options.enabled,this.#e)===!1||!Dc(this.#l)||this.#l===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||$l.isFocused())&&this.#d()},this.#l))}#v(){this.#g(),this.#y(this.#x())}#w(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#C(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(e,t){let o=this.#e,r=this.options,n=this.#r,a=this.#n,i=this.#i,u=e!==o?e.state:this.#o,{state:c}=e,d={...c},f=!1,p;if(t._optimisticResults){let R=this.hasListeners(),P=!R&&JP(e,t),E=R&&eM(e,o,t,r);(P||E)&&(d={...d,...Vv(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:x,status:g}=d;if(t.select&&d.data!==void 0)if(n&&d.data===a?.data&&t.select===this.#h)p=this.#f;else try{this.#h=t.select,p=t.select(d.data),p=kc(n?.data,p,t),this.#f=p,this.#a=null}catch(R){this.#a=R}else p=d.data;if(t.placeholderData!==void 0&&p===void 0&&g==="pending"){let R;if(n?.isPlaceholderData&&t.placeholderData===i?.placeholderData)R=n.data;else if(R=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,t.select&&R!==void 0)try{R=t.select(R),this.#a=null}catch(P){this.#a=P}R!==void 0&&(g="success",p=kc(n?.data,R,t),f=!0)}this.#a&&(m=this.#a,p=this.#f,x=Date.now(),g="error");let v=d.fetchStatus==="fetching",y=g==="pending",w=g==="error",C=y&&v,S=p!==void 0,I={status:g,fetchStatus:d.fetchStatus,isPending:y,isSuccess:g==="success",isError:w,isInitialLoading:C,isLoading:C,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:v,isRefetching:v&&!y,isLoadingError:w&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:w&&S,isStale:$v(e,t),refetch:this.refetch,promise:this.#s};if(this.options.experimental_prefetchInRender){let R=D=>{I.status==="error"?D.reject(I.error):I.data!==void 0&&D.resolve(I.data)},P=()=>{let D=this.#s=I.promise=Oc();R(D)},E=this.#s;switch(E.status){case"pending":e.queryHash===o.queryHash&&R(E);break;case"fulfilled":(I.status==="error"||I.data!==E.value)&&P();break;case"rejected":(I.status!=="error"||I.error!==E.reason)&&P();break}}return I}updateResult(){let e=this.#r,t=this.createResult(this.#e,this.options);if(this.#n=this.#e.state,this.#i=this.options,this.#n.data!==void 0&&(this.#p=this.#e),Wl(t,e))return;this.#r=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.#r).some(i=>{let s=i;return this.#r[s]!==e[s]&&a.has(s)})};this.#b({listeners:o()})}#S(){let e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;let t=this.#e;this.#e=e,this.#o=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#b(e){He.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function i3(e,t){return Cr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function JP(e,t){return i3(e,t)||e.state.data!==void 0&&qv(e,t,t.refetchOnMount)}function qv(e,t,o){if(Cr(t.enabled,e)!==!1){let r=typeof o=="function"?o(e):o;return r==="always"||r!==!1&&$v(e,t)}return!1}function eM(e,t,o,r){return(e!==t||Cr(r.enabled,e)===!1)&&(!o.suspense||e.state.status!=="error")&&$v(e,o)}function $v(e,t){return Cr(t.enabled,e)!==!1&&e.isStaleByTime(Qa(t.staleTime,e))}function s3(e,t){return!Wl(e.getCurrentResult(),t)}l();var Gv=class extends Br{#t;#e=void 0;#o;#r;constructor(e,t){super(),this.#t=e,this.setOptions(t),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#t.defaultMutationOptions(e),Wl(this.options,t)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#o,observer:this}),t?.mutationKey&&this.options.mutationKey&&Pn(t.mutationKey)!==Pn(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.#n(),this.#i(e)}getCurrentResult(){return this.#e}reset(){this.#o?.removeObserver(this),this.#o=void 0,this.#n(),this.#i()}mutate(e,t){return this.#r=t,this.#o?.removeObserver(this),this.#o=this.#t.getMutationCache().build(this.#t,this.options),this.#o.addObserver(this),this.#o.execute(e)}#n(){let e=this.#o?.state??Hv();this.#e={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#i(e){He.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#e.variables,o=this.#e.context;e?.type==="success"?(this.#r.onSuccess?.(e.data,t,o),this.#r.onSettled?.(e.data,null,t,o)):e?.type==="error"&&(this.#r.onError?.(e.error,t,o),this.#r.onSettled?.(void 0,e.error,t,o))}this.listeners.forEach(t=>{t(this.#e)})})}};l();import*as jl from"react";import{jsx as l3}from"react/jsx-runtime";var jv=jl.createContext(void 0),rr=e=>{let t=jl.useContext(jv);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Kv=({client:e,children:t})=>(jl.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l3(jv.Provider,{value:e,children:t}));l();import*as Wm from"react";var tM=Wm.createContext(!1),oM=()=>Wm.useContext(tM),UPe=tM.Provider;l();import*as Nc from"react";import{jsx as $Pe}from"react/jsx-runtime";function u3(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var c3=Nc.createContext(u3()),rM=()=>Nc.useContext(c3);l();import*as nM from"react";l();function $m(e,t){return typeof e=="function"?e(...t):!!e}function _c(){}var aM=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},iM=e=>{nM.useEffect(()=>{e.clearReset()},[e])},sM=({result:e,errorResetBoundary:t,throwOnError:o,query:r,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(n&&e.data===void 0||$m(o,[e.error,r]));l();var lM=e=>{let t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...o)=>Math.max(t(...o),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},uM=(e,t)=>e.isLoading&&e.isFetching&&!t,cM=(e,t)=>e?.suspense&&t.isPending,Yv=(e,t,o)=>t.fetchOptimistic(e).catch(()=>{o.clearReset()});l();l();import*as Za from"react";function dM(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=rr(o),n=oM(),a=rM(),i=r.defaultQueryOptions(e);r.getDefaultOptions().queries?._experimental_beforeQuery?.(i),i.queryFn||console.error(`[${i.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`),i._optimisticResults=n?"isRestoring":"optimistic",lM(i),aM(i,a),iM(a);let s=!r.getQueryCache().get(i.queryHash),[u]=Za.useState(()=>new t(r,i)),c=u.getOptimisticResult(i),d=!n&&e.subscribed!==!1;if(Za.useSyncExternalStore(Za.useCallback(f=>{let p=d?u.subscribe(He.batchCalls(f)):_c;return u.updateResult(),p},[u,d]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),Za.useEffect(()=>{u.setOptions(i)},[i,u]),cM(i,c))throw Yv(i,u,a);if(sM({result:c,errorResetBoundary:a,throwOnError:i.throwOnError,query:r.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw c.error;return r.getDefaultOptions().queries?._experimental_afterQuery?.(i,c),i.experimental_prefetchInRender&&!or&&uM(c,n)&&(s?Yv(i,u,a):r.getQueryCache().get(i.queryHash)?.promise)?.catch(_c).finally(()=>{u.updateResult()}),i.notifyOnChangeProps?c:u.trackResult(c)}function Fc(e,t){return dM(e,Wv,t)}l();import*as ca from"react";function Bc(e,t){let o=rr(t);return pM({filters:{...e,status:"pending"}},o).length}function fM(e,t){return e.findAll(t.filters).map(o=>t.select?t.select(o):o.state)}function pM(e={},t){let o=rr(t).getMutationCache(),r=ca.useRef(e),n=ca.useRef(null);return n.current||(n.current=fM(o,e)),ca.useEffect(()=>{r.current=e}),ca.useSyncExternalStore(ca.useCallback(a=>o.subscribe(()=>{let i=zl(n.current,fM(o,r.current));n.current!==i&&(n.current=i,He.schedule(a))}),[o]),()=>n.current,()=>n.current)}l();import*as da from"react";function ts(e,t){let o=rr(t),[r]=da.useState(()=>new Gv(o,e));da.useEffect(()=>{r.setOptions(e)},[r,e]);let n=da.useSyncExternalStore(da.useCallback(i=>r.subscribe(He.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=da.useCallback((i,s)=>{r.mutate(i,s).catch(_c)},[r]);if(n.error&&$m(r.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:a,mutateAsync:n.mutate}}var mw=Zn(qc(),1);import{createContext as L$,useContext as P$,useEffect as pw,useState as jc}from"react";l();import X from"react";import I5 from"react-dom";function b5(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 R5=e=>{switch(e){case"success":return M5;case"info":return T5;case"warning":return E5;case"error":return D5;default:return null}},L5=Array(12).fill(0),P5=({visible:e,className:t})=>X.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},X.createElement("div",{className:"sonner-spinner"},L5.map((o,r)=>X.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),M5=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.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"})),E5=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},X.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"})),T5=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.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"})),D5=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.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"})),A5=X.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"},X.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),X.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),k5=()=>{let[e,t]=X.useState(document.hidden);return X.useEffect(()=>{let o=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),e},lw=1,uw=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:lw++,i=this.toasts.find(u=>u.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),i?this.toasts=this.toasts.map(u=>u.id===a?(this.publish({...u,...t,id:a,title:r}),{...u,...t,id:a,dismissible:s,title:r}):u):this.addToast({title:r,...n,dismissible:s,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,i,s=n.then(async c=>{if(i=["resolve",c],X.isValidElement(c))a=!1,this.create({id:r,type:"default",message:c});else if(N5(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"&&!X.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"&&!X.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"&&!X.isValidElement(f)?f:{message:f};this.create({id:r,type:"success",description:p,...x})}}).catch(async c=>{if(i=["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"&&!X.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)=>s.then(()=>i[0]==="reject"?d(i[1]):c(i[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||lw++;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}},nr=new uw,O5=(e,t)=>{let o=t?.id||lw++;return nr.addToast({title:e,...t,id:o}),o},N5=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",_5=O5,F5=()=>nr.toasts,B5=()=>nr.getActiveToasts(),Kl=Object.assign(_5,{success:nr.success,info:nr.info,warning:nr.warning,error:nr.error,custom:nr.custom,message:nr.message,promise:nr.promise,dismiss:nr.dismiss,loading:nr.loading},{getHistory:F5,getToasts:B5});b5("[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}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)}@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 sh(e){return e.label!==void 0}var V5=3,H5="24px",U5="16px",UM=4e3,z5=356,q5=14,W5=45,$5=200;function Mn(...e){return e.filter(Boolean).join(" ")}function G5(e){let[t,o]=e.split("-"),r=[];return t&&r.push(t),o&&r.push(o),r}var j5=e=>{var t,o,r,n,a,i,s,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:b,closeButton:I,style:R,cancelButtonStyle:P,actionButtonStyle:E,className:D="",descriptionClassName:A="",duration:O,position:V,gap:L,expandByDefault:N,classNames:T,icons:k,closeButtonAriaLabel:_="Close toast"}=e,[M,H]=X.useState(null),[B,U]=X.useState(null),[F,z]=X.useState(!1),[$,G]=X.useState(!1),[W,Y]=X.useState(!1),[J,j]=X.useState(!1),[se,re]=X.useState(!1),[ge,Ce]=X.useState(0),[Me,qe]=X.useState(0),xe=X.useRef(f.duration||O||UM),oe=X.useRef(null),Fe=X.useRef(null),St=y===0,Jo=y+1<=g,Ye=f.type,Jt=f.dismissible!==!1,Co=f.className||"",Nr=f.descriptionClassName||"",So=X.useMemo(()=>v.findIndex(ne=>ne.toastId===f.id)||0,[v,f.id]),eo=X.useMemo(()=>{var ne;return(ne=f.closeButton)!=null?ne:I},[f.closeButton,I]),to=X.useMemo(()=>f.duration||O||UM,[f.duration,O]),oo=X.useRef(0),fo=X.useRef(0),Be=X.useRef(0),bt=X.useRef(null),[de,ke]=V.split("-"),Se=X.useMemo(()=>v.reduce((ne,Oe,Te)=>Te>=So?ne:ne+Oe.height,0),[v,So]),rt=k5(),pt=f.invert||d,Fo=Ye==="loading";fo.current=X.useMemo(()=>So*L+Se,[So,Se]),X.useEffect(()=>{xe.current=to},[to]),X.useEffect(()=>{z(!0)},[]),X.useEffect(()=>{let ne=Fe.current;if(ne){let Oe=ne.getBoundingClientRect().height;return qe(Oe),x(Te=>[{toastId:f.id,height:Oe,position:f.position},...Te]),()=>x(Te=>Te.filter(We=>We.toastId!==f.id))}},[x,f.id]),X.useLayoutEffect(()=>{if(!F)return;let ne=Fe.current,Oe=ne.style.height;ne.style.height="auto";let Te=ne.getBoundingClientRect().height;ne.style.height=Oe,qe(Te),x(We=>We.find(et=>et.toastId===f.id)?We.map(et=>et.toastId===f.id?{...et,height:Te}:et):[{toastId:f.id,height:Te,position:f.position},...We])},[F,f.title,f.description,x,f.id]);let Ve=X.useCallback(()=>{G(!0),Ce(fo.current),x(ne=>ne.filter(Oe=>Oe.toastId!==f.id)),setTimeout(()=>{S(f)},$5)},[f,S,x,fo]);X.useEffect(()=>{if(f.promise&&Ye==="loading"||f.duration===1/0||f.type==="loading")return;let ne;return C||m||rt?(()=>{if(Be.current<oo.current){let We=new Date().getTime()-oo.current;xe.current=xe.current-We}Be.current=new Date().getTime()})():(()=>{xe.current!==1/0&&(oo.current=new Date().getTime(),ne=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),Ve()},xe.current))})(),()=>clearTimeout(ne)},[C,m,f,Ye,rt,Ve]),X.useEffect(()=>{f.delete&&Ve()},[Ve,f.delete]);function Ot(){var ne;if(k?.loading){var Oe;return X.createElement("div",{className:Mn(T?.loader,f==null||(Oe=f.classNames)==null?void 0:Oe.loader,"sonner-loader"),"data-visible":Ye==="loading"},k.loading)}return X.createElement(P5,{className:Mn(T?.loader,f==null||(ne=f.classNames)==null?void 0:ne.loader),visible:Ye==="loading"})}let Re=f.icon||k?.[Ye]||R5(Ye);var lt,Je;return X.createElement("li",{tabIndex:0,ref:Fe,className:Mn(D,Co,T?.toast,f==null||(t=f.classNames)==null?void 0:t.toast,T?.default,T?.[Ye],f==null||(o=f.classNames)==null?void 0:o[Ye]),"data-sonner-toast":"","data-rich-colors":(lt=f.richColors)!=null?lt:b,"data-styled":!(f.jsx||f.unstyled||p),"data-mounted":F,"data-promise":!!f.promise,"data-swiped":se,"data-removed":$,"data-visible":Jo,"data-y-position":de,"data-x-position":ke,"data-index":y,"data-front":St,"data-swiping":W,"data-dismissible":Jt,"data-type":Ye,"data-invert":pt,"data-swipe-out":J,"data-swipe-direction":B,"data-expanded":!!(C||N&&F),style:{"--index":y,"--toasts-before":y,"--z-index":w.length-y,"--offset":`${$?ge:fo.current}px`,"--initial-height":N?"auto":`${Me}px`,...R,...f.style},onDragEnd:()=>{Y(!1),H(null),bt.current=null},onPointerDown:ne=>{Fo||!Jt||(oe.current=new Date,Ce(fo.current),ne.target.setPointerCapture(ne.pointerId),ne.target.tagName!=="BUTTON"&&(Y(!0),bt.current={x:ne.clientX,y:ne.clientY}))},onPointerUp:()=>{var ne,Oe,Te;if(J||!Jt)return;bt.current=null;let We=Number(((ne=Fe.current)==null?void 0:ne.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),po=Number(((Oe=Fe.current)==null?void 0:Oe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),et=new Date().getTime()-((Te=oe.current)==null?void 0:Te.getTime()),_e=M==="x"?We:po,Bo=Math.abs(_e)/et;if(Math.abs(_e)>=W5||Bo>.11){Ce(fo.current),f.onDismiss==null||f.onDismiss.call(f,f),U(M==="x"?We>0?"right":"left":po>0?"down":"up"),Ve(),j(!0);return}else{var ut,mt;(ut=Fe.current)==null||ut.style.setProperty("--swipe-amount-x","0px"),(mt=Fe.current)==null||mt.style.setProperty("--swipe-amount-y","0px")}re(!1),Y(!1),H(null)},onPointerMove:ne=>{var Oe,Te,We;if(!bt.current||!Jt||((Oe=window.getSelection())==null?void 0:Oe.toString().length)>0)return;let et=ne.clientY-bt.current.y,_e=ne.clientX-bt.current.x;var Bo;let ut=(Bo=e.swipeDirections)!=null?Bo:G5(V);!M&&(Math.abs(_e)>1||Math.abs(et)>1)&&H(Math.abs(_e)>Math.abs(et)?"x":"y");let mt={x:0,y:0},vn=Vo=>1/(1.5+Math.abs(Vo)/20);if(M==="y"){if(ut.includes("top")||ut.includes("bottom"))if(ut.includes("top")&&et<0||ut.includes("bottom")&&et>0)mt.y=et;else{let Vo=et*vn(et);mt.y=Math.abs(Vo)<Math.abs(et)?Vo:et}}else if(M==="x"&&(ut.includes("left")||ut.includes("right")))if(ut.includes("left")&&_e<0||ut.includes("right")&&_e>0)mt.x=_e;else{let Vo=_e*vn(_e);mt.x=Math.abs(Vo)<Math.abs(_e)?Vo:_e}(Math.abs(mt.x)>0||Math.abs(mt.y)>0)&&re(!0),(Te=Fe.current)==null||Te.style.setProperty("--swipe-amount-x",`${mt.x}px`),(We=Fe.current)==null||We.style.setProperty("--swipe-amount-y",`${mt.y}px`)}},eo&&!f.jsx&&Ye!=="loading"?X.createElement("button",{"aria-label":_,"data-disabled":Fo,"data-close-button":!0,onClick:Fo||!Jt?()=>{}:()=>{Ve(),f.onDismiss==null||f.onDismiss.call(f,f)},className:Mn(T?.closeButton,f==null||(r=f.classNames)==null?void 0:r.closeButton)},(Je=k?.close)!=null?Je:A5):null,(Ye||f.icon||f.promise)&&f.icon!==null&&(k?.[Ye]!==null||f.icon)?X.createElement("div",{"data-icon":"",className:Mn(T?.icon,f==null||(n=f.classNames)==null?void 0:n.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Ot():null,f.type!=="loading"?Re:null):null,X.createElement("div",{"data-content":"",className:Mn(T?.content,f==null||(a=f.classNames)==null?void 0:a.content)},X.createElement("div",{"data-title":"",className:Mn(T?.title,f==null||(i=f.classNames)==null?void 0:i.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?X.createElement("div",{"data-description":"",className:Mn(A,Nr,T?.description,f==null||(s=f.classNames)==null?void 0:s.description)},typeof f.description=="function"?f.description():f.description):null),X.isValidElement(f.cancel)?f.cancel:f.cancel&&sh(f.cancel)?X.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||P,onClick:ne=>{sh(f.cancel)&&Jt&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,ne),Ve())},className:Mn(T?.cancelButton,f==null||(u=f.classNames)==null?void 0:u.cancelButton)},f.cancel.label):null,X.isValidElement(f.action)?f.action:f.action&&sh(f.action)?X.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||E,onClick:ne=>{sh(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,ne),!ne.defaultPrevented&&Ve())},className:Mn(T?.actionButton,f==null||(c=f.classNames)==null?void 0:c.actionButton)},f.action.label):null)};function zM(){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 K5(e,t){let o={};return[e,t].forEach((r,n)=>{let a=n===1,i=a?"--mobile-offset":"--offset",s=a?U5:H5;function u(c){["top","right","bottom","left"].forEach(d=>{o[`${i}-${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[`${i}-${c}`]=s:o[`${i}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):u(s)}),o}var qM=X.forwardRef(function(t,o){let{invert:r,position:n="bottom-right",hotkey:a=["altKey","KeyT"],expand:i,closeButton:s,className:u,offset:c,mobileOffset:d,theme:f="light",richColors:p,duration:m,style:x,visibleToasts:g=V5,toastOptions:v,dir:y=zM(),gap:w=q5,icons:C,containerAriaLabel:S="Notifications"}=t,[b,I]=X.useState([]),R=X.useMemo(()=>Array.from(new Set([n].concat(b.filter(B=>B.position).map(B=>B.position)))),[b,n]),[P,E]=X.useState([]),[D,A]=X.useState(!1),[O,V]=X.useState(!1),[L,N]=X.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),T=X.useRef(null),k=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=X.useRef(null),M=X.useRef(!1),H=X.useCallback(B=>{I(U=>{var F;return(F=U.find(z=>z.id===B.id))!=null&&F.delete||nr.dismiss(B.id),U.filter(({id:z})=>z!==B.id)})},[]);return X.useEffect(()=>nr.subscribe(B=>{if(B.dismiss){requestAnimationFrame(()=>{I(U=>U.map(F=>F.id===B.id?{...F,delete:!0}:F))});return}setTimeout(()=>{I5.flushSync(()=>{I(U=>{let F=U.findIndex(z=>z.id===B.id);return F!==-1?[...U.slice(0,F),{...U[F],...B},...U.slice(F+1)]:[B,...U]})})})}),[b]),X.useEffect(()=>{if(f!=="system"){N(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?N("dark"):N("light")),typeof window>"u")return;let B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:U})=>{N(U?"dark":"light")})}catch{B.addListener(({matches:F})=>{try{N(F?"dark":"light")}catch(z){console.error(z)}})}},[f]),X.useEffect(()=>{b.length<=1&&A(!1)},[b]),X.useEffect(()=>{let B=U=>{var F;if(a.every(G=>U[G]||U.code===G)){var $;A(!0),($=T.current)==null||$.focus()}U.code==="Escape"&&(document.activeElement===T.current||(F=T.current)!=null&&F.contains(document.activeElement))&&A(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[a]),X.useEffect(()=>{if(T.current)return()=>{_.current&&(_.current.focus({preventScroll:!0}),_.current=null,M.current=!1)}},[T.current]),X.createElement("section",{ref:o,"aria-label":`${S} ${k}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map((B,U)=>{var F;let[z,$]=B.split("-");return b.length?X.createElement("ol",{key:B,dir:y==="auto"?zM():y,tabIndex:-1,ref:T,className:u,"data-sonner-toaster":!0,"data-sonner-theme":L,"data-y-position":z,"data-lifted":D&&b.length>1&&!i,"data-x-position":$,style:{"--front-toast-height":`${((F=P[0])==null?void 0:F.height)||0}px`,"--width":`${z5}px`,"--gap":`${w}px`,...x,...K5(c,d)},onBlur:G=>{M.current&&!G.currentTarget.contains(G.relatedTarget)&&(M.current=!1,_.current&&(_.current.focus({preventScroll:!0}),_.current=null))},onFocus:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||M.current||(M.current=!0,_.current=G.relatedTarget)},onMouseEnter:()=>A(!0),onMouseMove:()=>A(!0),onMouseLeave:()=>{O||A(!1)},onDragEnd:()=>A(!1),onPointerDown:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||V(!0)},onPointerUp:()=>V(!1)},b.filter(G=>!G.position&&U===0||G.position===B).map((G,W)=>{var Y,J;return X.createElement(j5,{key:G.id,icons:C,index:W,toast:G,defaultRichColors:p,duration:(Y=v?.duration)!=null?Y:m,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:r,visibleToasts:g,closeButton:(J=v?.closeButton)!=null?J:s,interacting:O,position:B,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:H,toasts:b.filter(j=>j.position==G.position),heights:P.filter(j=>j.position==G.position),setHeights:E,expandByDefault:i,gap:w,expanded:D,swipeDirections:t.swipeDirections})})):null}))});l();var lh=Object.create(null),Wc=e=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?lh:globalThis),ei=new Proxy(lh,{get(e,t){return Wc()[t]??lh[t]},has(e,t){let o=Wc();return t in o||t in lh},set(e,t,o){let r=Wc(!0);return r[t]=o,!0},deleteProperty(e,t){if(!t)return!1;let o=Wc(!0);return delete o[t],!0},ownKeys(){let e=Wc(!0);return Object.keys(e)}}),Y5=typeof process<"u"&&process.env&&"true"||"",X5=[["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}],["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 Q5(){if(globalThis.process?.env)for(let e of X5){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 $M=Q5(),vEe=$M.name;function rs(e){return e?e!=="false":!1}var cw=globalThis.process?.platform||"",uh=rs(ei.CI)||$M.ci!==!1,GM=rs(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY),ch=typeof window<"u",wEe=rs(ei.DEBUG),Z5=Y5==="test"||rs(ei.TEST);var CEe=rs(ei.MINIMAL)||uh||Z5||!GM,J5=/^win/i.test(cw),SEe=/^linux/i.test(cw),bEe=/^darwin/i.test(cw),IEe=!rs(ei.NO_COLOR)&&(rs(ei.FORCE_COLOR)||(GM||J5)&&ei.TERM!=="dumb"||uh),e$=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null,REe=Number(e$?.split(".")[0])||null,t$=globalThis.process||Object.create(null),WM={versions:{}},LEe=new Proxy(t$,{get(e,t){if(t==="env")return ei;if(t in e)return e[t];if(t in WM)return WM[t]}}),o$=globalThis.process?.release?.name==="node",r$=!!globalThis.Bun||!!globalThis.process?.versions?.bun,n$=!!globalThis.Deno,a$=!!globalThis.fastly,i$=!!globalThis.Netlify,s$=!!globalThis.EdgeRuntime,l$=globalThis.navigator?.userAgent==="Cloudflare-Workers",u$=[[i$,"netlify"],[s$,"edge-light"],[l$,"workerd"],[a$,"fastly"],[n$,"deno"],[r$,"bun"],[o$,"node"]];function c$(){let e=u$.find(t=>t[0]);if(e)return{name:e[1]}}var d$=c$(),PEe=d$?.name||"";l();import{jsx as f$}from"react/jsx-runtime";var jM=({...e})=>f$(qM,{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 KM,useMemo as YM}from"react";function QM(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=XM(r[1])),n&&n[1]&&(t.dark=XM(n[1])),Object.keys(t.light).length===0&&Object.keys(t.dark).length===0?null:t}catch{return null}}function XM(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 p$(e){let t=document.documentElement;Object.entries(e).forEach(([o,r])=>{t.style.setProperty(o,r)})}function m$(e){let t=document.querySelector(".ps");t&&(e?t.classList.add("dark"):t.classList.remove("dark"))}function ZM(e,t){let o=YM(()=>e?typeof e=="string"?QM(e):e:null,[e]),r=YM(()=>o?o[t?"dark":"light"]||{}:null,[o,t]);return KM(()=>{r&&p$(r)},[r]),KM(()=>{m$(t??!1)},[t]),{parsedTheme:o,currentThemeVariables:r,hasCustomTheme:!!o}}l();l();l();import{createContext as h$,createElement as g$,useContext as x$}from"react";var y$={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.",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 Gc(e){return`[nuqs] ${y$[e]}
|
|
18
|
-
See https://err.47ng.com/NUQS-${e}`}var dw=w$();function tn(e,...t){if(!dw)return;let o=v$(e,...t);performance.mark(o);try{console.log(e,...t)}catch{console.log(o)}}function JM(e,...t){dw&&console.warn(e,...t)}function v$(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 w$(){try{if(typeof localStorage>"u")return!1;let t="nuqs-localStorage-test";localStorage.setItem(t,t);let o=localStorage.getItem(t)===t;if(localStorage.removeItem(t),!o)return!1}catch(t){return console.error("[nuqs]: debug mode is disabled (localStorage unavailable).",t),!1}return(localStorage.getItem("debug")??"").includes("nuqs")}var $c=h$({useAdapter(){throw new Error(Gc(404))}});$c.displayName="NuqsAdapterContext";dw&&typeof window<"u"&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==$c&&console.error(Gc(303)),window.__NuqsAdapterContext=$c);function fw(e){return({children:t,...o})=>g$($c.Provider,{...o,value:{useAdapter:e}},t)}function eE(){let e=x$($c);if(!("useAdapter"in e))throw new Error(Gc(404));return e.useAdapter()}import{useEffect as S$,useState as b$}from"react";function I$(e,t){let o;return(...r)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...r),t)}}function R$(){let e=typeof window<"u"?window.location.hash.slice(1):"",[t,o]=b$(new URLSearchParams(e));function r(a,{history:i}){let{pathname:s,search:u}=window.location,c=a.toString(),d=`${s}${u}#${c}`;i==="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 S$(()=>{let a=I$(()=>{let i=window.location.hash.slice(1);o(new URLSearchParams(i))},50);return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[]),{searchParams:t,updateUrl:r,getSearchParamsSnapshot:n}}var tE=fw(R$);import{jsx as dh,jsxs as D$}from"react/jsx-runtime";var oE=new zv,rE=L$(void 0);function nE(e){let{children:t,onEvent:o,adapter:r,theme:n}=e,[a,i]=jc(!1),[s,u]=jc(!0),[c,d]=jc([]),[f,p]=jc(()=>typeof document<"u"?document.documentElement.classList.contains("dark"):!1);pw(()=>{p(document.documentElement.classList.contains("dark"))},[]);let[m]=jc(mw.default.generate()),{hasCustomTheme:x}=ZM(n,f);pw(()=>{oE.resetQueries({exact:!1,queryKey:[]})},[r]),pw(()=>{let w=new MutationObserver(C=>{C.forEach(S=>{if(S.type==="attributes"&&S.attributeName==="class"){let b=document.documentElement.classList.contains("dark");p(b)}})});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;Kl.error(`"${S.operation}" operation failed`,{action:{label:"Console",onClick:()=>{window.location.hash=hw({viewParam:"console"})}}})}let b=mw.default.generate(),I=new Date().toISOString(),R={...w,eventId:b,timestamp:I};(R.name==="studio_operation_success"||R.name==="studio_operation_error")&&d(P=>{let E=[...P,R];return E.length>100?E.slice(0,100):E}),o?.(R),C==="studio_launched"&&ch&&!uh&&!M$()&&!T$()&&VP({additionalData:{eventPayload:S,variant:"free"},command:C,eventId:b,product:"prisma-studio-embedded",signature:m,skipUpdateCheck:!0,timestamp:new Date(I),version:"0.11.0"}).catch(P=>{console.error(P)})},v=()=>i(w=>!w),y=()=>u(w=>!w);return D$(Kv,{client:oE,children:[dh(jM,{}),dh(tE,{children:dh(rE.Provider,{value:{adapter:r,isFullscreen:a,onEvent:g,operationEvents:c,toggleFullscreen:v,isNavigationOpen:s,toggleNavigation:y,isDarkMode:f,hasCustomTheme:x},children:dh(aE,{children:t})})})]})}function no(){let e=P$(rE);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}function M$(){return E$()&&"__PVCE__"in window&&window.__PVCE__===!0}function E$(){return ch&&"acquireVsCodeApi"in window&&typeof window.acquireVsCodeApi=="function"}function T$(){if(!ch)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();function fh(e,t,o){try{return e(t)}catch(r){return JM("[nuqs] Error while parsing value `%s`: %O"+(o?" (for key `%s`)":""),t,r,o),null}}function A$(){if(typeof window>"u"||!!!window.GestureEvent)return 50;try{let t=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(t[1])>=17?120:320}catch{return 320}}var Yl=A$(),Yc=new Map,Sr={history:"replace",scroll:!1,shallow:!0,throttleMs:Yl},gw=new Set,iE=0,Kc=null;function sE(e){return Yc.get(e)}function k$(){Yc.clear(),gw.clear(),Sr.history="replace",Sr.scroll=!1,Sr.shallow=!0,Sr.throttleMs=Yl}function lE(e,t,o,r){let n=t===null?null:o(t);return tn("[nuqs queue] Enqueueing %s=%s %O",e,n,r),Yc.set(e,n),r.history==="push"&&(Sr.history="push"),r.scroll&&(Sr.scroll=!0),r.shallow===!1&&(Sr.shallow=!1),r.startTransition&&gw.add(r.startTransition),Sr.throttleMs=Math.max(r.throttleMs??Yl,Number.isFinite(Sr.throttleMs)?Sr.throttleMs:0),n}function O$(){return new URLSearchParams(location.search)}function uE({getSearchParamsSnapshot:e=O$,updateUrl:t,rateLimitFactor:o=1}){return Kc===null&&(Kc=new Promise((r,n)=>{if(!Number.isFinite(Sr.throttleMs)){tn("[nuqs queue] Skipping flush due to throttleMs=Infinity"),r(e()),setTimeout(()=>{Kc=null},0);return}function a(){iE=performance.now();let[s,u]=N$({updateUrl:t,getSearchParamsSnapshot:e});u===null?r(s):n(s),Kc=null}function i(){let u=performance.now()-iE,c=Sr.throttleMs,d=o*Math.max(0,Math.min(c,c-u));tn("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",d,c),d===0?a():setTimeout(a,d)}setTimeout(i,0)})),Kc}function N$({updateUrl:e,getSearchParamsSnapshot:t}){let o=t();if(Yc.size===0)return[o,null];let r=Array.from(Yc.entries()),n={...Sr},a=Array.from(gw);k$(),tn("[nuqs queue] Flushing queue %O with options %O",r,n);for(let[i,s]of r)s===null?o.delete(i):o.set(i,s);try{return _$(a,()=>{e(o,{history:n.history,scroll:n.scroll,shallow:n.shallow})}),[o,null]}catch(i){return console.error(Gc(429),r.map(([s])=>s).join(),i),[o,i]}}function _$(e,t){let o=r=>{if(r===e.length)return t();let n=e[r];if(!n)throw new Error("Invalid transition function");n(()=>o(r+1))};o(0)}import{useRef as dE,useState as F$,useEffect as fE,useCallback as B$,useMemo as gTe}from"react";l();function cE(e){return{all:e=e||new Map,on:function(t,o){var r=e.get(t);r?r.push(o):e.set(t,[o])},off:function(t,o){var r=e.get(t);r&&(o?r.splice(r.indexOf(o)>>>0,1):e.set(t,[]))},emit:function(t,o){var r=e.get(t);r&&r.slice().map(function(n){n(o)}),(r=e.get("*"))&&r.slice().map(function(n){n(t,o)})}}}function pa(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),fh(e.parse,r)}return{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 yTe=pa({parse:e=>e,serialize:e=>`${e}`}),pE=pa({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:t},serialize:e=>Math.round(e).toFixed()}),vTe=pa({parse:e=>{let t=pE.parse(e);return t===null?null:t-1},serialize:e=>pE.serialize(e+1)}),wTe=pa({parse:e=>{let t=parseInt(e,16);return Number.isNaN(t)?null:t},serialize:e=>{let t=Math.round(e).toString(16);return t.padStart(t.length+t.length%2,"0")}}),CTe=pa({parse:e=>{let t=parseFloat(e);return Number.isNaN(t)?null:t},serialize:e=>e.toString()}),STe=pa({parse:e=>e==="true",serialize:e=>e?"true":"false"});function yw(e,t){return e.valueOf()===t.valueOf()}var bTe=pa({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:new Date(t)},serialize:e=>e.valueOf().toString(),eq:yw}),ITe=pa({parse:e=>{let t=new Date(e);return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString(),eq:yw}),RTe=pa({parse:e=>{let t=new Date(e.slice(0,10));return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString().slice(0,10),eq:yw});var xw=cE();function mE(e,{history:t="replace",shallow:o=!0,scroll:r=!1,throttleMs:n=Yl,parse:a=f=>f,serialize:i=String,eq:s=(f,p)=>f===p,defaultValue:u=void 0,clearOnDefault:c=!0,startTransition:d}={history:"replace",scroll:!1,shallow:!0,throttleMs:Yl,parse:f=>f,serialize:String,eq:(f,p)=>f===p,clearOnDefault:!0,defaultValue:void 0}){let f=eE(),p=f.searchParams,m=dE(p?.get(e)??null),[x,g]=F$(()=>{let w=sE(e),C=w===void 0?p?.get(e)??null:w;return C===null?null:fh(a,C,e)}),v=dE(x);tn("[nuqs `%s`] render - state: %O, iSP: %s",e,x,p?.get(e)??null),fE(()=>{let w=p?.get(e)??null;if(w===m.current)return;let C=w===null?null:fh(a,w,e);tn("[nuqs `%s`] syncFromUseSearchParams %O",e,C),v.current=C,m.current=w,g(C)},[p?.get(e),e]),fE(()=>{function w({state:C,query:S}){tn("[nuqs `%s`] updateInternalState %O",e,C),v.current=C,m.current=S,g(C)}return tn("[nuqs `%s`] subscribing to sync",e),xw.on(e,w),()=>{tn("[nuqs `%s`] unsubscribing from sync",e),xw.off(e,w)}},[e]);let y=B$((w,C={})=>{let S=V$(w)?w(v.current??u??null):w;(C.clearOnDefault??c)&&S!==null&&u!==void 0&&s(S,u)&&(S=null);let b=lE(e,S,i,{history:C.history??t,shallow:C.shallow??o,scroll:C.scroll??r,throttleMs:C.throttleMs??n,startTransition:C.startTransition??d});return xw.emit(e,{state:S,query:b}),uE(f)},[e,t,o,r,n,d,f.updateUrl,f.getSearchParamsSnapshot,f.rateLimitFactor]);return[x??u??null,y]}function V$(e){return typeof e=="function"}var TTe=Symbol("BRAND_SYMBOL");function ti(e,t){return mE(e,t)}l();var gE=Zn(qc(),1);import{useEffect as H$,useMemo as hE,useState as U$}from"react";var xE={kind:"FilterGroup",filters:[],after:"and",id:gE.default.generate()},yE=e=>{let t=0;for(let o of e.filters)o.kind==="ColumnFilter"?o.column.trim()&&t++:o.kind==="FilterGroup"&&(t+=yE(o));return t};function vE(){let{filterParam:e,setFilterParam:t}=$e(),o=hE(()=>JSON.parse(e),[e]),r=s=>void t(JSON.stringify(s)),[n,a]=U$(o);H$(()=>{a(o)},[o]);let i=hE(()=>yE(n),[n]);return{appliedFilter:o,setAppliedFilter:r,editingFilter:n,setEditingFilter:a,totalEditingFilters:i}}l();var wE=-1;function En(){let{adapter:e,onEvent:t}=no();return Fc({initialData:{schemas:{[e.defaultSchema||"db"]:{name:e.defaultSchema||"db",tables:{}}},timezone:"UTC",filterOperators:[],query:{parameters:[],sql:""}},initialDataUpdatedAt:wE,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((i,s)=>i+Object.keys(s.tables).length,0);return t({name:"studio_launched",payload:{tableCount:a}}),n},queryKey:["introspection"],staleTime:o=>o.state.dataUpdatedAt===wE?0:1/0})}import{jsx as G$}from"react/jsx-runtime";function hw(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 W$(e){let{adapter:t,introspection:o}=e,{schemas:r}=o,{defaultSchema:n}=t,a=n??Object.keys(r)[0]??"public",i=Object.keys(r[a]?.tables??{})[0]??"",s=JSON.stringify(xE);return{schema:a,table:i,filter:s,pageIndex:"0",pageSize:"25",view:"table"}}function $$(){let{adapter:e}=no(),{data:t,isFetching:o}=En(),{schemas:r}=t,n=CE(()=>W$({adapter:e,introspection:t}),[e,t]),[a,i]=ti("filter",{defaultValue:n.filter}),[s,u]=ti("pageIndex",{defaultValue:n.pageIndex}),[c,d]=ti("pageSize",{defaultValue:n.pageSize}),[f,p]=ti("schema",{defaultValue:n.schema}),[m,x]=ti("sort"),[g,v]=ti("table",{defaultValue:n.table}),[y,w]=ti("view",{defaultValue:n.view}),C=f?r[f]:void 0,S=C?C.tables:void 0,b=S&&g?S[g]:void 0;return{metadata:CE(()=>({activeSchema:C,activeTables:S,activeTable:b,isFetching:o}),[C,S,b,o]),createUrl:hw,filterParam:a,pageIndexParam:s,pageSizeParam:c,schemaParam:f,sortParam:m,tableParam:g,viewParam:y,setFilterParam:i,setPageIndexParam:u,setPageSizeParam:d,setSchemaParam:p,setSortParam:x,setTableParam:v,setViewParam:w}}var SE=z$(void 0);function aE({children:e}){let t=$$();return G$(SE.Provider,{value:t,children:e})}function $e(){let e=q$(SE);if(e===void 0)throw new Error("useNavigationContext must be used within a NavigationContextProvider");return e}l();l();function bE(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=bE(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function IE(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=bE(e))&&(r&&(r+=" "),r+=t);return r}l();var Cw="-",j$=e=>{let t=Y$(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{let s=i.split(Cw);return s[0]===""&&s.length!==1&&s.shift(),EE(s,t)||K$(i)},getConflictingClassGroupIds:(i,s)=>{let u=o[i]||[];return s&&r[i]?[...u,...r[i]]:u}}},EE=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?EE(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(Cw);return t.validators.find(({validator:i})=>i(a))?.classGroupId},RE=/^\[(.+)\]$/,K$=e=>{if(RE.test(e)){let t=RE.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Y$=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Q$(Object.entries(e.classGroups),o).forEach(([a,i])=>{ww(i,r,a,t)}),r},ww=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:LE(t,n);a.classGroupId=o;return}if(typeof n=="function"){if(X$(n)){ww(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,i])=>{ww(i,LE(t,a),o,r)})})},LE=(e,t)=>{let o=e;return t.split(Cw).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},X$=e=>e.isThemeGetter,Q$=(e,t)=>t?e.map(([o,r])=>{let n=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[o,n]}):e,Z$=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(a,i)=>{o.set(a,i),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let i=o.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return n(a,i),i},set(a,i){o.has(a)?o.set(a,i):n(a,i)}}},TE="!",J$=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],a=t.length,i=s=>{let u=[],c=0,d=0,f;for(let v=0;v<s.length;v++){let y=s[v];if(c===0){if(y===n&&(r||s.slice(v,v+a)===t)){u.push(s.slice(d,v)),d=v+a;continue}if(y==="/"){f=v;continue}}y==="["?c++:y==="]"&&c--}let p=u.length===0?s:s.substring(d),m=p.startsWith(TE),x=m?p.substring(1):p,g=f&&f>d?f-d:void 0;return{modifiers:u,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:g}};return o?s=>o({className:s,parseClassName:i}):i},eG=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},tG=e=>({cache:Z$(e.cacheSize),parseClassName:J$(e),...j$(e)}),oG=/\s+/,rG=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,a=[],i=e.trim().split(oG),s="";for(let u=i.length-1;u>=0;u-=1){let c=i[u],{modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=o(c),x=!!m,g=r(x?p.substring(0,m):p);if(!g){if(!x){s=c+(s.length>0?" "+s:s);continue}if(g=r(p),!g){s=c+(s.length>0?" "+s:s);continue}x=!1}let v=eG(d).join(":"),y=f?v+TE:v,w=y+g;if(a.includes(w))continue;a.push(w);let C=n(g,x);for(let S=0;S<C.length;++S){let b=C[S];a.push(y+b)}s=c+(s.length>0?" "+s:s)}return s};function nG(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=DE(t))&&(r&&(r+=" "),r+=o);return r}var DE=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=DE(e[r]))&&(o&&(o+=" "),o+=t);return o};function PE(e,...t){let o,r,n,a=i;function i(u){let c=t.reduce((d,f)=>f(d),e());return o=tG(c),r=o.cache.get,n=o.cache.set,a=s,s(u)}function s(u){let c=r(u);if(c)return c;let d=rG(u,o);return n(u,d),d}return function(){return a(nG.apply(null,arguments))}}var it=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},AE=/^\[(?:([a-z-]+):)?(.+)\]$/i,aG=/^\d+\/\d+$/,iG=new Set(["px","full","screen"]),sG=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lG=/\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$/,uG=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,cG=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dG=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ma=e=>Xl(e)||iG.has(e)||aG.test(e),oi=e=>Ql(e,"length",vG),Xl=e=>!!e&&!Number.isNaN(Number(e)),vw=e=>Ql(e,"number",Xl),Xc=e=>!!e&&Number.isInteger(Number(e)),fG=e=>e.endsWith("%")&&Xl(e.slice(0,-1)),we=e=>AE.test(e),ri=e=>sG.test(e),pG=new Set(["length","size","percentage"]),mG=e=>Ql(e,pG,kE),hG=e=>Ql(e,"position",kE),gG=new Set(["image","url"]),xG=e=>Ql(e,gG,CG),yG=e=>Ql(e,"",wG),Qc=()=>!0,Ql=(e,t,o)=>{let r=AE.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},vG=e=>lG.test(e)&&!uG.test(e),kE=()=>!1,wG=e=>cG.test(e),CG=e=>dG.test(e);var ME=()=>{let e=it("colors"),t=it("spacing"),o=it("blur"),r=it("brightness"),n=it("borderColor"),a=it("borderRadius"),i=it("borderSpacing"),s=it("borderWidth"),u=it("contrast"),c=it("grayscale"),d=it("hueRotate"),f=it("invert"),p=it("gap"),m=it("gradientColorStops"),x=it("gradientColorStopPositions"),g=it("inset"),v=it("margin"),y=it("opacity"),w=it("padding"),C=it("saturate"),S=it("scale"),b=it("sepia"),I=it("skew"),R=it("space"),P=it("translate"),E=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto",we,t],O=()=>[we,t],V=()=>["",ma,oi],L=()=>["auto",Xl,we],N=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],T=()=>["solid","dashed","dotted","double","none"],k=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",we],H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[Xl,we];return{cacheSize:500,separator:":",theme:{colors:[Qc],spacing:[ma,oi],blur:["none","",ri,we],brightness:B(),borderColor:[e],borderRadius:["none","","full",ri,we],borderSpacing:O(),borderWidth:V(),contrast:B(),grayscale:M(),hueRotate:B(),invert:M(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[fG,oi],inset:A(),margin:A(),opacity:B(),padding:O(),saturate:B(),scale:B(),sepia:M(),skew:B(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",we]}],container:["container"],columns:[{columns:[ri]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"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"],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:[...N(),we]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Xc,we]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",we]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",Xc,we]}],"grid-cols":[{"grid-cols":[Qc]}],"col-start-end":[{col:["auto",{span:["full",Xc,we]},we]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Qc]}],"row-start-end":[{row:["auto",{span:[Xc,we]},we]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",we]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",we]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",..._()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",we,t]}],"min-w":[{"min-w":[we,t,"min","max","fit"]}],"max-w":[{"max-w":[we,t,"none","full","min","max","fit","prose",{screen:[ri]},ri]}],h:[{h:[we,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[we,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[we,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[we,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ri,oi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",vw]}],"font-family":[{font:[Qc]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",we]}],"line-clamp":[{"line-clamp":["none",Xl,vw]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ma,we]}],"list-image":[{"list-image":["none",we]}],"list-style-type":[{list:["none","disc","decimal",we]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...T(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ma,oi]}],"underline-offset":[{"underline-offset":["auto",ma,we]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...N(),hG]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mG]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},xG]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...T(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:T()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...T()]}],"outline-offset":[{"outline-offset":[ma,we]}],"outline-w":[{outline:[ma,oi]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ma,oi]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ri,yG]}],"shadow-color":[{shadow:[Qc]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...k(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":k()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",ri,we]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[C]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",we]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",we]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",we]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Xc,we]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",we]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",we]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",we]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ma,oi,vw]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},SG=(e,{cacheSize:t,prefix:o,separator:r,experimentalParseClassName:n,extend:a={},override:i={}})=>{Zc(e,"cacheSize",t),Zc(e,"prefix",o),Zc(e,"separator",r),Zc(e,"experimentalParseClassName",n);for(let s in i)bG(e[s],i[s]);for(let s in a)IG(e[s],a[s]);return e},Zc=(e,t,o)=>{o!==void 0&&(e[t]=o)},bG=(e,t)=>{if(t)for(let o in t)Zc(e,o,t[o])},IG=(e,t)=>{if(t)for(let o in t){let r=t[o];r!==void 0&&(e[o]=(e[o]||[]).concat(r))}},OE=(e,...t)=>typeof e=="function"?PE(ME,e,...t):PE(()=>SG(ME(),e),...t);var RG=OE({});function q(...e){return RG(IE(e))}l();l();import*as $t from"react";l();import*as _E from"react";function NE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ns(...e){return t=>{let o=!1,r=e.map(n=>{let a=NE(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():NE(e[n],null)}}}}function Pe(...e){return _E.useCallback(ns(...e),e)}import{Fragment as LG,jsx as Sw}from"react/jsx-runtime";var Eo=$t.forwardRef((e,t)=>{let{children:o,...r}=e,n=$t.Children.toArray(o),a=n.find(MG);if(a){let i=a.props.children,s=n.map(u=>u===a?$t.Children.count(i)>1?$t.Children.only(null):$t.isValidElement(i)?i.props.children:null:u);return Sw(bw,{...r,ref:t,children:$t.isValidElement(i)?$t.cloneElement(i,void 0,s):null})}return Sw(bw,{...r,ref:t,children:o})});Eo.displayName="Slot";var bw=$t.forwardRef((e,t)=>{let{children:o,...r}=e;if($t.isValidElement(o)){let n=TG(o),a=EG(r,o.props);return o.type!==$t.Fragment&&(a.ref=t?ns(t,n):n),$t.cloneElement(o,a)}return $t.Children.count(o)>1?$t.Children.only(null):null});bw.displayName="SlotClone";var PG=({children:e})=>Sw(LG,{children:e});function MG(e){return $t.isValidElement(e)&&e.type===PG}function EG(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]=(...s)=>{a(...s),n(...s)}:n&&(o[r]=n):r==="style"?o[r]={...n,...a}:r==="className"&&(o[r]=[n,a].filter(Boolean).join(" "))}return{...e,...o}}function TG(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 AG,createElement as kG}from"react";l();var FE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ph=(...e)=>e.filter((t,o,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===o).join(" ").trim();l();import{forwardRef as DG,createElement as VE}from"react";l();var BE={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 HE=DG(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:n="",children:a,iconNode:i,...s},u)=>VE("svg",{ref:u,...BE,width:t,height:t,stroke:e,strokeWidth:r?Number(o)*24/Number(t):o,className:ph("lucide",n),...s},[...i.map(([c,d])=>VE(c,d)),...Array.isArray(a)?a:[a]]));var Z=(e,t)=>{let o=AG(({className:r,...n},a)=>kG(HE,{ref:a,iconNode:t,className:ph(`lucide-${FE(e)}`,r),...n}));return o.displayName=`${e}`,o};l();var ni=Z("ArrowDownWideNarrow",[["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"}]]);l();var Jc=Z("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);l();var ed=Z("ArrowUp10",[["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"}]]);l();var td=Z("ArrowUpWideNarrow",[["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"}]]);l();var od=Z("Asterisk",[["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"}]]);l();var rd=Z("Calculator",[["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"}]]);l();var br=Z("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);l();var Vr=Z("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);l();var nd=Z("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);l();var Ir=Z("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);l();var ad=Z("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);l();var id=Z("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);l();var sd=Z("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);l();var Tn=Z("CircleAlert",[["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"}]]);l();var ai=Z("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);l();var ii=Z("CircleHelp",[["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"}]]);l();var as=Z("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);l();var is=Z("Copy",[["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"}]]);l();var ld=Z("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);l();var ud=Z("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);l();var cd=Z("GripVertical",[["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"}]]);l();var Zl=Z("KeyRound",[["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"}]]);l();var ha=Z("Key",[["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"}]]);l();var dd=Z("Maximize",[["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"}]]);l();var fd=Z("Minimize",[["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"}]]);l();var ss=Z("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);l();var pd=Z("MoveDown",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);l();var md=Z("MoveUp",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);l();var si=Z("PanelLeftClose",[["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"}]]);l();var li=Z("PanelLeftOpen",[["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"}]]);l();var hd=Z("PinOff",[["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"}]]);l();var gd=Z("Pin",[["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"}]]);l();var xd=Z("RefreshCw",[["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"}]]);l();var ui=Z("SquareArrowRight",[["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"}]]);l();var yd=Z("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);l();var vd=Z("Table2",[["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"}]]);l();var ci=Z("TriangleAlert",[["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"}]]);l();var di=Z("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var UE='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 ee from"react";import*as iC from"react-dom";l();function Iw(e,[t,o]){return Math.min(o,Math.max(t,e))}l();function te(e,t,{checkForDefaultPrevented:o=!0}={}){return function(n){if(e?.(n),o===!1||!n.defaultPrevented)return t?.(n)}}l();import ls from"react";l();import*as ga from"react";import{jsx as NG}from"react/jsx-runtime";function ao(e,t=[]){let o=[];function r(a,i){let s=ga.createContext(i),u=o.length;o=[...o,i];let c=f=>{let{scope:p,children:m,...x}=f,g=p?.[e]?.[u]||s,v=ga.useMemo(()=>x,Object.values(x));return NG(g.Provider,{value:v,children:m})};c.displayName=a+"Provider";function d(f,p){let m=p?.[e]?.[u]||s,x=ga.useContext(m);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[c,d]}let n=()=>{let a=o.map(i=>ga.createContext(i));return function(s){let u=s?.[e]||a;return ga.useMemo(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return n.scopeName=e,[r,_G(n,...t)]}function _G(...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 i=r.reduce((s,{useScope:u,scopeName:c})=>{let f=u(a)[`__scope${c}`];return{...s,...f}},{});return ga.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return o.scopeName=t.scopeName,o}import{jsx as Rw}from"react/jsx-runtime";function Jl(e){let t=e+"CollectionProvider",[o,r]=ao(t),[n,a]=o(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{let{scope:x,children:g}=m,v=ls.useRef(null),y=ls.useRef(new Map).current;return Rw(n,{scope:x,itemMap:y,collectionRef:v,children:g})};i.displayName=t;let s=e+"CollectionSlot",u=ls.forwardRef((m,x)=>{let{scope:g,children:v}=m,y=a(s,g),w=Pe(x,y.collectionRef);return Rw(Eo,{ref:w,children:v})});u.displayName=s;let c=e+"CollectionItemSlot",d="data-radix-collection-item",f=ls.forwardRef((m,x)=>{let{scope:g,children:v,...y}=m,w=ls.useRef(null),C=Pe(x,w),S=a(c,g);return ls.useEffect(()=>(S.itemMap.set(w,{ref:w,...y}),()=>void S.itemMap.delete(w))),Rw(Eo,{[d]:"",ref:C,children:v})});f.displayName=c;function p(m){let x=a(e+"CollectionConsumer",m);return ls.useCallback(()=>{let v=x.collectionRef.current;if(!v)return[];let y=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((S,b)=>y.indexOf(S.ref.current)-y.indexOf(b.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:u,ItemSlot:f},p,r]}l();import*as mh from"react";import{jsx as kke}from"react/jsx-runtime";var FG=mh.createContext(void 0);function eu(e){let t=mh.useContext(FG);return e||t||"ltr"}l();import*as gt from"react";l();import*as zE from"react";import*as qE from"react-dom";import{jsx as BG}from"react/jsx-runtime";var VG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],me=VG.reduce((e,t)=>{let o=zE.forwardRef((r,n)=>{let{asChild:a,...i}=r,s=a?Eo:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),BG(s,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function hh(e,t){e&&qE.flushSync(()=>e.dispatchEvent(t))}l();import*as tu from"react";function ht(e){let t=tu.useRef(e);return tu.useEffect(()=>{t.current=e}),tu.useMemo(()=>(...o)=>t.current?.(...o),[])}l();import*as WE from"react";function $E(e,t=globalThis?.document){let o=ht(e);WE.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 KE}from"react/jsx-runtime";var HG="DismissableLayer",Lw="dismissableLayer.update",UG="dismissableLayer.pointerDownOutside",zG="dismissableLayer.focusOutside",GE,YE=gt.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),us=gt.forwardRef((e,t)=>{let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:n,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...u}=e,c=gt.useContext(YE),[d,f]=gt.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=gt.useState({}),x=Pe(t,R=>f(R)),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,b=$G(R=>{let P=R.target,E=[...c.branches].some(D=>D.contains(P));!S||E||(n?.(R),i?.(R),R.defaultPrevented||s?.())},p),I=GG(R=>{let P=R.target;[...c.branches].some(D=>D.contains(P))||(a?.(R),i?.(R),R.defaultPrevented||s?.())},p);return $E(R=>{w===c.layers.size-1&&(r?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},p),gt.useEffect(()=>{if(d)return o&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(GE=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),jE(),()=>{o&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=GE)}},[d,p,o,c]),gt.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),jE())},[d,c]),gt.useEffect(()=>{let R=()=>m({});return document.addEventListener(Lw,R),()=>document.removeEventListener(Lw,R)},[]),KE(me.div,{...u,ref:x,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:te(e.onFocusCapture,I.onFocusCapture),onBlurCapture:te(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:te(e.onPointerDownCapture,b.onPointerDownCapture)})});us.displayName=HG;var qG="DismissableLayerBranch",WG=gt.forwardRef((e,t)=>{let o=gt.useContext(YE),r=gt.useRef(null),n=Pe(t,r);return gt.useEffect(()=>{let a=r.current;if(a)return o.branches.add(a),()=>{o.branches.delete(a)}},[o.branches]),KE(me.div,{...e,ref:n})});WG.displayName=qG;function $G(e,t=globalThis?.document){let o=ht(e),r=gt.useRef(!1),n=gt.useRef(()=>{});return gt.useEffect(()=>{let a=s=>{if(s.target&&!r.current){let c=function(){XE(UG,o,d,{discrete:!0})};var u=c;let d={originalEvent:s};s.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},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",n.current)}},[t,o]),{onPointerDownCapture:()=>r.current=!0}}function GG(e,t=globalThis?.document){let o=ht(e),r=gt.useRef(!1);return gt.useEffect(()=>{let n=a=>{a.target&&!r.current&&XE(zG,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 jE(){let e=new CustomEvent(Lw);document.dispatchEvent(e)}function XE(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?hh(n,a):n.dispatchEvent(a)}l();import*as ZE from"react";var Pw=0;function ou(){ZE.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??QE()),document.body.insertAdjacentElement("beforeend",e[1]??QE()),Pw++,()=>{Pw===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Pw--}},[])}function QE(){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 Hr from"react";import{jsx as jG}from"react/jsx-runtime";var Mw="focusScope.autoFocusOnMount",Ew="focusScope.autoFocusOnUnmount",JE={bubbles:!1,cancelable:!0},KG="FocusScope",cs=Hr.forwardRef((e,t)=>{let{loop:o=!1,trapped:r=!1,onMountAutoFocus:n,onUnmountAutoFocus:a,...i}=e,[s,u]=Hr.useState(null),c=ht(n),d=ht(a),f=Hr.useRef(null),p=Pe(t,g=>u(g)),m=Hr.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Hr.useEffect(()=>{if(r){let w=function(I){if(m.paused||!s)return;let R=I.target;s.contains(R)?f.current=R:fi(f.current,{select:!0})},C=function(I){if(m.paused||!s)return;let R=I.relatedTarget;R!==null&&(s.contains(R)||fi(f.current,{select:!0}))},S=function(I){if(document.activeElement===document.body)for(let P of I)P.removedNodes.length>0&&fi(s)};var g=w,v=C,y=S;document.addEventListener("focusin",w),document.addEventListener("focusout",C);let b=new MutationObserver(S);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",C),b.disconnect()}}},[r,s,m.paused]),Hr.useEffect(()=>{if(s){tT.add(m);let g=document.activeElement;if(!s.contains(g)){let y=new CustomEvent(Mw,JE);s.addEventListener(Mw,c),s.dispatchEvent(y),y.defaultPrevented||(YG(e4(rT(s)),{select:!0}),document.activeElement===g&&fi(s))}return()=>{s.removeEventListener(Mw,c),setTimeout(()=>{let y=new CustomEvent(Ew,JE);s.addEventListener(Ew,d),s.dispatchEvent(y),y.defaultPrevented||fi(g??document.body,{select:!0}),s.removeEventListener(Ew,d),tT.remove(m)},0)}}},[s,c,d,m]);let x=Hr.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]=XG(w);C&&S?!g.shiftKey&&y===S?(g.preventDefault(),o&&fi(C,{select:!0})):g.shiftKey&&y===C&&(g.preventDefault(),o&&fi(S,{select:!0})):y===w&&g.preventDefault()}},[o,r,m.paused]);return jG(me.div,{tabIndex:-1,...i,ref:p,onKeyDown:x})});cs.displayName=KG;function YG(e,{select:t=!1}={}){let o=document.activeElement;for(let r of e)if(fi(r,{select:t}),document.activeElement!==o)return}function XG(e){let t=rT(e),o=eT(t,e),r=eT(t.reverse(),e);return[o,r]}function rT(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 eT(e,t){for(let o of e)if(!QG(o,{upTo:t}))return o}function QG(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 ZG(e){return e instanceof HTMLInputElement&&"select"in e}function fi(e,{select:t=!1}={}){if(e&&e.focus){let o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&ZG(e)&&t&&e.select()}}var tT=JG();function JG(){let e=[];return{add(t){let o=e[0];t!==o&&o?.pause(),e=oT(e,t),e.unshift(t)},remove(t){e=oT(e,t),e[0]?.resume()}}}function oT(e,t){let o=[...e],r=o.indexOf(t);return r!==-1&&o.splice(r,1),o}function e4(e){return e.filter(t=>t.tagName!=="A")}l();import*as gh from"react";l();import*as nT from"react";var At=globalThis?.document?nT.useLayoutEffect:()=>{};var t4=gh.useId||(()=>{}),o4=0;function ar(e){let[t,o]=gh.useState(t4());return At(()=>{e||o(r=>r??String(o4++))},[e]),e||(t?`radix-${t}`:"")}l();import*as Rr from"react";l();l();l();l();var aT=["top","right","bottom","left"];var Dn=Math.min,qo=Math.max,Cd=Math.round,Sd=Math.floor,on=e=>({x:e,y:e}),r4={left:"right",right:"left",bottom:"top",top:"bottom"},n4={start:"end",end:"start"};function yh(e,t,o){return qo(e,Dn(t,o))}function An(e,t){return typeof e=="function"?e(t):e}function kn(e){return e.split("-")[0]}function ds(e){return e.split("-")[1]}function vh(e){return e==="x"?"y":"x"}function wh(e){return e==="y"?"height":"width"}function xa(e){return["top","bottom"].includes(kn(e))?"y":"x"}function Ch(e){return vh(xa(e))}function iT(e,t,o){o===void 0&&(o=!1);let r=ds(e),n=Ch(e),a=wh(n),i=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=wd(i)),[i,wd(i)]}function sT(e){let t=wd(e);return[xh(e),t,xh(t)]}function xh(e){return e.replace(/start|end/g,t=>n4[t])}function a4(e,t,o){let r=["left","right"],n=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return o?t?n:r:t?r:n;case"left":case"right":return t?a:i;default:return[]}}function lT(e,t,o,r){let n=ds(e),a=a4(kn(e),o==="start",r);return n&&(a=a.map(i=>i+"-"+n),t&&(a=a.concat(a.map(xh)))),a}function wd(e){return e.replace(/left|right|bottom|top/g,t=>r4[t])}function i4(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tw(e){return typeof e!="number"?i4(e):{top:e,right:e,bottom:e,left:e}}function fs(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 uT(e,t,o){let{reference:r,floating:n}=e,a=xa(t),i=Ch(t),s=wh(i),u=kn(t),c=a==="y",d=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,p=r[s]/2-n[s]/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(ds(t)){case"start":m[i]-=p*(o&&c?-1:1);break;case"end":m[i]+=p*(o&&c?-1:1);break}return m}var fT=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:i}=o,s=a.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t)),c=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:f}=uT(c,r,u),p=r,m={},x=0;for(let g=0;g<s.length;g++){let{name:v,fn:y}=s[g],{x:w,y:C,data:S,reset:b}=await y({x:d,y:f,initialPlacement:r,placement:p,strategy:n,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});d=w??d,f=C??f,m={...m,[v]:{...m[v],...S}},b&&x<=50&&(x++,typeof b=="object"&&(b.placement&&(p=b.placement),b.rects&&(c=b.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:n}):b.rects),{x:d,y:f}=uT(c,p,u)),g=-1)}return{x:d,y:f,placement:p,strategy:n,middlewareData:m}};async function ru(e,t){var o;t===void 0&&(t={});let{x:r,y:n,platform:a,rects:i,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=An(t,e),x=Tw(m),v=s[p?f==="floating"?"reference":"floating":f],y=fs(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(s.floating)),boundary:c,rootBoundary:d,strategy:u})),w=f==="floating"?{x:r,y:n,width:i.floating.width,height:i.floating.height}:i.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.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},b=fs(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:C,strategy:u}):w);return{top:(y.top-b.top+x.top)/S.y,bottom:(b.bottom-y.bottom+x.bottom)/S.y,left:(y.left-b.left+x.left)/S.x,right:(b.right-y.right+x.right)/S.x}}var pT=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:r,placement:n,rects:a,platform:i,elements:s,middlewareData:u}=t,{element:c,padding:d=0}=An(e,t)||{};if(c==null)return{};let f=Tw(d),p={x:o,y:r},m=Ch(n),x=wh(m),g=await i.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],b=p[m]-a.reference[m],I=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c)),R=I?I[C]:0;(!R||!await(i.isElement==null?void 0:i.isElement(I)))&&(R=s.floating[C]||a.floating[x]);let P=S/2-b/2,E=R/2-g[x]/2-1,D=Dn(f[y],E),A=Dn(f[w],E),O=D,V=R-g[x]-A,L=R/2-g[x]/2+P,N=yh(O,L,V),T=!u.arrow&&ds(n)!=null&&L!==N&&a.reference[x]/2-(L<O?D:A)-g[x]/2<0,k=T?L<O?L-O:L-V:0;return{[m]:p[m]+k,data:{[m]:N,centerOffset:L-N-k,...T&&{alignmentOffset:k}},reset:T}}});var mT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;let{placement:n,middlewareData:a,rects:i,initialPlacement:s,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:g=!0,...v}=An(e,t);if((o=a.arrow)!=null&&o.alignmentOffset)return{};let y=kn(n),w=xa(s),C=kn(s)===s,S=await(u.isRTL==null?void 0:u.isRTL(c.floating)),b=p||(C||!g?[wd(s)]:sT(s)),I=x!=="none";!p&&I&&b.push(...lT(s,g,x,S));let R=[s,...b],P=await ru(t,v),E=[],D=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&E.push(P[y]),f){let L=iT(n,i,S);E.push(P[L[0]],P[L[1]])}if(D=[...D,{placement:n,overflows:E}],!E.every(L=>L<=0)){var A,O;let L=(((A=a.flip)==null?void 0:A.index)||0)+1,N=R[L];if(N)return{data:{index:L,overflows:D},reset:{placement:N}};let T=(O=D.filter(k=>k.overflows[0]<=0).sort((k,_)=>k.overflows[1]-_.overflows[1])[0])==null?void 0:O.placement;if(!T)switch(m){case"bestFit":{var V;let k=(V=D.filter(_=>{if(I){let M=xa(_.placement);return M===w||M==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(M=>M>0).reduce((M,H)=>M+H,0)]).sort((_,M)=>_[1]-M[1])[0])==null?void 0:V[0];k&&(T=k);break}case"initialPlacement":T=s;break}if(n!==T)return{reset:{placement:T}}}return{}}}};function cT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dT(e){return aT.some(t=>e[t]>=0)}var hT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:o}=t,{strategy:r="referenceHidden",...n}=An(e,t);switch(r){case"referenceHidden":{let a=await ru(t,{...n,elementContext:"reference"}),i=cT(a,o.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:dT(i)}}}case"escaped":{let a=await ru(t,{...n,altBoundary:!0}),i=cT(a,o.floating);return{data:{escapedOffsets:i,escaped:dT(i)}}}default:return{}}}}};async function s4(e,t){let{placement:o,platform:r,elements:n}=e,a=await(r.isRTL==null?void 0:r.isRTL(n.floating)),i=kn(o),s=ds(o),u=xa(o)==="y",c=["left","top"].includes(i)?-1:1,d=a&&u?-1:1,f=An(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 s&&typeof x=="number"&&(m=s==="end"?x*-1:x),u?{x:m*d,y:p*c}:{x:p*c,y:m*d}}var gT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;let{x:n,y:a,placement:i,middlewareData:s}=t,u=await s4(t,e);return i===((o=s.offset)==null?void 0:o.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:n+u.x,y:a+u.y,data:{...u,placement:i}}}}},xT=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:i=!1,limiter:s={fn:v=>{let{x:y,y:w}=v;return{x:y,y:w}}},...u}=An(e,t),c={x:o,y:r},d=await ru(t,u),f=xa(kn(n)),p=vh(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=yh(w,m,C)}if(i){let v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",w=x+d[v],C=x-d[y];x=yh(w,x,C)}let g=s.fn({...t,[p]:m,[f]:x});return{...g,data:{x:g.x-o,y:g.y-r,enabled:{[p]:a,[f]:i}}}}}},yT=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:o,y:r,placement:n,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:u=!0,crossAxis:c=!0}=An(e,t),d={x:o,y:r},f=xa(n),p=vh(f),m=d[p],x=d[f],g=An(s,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,b=a.reference[p]+a.reference[C]-v.mainAxis;m<S?m=S:m>b&&(m=b)}if(c){var y,w;let C=p==="y"?"width":"height",S=["top","left"].includes(kn(n)),b=a.reference[f]-a.floating[C]+(S&&((y=i.offset)==null?void 0:y[f])||0)+(S?0:v.crossAxis),I=a.reference[f]+a.reference[C]+(S?0:((w=i.offset)==null?void 0:w[f])||0)-(S?v.crossAxis:0);x<b?x=b:x>I&&(x=I)}return{[p]:m,[f]:x}}}},vT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,r;let{placement:n,rects:a,platform:i,elements:s}=t,{apply:u=()=>{},...c}=An(e,t),d=await ru(t,c),f=kn(n),p=ds(n),m=xa(n)==="y",{width:x,height:g}=a.floating,v,y;f==="top"||f==="bottom"?(v=f,y=p===(await(i.isRTL==null?void 0:i.isRTL(s.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=Dn(g-d[v],w),b=Dn(x-d[y],C),I=!t.middlewareData.shift,R=S,P=b;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(P=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=w),I&&!p){let D=qo(d.left,0),A=qo(d.right,0),O=qo(d.top,0),V=qo(d.bottom,0);m?P=x-2*(D!==0||A!==0?D+A:qo(d.left,d.right)):R=g-2*(O!==0||V!==0?O+V:qo(d.top,d.bottom))}await u({...t,availableWidth:P,availableHeight:R});let E=await i.getDimensions(s.floating);return x!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};l();function Sh(){return typeof window<"u"}function ms(e){return CT(e)?(e.nodeName||"").toLowerCase():"#document"}function ir(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rn(e){var t;return(t=(CT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function CT(e){return Sh()?e instanceof Node||e instanceof ir(e).Node:!1}function Ur(e){return Sh()?e instanceof Element||e instanceof ir(e).Element:!1}function nn(e){return Sh()?e instanceof HTMLElement||e instanceof ir(e).HTMLElement:!1}function wT(e){return!Sh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ir(e).ShadowRoot}function nu(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=zr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(n)}function ST(e){return["table","td","th"].includes(ms(e))}function bd(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function bh(e){let t=Ih(),o=Ur(e)?zr(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 bT(e){let t=ya(e);for(;nn(t)&&!hs(t);){if(bh(t))return t;if(bd(t))return null;t=ya(t)}return null}function Ih(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function hs(e){return["html","body","#document"].includes(ms(e))}function zr(e){return ir(e).getComputedStyle(e)}function Id(e){return Ur(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ya(e){if(ms(e)==="html")return e;let t=e.assignedSlot||e.parentNode||wT(e)&&e.host||rn(e);return wT(t)?t.host:t}function IT(e){let t=ya(e);return hs(t)?e.ownerDocument?e.ownerDocument.body:e.body:nn(t)&&nu(t)?t:IT(t)}function ps(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=IT(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),i=ir(n);if(a){let s=Rh(i);return t.concat(i,i.visualViewport||[],nu(n)?n:[],s&&o?ps(s):[])}return t.concat(n,ps(n,[],o))}function Rh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function PT(e){let t=zr(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=nn(e),a=n?e.offsetWidth:o,i=n?e.offsetHeight:r,s=Cd(o)!==a||Cd(r)!==i;return s&&(o=a,r=i),{width:o,height:r,$:s}}function Aw(e){return Ur(e)?e:e.contextElement}function au(e){let t=Aw(e);if(!nn(t))return on(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:a}=PT(t),i=(a?Cd(o.width):o.width)/r,s=(a?Cd(o.height):o.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}var l4=on(0);function MT(e){let t=ir(e);return!Ih()||!t.visualViewport?l4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function u4(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==ir(e)?!1:t}function gs(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),a=Aw(e),i=on(1);t&&(r?Ur(r)&&(i=au(r)):i=au(e));let s=u4(a,o,r)?MT(a):on(0),u=(n.left+s.x)/i.x,c=(n.top+s.y)/i.y,d=n.width/i.x,f=n.height/i.y;if(a){let p=ir(a),m=r&&Ur(r)?ir(r):r,x=p,g=Rh(x);for(;g&&r&&m!==x;){let v=au(g),y=g.getBoundingClientRect(),w=zr(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=ir(g),g=Rh(x)}}return fs({width:d,height:f,x:u,y:c})}function kw(e,t){let o=Id(e).scrollLeft;return t?t.left+o:gs(rn(e)).left+o}function ET(e,t,o){o===void 0&&(o=!1);let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-(o?0:kw(e,r)),a=r.top+t.scrollTop;return{x:n,y:a}}function c4(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,a=n==="fixed",i=rn(r),s=t?bd(t.floating):!1;if(r===i||s&&a)return o;let u={scrollLeft:0,scrollTop:0},c=on(1),d=on(0),f=nn(r);if((f||!f&&!a)&&((ms(r)!=="body"||nu(i))&&(u=Id(r)),nn(r))){let m=gs(r);c=au(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}let p=i&&!f&&!a?ET(i,u,!0):on(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 d4(e){return Array.from(e.getClientRects())}function f4(e){let t=rn(e),o=Id(e),r=e.ownerDocument.body,n=qo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=qo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),i=-o.scrollLeft+kw(e),s=-o.scrollTop;return zr(r).direction==="rtl"&&(i+=qo(t.clientWidth,r.clientWidth)-n),{width:n,height:a,x:i,y:s}}function p4(e,t){let o=ir(e),r=rn(e),n=o.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,u=0;if(n){a=n.width,i=n.height;let c=Ih();(!c||c&&t==="fixed")&&(s=n.offsetLeft,u=n.offsetTop)}return{width:a,height:i,x:s,y:u}}function m4(e,t){let o=gs(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,a=nn(e)?au(e):on(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,u=n*a.x,c=r*a.y;return{width:i,height:s,x:u,y:c}}function RT(e,t,o){let r;if(t==="viewport")r=p4(e,o);else if(t==="document")r=f4(rn(e));else if(Ur(t))r=m4(t,o);else{let n=MT(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return fs(r)}function TT(e,t){let o=ya(e);return o===t||!Ur(o)||hs(o)?!1:zr(o).position==="fixed"||TT(o,t)}function h4(e,t){let o=t.get(e);if(o)return o;let r=ps(e,[],!1).filter(s=>Ur(s)&&ms(s)!=="body"),n=null,a=zr(e).position==="fixed",i=a?ya(e):e;for(;Ur(i)&&!hs(i);){let s=zr(i),u=bh(i);!u&&s.position==="fixed"&&(n=null),(a?!u&&!n:!u&&s.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||nu(i)&&!u&&TT(e,i))?r=r.filter(d=>d!==i):n=s,i=ya(i)}return t.set(e,r),r}function g4(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,i=[...o==="clippingAncestors"?bd(t)?[]:h4(t,this._c):[].concat(o),r],s=i[0],u=i.reduce((c,d)=>{let f=RT(t,d,n);return c.top=qo(f.top,c.top),c.right=Dn(f.right,c.right),c.bottom=Dn(f.bottom,c.bottom),c.left=qo(f.left,c.left),c},RT(t,s,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function x4(e){let{width:t,height:o}=PT(e);return{width:t,height:o}}function y4(e,t,o){let r=nn(t),n=rn(t),a=o==="fixed",i=gs(e,!0,a,t),s={scrollLeft:0,scrollTop:0},u=on(0);if(r||!r&&!a)if((ms(t)!=="body"||nu(n))&&(s=Id(t)),r){let p=gs(t,!0,a,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else n&&(u.x=kw(n));let c=n&&!r&&!a?ET(n,s):on(0),d=i.left+s.scrollLeft-u.x-c.x,f=i.top+s.scrollTop-u.y-c.y;return{x:d,y:f,width:i.width,height:i.height}}function Dw(e){return zr(e).position==="static"}function LT(e,t){if(!nn(e)||zr(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return rn(e)===o&&(o=o.ownerDocument.body),o}function DT(e,t){let o=ir(e);if(bd(e))return o;if(!nn(e)){let n=ya(e);for(;n&&!hs(n);){if(Ur(n)&&!Dw(n))return n;n=ya(n)}return o}let r=LT(e,t);for(;r&&ST(r)&&Dw(r);)r=LT(r,t);return r&&hs(r)&&Dw(r)&&!bh(r)?o:r||bT(e)||o}var v4=async function(e){let t=this.getOffsetParent||DT,o=this.getDimensions,r=await o(e.floating);return{reference:y4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function w4(e){return zr(e).direction==="rtl"}var AT={convertOffsetParentRelativeRectToViewportRelativeRect:c4,getDocumentElement:rn,getClippingRect:g4,getOffsetParent:DT,getElementRects:v4,getClientRects:d4,getDimensions:x4,getScale:au,isElement:Ur,isRTL:w4};function kT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function C4(e,t){let o=null,r,n=rn(e);function a(){var s;clearTimeout(r),(s=o)==null||s.disconnect(),o=null}function i(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();let c=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=c;if(s||t(),!p||!m)return;let x=Sd(f),g=Sd(n.clientWidth-(d+p)),v=Sd(n.clientHeight-(f+m)),y=Sd(d),C={rootMargin:-x+"px "+-g+"px "+-v+"px "+-y+"px",threshold:qo(0,Dn(1,u))||1},S=!0;function b(I){let R=I[0].intersectionRatio;if(R!==u){if(!S)return i();R?i(!1,R):r=setTimeout(()=>{i(!1,1e-7)},1e3)}R===1&&!kT(c,e.getBoundingClientRect())&&i(),S=!1}try{o=new IntersectionObserver(b,{...C,root:n.ownerDocument})}catch{o=new IntersectionObserver(b,C)}o.observe(e)}return i(!0),a}function Rd(e,t,o,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=Aw(e),d=n||a?[...c?ps(c):[],...ps(t)]:[];d.forEach(y=>{n&&y.addEventListener("scroll",o,{passive:!0}),a&&y.addEventListener("resize",o)});let f=c&&s?C4(c,o):null,p=-1,m=null;i&&(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?gs(e):null;u&&v();function v(){let y=gs(e);g&&!kT(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 OT=gT;var NT=xT,_T=mT,FT=vT,BT=hT,Ow=pT;var VT=yT,Nw=(e,t,o)=>{let r=new Map,n={platform:AT,...o},a={...n.platform,_c:r};return fT(e,t,{...n,platform:a})};import*as Bt from"react";import{useLayoutEffect as S4,useEffect as b4}from"react";import*as UT from"react-dom";var Lh=typeof document<"u"?S4:b4;function Ph(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(!Ph(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)&&!Ph(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function zT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function HT(e,t){let o=zT(e);return Math.round(t*o)/o}function _w(e){let t=Bt.useRef(e);return Lh(()=>{t.current=e}),t}function Mh(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:r=[],platform:n,elements:{reference:a,floating:i}={},transform:s=!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);Ph(p,r)||m(r);let[x,g]=Bt.useState(null),[v,y]=Bt.useState(null),w=Bt.useCallback(_=>{_!==I.current&&(I.current=_,g(_))},[]),C=Bt.useCallback(_=>{_!==R.current&&(R.current=_,y(_))},[]),S=a||x,b=i||v,I=Bt.useRef(null),R=Bt.useRef(null),P=Bt.useRef(d),E=u!=null,D=_w(u),A=_w(n),O=_w(c),V=Bt.useCallback(()=>{if(!I.current||!R.current)return;let _={placement:t,strategy:o,middleware:p};A.current&&(_.platform=A.current),Nw(I.current,R.current,_).then(M=>{let H={...M,isPositioned:O.current!==!1};L.current&&!Ph(P.current,H)&&(P.current=H,UT.flushSync(()=>{f(H)}))})},[p,t,o,A,O]);Lh(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(_=>({..._,isPositioned:!1})))},[c]);let L=Bt.useRef(!1);Lh(()=>(L.current=!0,()=>{L.current=!1}),[]),Lh(()=>{if(S&&(I.current=S),b&&(R.current=b),S&&b){if(D.current)return D.current(S,b,V);V()}},[S,b,V,D,E]);let N=Bt.useMemo(()=>({reference:I,floating:R,setReference:w,setFloating:C}),[w,C]),T=Bt.useMemo(()=>({reference:S,floating:b}),[S,b]),k=Bt.useMemo(()=>{let _={position:o,left:0,top:0};if(!T.floating)return _;let M=HT(T.floating,d.x),H=HT(T.floating,d.y);return s?{..._,transform:"translate("+M+"px, "+H+"px)",...zT(T.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:M,top:H}},[o,s,T.floating,d.x,d.y]);return Bt.useMemo(()=>({...d,update:V,refs:N,elements:T,floatingStyles:k}),[d,V,N,T,k])}var I4=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?Ow({element:r.current,padding:n}).fn(o):{}:r?Ow({element:r,padding:n}).fn(o):{}}}},Eh=(e,t)=>({...OT(e),options:[e,t]}),Th=(e,t)=>({...NT(e),options:[e,t]}),Dh=(e,t)=>({...VT(e),options:[e,t]}),Ah=(e,t)=>({..._T(e),options:[e,t]}),kh=(e,t)=>({...FT(e),options:[e,t]});var Oh=(e,t)=>({...BT(e),options:[e,t]});var Nh=(e,t)=>({...I4(e),options:[e,t]});l();import*as WT from"react";import{jsx as qT}from"react/jsx-runtime";var R4="Arrow",$T=WT.forwardRef((e,t)=>{let{children:o,width:r=10,height:n=5,...a}=e;return qT(me.svg,{...a,ref:t,width:r,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:qT("polygon",{points:"0,0 30,0 15,10"})})});$T.displayName=R4;var GT=$T;l();import*as jT from"react";function _h(e){let[t,o]=jT.useState(void 0);return At(()=>{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],i,s;if("borderBoxSize"in a){let u=a.borderBoxSize,c=Array.isArray(u)?u[0]:u;i=c.inlineSize,s=c.blockSize}else i=e.offsetWidth,s=e.offsetHeight;o({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else o(void 0)},[e]),t}import{jsx as xs}from"react/jsx-runtime";var Fw="Popper",[KT,va]=ao(Fw),[P4,YT]=KT(Fw),XT=e=>{let{__scopePopper:t,children:o}=e,[r,n]=Rr.useState(null);return xs(P4,{scope:t,anchor:r,onAnchorChange:n,children:o})};XT.displayName=Fw;var QT="PopperAnchor",ZT=Rr.forwardRef((e,t)=>{let{__scopePopper:o,virtualRef:r,...n}=e,a=YT(QT,o),i=Rr.useRef(null),s=Pe(t,i);return Rr.useEffect(()=>{a.onAnchorChange(r?.current||i.current)}),r?null:xs(me.div,{...n,ref:s})});ZT.displayName=QT;var Bw="PopperContent",[M4,E4]=KT(Bw),JT=Rr.forwardRef((e,t)=>{let{__scopePopper:o,side:r="bottom",sideOffset:n=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:x,...g}=e,v=YT(Bw,o),[y,w]=Rr.useState(null),C=Pe(t,W=>w(W)),[S,b]=Rr.useState(null),I=_h(S),R=I?.width??0,P=I?.height??0,E=r+(a!=="center"?"-"+a:""),D=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},A=Array.isArray(c)?c:[c],O=A.length>0,V={padding:D,boundary:A.filter(D4),altBoundary:O},{refs:L,floatingStyles:N,placement:T,isPositioned:k,middlewareData:_}=Mh({strategy:"fixed",placement:E,whileElementsMounted:(...W)=>Rd(...W,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[Eh({mainAxis:n+P,alignmentAxis:i}),u&&Th({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Dh():void 0,...V}),u&&Ah({...V}),kh({...V,apply:({elements:W,rects:Y,availableWidth:J,availableHeight:j})=>{let{width:se,height:re}=Y.reference,ge=W.floating.style;ge.setProperty("--radix-popper-available-width",`${J}px`),ge.setProperty("--radix-popper-available-height",`${j}px`),ge.setProperty("--radix-popper-anchor-width",`${se}px`),ge.setProperty("--radix-popper-anchor-height",`${re}px`)}}),S&&Nh({element:S,padding:s}),A4({arrowWidth:R,arrowHeight:P}),p&&Oh({strategy:"referenceHidden",...V})]}),[M,H]=oD(T),B=ht(x);At(()=>{k&&B?.()},[k,B]);let U=_.arrow?.x,F=_.arrow?.y,z=_.arrow?.centerOffset!==0,[$,G]=Rr.useState();return At(()=>{y&&G(window.getComputedStyle(y).zIndex)},[y]),xs("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:k?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$,"--radix-popper-transform-origin":[_.transformOrigin?.x,_.transformOrigin?.y].join(" "),..._.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:xs(M4,{scope:o,placedSide:M,onArrowChange:b,arrowX:U,arrowY:F,shouldHideArrow:z,children:xs(me.div,{"data-side":M,"data-align":H,...g,ref:C,style:{...g.style,animation:k?void 0:"none"}})})})});JT.displayName=Bw;var eD="PopperArrow",T4={top:"bottom",right:"left",bottom:"top",left:"right"},tD=Rr.forwardRef(function(t,o){let{__scopePopper:r,...n}=t,a=E4(eD,r),i=T4[a.placedSide];return xs("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]: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:xs(GT,{...n,ref:o,style:{...n.style,display:"block"}})})});tD.displayName=eD;function D4(e){return e!==null}var A4=e=>({name:"transformOrigin",options:e,fn(t){let{placement:o,rects:r,middlewareData:n}=t,i=n.arrow?.centerOffset!==0,s=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[c,d]=oD(o),f={start:"0%",center:"50%",end:"100%"}[d],p=(n.arrow?.x??0)+s/2,m=(n.arrow?.y??0)+u/2,x="",g="";return c==="bottom"?(x=i?f:`${p}px`,g=`${-u}px`):c==="top"?(x=i?f:`${p}px`,g=`${r.floating.height+u}px`):c==="right"?(x=`${-u}px`,g=i?f:`${m}px`):c==="left"&&(x=`${r.floating.width+u}px`,g=i?f:`${m}px`),{data:{x,y:g}}}});function oD(e){let[t,o="center"]=e.split("-");return[t,o]}var ys=XT,vs=ZT,iu=JT,su=tD;l();import*as Fh from"react";import k4 from"react-dom";import{jsx as O4}from"react/jsx-runtime";var N4="Portal",ws=Fh.forwardRef((e,t)=>{let{container:o,...r}=e,[n,a]=Fh.useState(!1);At(()=>a(!0),[]);let i=o||n&&globalThis?.document?.body;return i?k4.createPortal(O4(me.div,{...r,ref:t}),i):null});ws.displayName=N4;l();import*as pi from"react";function Lr({prop:e,defaultProp:t,onChange:o=()=>{}}){let[r,n]=_4({defaultProp:t,onChange:o}),a=e!==void 0,i=a?e:r,s=ht(o),u=pi.useCallback(c=>{if(a){let f=typeof c=="function"?c(e):c;f!==e&&s(f)}else n(c)},[a,e,n,s]);return[i,u]}function _4({defaultProp:e,onChange:t}){let o=pi.useState(e),[r]=o,n=pi.useRef(r),a=ht(t);return pi.useEffect(()=>{n.current!==r&&(a(r),n.current=r)},[r,n,a]),o}l();import*as Bh from"react";function Vh(e){let t=Bh.useRef({value:e,previous:e});return Bh.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}l();import*as rD from"react";import{jsx as F4}from"react/jsx-runtime";var B4="VisuallyHidden",Hw=rD.forwardRef((e,t)=>F4(me.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Hw.displayName=B4;l();var V4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},lu=new WeakMap,Hh=new WeakMap,Uh={},Uw=0,nD=function(e){return e&&(e.host||nD(e.parentNode))},H4=function(e,t){return t.map(function(o){if(e.contains(o))return o;var r=nD(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})},U4=function(e,t,o,r){var n=H4(t,Array.isArray(e)?e:[e]);Uh[o]||(Uh[o]=new WeakMap);var a=Uh[o],i=[],s=new Set,u=new Set(n),c=function(f){!f||s.has(f)||(s.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(s.has(p))d(p);else try{var m=p.getAttribute(r),x=m!==null&&m!=="false",g=(lu.get(p)||0)+1,v=(a.get(p)||0)+1;lu.set(p,g),a.set(p,v),i.push(p),g===1&&x&&Hh.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),s.clear(),Uw++,function(){i.forEach(function(f){var p=lu.get(f)-1,m=a.get(f)-1;lu.set(f,p),a.set(f,m),p||(Hh.has(f)||f.removeAttribute(r),Hh.delete(f)),m||f.removeAttribute(o)}),Uw--,Uw||(lu=new WeakMap,lu=new WeakMap,Hh=new WeakMap,Uh={})}},uu=function(e,t,o){o===void 0&&(o="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),n=t||V4(e);return n?(r.push.apply(r,Array.from(n.querySelectorAll("[aria-live]"))),U4(r,n,o,"aria-hidden")):function(){return null}};l();l();l();var sr=function(){return sr=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},sr.apply(this,arguments)};function zh(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 aD(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 jh from"react";l();import*as To from"react";l();var Cs="right-scroll-bar-position",Ss="width-before-scroll-bar",zw="with-scroll-bars-hidden",qw="--removed-body-scroll-bar-size";l();l();function qh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}l();import{useState as z4}from"react";function iD(e,t){var o=z4(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 Wh from"react";var q4=typeof window<"u"?Wh.useLayoutEffect:Wh.useEffect,sD=new WeakMap;function Ww(e,t){var o=iD(t||null,function(r){return e.forEach(function(n){return qh(n,r)})});return q4(function(){var r=sD.get(o);if(r){var n=new Set(r),a=new Set(e),i=o.current;n.forEach(function(s){a.has(s)||qh(s,null)}),a.forEach(function(s){n.has(s)||qh(s,i)})}sD.set(o,e)},[e]),o}l();l();l();function W4(e){return e}function $4(e,t){t===void 0&&(t=W4);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 i=t(a,r);return o.push(i),function(){o=o.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;o.length;){var i=o;o=[],i.forEach(a)}o={push:function(s){return a(s)},filter:function(){return o}}},assignMedium:function(a){r=!0;var i=[];if(o.length){var s=o;o=[],s.forEach(a),i=o}var u=function(){var d=i;i=[],d.forEach(a)},c=function(){return Promise.resolve().then(u)};c(),o={push:function(d){i.push(d),c()},filter:function(d){return i=i.filter(d),o}}}};return n}function $w(e){e===void 0&&(e={});var t=$4(null);return t.options=sr({async:!0,ssr:!1},e),t}l();import*as lD from"react";var uD=function(e){var t=e.sideCar,o=zh(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 lD.createElement(r,sr({},o))};uD.isSideCarExport=!0;function Gw(e,t){return e.useMedium(t),uD}var $h=$w();var jw=function(){},Ld=To.forwardRef(function(e,t){var o=To.useRef(null),r=To.useState({onScrollCapture:jw,onWheelCapture:jw,onTouchMoveCapture:jw}),n=r[0],a=r[1],i=e.forwardProps,s=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=zh(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,b=Ww([o,t]),I=sr(sr({},C),n);return To.createElement(To.Fragment,null,d&&To.createElement(S,{sideCar:$h,removeScrollBar:c,shards:f,noIsolation:m,inert:x,setCallbacks:a,allowPinchZoom:!!g,lockRef:o,gapMode:w}),i?To.cloneElement(To.Children.only(s),sr(sr({},I),{ref:b})):To.createElement(y,sr({},I,{className:u,ref:b}),s))});Ld.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ld.classNames={fullWidth:Ss,zeroRight:Cs};l();l();import*as st from"react";l();l();import*as du from"react";l();l();l();import*as fD from"react";l();l();var cD;var dD=function(){if(cD)return cD;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function G4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=dD();return t&&e.setAttribute("nonce",t),e}function j4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function K4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Kw=function(){var e=0,t=null;return{add:function(o){e==0&&(t=G4())&&(j4(t,o),K4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var Yw=function(){var e=Kw();return function(t,o){fD.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])}};var Pd=function(){var e=Yw(),t=function(o){var r=o.styles,n=o.dynamic;return e(r,n),null};return t};l();var Y4={left:0,top:0,right:0,gap:0},Xw=function(e){return parseInt(e||"",10)||0},X4=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[Xw(o),Xw(r),Xw(n)]},Qw=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Y4;var t=X4(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 Q4=Pd(),cu="data-scroll-locked",Z4=function(e,t,o,r){var n=e.left,a=e.top,i=e.right,s=e.gap;return o===void 0&&(o="margin"),`
|
|
18
|
+
See https://err.47ng.com/NUQS-${e}`}var dw=w$();function tn(e,...t){if(!dw)return;let o=v$(e,...t);performance.mark(o);try{console.log(e,...t)}catch{console.log(o)}}function JM(e,...t){dw&&console.warn(e,...t)}function v$(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 w$(){try{if(typeof localStorage>"u")return!1;let t="nuqs-localStorage-test";localStorage.setItem(t,t);let o=localStorage.getItem(t)===t;if(localStorage.removeItem(t),!o)return!1}catch(t){return console.error("[nuqs]: debug mode is disabled (localStorage unavailable).",t),!1}return(localStorage.getItem("debug")??"").includes("nuqs")}var $c=h$({useAdapter(){throw new Error(Gc(404))}});$c.displayName="NuqsAdapterContext";dw&&typeof window<"u"&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==$c&&console.error(Gc(303)),window.__NuqsAdapterContext=$c);function fw(e){return({children:t,...o})=>g$($c.Provider,{...o,value:{useAdapter:e}},t)}function eE(){let e=x$($c);if(!("useAdapter"in e))throw new Error(Gc(404));return e.useAdapter()}import{useEffect as S$,useState as b$}from"react";function I$(e,t){let o;return(...r)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...r),t)}}function R$(){let e=typeof window<"u"?window.location.hash.slice(1):"",[t,o]=b$(new URLSearchParams(e));function r(a,{history:i}){let{pathname:s,search:u}=window.location,c=a.toString(),d=`${s}${u}#${c}`;i==="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 S$(()=>{let a=I$(()=>{let i=window.location.hash.slice(1);o(new URLSearchParams(i))},50);return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[]),{searchParams:t,updateUrl:r,getSearchParamsSnapshot:n}}var tE=fw(R$);import{jsx as dh,jsxs as D$}from"react/jsx-runtime";var oE=new zv,rE=L$(void 0);function nE(e){let{children:t,onEvent:o,adapter:r,theme:n}=e,[a,i]=jc(!1),[s,u]=jc(!0),[c,d]=jc([]),[f,p]=jc(()=>typeof document<"u"?document.documentElement.classList.contains("dark"):!1);pw(()=>{p(document.documentElement.classList.contains("dark"))},[]);let[m]=jc(mw.default.generate()),{hasCustomTheme:x}=ZM(n,f);pw(()=>{oE.resetQueries({exact:!1,queryKey:[]})},[r]),pw(()=>{let w=new MutationObserver(C=>{C.forEach(S=>{if(S.type==="attributes"&&S.attributeName==="class"){let b=document.documentElement.classList.contains("dark");p(b)}})});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;Kl.error(`"${S.operation}" operation failed`,{action:{label:"Console",onClick:()=>{window.location.hash=hw({viewParam:"console"})}}})}let b=mw.default.generate(),I=new Date().toISOString(),R={...w,eventId:b,timestamp:I};(R.name==="studio_operation_success"||R.name==="studio_operation_error")&&d(P=>{let E=[...P,R];return E.length>100?E.slice(0,100):E}),o?.(R),C==="studio_launched"&&ch&&!uh&&!M$()&&!T$()&&VP({additionalData:{eventPayload:S,variant:"free"},command:C,eventId:b,product:"prisma-studio-embedded",signature:m,skipUpdateCheck:!0,timestamp:new Date(I),version:"0.11.1"}).catch(P=>{console.error(P)})},v=()=>i(w=>!w),y=()=>u(w=>!w);return D$(Kv,{client:oE,children:[dh(jM,{}),dh(tE,{children:dh(rE.Provider,{value:{adapter:r,isFullscreen:a,onEvent:g,operationEvents:c,toggleFullscreen:v,isNavigationOpen:s,toggleNavigation:y,isDarkMode:f,hasCustomTheme:x},children:dh(aE,{children:t})})})]})}function no(){let e=P$(rE);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}function M$(){return E$()&&"__PVCE__"in window&&window.__PVCE__===!0}function E$(){return ch&&"acquireVsCodeApi"in window&&typeof window.acquireVsCodeApi=="function"}function T$(){if(!ch)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();function fh(e,t,o){try{return e(t)}catch(r){return JM("[nuqs] Error while parsing value `%s`: %O"+(o?" (for key `%s`)":""),t,r,o),null}}function A$(){if(typeof window>"u"||!!!window.GestureEvent)return 50;try{let t=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(t[1])>=17?120:320}catch{return 320}}var Yl=A$(),Yc=new Map,Sr={history:"replace",scroll:!1,shallow:!0,throttleMs:Yl},gw=new Set,iE=0,Kc=null;function sE(e){return Yc.get(e)}function k$(){Yc.clear(),gw.clear(),Sr.history="replace",Sr.scroll=!1,Sr.shallow=!0,Sr.throttleMs=Yl}function lE(e,t,o,r){let n=t===null?null:o(t);return tn("[nuqs queue] Enqueueing %s=%s %O",e,n,r),Yc.set(e,n),r.history==="push"&&(Sr.history="push"),r.scroll&&(Sr.scroll=!0),r.shallow===!1&&(Sr.shallow=!1),r.startTransition&&gw.add(r.startTransition),Sr.throttleMs=Math.max(r.throttleMs??Yl,Number.isFinite(Sr.throttleMs)?Sr.throttleMs:0),n}function O$(){return new URLSearchParams(location.search)}function uE({getSearchParamsSnapshot:e=O$,updateUrl:t,rateLimitFactor:o=1}){return Kc===null&&(Kc=new Promise((r,n)=>{if(!Number.isFinite(Sr.throttleMs)){tn("[nuqs queue] Skipping flush due to throttleMs=Infinity"),r(e()),setTimeout(()=>{Kc=null},0);return}function a(){iE=performance.now();let[s,u]=N$({updateUrl:t,getSearchParamsSnapshot:e});u===null?r(s):n(s),Kc=null}function i(){let u=performance.now()-iE,c=Sr.throttleMs,d=o*Math.max(0,Math.min(c,c-u));tn("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",d,c),d===0?a():setTimeout(a,d)}setTimeout(i,0)})),Kc}function N$({updateUrl:e,getSearchParamsSnapshot:t}){let o=t();if(Yc.size===0)return[o,null];let r=Array.from(Yc.entries()),n={...Sr},a=Array.from(gw);k$(),tn("[nuqs queue] Flushing queue %O with options %O",r,n);for(let[i,s]of r)s===null?o.delete(i):o.set(i,s);try{return _$(a,()=>{e(o,{history:n.history,scroll:n.scroll,shallow:n.shallow})}),[o,null]}catch(i){return console.error(Gc(429),r.map(([s])=>s).join(),i),[o,i]}}function _$(e,t){let o=r=>{if(r===e.length)return t();let n=e[r];if(!n)throw new Error("Invalid transition function");n(()=>o(r+1))};o(0)}import{useRef as dE,useState as F$,useEffect as fE,useCallback as B$,useMemo as gTe}from"react";l();function cE(e){return{all:e=e||new Map,on:function(t,o){var r=e.get(t);r?r.push(o):e.set(t,[o])},off:function(t,o){var r=e.get(t);r&&(o?r.splice(r.indexOf(o)>>>0,1):e.set(t,[]))},emit:function(t,o){var r=e.get(t);r&&r.slice().map(function(n){n(o)}),(r=e.get("*"))&&r.slice().map(function(n){n(t,o)})}}}function pa(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),fh(e.parse,r)}return{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 yTe=pa({parse:e=>e,serialize:e=>`${e}`}),pE=pa({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:t},serialize:e=>Math.round(e).toFixed()}),vTe=pa({parse:e=>{let t=pE.parse(e);return t===null?null:t-1},serialize:e=>pE.serialize(e+1)}),wTe=pa({parse:e=>{let t=parseInt(e,16);return Number.isNaN(t)?null:t},serialize:e=>{let t=Math.round(e).toString(16);return t.padStart(t.length+t.length%2,"0")}}),CTe=pa({parse:e=>{let t=parseFloat(e);return Number.isNaN(t)?null:t},serialize:e=>e.toString()}),STe=pa({parse:e=>e==="true",serialize:e=>e?"true":"false"});function yw(e,t){return e.valueOf()===t.valueOf()}var bTe=pa({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:new Date(t)},serialize:e=>e.valueOf().toString(),eq:yw}),ITe=pa({parse:e=>{let t=new Date(e);return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString(),eq:yw}),RTe=pa({parse:e=>{let t=new Date(e.slice(0,10));return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString().slice(0,10),eq:yw});var xw=cE();function mE(e,{history:t="replace",shallow:o=!0,scroll:r=!1,throttleMs:n=Yl,parse:a=f=>f,serialize:i=String,eq:s=(f,p)=>f===p,defaultValue:u=void 0,clearOnDefault:c=!0,startTransition:d}={history:"replace",scroll:!1,shallow:!0,throttleMs:Yl,parse:f=>f,serialize:String,eq:(f,p)=>f===p,clearOnDefault:!0,defaultValue:void 0}){let f=eE(),p=f.searchParams,m=dE(p?.get(e)??null),[x,g]=F$(()=>{let w=sE(e),C=w===void 0?p?.get(e)??null:w;return C===null?null:fh(a,C,e)}),v=dE(x);tn("[nuqs `%s`] render - state: %O, iSP: %s",e,x,p?.get(e)??null),fE(()=>{let w=p?.get(e)??null;if(w===m.current)return;let C=w===null?null:fh(a,w,e);tn("[nuqs `%s`] syncFromUseSearchParams %O",e,C),v.current=C,m.current=w,g(C)},[p?.get(e),e]),fE(()=>{function w({state:C,query:S}){tn("[nuqs `%s`] updateInternalState %O",e,C),v.current=C,m.current=S,g(C)}return tn("[nuqs `%s`] subscribing to sync",e),xw.on(e,w),()=>{tn("[nuqs `%s`] unsubscribing from sync",e),xw.off(e,w)}},[e]);let y=B$((w,C={})=>{let S=V$(w)?w(v.current??u??null):w;(C.clearOnDefault??c)&&S!==null&&u!==void 0&&s(S,u)&&(S=null);let b=lE(e,S,i,{history:C.history??t,shallow:C.shallow??o,scroll:C.scroll??r,throttleMs:C.throttleMs??n,startTransition:C.startTransition??d});return xw.emit(e,{state:S,query:b}),uE(f)},[e,t,o,r,n,d,f.updateUrl,f.getSearchParamsSnapshot,f.rateLimitFactor]);return[x??u??null,y]}function V$(e){return typeof e=="function"}var TTe=Symbol("BRAND_SYMBOL");function ti(e,t){return mE(e,t)}l();var gE=Zn(qc(),1);import{useEffect as H$,useMemo as hE,useState as U$}from"react";var xE={kind:"FilterGroup",filters:[],after:"and",id:gE.default.generate()},yE=e=>{let t=0;for(let o of e.filters)o.kind==="ColumnFilter"?o.column.trim()&&t++:o.kind==="FilterGroup"&&(t+=yE(o));return t};function vE(){let{filterParam:e,setFilterParam:t}=$e(),o=hE(()=>JSON.parse(e),[e]),r=s=>void t(JSON.stringify(s)),[n,a]=U$(o);H$(()=>{a(o)},[o]);let i=hE(()=>yE(n),[n]);return{appliedFilter:o,setAppliedFilter:r,editingFilter:n,setEditingFilter:a,totalEditingFilters:i}}l();var wE=-1;function En(){let{adapter:e,onEvent:t}=no();return Fc({initialData:{schemas:{[e.defaultSchema||"db"]:{name:e.defaultSchema||"db",tables:{}}},timezone:"UTC",filterOperators:[],query:{parameters:[],sql:""}},initialDataUpdatedAt:wE,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((i,s)=>i+Object.keys(s.tables).length,0);return t({name:"studio_launched",payload:{tableCount:a}}),n},queryKey:["introspection"],staleTime:o=>o.state.dataUpdatedAt===wE?0:1/0})}import{jsx as G$}from"react/jsx-runtime";function hw(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 W$(e){let{adapter:t,introspection:o}=e,{schemas:r}=o,{defaultSchema:n}=t,a=n??Object.keys(r)[0]??"public",i=Object.keys(r[a]?.tables??{})[0]??"",s=JSON.stringify(xE);return{schema:a,table:i,filter:s,pageIndex:"0",pageSize:"25",view:"table"}}function $$(){let{adapter:e}=no(),{data:t,isFetching:o}=En(),{schemas:r}=t,n=CE(()=>W$({adapter:e,introspection:t}),[e,t]),[a,i]=ti("filter",{defaultValue:n.filter}),[s,u]=ti("pageIndex",{defaultValue:n.pageIndex}),[c,d]=ti("pageSize",{defaultValue:n.pageSize}),[f,p]=ti("schema",{defaultValue:n.schema}),[m,x]=ti("sort"),[g,v]=ti("table",{defaultValue:n.table}),[y,w]=ti("view",{defaultValue:n.view}),C=f?r[f]:void 0,S=C?C.tables:void 0,b=S&&g?S[g]:void 0;return{metadata:CE(()=>({activeSchema:C,activeTables:S,activeTable:b,isFetching:o}),[C,S,b,o]),createUrl:hw,filterParam:a,pageIndexParam:s,pageSizeParam:c,schemaParam:f,sortParam:m,tableParam:g,viewParam:y,setFilterParam:i,setPageIndexParam:u,setPageSizeParam:d,setSchemaParam:p,setSortParam:x,setTableParam:v,setViewParam:w}}var SE=z$(void 0);function aE({children:e}){let t=$$();return G$(SE.Provider,{value:t,children:e})}function $e(){let e=q$(SE);if(e===void 0)throw new Error("useNavigationContext must be used within a NavigationContextProvider");return e}l();l();function bE(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=bE(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function IE(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=bE(e))&&(r&&(r+=" "),r+=t);return r}l();var Cw="-",j$=e=>{let t=Y$(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{let s=i.split(Cw);return s[0]===""&&s.length!==1&&s.shift(),EE(s,t)||K$(i)},getConflictingClassGroupIds:(i,s)=>{let u=o[i]||[];return s&&r[i]?[...u,...r[i]]:u}}},EE=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?EE(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(Cw);return t.validators.find(({validator:i})=>i(a))?.classGroupId},RE=/^\[(.+)\]$/,K$=e=>{if(RE.test(e)){let t=RE.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Y$=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Q$(Object.entries(e.classGroups),o).forEach(([a,i])=>{ww(i,r,a,t)}),r},ww=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:LE(t,n);a.classGroupId=o;return}if(typeof n=="function"){if(X$(n)){ww(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,i])=>{ww(i,LE(t,a),o,r)})})},LE=(e,t)=>{let o=e;return t.split(Cw).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},X$=e=>e.isThemeGetter,Q$=(e,t)=>t?e.map(([o,r])=>{let n=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[o,n]}):e,Z$=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(a,i)=>{o.set(a,i),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let i=o.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return n(a,i),i},set(a,i){o.has(a)?o.set(a,i):n(a,i)}}},TE="!",J$=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],a=t.length,i=s=>{let u=[],c=0,d=0,f;for(let v=0;v<s.length;v++){let y=s[v];if(c===0){if(y===n&&(r||s.slice(v,v+a)===t)){u.push(s.slice(d,v)),d=v+a;continue}if(y==="/"){f=v;continue}}y==="["?c++:y==="]"&&c--}let p=u.length===0?s:s.substring(d),m=p.startsWith(TE),x=m?p.substring(1):p,g=f&&f>d?f-d:void 0;return{modifiers:u,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:g}};return o?s=>o({className:s,parseClassName:i}):i},eG=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},tG=e=>({cache:Z$(e.cacheSize),parseClassName:J$(e),...j$(e)}),oG=/\s+/,rG=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,a=[],i=e.trim().split(oG),s="";for(let u=i.length-1;u>=0;u-=1){let c=i[u],{modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=o(c),x=!!m,g=r(x?p.substring(0,m):p);if(!g){if(!x){s=c+(s.length>0?" "+s:s);continue}if(g=r(p),!g){s=c+(s.length>0?" "+s:s);continue}x=!1}let v=eG(d).join(":"),y=f?v+TE:v,w=y+g;if(a.includes(w))continue;a.push(w);let C=n(g,x);for(let S=0;S<C.length;++S){let b=C[S];a.push(y+b)}s=c+(s.length>0?" "+s:s)}return s};function nG(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=DE(t))&&(r&&(r+=" "),r+=o);return r}var DE=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=DE(e[r]))&&(o&&(o+=" "),o+=t);return o};function PE(e,...t){let o,r,n,a=i;function i(u){let c=t.reduce((d,f)=>f(d),e());return o=tG(c),r=o.cache.get,n=o.cache.set,a=s,s(u)}function s(u){let c=r(u);if(c)return c;let d=rG(u,o);return n(u,d),d}return function(){return a(nG.apply(null,arguments))}}var it=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},AE=/^\[(?:([a-z-]+):)?(.+)\]$/i,aG=/^\d+\/\d+$/,iG=new Set(["px","full","screen"]),sG=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lG=/\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$/,uG=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,cG=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dG=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ma=e=>Xl(e)||iG.has(e)||aG.test(e),oi=e=>Ql(e,"length",vG),Xl=e=>!!e&&!Number.isNaN(Number(e)),vw=e=>Ql(e,"number",Xl),Xc=e=>!!e&&Number.isInteger(Number(e)),fG=e=>e.endsWith("%")&&Xl(e.slice(0,-1)),we=e=>AE.test(e),ri=e=>sG.test(e),pG=new Set(["length","size","percentage"]),mG=e=>Ql(e,pG,kE),hG=e=>Ql(e,"position",kE),gG=new Set(["image","url"]),xG=e=>Ql(e,gG,CG),yG=e=>Ql(e,"",wG),Qc=()=>!0,Ql=(e,t,o)=>{let r=AE.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},vG=e=>lG.test(e)&&!uG.test(e),kE=()=>!1,wG=e=>cG.test(e),CG=e=>dG.test(e);var ME=()=>{let e=it("colors"),t=it("spacing"),o=it("blur"),r=it("brightness"),n=it("borderColor"),a=it("borderRadius"),i=it("borderSpacing"),s=it("borderWidth"),u=it("contrast"),c=it("grayscale"),d=it("hueRotate"),f=it("invert"),p=it("gap"),m=it("gradientColorStops"),x=it("gradientColorStopPositions"),g=it("inset"),v=it("margin"),y=it("opacity"),w=it("padding"),C=it("saturate"),S=it("scale"),b=it("sepia"),I=it("skew"),R=it("space"),P=it("translate"),E=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto",we,t],O=()=>[we,t],V=()=>["",ma,oi],L=()=>["auto",Xl,we],N=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],T=()=>["solid","dashed","dotted","double","none"],k=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",we],H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[Xl,we];return{cacheSize:500,separator:":",theme:{colors:[Qc],spacing:[ma,oi],blur:["none","",ri,we],brightness:B(),borderColor:[e],borderRadius:["none","","full",ri,we],borderSpacing:O(),borderWidth:V(),contrast:B(),grayscale:M(),hueRotate:B(),invert:M(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[fG,oi],inset:A(),margin:A(),opacity:B(),padding:O(),saturate:B(),scale:B(),sepia:M(),skew:B(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",we]}],container:["container"],columns:[{columns:[ri]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"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"],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:[...N(),we]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Xc,we]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",we]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",Xc,we]}],"grid-cols":[{"grid-cols":[Qc]}],"col-start-end":[{col:["auto",{span:["full",Xc,we]},we]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Qc]}],"row-start-end":[{row:["auto",{span:[Xc,we]},we]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",we]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",we]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",..._()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",we,t]}],"min-w":[{"min-w":[we,t,"min","max","fit"]}],"max-w":[{"max-w":[we,t,"none","full","min","max","fit","prose",{screen:[ri]},ri]}],h:[{h:[we,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[we,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[we,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[we,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ri,oi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",vw]}],"font-family":[{font:[Qc]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",we]}],"line-clamp":[{"line-clamp":["none",Xl,vw]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ma,we]}],"list-image":[{"list-image":["none",we]}],"list-style-type":[{list:["none","disc","decimal",we]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...T(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ma,oi]}],"underline-offset":[{"underline-offset":["auto",ma,we]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...N(),hG]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mG]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},xG]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...T(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:T()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...T()]}],"outline-offset":[{"outline-offset":[ma,we]}],"outline-w":[{outline:[ma,oi]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ma,oi]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ri,yG]}],"shadow-color":[{shadow:[Qc]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...k(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":k()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",ri,we]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[C]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",we]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",we]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",we]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Xc,we]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",we]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",we]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",we]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ma,oi,vw]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},SG=(e,{cacheSize:t,prefix:o,separator:r,experimentalParseClassName:n,extend:a={},override:i={}})=>{Zc(e,"cacheSize",t),Zc(e,"prefix",o),Zc(e,"separator",r),Zc(e,"experimentalParseClassName",n);for(let s in i)bG(e[s],i[s]);for(let s in a)IG(e[s],a[s]);return e},Zc=(e,t,o)=>{o!==void 0&&(e[t]=o)},bG=(e,t)=>{if(t)for(let o in t)Zc(e,o,t[o])},IG=(e,t)=>{if(t)for(let o in t){let r=t[o];r!==void 0&&(e[o]=(e[o]||[]).concat(r))}},OE=(e,...t)=>typeof e=="function"?PE(ME,e,...t):PE(()=>SG(ME(),e),...t);var RG=OE({});function q(...e){return RG(IE(e))}l();l();import*as $t from"react";l();import*as _E from"react";function NE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ns(...e){return t=>{let o=!1,r=e.map(n=>{let a=NE(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():NE(e[n],null)}}}}function Pe(...e){return _E.useCallback(ns(...e),e)}import{Fragment as LG,jsx as Sw}from"react/jsx-runtime";var Eo=$t.forwardRef((e,t)=>{let{children:o,...r}=e,n=$t.Children.toArray(o),a=n.find(MG);if(a){let i=a.props.children,s=n.map(u=>u===a?$t.Children.count(i)>1?$t.Children.only(null):$t.isValidElement(i)?i.props.children:null:u);return Sw(bw,{...r,ref:t,children:$t.isValidElement(i)?$t.cloneElement(i,void 0,s):null})}return Sw(bw,{...r,ref:t,children:o})});Eo.displayName="Slot";var bw=$t.forwardRef((e,t)=>{let{children:o,...r}=e;if($t.isValidElement(o)){let n=TG(o),a=EG(r,o.props);return o.type!==$t.Fragment&&(a.ref=t?ns(t,n):n),$t.cloneElement(o,a)}return $t.Children.count(o)>1?$t.Children.only(null):null});bw.displayName="SlotClone";var PG=({children:e})=>Sw(LG,{children:e});function MG(e){return $t.isValidElement(e)&&e.type===PG}function EG(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]=(...s)=>{a(...s),n(...s)}:n&&(o[r]=n):r==="style"?o[r]={...n,...a}:r==="className"&&(o[r]=[n,a].filter(Boolean).join(" "))}return{...e,...o}}function TG(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 AG,createElement as kG}from"react";l();var FE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ph=(...e)=>e.filter((t,o,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===o).join(" ").trim();l();import{forwardRef as DG,createElement as VE}from"react";l();var BE={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 HE=DG(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:n="",children:a,iconNode:i,...s},u)=>VE("svg",{ref:u,...BE,width:t,height:t,stroke:e,strokeWidth:r?Number(o)*24/Number(t):o,className:ph("lucide",n),...s},[...i.map(([c,d])=>VE(c,d)),...Array.isArray(a)?a:[a]]));var Z=(e,t)=>{let o=AG(({className:r,...n},a)=>kG(HE,{ref:a,iconNode:t,className:ph(`lucide-${FE(e)}`,r),...n}));return o.displayName=`${e}`,o};l();var ni=Z("ArrowDownWideNarrow",[["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"}]]);l();var Jc=Z("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);l();var ed=Z("ArrowUp10",[["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"}]]);l();var td=Z("ArrowUpWideNarrow",[["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"}]]);l();var od=Z("Asterisk",[["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"}]]);l();var rd=Z("Calculator",[["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"}]]);l();var br=Z("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);l();var Vr=Z("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);l();var nd=Z("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);l();var Ir=Z("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);l();var ad=Z("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);l();var id=Z("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);l();var sd=Z("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);l();var Tn=Z("CircleAlert",[["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"}]]);l();var ai=Z("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);l();var ii=Z("CircleHelp",[["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"}]]);l();var as=Z("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);l();var is=Z("Copy",[["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"}]]);l();var ld=Z("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);l();var ud=Z("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);l();var cd=Z("GripVertical",[["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"}]]);l();var Zl=Z("KeyRound",[["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"}]]);l();var ha=Z("Key",[["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"}]]);l();var dd=Z("Maximize",[["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"}]]);l();var fd=Z("Minimize",[["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"}]]);l();var ss=Z("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);l();var pd=Z("MoveDown",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);l();var md=Z("MoveUp",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);l();var si=Z("PanelLeftClose",[["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"}]]);l();var li=Z("PanelLeftOpen",[["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"}]]);l();var hd=Z("PinOff",[["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"}]]);l();var gd=Z("Pin",[["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"}]]);l();var xd=Z("RefreshCw",[["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"}]]);l();var ui=Z("SquareArrowRight",[["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"}]]);l();var yd=Z("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);l();var vd=Z("Table2",[["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"}]]);l();var ci=Z("TriangleAlert",[["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"}]]);l();var di=Z("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var UE='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 ee from"react";import*as iC from"react-dom";l();function Iw(e,[t,o]){return Math.min(o,Math.max(t,e))}l();function te(e,t,{checkForDefaultPrevented:o=!0}={}){return function(n){if(e?.(n),o===!1||!n.defaultPrevented)return t?.(n)}}l();import ls from"react";l();import*as ga from"react";import{jsx as NG}from"react/jsx-runtime";function ao(e,t=[]){let o=[];function r(a,i){let s=ga.createContext(i),u=o.length;o=[...o,i];let c=f=>{let{scope:p,children:m,...x}=f,g=p?.[e]?.[u]||s,v=ga.useMemo(()=>x,Object.values(x));return NG(g.Provider,{value:v,children:m})};c.displayName=a+"Provider";function d(f,p){let m=p?.[e]?.[u]||s,x=ga.useContext(m);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[c,d]}let n=()=>{let a=o.map(i=>ga.createContext(i));return function(s){let u=s?.[e]||a;return ga.useMemo(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return n.scopeName=e,[r,_G(n,...t)]}function _G(...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 i=r.reduce((s,{useScope:u,scopeName:c})=>{let f=u(a)[`__scope${c}`];return{...s,...f}},{});return ga.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return o.scopeName=t.scopeName,o}import{jsx as Rw}from"react/jsx-runtime";function Jl(e){let t=e+"CollectionProvider",[o,r]=ao(t),[n,a]=o(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{let{scope:x,children:g}=m,v=ls.useRef(null),y=ls.useRef(new Map).current;return Rw(n,{scope:x,itemMap:y,collectionRef:v,children:g})};i.displayName=t;let s=e+"CollectionSlot",u=ls.forwardRef((m,x)=>{let{scope:g,children:v}=m,y=a(s,g),w=Pe(x,y.collectionRef);return Rw(Eo,{ref:w,children:v})});u.displayName=s;let c=e+"CollectionItemSlot",d="data-radix-collection-item",f=ls.forwardRef((m,x)=>{let{scope:g,children:v,...y}=m,w=ls.useRef(null),C=Pe(x,w),S=a(c,g);return ls.useEffect(()=>(S.itemMap.set(w,{ref:w,...y}),()=>void S.itemMap.delete(w))),Rw(Eo,{[d]:"",ref:C,children:v})});f.displayName=c;function p(m){let x=a(e+"CollectionConsumer",m);return ls.useCallback(()=>{let v=x.collectionRef.current;if(!v)return[];let y=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((S,b)=>y.indexOf(S.ref.current)-y.indexOf(b.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:u,ItemSlot:f},p,r]}l();import*as mh from"react";import{jsx as kke}from"react/jsx-runtime";var FG=mh.createContext(void 0);function eu(e){let t=mh.useContext(FG);return e||t||"ltr"}l();import*as gt from"react";l();import*as zE from"react";import*as qE from"react-dom";import{jsx as BG}from"react/jsx-runtime";var VG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],me=VG.reduce((e,t)=>{let o=zE.forwardRef((r,n)=>{let{asChild:a,...i}=r,s=a?Eo:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),BG(s,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function hh(e,t){e&&qE.flushSync(()=>e.dispatchEvent(t))}l();import*as tu from"react";function ht(e){let t=tu.useRef(e);return tu.useEffect(()=>{t.current=e}),tu.useMemo(()=>(...o)=>t.current?.(...o),[])}l();import*as WE from"react";function $E(e,t=globalThis?.document){let o=ht(e);WE.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 KE}from"react/jsx-runtime";var HG="DismissableLayer",Lw="dismissableLayer.update",UG="dismissableLayer.pointerDownOutside",zG="dismissableLayer.focusOutside",GE,YE=gt.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),us=gt.forwardRef((e,t)=>{let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:n,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...u}=e,c=gt.useContext(YE),[d,f]=gt.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=gt.useState({}),x=Pe(t,R=>f(R)),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,b=$G(R=>{let P=R.target,E=[...c.branches].some(D=>D.contains(P));!S||E||(n?.(R),i?.(R),R.defaultPrevented||s?.())},p),I=GG(R=>{let P=R.target;[...c.branches].some(D=>D.contains(P))||(a?.(R),i?.(R),R.defaultPrevented||s?.())},p);return $E(R=>{w===c.layers.size-1&&(r?.(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},p),gt.useEffect(()=>{if(d)return o&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(GE=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),jE(),()=>{o&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=GE)}},[d,p,o,c]),gt.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),jE())},[d,c]),gt.useEffect(()=>{let R=()=>m({});return document.addEventListener(Lw,R),()=>document.removeEventListener(Lw,R)},[]),KE(me.div,{...u,ref:x,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:te(e.onFocusCapture,I.onFocusCapture),onBlurCapture:te(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:te(e.onPointerDownCapture,b.onPointerDownCapture)})});us.displayName=HG;var qG="DismissableLayerBranch",WG=gt.forwardRef((e,t)=>{let o=gt.useContext(YE),r=gt.useRef(null),n=Pe(t,r);return gt.useEffect(()=>{let a=r.current;if(a)return o.branches.add(a),()=>{o.branches.delete(a)}},[o.branches]),KE(me.div,{...e,ref:n})});WG.displayName=qG;function $G(e,t=globalThis?.document){let o=ht(e),r=gt.useRef(!1),n=gt.useRef(()=>{});return gt.useEffect(()=>{let a=s=>{if(s.target&&!r.current){let c=function(){XE(UG,o,d,{discrete:!0})};var u=c;let d={originalEvent:s};s.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},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",n.current)}},[t,o]),{onPointerDownCapture:()=>r.current=!0}}function GG(e,t=globalThis?.document){let o=ht(e),r=gt.useRef(!1);return gt.useEffect(()=>{let n=a=>{a.target&&!r.current&&XE(zG,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 jE(){let e=new CustomEvent(Lw);document.dispatchEvent(e)}function XE(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?hh(n,a):n.dispatchEvent(a)}l();import*as ZE from"react";var Pw=0;function ou(){ZE.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??QE()),document.body.insertAdjacentElement("beforeend",e[1]??QE()),Pw++,()=>{Pw===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Pw--}},[])}function QE(){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 Hr from"react";import{jsx as jG}from"react/jsx-runtime";var Mw="focusScope.autoFocusOnMount",Ew="focusScope.autoFocusOnUnmount",JE={bubbles:!1,cancelable:!0},KG="FocusScope",cs=Hr.forwardRef((e,t)=>{let{loop:o=!1,trapped:r=!1,onMountAutoFocus:n,onUnmountAutoFocus:a,...i}=e,[s,u]=Hr.useState(null),c=ht(n),d=ht(a),f=Hr.useRef(null),p=Pe(t,g=>u(g)),m=Hr.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Hr.useEffect(()=>{if(r){let w=function(I){if(m.paused||!s)return;let R=I.target;s.contains(R)?f.current=R:fi(f.current,{select:!0})},C=function(I){if(m.paused||!s)return;let R=I.relatedTarget;R!==null&&(s.contains(R)||fi(f.current,{select:!0}))},S=function(I){if(document.activeElement===document.body)for(let P of I)P.removedNodes.length>0&&fi(s)};var g=w,v=C,y=S;document.addEventListener("focusin",w),document.addEventListener("focusout",C);let b=new MutationObserver(S);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",C),b.disconnect()}}},[r,s,m.paused]),Hr.useEffect(()=>{if(s){tT.add(m);let g=document.activeElement;if(!s.contains(g)){let y=new CustomEvent(Mw,JE);s.addEventListener(Mw,c),s.dispatchEvent(y),y.defaultPrevented||(YG(e4(rT(s)),{select:!0}),document.activeElement===g&&fi(s))}return()=>{s.removeEventListener(Mw,c),setTimeout(()=>{let y=new CustomEvent(Ew,JE);s.addEventListener(Ew,d),s.dispatchEvent(y),y.defaultPrevented||fi(g??document.body,{select:!0}),s.removeEventListener(Ew,d),tT.remove(m)},0)}}},[s,c,d,m]);let x=Hr.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]=XG(w);C&&S?!g.shiftKey&&y===S?(g.preventDefault(),o&&fi(C,{select:!0})):g.shiftKey&&y===C&&(g.preventDefault(),o&&fi(S,{select:!0})):y===w&&g.preventDefault()}},[o,r,m.paused]);return jG(me.div,{tabIndex:-1,...i,ref:p,onKeyDown:x})});cs.displayName=KG;function YG(e,{select:t=!1}={}){let o=document.activeElement;for(let r of e)if(fi(r,{select:t}),document.activeElement!==o)return}function XG(e){let t=rT(e),o=eT(t,e),r=eT(t.reverse(),e);return[o,r]}function rT(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 eT(e,t){for(let o of e)if(!QG(o,{upTo:t}))return o}function QG(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 ZG(e){return e instanceof HTMLInputElement&&"select"in e}function fi(e,{select:t=!1}={}){if(e&&e.focus){let o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&ZG(e)&&t&&e.select()}}var tT=JG();function JG(){let e=[];return{add(t){let o=e[0];t!==o&&o?.pause(),e=oT(e,t),e.unshift(t)},remove(t){e=oT(e,t),e[0]?.resume()}}}function oT(e,t){let o=[...e],r=o.indexOf(t);return r!==-1&&o.splice(r,1),o}function e4(e){return e.filter(t=>t.tagName!=="A")}l();import*as gh from"react";l();import*as nT from"react";var At=globalThis?.document?nT.useLayoutEffect:()=>{};var t4=gh.useId||(()=>{}),o4=0;function ar(e){let[t,o]=gh.useState(t4());return At(()=>{e||o(r=>r??String(o4++))},[e]),e||(t?`radix-${t}`:"")}l();import*as Rr from"react";l();l();l();l();var aT=["top","right","bottom","left"];var Dn=Math.min,qo=Math.max,Cd=Math.round,Sd=Math.floor,on=e=>({x:e,y:e}),r4={left:"right",right:"left",bottom:"top",top:"bottom"},n4={start:"end",end:"start"};function yh(e,t,o){return qo(e,Dn(t,o))}function An(e,t){return typeof e=="function"?e(t):e}function kn(e){return e.split("-")[0]}function ds(e){return e.split("-")[1]}function vh(e){return e==="x"?"y":"x"}function wh(e){return e==="y"?"height":"width"}function xa(e){return["top","bottom"].includes(kn(e))?"y":"x"}function Ch(e){return vh(xa(e))}function iT(e,t,o){o===void 0&&(o=!1);let r=ds(e),n=Ch(e),a=wh(n),i=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=wd(i)),[i,wd(i)]}function sT(e){let t=wd(e);return[xh(e),t,xh(t)]}function xh(e){return e.replace(/start|end/g,t=>n4[t])}function a4(e,t,o){let r=["left","right"],n=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return o?t?n:r:t?r:n;case"left":case"right":return t?a:i;default:return[]}}function lT(e,t,o,r){let n=ds(e),a=a4(kn(e),o==="start",r);return n&&(a=a.map(i=>i+"-"+n),t&&(a=a.concat(a.map(xh)))),a}function wd(e){return e.replace(/left|right|bottom|top/g,t=>r4[t])}function i4(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tw(e){return typeof e!="number"?i4(e):{top:e,right:e,bottom:e,left:e}}function fs(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 uT(e,t,o){let{reference:r,floating:n}=e,a=xa(t),i=Ch(t),s=wh(i),u=kn(t),c=a==="y",d=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,p=r[s]/2-n[s]/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(ds(t)){case"start":m[i]-=p*(o&&c?-1:1);break;case"end":m[i]+=p*(o&&c?-1:1);break}return m}var fT=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:i}=o,s=a.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t)),c=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:f}=uT(c,r,u),p=r,m={},x=0;for(let g=0;g<s.length;g++){let{name:v,fn:y}=s[g],{x:w,y:C,data:S,reset:b}=await y({x:d,y:f,initialPlacement:r,placement:p,strategy:n,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});d=w??d,f=C??f,m={...m,[v]:{...m[v],...S}},b&&x<=50&&(x++,typeof b=="object"&&(b.placement&&(p=b.placement),b.rects&&(c=b.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:n}):b.rects),{x:d,y:f}=uT(c,p,u)),g=-1)}return{x:d,y:f,placement:p,strategy:n,middlewareData:m}};async function ru(e,t){var o;t===void 0&&(t={});let{x:r,y:n,platform:a,rects:i,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=An(t,e),x=Tw(m),v=s[p?f==="floating"?"reference":"floating":f],y=fs(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(s.floating)),boundary:c,rootBoundary:d,strategy:u})),w=f==="floating"?{x:r,y:n,width:i.floating.width,height:i.floating.height}:i.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.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},b=fs(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:C,strategy:u}):w);return{top:(y.top-b.top+x.top)/S.y,bottom:(b.bottom-y.bottom+x.bottom)/S.y,left:(y.left-b.left+x.left)/S.x,right:(b.right-y.right+x.right)/S.x}}var pT=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:r,placement:n,rects:a,platform:i,elements:s,middlewareData:u}=t,{element:c,padding:d=0}=An(e,t)||{};if(c==null)return{};let f=Tw(d),p={x:o,y:r},m=Ch(n),x=wh(m),g=await i.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],b=p[m]-a.reference[m],I=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c)),R=I?I[C]:0;(!R||!await(i.isElement==null?void 0:i.isElement(I)))&&(R=s.floating[C]||a.floating[x]);let P=S/2-b/2,E=R/2-g[x]/2-1,D=Dn(f[y],E),A=Dn(f[w],E),O=D,V=R-g[x]-A,L=R/2-g[x]/2+P,N=yh(O,L,V),T=!u.arrow&&ds(n)!=null&&L!==N&&a.reference[x]/2-(L<O?D:A)-g[x]/2<0,k=T?L<O?L-O:L-V:0;return{[m]:p[m]+k,data:{[m]:N,centerOffset:L-N-k,...T&&{alignmentOffset:k}},reset:T}}});var mT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;let{placement:n,middlewareData:a,rects:i,initialPlacement:s,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:g=!0,...v}=An(e,t);if((o=a.arrow)!=null&&o.alignmentOffset)return{};let y=kn(n),w=xa(s),C=kn(s)===s,S=await(u.isRTL==null?void 0:u.isRTL(c.floating)),b=p||(C||!g?[wd(s)]:sT(s)),I=x!=="none";!p&&I&&b.push(...lT(s,g,x,S));let R=[s,...b],P=await ru(t,v),E=[],D=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&E.push(P[y]),f){let L=iT(n,i,S);E.push(P[L[0]],P[L[1]])}if(D=[...D,{placement:n,overflows:E}],!E.every(L=>L<=0)){var A,O;let L=(((A=a.flip)==null?void 0:A.index)||0)+1,N=R[L];if(N)return{data:{index:L,overflows:D},reset:{placement:N}};let T=(O=D.filter(k=>k.overflows[0]<=0).sort((k,_)=>k.overflows[1]-_.overflows[1])[0])==null?void 0:O.placement;if(!T)switch(m){case"bestFit":{var V;let k=(V=D.filter(_=>{if(I){let M=xa(_.placement);return M===w||M==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(M=>M>0).reduce((M,H)=>M+H,0)]).sort((_,M)=>_[1]-M[1])[0])==null?void 0:V[0];k&&(T=k);break}case"initialPlacement":T=s;break}if(n!==T)return{reset:{placement:T}}}return{}}}};function cT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dT(e){return aT.some(t=>e[t]>=0)}var hT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:o}=t,{strategy:r="referenceHidden",...n}=An(e,t);switch(r){case"referenceHidden":{let a=await ru(t,{...n,elementContext:"reference"}),i=cT(a,o.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:dT(i)}}}case"escaped":{let a=await ru(t,{...n,altBoundary:!0}),i=cT(a,o.floating);return{data:{escapedOffsets:i,escaped:dT(i)}}}default:return{}}}}};async function s4(e,t){let{placement:o,platform:r,elements:n}=e,a=await(r.isRTL==null?void 0:r.isRTL(n.floating)),i=kn(o),s=ds(o),u=xa(o)==="y",c=["left","top"].includes(i)?-1:1,d=a&&u?-1:1,f=An(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 s&&typeof x=="number"&&(m=s==="end"?x*-1:x),u?{x:m*d,y:p*c}:{x:p*c,y:m*d}}var gT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;let{x:n,y:a,placement:i,middlewareData:s}=t,u=await s4(t,e);return i===((o=s.offset)==null?void 0:o.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:n+u.x,y:a+u.y,data:{...u,placement:i}}}}},xT=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:i=!1,limiter:s={fn:v=>{let{x:y,y:w}=v;return{x:y,y:w}}},...u}=An(e,t),c={x:o,y:r},d=await ru(t,u),f=xa(kn(n)),p=vh(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=yh(w,m,C)}if(i){let v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",w=x+d[v],C=x-d[y];x=yh(w,x,C)}let g=s.fn({...t,[p]:m,[f]:x});return{...g,data:{x:g.x-o,y:g.y-r,enabled:{[p]:a,[f]:i}}}}}},yT=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:o,y:r,placement:n,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:u=!0,crossAxis:c=!0}=An(e,t),d={x:o,y:r},f=xa(n),p=vh(f),m=d[p],x=d[f],g=An(s,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,b=a.reference[p]+a.reference[C]-v.mainAxis;m<S?m=S:m>b&&(m=b)}if(c){var y,w;let C=p==="y"?"width":"height",S=["top","left"].includes(kn(n)),b=a.reference[f]-a.floating[C]+(S&&((y=i.offset)==null?void 0:y[f])||0)+(S?0:v.crossAxis),I=a.reference[f]+a.reference[C]+(S?0:((w=i.offset)==null?void 0:w[f])||0)-(S?v.crossAxis:0);x<b?x=b:x>I&&(x=I)}return{[p]:m,[f]:x}}}},vT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,r;let{placement:n,rects:a,platform:i,elements:s}=t,{apply:u=()=>{},...c}=An(e,t),d=await ru(t,c),f=kn(n),p=ds(n),m=xa(n)==="y",{width:x,height:g}=a.floating,v,y;f==="top"||f==="bottom"?(v=f,y=p===(await(i.isRTL==null?void 0:i.isRTL(s.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=Dn(g-d[v],w),b=Dn(x-d[y],C),I=!t.middlewareData.shift,R=S,P=b;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(P=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=w),I&&!p){let D=qo(d.left,0),A=qo(d.right,0),O=qo(d.top,0),V=qo(d.bottom,0);m?P=x-2*(D!==0||A!==0?D+A:qo(d.left,d.right)):R=g-2*(O!==0||V!==0?O+V:qo(d.top,d.bottom))}await u({...t,availableWidth:P,availableHeight:R});let E=await i.getDimensions(s.floating);return x!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};l();function Sh(){return typeof window<"u"}function ms(e){return CT(e)?(e.nodeName||"").toLowerCase():"#document"}function ir(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rn(e){var t;return(t=(CT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function CT(e){return Sh()?e instanceof Node||e instanceof ir(e).Node:!1}function Ur(e){return Sh()?e instanceof Element||e instanceof ir(e).Element:!1}function nn(e){return Sh()?e instanceof HTMLElement||e instanceof ir(e).HTMLElement:!1}function wT(e){return!Sh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ir(e).ShadowRoot}function nu(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=zr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(n)}function ST(e){return["table","td","th"].includes(ms(e))}function bd(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function bh(e){let t=Ih(),o=Ur(e)?zr(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 bT(e){let t=ya(e);for(;nn(t)&&!hs(t);){if(bh(t))return t;if(bd(t))return null;t=ya(t)}return null}function Ih(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function hs(e){return["html","body","#document"].includes(ms(e))}function zr(e){return ir(e).getComputedStyle(e)}function Id(e){return Ur(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ya(e){if(ms(e)==="html")return e;let t=e.assignedSlot||e.parentNode||wT(e)&&e.host||rn(e);return wT(t)?t.host:t}function IT(e){let t=ya(e);return hs(t)?e.ownerDocument?e.ownerDocument.body:e.body:nn(t)&&nu(t)?t:IT(t)}function ps(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=IT(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),i=ir(n);if(a){let s=Rh(i);return t.concat(i,i.visualViewport||[],nu(n)?n:[],s&&o?ps(s):[])}return t.concat(n,ps(n,[],o))}function Rh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function PT(e){let t=zr(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=nn(e),a=n?e.offsetWidth:o,i=n?e.offsetHeight:r,s=Cd(o)!==a||Cd(r)!==i;return s&&(o=a,r=i),{width:o,height:r,$:s}}function Aw(e){return Ur(e)?e:e.contextElement}function au(e){let t=Aw(e);if(!nn(t))return on(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:a}=PT(t),i=(a?Cd(o.width):o.width)/r,s=(a?Cd(o.height):o.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}var l4=on(0);function MT(e){let t=ir(e);return!Ih()||!t.visualViewport?l4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function u4(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==ir(e)?!1:t}function gs(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),a=Aw(e),i=on(1);t&&(r?Ur(r)&&(i=au(r)):i=au(e));let s=u4(a,o,r)?MT(a):on(0),u=(n.left+s.x)/i.x,c=(n.top+s.y)/i.y,d=n.width/i.x,f=n.height/i.y;if(a){let p=ir(a),m=r&&Ur(r)?ir(r):r,x=p,g=Rh(x);for(;g&&r&&m!==x;){let v=au(g),y=g.getBoundingClientRect(),w=zr(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=ir(g),g=Rh(x)}}return fs({width:d,height:f,x:u,y:c})}function kw(e,t){let o=Id(e).scrollLeft;return t?t.left+o:gs(rn(e)).left+o}function ET(e,t,o){o===void 0&&(o=!1);let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-(o?0:kw(e,r)),a=r.top+t.scrollTop;return{x:n,y:a}}function c4(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,a=n==="fixed",i=rn(r),s=t?bd(t.floating):!1;if(r===i||s&&a)return o;let u={scrollLeft:0,scrollTop:0},c=on(1),d=on(0),f=nn(r);if((f||!f&&!a)&&((ms(r)!=="body"||nu(i))&&(u=Id(r)),nn(r))){let m=gs(r);c=au(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}let p=i&&!f&&!a?ET(i,u,!0):on(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 d4(e){return Array.from(e.getClientRects())}function f4(e){let t=rn(e),o=Id(e),r=e.ownerDocument.body,n=qo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=qo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),i=-o.scrollLeft+kw(e),s=-o.scrollTop;return zr(r).direction==="rtl"&&(i+=qo(t.clientWidth,r.clientWidth)-n),{width:n,height:a,x:i,y:s}}function p4(e,t){let o=ir(e),r=rn(e),n=o.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,u=0;if(n){a=n.width,i=n.height;let c=Ih();(!c||c&&t==="fixed")&&(s=n.offsetLeft,u=n.offsetTop)}return{width:a,height:i,x:s,y:u}}function m4(e,t){let o=gs(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,a=nn(e)?au(e):on(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,u=n*a.x,c=r*a.y;return{width:i,height:s,x:u,y:c}}function RT(e,t,o){let r;if(t==="viewport")r=p4(e,o);else if(t==="document")r=f4(rn(e));else if(Ur(t))r=m4(t,o);else{let n=MT(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return fs(r)}function TT(e,t){let o=ya(e);return o===t||!Ur(o)||hs(o)?!1:zr(o).position==="fixed"||TT(o,t)}function h4(e,t){let o=t.get(e);if(o)return o;let r=ps(e,[],!1).filter(s=>Ur(s)&&ms(s)!=="body"),n=null,a=zr(e).position==="fixed",i=a?ya(e):e;for(;Ur(i)&&!hs(i);){let s=zr(i),u=bh(i);!u&&s.position==="fixed"&&(n=null),(a?!u&&!n:!u&&s.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||nu(i)&&!u&&TT(e,i))?r=r.filter(d=>d!==i):n=s,i=ya(i)}return t.set(e,r),r}function g4(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,i=[...o==="clippingAncestors"?bd(t)?[]:h4(t,this._c):[].concat(o),r],s=i[0],u=i.reduce((c,d)=>{let f=RT(t,d,n);return c.top=qo(f.top,c.top),c.right=Dn(f.right,c.right),c.bottom=Dn(f.bottom,c.bottom),c.left=qo(f.left,c.left),c},RT(t,s,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function x4(e){let{width:t,height:o}=PT(e);return{width:t,height:o}}function y4(e,t,o){let r=nn(t),n=rn(t),a=o==="fixed",i=gs(e,!0,a,t),s={scrollLeft:0,scrollTop:0},u=on(0);if(r||!r&&!a)if((ms(t)!=="body"||nu(n))&&(s=Id(t)),r){let p=gs(t,!0,a,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else n&&(u.x=kw(n));let c=n&&!r&&!a?ET(n,s):on(0),d=i.left+s.scrollLeft-u.x-c.x,f=i.top+s.scrollTop-u.y-c.y;return{x:d,y:f,width:i.width,height:i.height}}function Dw(e){return zr(e).position==="static"}function LT(e,t){if(!nn(e)||zr(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return rn(e)===o&&(o=o.ownerDocument.body),o}function DT(e,t){let o=ir(e);if(bd(e))return o;if(!nn(e)){let n=ya(e);for(;n&&!hs(n);){if(Ur(n)&&!Dw(n))return n;n=ya(n)}return o}let r=LT(e,t);for(;r&&ST(r)&&Dw(r);)r=LT(r,t);return r&&hs(r)&&Dw(r)&&!bh(r)?o:r||bT(e)||o}var v4=async function(e){let t=this.getOffsetParent||DT,o=this.getDimensions,r=await o(e.floating);return{reference:y4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function w4(e){return zr(e).direction==="rtl"}var AT={convertOffsetParentRelativeRectToViewportRelativeRect:c4,getDocumentElement:rn,getClippingRect:g4,getOffsetParent:DT,getElementRects:v4,getClientRects:d4,getDimensions:x4,getScale:au,isElement:Ur,isRTL:w4};function kT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function C4(e,t){let o=null,r,n=rn(e);function a(){var s;clearTimeout(r),(s=o)==null||s.disconnect(),o=null}function i(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();let c=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=c;if(s||t(),!p||!m)return;let x=Sd(f),g=Sd(n.clientWidth-(d+p)),v=Sd(n.clientHeight-(f+m)),y=Sd(d),C={rootMargin:-x+"px "+-g+"px "+-v+"px "+-y+"px",threshold:qo(0,Dn(1,u))||1},S=!0;function b(I){let R=I[0].intersectionRatio;if(R!==u){if(!S)return i();R?i(!1,R):r=setTimeout(()=>{i(!1,1e-7)},1e3)}R===1&&!kT(c,e.getBoundingClientRect())&&i(),S=!1}try{o=new IntersectionObserver(b,{...C,root:n.ownerDocument})}catch{o=new IntersectionObserver(b,C)}o.observe(e)}return i(!0),a}function Rd(e,t,o,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=Aw(e),d=n||a?[...c?ps(c):[],...ps(t)]:[];d.forEach(y=>{n&&y.addEventListener("scroll",o,{passive:!0}),a&&y.addEventListener("resize",o)});let f=c&&s?C4(c,o):null,p=-1,m=null;i&&(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?gs(e):null;u&&v();function v(){let y=gs(e);g&&!kT(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 OT=gT;var NT=xT,_T=mT,FT=vT,BT=hT,Ow=pT;var VT=yT,Nw=(e,t,o)=>{let r=new Map,n={platform:AT,...o},a={...n.platform,_c:r};return fT(e,t,{...n,platform:a})};import*as Bt from"react";import{useLayoutEffect as S4,useEffect as b4}from"react";import*as UT from"react-dom";var Lh=typeof document<"u"?S4:b4;function Ph(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(!Ph(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)&&!Ph(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function zT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function HT(e,t){let o=zT(e);return Math.round(t*o)/o}function _w(e){let t=Bt.useRef(e);return Lh(()=>{t.current=e}),t}function Mh(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:r=[],platform:n,elements:{reference:a,floating:i}={},transform:s=!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);Ph(p,r)||m(r);let[x,g]=Bt.useState(null),[v,y]=Bt.useState(null),w=Bt.useCallback(_=>{_!==I.current&&(I.current=_,g(_))},[]),C=Bt.useCallback(_=>{_!==R.current&&(R.current=_,y(_))},[]),S=a||x,b=i||v,I=Bt.useRef(null),R=Bt.useRef(null),P=Bt.useRef(d),E=u!=null,D=_w(u),A=_w(n),O=_w(c),V=Bt.useCallback(()=>{if(!I.current||!R.current)return;let _={placement:t,strategy:o,middleware:p};A.current&&(_.platform=A.current),Nw(I.current,R.current,_).then(M=>{let H={...M,isPositioned:O.current!==!1};L.current&&!Ph(P.current,H)&&(P.current=H,UT.flushSync(()=>{f(H)}))})},[p,t,o,A,O]);Lh(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(_=>({..._,isPositioned:!1})))},[c]);let L=Bt.useRef(!1);Lh(()=>(L.current=!0,()=>{L.current=!1}),[]),Lh(()=>{if(S&&(I.current=S),b&&(R.current=b),S&&b){if(D.current)return D.current(S,b,V);V()}},[S,b,V,D,E]);let N=Bt.useMemo(()=>({reference:I,floating:R,setReference:w,setFloating:C}),[w,C]),T=Bt.useMemo(()=>({reference:S,floating:b}),[S,b]),k=Bt.useMemo(()=>{let _={position:o,left:0,top:0};if(!T.floating)return _;let M=HT(T.floating,d.x),H=HT(T.floating,d.y);return s?{..._,transform:"translate("+M+"px, "+H+"px)",...zT(T.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:M,top:H}},[o,s,T.floating,d.x,d.y]);return Bt.useMemo(()=>({...d,update:V,refs:N,elements:T,floatingStyles:k}),[d,V,N,T,k])}var I4=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?Ow({element:r.current,padding:n}).fn(o):{}:r?Ow({element:r,padding:n}).fn(o):{}}}},Eh=(e,t)=>({...OT(e),options:[e,t]}),Th=(e,t)=>({...NT(e),options:[e,t]}),Dh=(e,t)=>({...VT(e),options:[e,t]}),Ah=(e,t)=>({..._T(e),options:[e,t]}),kh=(e,t)=>({...FT(e),options:[e,t]});var Oh=(e,t)=>({...BT(e),options:[e,t]});var Nh=(e,t)=>({...I4(e),options:[e,t]});l();import*as WT from"react";import{jsx as qT}from"react/jsx-runtime";var R4="Arrow",$T=WT.forwardRef((e,t)=>{let{children:o,width:r=10,height:n=5,...a}=e;return qT(me.svg,{...a,ref:t,width:r,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:qT("polygon",{points:"0,0 30,0 15,10"})})});$T.displayName=R4;var GT=$T;l();import*as jT from"react";function _h(e){let[t,o]=jT.useState(void 0);return At(()=>{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],i,s;if("borderBoxSize"in a){let u=a.borderBoxSize,c=Array.isArray(u)?u[0]:u;i=c.inlineSize,s=c.blockSize}else i=e.offsetWidth,s=e.offsetHeight;o({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else o(void 0)},[e]),t}import{jsx as xs}from"react/jsx-runtime";var Fw="Popper",[KT,va]=ao(Fw),[P4,YT]=KT(Fw),XT=e=>{let{__scopePopper:t,children:o}=e,[r,n]=Rr.useState(null);return xs(P4,{scope:t,anchor:r,onAnchorChange:n,children:o})};XT.displayName=Fw;var QT="PopperAnchor",ZT=Rr.forwardRef((e,t)=>{let{__scopePopper:o,virtualRef:r,...n}=e,a=YT(QT,o),i=Rr.useRef(null),s=Pe(t,i);return Rr.useEffect(()=>{a.onAnchorChange(r?.current||i.current)}),r?null:xs(me.div,{...n,ref:s})});ZT.displayName=QT;var Bw="PopperContent",[M4,E4]=KT(Bw),JT=Rr.forwardRef((e,t)=>{let{__scopePopper:o,side:r="bottom",sideOffset:n=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:x,...g}=e,v=YT(Bw,o),[y,w]=Rr.useState(null),C=Pe(t,W=>w(W)),[S,b]=Rr.useState(null),I=_h(S),R=I?.width??0,P=I?.height??0,E=r+(a!=="center"?"-"+a:""),D=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},A=Array.isArray(c)?c:[c],O=A.length>0,V={padding:D,boundary:A.filter(D4),altBoundary:O},{refs:L,floatingStyles:N,placement:T,isPositioned:k,middlewareData:_}=Mh({strategy:"fixed",placement:E,whileElementsMounted:(...W)=>Rd(...W,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[Eh({mainAxis:n+P,alignmentAxis:i}),u&&Th({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Dh():void 0,...V}),u&&Ah({...V}),kh({...V,apply:({elements:W,rects:Y,availableWidth:J,availableHeight:j})=>{let{width:se,height:re}=Y.reference,ge=W.floating.style;ge.setProperty("--radix-popper-available-width",`${J}px`),ge.setProperty("--radix-popper-available-height",`${j}px`),ge.setProperty("--radix-popper-anchor-width",`${se}px`),ge.setProperty("--radix-popper-anchor-height",`${re}px`)}}),S&&Nh({element:S,padding:s}),A4({arrowWidth:R,arrowHeight:P}),p&&Oh({strategy:"referenceHidden",...V})]}),[M,H]=oD(T),B=ht(x);At(()=>{k&&B?.()},[k,B]);let U=_.arrow?.x,F=_.arrow?.y,z=_.arrow?.centerOffset!==0,[$,G]=Rr.useState();return At(()=>{y&&G(window.getComputedStyle(y).zIndex)},[y]),xs("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:k?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$,"--radix-popper-transform-origin":[_.transformOrigin?.x,_.transformOrigin?.y].join(" "),..._.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:xs(M4,{scope:o,placedSide:M,onArrowChange:b,arrowX:U,arrowY:F,shouldHideArrow:z,children:xs(me.div,{"data-side":M,"data-align":H,...g,ref:C,style:{...g.style,animation:k?void 0:"none"}})})})});JT.displayName=Bw;var eD="PopperArrow",T4={top:"bottom",right:"left",bottom:"top",left:"right"},tD=Rr.forwardRef(function(t,o){let{__scopePopper:r,...n}=t,a=E4(eD,r),i=T4[a.placedSide];return xs("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]: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:xs(GT,{...n,ref:o,style:{...n.style,display:"block"}})})});tD.displayName=eD;function D4(e){return e!==null}var A4=e=>({name:"transformOrigin",options:e,fn(t){let{placement:o,rects:r,middlewareData:n}=t,i=n.arrow?.centerOffset!==0,s=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[c,d]=oD(o),f={start:"0%",center:"50%",end:"100%"}[d],p=(n.arrow?.x??0)+s/2,m=(n.arrow?.y??0)+u/2,x="",g="";return c==="bottom"?(x=i?f:`${p}px`,g=`${-u}px`):c==="top"?(x=i?f:`${p}px`,g=`${r.floating.height+u}px`):c==="right"?(x=`${-u}px`,g=i?f:`${m}px`):c==="left"&&(x=`${r.floating.width+u}px`,g=i?f:`${m}px`),{data:{x,y:g}}}});function oD(e){let[t,o="center"]=e.split("-");return[t,o]}var ys=XT,vs=ZT,iu=JT,su=tD;l();import*as Fh from"react";import k4 from"react-dom";import{jsx as O4}from"react/jsx-runtime";var N4="Portal",ws=Fh.forwardRef((e,t)=>{let{container:o,...r}=e,[n,a]=Fh.useState(!1);At(()=>a(!0),[]);let i=o||n&&globalThis?.document?.body;return i?k4.createPortal(O4(me.div,{...r,ref:t}),i):null});ws.displayName=N4;l();import*as pi from"react";function Lr({prop:e,defaultProp:t,onChange:o=()=>{}}){let[r,n]=_4({defaultProp:t,onChange:o}),a=e!==void 0,i=a?e:r,s=ht(o),u=pi.useCallback(c=>{if(a){let f=typeof c=="function"?c(e):c;f!==e&&s(f)}else n(c)},[a,e,n,s]);return[i,u]}function _4({defaultProp:e,onChange:t}){let o=pi.useState(e),[r]=o,n=pi.useRef(r),a=ht(t);return pi.useEffect(()=>{n.current!==r&&(a(r),n.current=r)},[r,n,a]),o}l();import*as Bh from"react";function Vh(e){let t=Bh.useRef({value:e,previous:e});return Bh.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}l();import*as rD from"react";import{jsx as F4}from"react/jsx-runtime";var B4="VisuallyHidden",Hw=rD.forwardRef((e,t)=>F4(me.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Hw.displayName=B4;l();var V4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},lu=new WeakMap,Hh=new WeakMap,Uh={},Uw=0,nD=function(e){return e&&(e.host||nD(e.parentNode))},H4=function(e,t){return t.map(function(o){if(e.contains(o))return o;var r=nD(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})},U4=function(e,t,o,r){var n=H4(t,Array.isArray(e)?e:[e]);Uh[o]||(Uh[o]=new WeakMap);var a=Uh[o],i=[],s=new Set,u=new Set(n),c=function(f){!f||s.has(f)||(s.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(s.has(p))d(p);else try{var m=p.getAttribute(r),x=m!==null&&m!=="false",g=(lu.get(p)||0)+1,v=(a.get(p)||0)+1;lu.set(p,g),a.set(p,v),i.push(p),g===1&&x&&Hh.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),s.clear(),Uw++,function(){i.forEach(function(f){var p=lu.get(f)-1,m=a.get(f)-1;lu.set(f,p),a.set(f,m),p||(Hh.has(f)||f.removeAttribute(r),Hh.delete(f)),m||f.removeAttribute(o)}),Uw--,Uw||(lu=new WeakMap,lu=new WeakMap,Hh=new WeakMap,Uh={})}},uu=function(e,t,o){o===void 0&&(o="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),n=t||V4(e);return n?(r.push.apply(r,Array.from(n.querySelectorAll("[aria-live]"))),U4(r,n,o,"aria-hidden")):function(){return null}};l();l();l();var sr=function(){return sr=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},sr.apply(this,arguments)};function zh(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 aD(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 jh from"react";l();import*as To from"react";l();var Cs="right-scroll-bar-position",Ss="width-before-scroll-bar",zw="with-scroll-bars-hidden",qw="--removed-body-scroll-bar-size";l();l();function qh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}l();import{useState as z4}from"react";function iD(e,t){var o=z4(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 Wh from"react";var q4=typeof window<"u"?Wh.useLayoutEffect:Wh.useEffect,sD=new WeakMap;function Ww(e,t){var o=iD(t||null,function(r){return e.forEach(function(n){return qh(n,r)})});return q4(function(){var r=sD.get(o);if(r){var n=new Set(r),a=new Set(e),i=o.current;n.forEach(function(s){a.has(s)||qh(s,null)}),a.forEach(function(s){n.has(s)||qh(s,i)})}sD.set(o,e)},[e]),o}l();l();l();function W4(e){return e}function $4(e,t){t===void 0&&(t=W4);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 i=t(a,r);return o.push(i),function(){o=o.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;o.length;){var i=o;o=[],i.forEach(a)}o={push:function(s){return a(s)},filter:function(){return o}}},assignMedium:function(a){r=!0;var i=[];if(o.length){var s=o;o=[],s.forEach(a),i=o}var u=function(){var d=i;i=[],d.forEach(a)},c=function(){return Promise.resolve().then(u)};c(),o={push:function(d){i.push(d),c()},filter:function(d){return i=i.filter(d),o}}}};return n}function $w(e){e===void 0&&(e={});var t=$4(null);return t.options=sr({async:!0,ssr:!1},e),t}l();import*as lD from"react";var uD=function(e){var t=e.sideCar,o=zh(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 lD.createElement(r,sr({},o))};uD.isSideCarExport=!0;function Gw(e,t){return e.useMedium(t),uD}var $h=$w();var jw=function(){},Ld=To.forwardRef(function(e,t){var o=To.useRef(null),r=To.useState({onScrollCapture:jw,onWheelCapture:jw,onTouchMoveCapture:jw}),n=r[0],a=r[1],i=e.forwardProps,s=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=zh(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,b=Ww([o,t]),I=sr(sr({},C),n);return To.createElement(To.Fragment,null,d&&To.createElement(S,{sideCar:$h,removeScrollBar:c,shards:f,noIsolation:m,inert:x,setCallbacks:a,allowPinchZoom:!!g,lockRef:o,gapMode:w}),i?To.cloneElement(To.Children.only(s),sr(sr({},I),{ref:b})):To.createElement(y,sr({},I,{className:u,ref:b}),s))});Ld.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ld.classNames={fullWidth:Ss,zeroRight:Cs};l();l();import*as st from"react";l();l();import*as du from"react";l();l();l();import*as fD from"react";l();l();var cD;var dD=function(){if(cD)return cD;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function G4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=dD();return t&&e.setAttribute("nonce",t),e}function j4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function K4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Kw=function(){var e=0,t=null;return{add:function(o){e==0&&(t=G4())&&(j4(t,o),K4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var Yw=function(){var e=Kw();return function(t,o){fD.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])}};var Pd=function(){var e=Yw(),t=function(o){var r=o.styles,n=o.dynamic;return e(r,n),null};return t};l();var Y4={left:0,top:0,right:0,gap:0},Xw=function(e){return parseInt(e||"",10)||0},X4=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[Xw(o),Xw(r),Xw(n)]},Qw=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Y4;var t=X4(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 Q4=Pd(),cu="data-scroll-locked",Z4=function(e,t,o,r){var n=e.left,a=e.top,i=e.right,s=e.gap;return o===void 0&&(o="margin"),`
|
|
19
19
|
.`.concat(zw,` {
|
|
20
20
|
overflow: hidden `).concat(r,`;
|
|
21
21
|
padding-right: `).concat(s,"px ").concat(r,`;
|