@prisma/studio-core-licensed 0.0.0-dev.202512170050 → 0.0.0-dev.202512231618

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui/index.cjs CHANGED
@@ -7,7 +7,7 @@
7
7
  top: ${c}px !important;
8
8
  }
9
9
  `),()=>{document.head.removeChild(m)}},[t]),(0,mI.jsx)(av,{isPresent:t,childRef:n,sizeRef:a,children:gp.cloneElement(e,{ref:n})})}var yI=({children:e,initial:t,isPresent:o,onExitComplete:r,custom:n,presenceAffectsLayout:a,mode:s,anchorX:i})=>{let u=Ha(fz),c=(0,Ic.useId)(),d=!0,f=(0,Ic.useMemo)(()=>(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}),(0,Ic.useMemo)(()=>{u.forEach((p,m)=>u.set(m,!1))},[o]),gI.useEffect(()=>{!o&&!u.size&&r&&r()},[o]),s==="popLayout"&&(e=(0,sv.jsx)(hI,{isPresent:o,anchorX:i,children:e})),(0,sv.jsx)(ea.Provider,{value:f,children:e})};function fz(){return new Map}l();var oa=require("react");function Rc(e=!0){let t=(0,oa.useContext)(ea);if(t===null)return[!0,null];let{isPresent:o,onExitComplete:r,register:n}=t,a=(0,oa.useId)();(0,oa.useEffect)(()=>{if(e)return n(a)},[e]);let s=(0,oa.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!o&&r?[!1,s]:[!0]}function Pc(){return pz((0,oa.useContext)(ea))}function pz(e){return e===null?!0:e.isPresent}l();var yp=require("react"),Lc=e=>e.key||"";function iv(e){let t=[];return yp.Children.forEach(e,o=>{(0,yp.isValidElement)(o)&&t.push(o)}),t}var an=({children:e,custom:t,initial:o=!0,onExitComplete:r,presenceAffectsLayout:n=!0,mode:a="sync",propagate:s=!1,anchorX:i="left"})=>{let[u,c]=Rc(s),d=(0,Tn.useMemo)(()=>iv(e),[e]),f=s&&!u?[]:d.map(Lc),p=(0,Tn.useRef)(!0),m=(0,Tn.useRef)(d),y=Ha(()=>new Map),[g,v]=(0,Tn.useState)(d),[x,w]=(0,Tn.useState)(d);Cl(()=>{p.current=!1,m.current=d;for(let b=0;b<x.length;b++){let R=Lc(x[b]);f.includes(R)?y.delete(R):y.get(R)!==!0&&y.set(R,!1)}},[x,f.length,f.join("-")]);let C=[];if(d!==g){let b=[...d];for(let R=0;R<x.length;R++){let P=x[R],M=Lc(P);f.includes(M)||(b.splice(R,0,P),C.push(P))}return a==="wait"&&C.length&&(b=C),w(iv(b)),v(d),null}a==="wait"&&x.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}=(0,Tn.useContext)(Jn);return(0,Mc.jsx)(Mc.Fragment,{children:x.map(b=>{let R=Lc(b),P=s&&!u?!1:d===x||f.includes(R),M=()=>{if(y.has(R))y.set(R,!0);else return;let T=!0;y.forEach(_=>{_||(T=!1)}),T&&(S?.(),w(m.current),s&&c?.(),r&&r())};return(0,Mc.jsx)(yI,{isPresent:P,initial:!p.current||o?void 0:!1,custom:t,presenceAffectsLayout:n,mode:a,onExitComplete:P?void 0:M,anchorX:i,children:b},R)})})};l();var II=require("react/jsx-runtime"),Qs=require("react");l();var xI=require("react"),vI=(0,xI.createContext)(null);l();var Tc=require("react");l();var wI=require("react");function CI(){let e=(0,wI.useRef)(!1);return Cl(()=>(e.current=!0,()=>{e.current=!1}),[]),e}l();l();l();var Ec=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];l();l();var Cr={value:null,addProjectionMetrics:null};function SI(e,t){let o=new Set,r=new Set,n=!1,a=!1,s=new WeakSet,i={delta:0,timestamp:0,isProcessing:!1},u=0;function c(f){s.has(f)&&(d.schedule(f),e()),u++,f(i)}let d={schedule:(f,p=!1,m=!1)=>{let g=m&&n?o:r;return p&&s.add(f),g.has(f)||g.add(f),f},cancel:f=>{r.delete(f),s.delete(f)},process:f=>{if(i=f,n){a=!0;return}n=!0,[o,r]=[r,o],o.forEach(c),t&&Cr.value&&Cr.value.frameloop[t].push(u),u=0,o.clear(),n=!1,a&&(a=!1,d.process(f))}};return d}l();var $o={};var mz=40;function xp(e,t){let o=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},a=()=>o=!0,s=Ec.reduce((C,S)=>(C[S]=SI(a,t?S:void 0),C),{}),{setup:i,read:u,resolveKeyframes:c,preUpdate:d,update:f,preRender:p,render:m,postRender:y}=s,g=()=>{let C=$o.useManualTiming?n.timestamp:performance.now();o=!1,$o.useManualTiming||(n.delta=r?1e3/60:Math.max(Math.min(C-n.timestamp,mz),1)),n.timestamp=C,n.isProcessing=!0,i.process(n),u.process(n),c.process(n),d.process(n),f.process(n),p.process(n),m.process(n),y.process(n),n.isProcessing=!1,o&&t&&(r=!1,e(g))},v=()=>{o=!0,r=!0,n.isProcessing||e(g)};return{schedule:Ec.reduce((C,S)=>{let b=s[S];return C[S]=(R,P=!1,M=!1)=>(o||v(),b.schedule(R,P,M)),C},{}),cancel:C=>{for(let S=0;S<Ec.length;S++)s[Ec[S]].cancel(C)},state:n,steps:s}}l();var Tt=e=>e;var{schedule:Pe,cancel:Sr,state:Ot,steps:vp}=xp(typeof requestAnimationFrame<"u"?requestAnimationFrame:Tt,!0);function bI(){let e=CI(),[t,o]=(0,Tc.useState)(0),r=(0,Tc.useCallback)(()=>{e.current&&o(t+1)},[t]);return[(0,Tc.useCallback)(()=>Pe.postRender(r),[r]),t]}l();var hz=e=>!e.isLayoutDirty&&e.willUpdate(!1);function lv(){let e=new Set,t=new WeakMap,o=()=>e.forEach(hz);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 RI=e=>e===!0,gz=e=>RI(e===!0)||e==="id",uv=({children:e,id:t,inherit:o=!0})=>{let r=(0,Qs.useContext)(Jn),n=(0,Qs.useContext)(vI),[a,s]=bI(),i=(0,Qs.useRef)(null),u=r.id||n;i.current===null&&(gz(o)&&u&&(t=t?u+"-"+t:u),i.current={id:t,group:RI(o)?r.group||lv():lv()});let c=(0,Qs.useMemo)(()=>({...i.current,forceRender:a}),[s]);return(0,II.jsx)(Jn.Provider,{value:c,children:e})};l();var PI=require("react"),wp=(0,PI.createContext)({strict:!1});l();l();var LI={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"]},ra={};for(let e in LI)ra[e]={isEnabled:t=>LI[e].some(o=>!!t[o])};function MI(e){for(let t in e)ra[t]={...ra[t],...e[t]}}l();var DI=require("react/jsx-runtime"),Cp=require("react");l();l();var yz=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 Dc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||yz.has(e)}var EI=e=>!Dc(e);function cv(e){e&&(EI=t=>t.startsWith("on")?!Dc(t):e(t))}try{cv(require("@emotion/is-prop-valid").default)}catch{}function TI(e,t,o){let r={};for(let n in e)n==="values"&&typeof e.values=="object"||(EI(n)||o===!0&&Dc(n)||!t&&!Dc(n)||e.draggable&&n.startsWith("onDrag"))&&(r[n]=e[n]);return r}function dv({children:e,isValidProp:t,...o}){t&&cv(t),o={...(0,Cp.useContext)(tr),...o},o.isStatic=Ha(()=>o.isStatic);let r=(0,Cp.useMemo)(()=>o,[JSON.stringify(o.transition),o.transformPagePoint,o.reducedMotion]);return(0,DI.jsx)(tr.Provider,{value:r,children:e})}l();l();var AI=new Set;function Sl(e,t,o){e||AI.has(t)||(console.warn(t),o&&console.warn(o),AI.add(t))}function kI(e){if(typeof Proxy>"u")return e;let t=new Map,o=(...r)=>(Sl(!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();var Lp=require("react/jsx-runtime"),Rl=require("react");l();var OI=require("react"),Ua=(0,OI.createContext)({});l();var Ip=require("react");l();l();l();function za(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}l();function na(e){return typeof e=="string"||Array.isArray(e)}l();var Sp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ac=["initial",...Sp];function Zs(e){return za(e.animate)||Ac.some(t=>na(e[t]))}function bp(e){return!!(Zs(e)||e.variants)}function NI(e,t){if(Zs(e)){let{initial:o,animate:r}=e;return{initial:o===!1||na(o)?o:void 0,animate:na(r)?r:void 0}}return e.inherit!==!1?t:{}}function FI(e){let{initial:t,animate:o}=NI(e,(0,Ip.useContext)(Ua));return(0,Ip.useMemo)(()=>({initial:t,animate:o}),[_I(t),_I(o)])}function _I(e){return Array.isArray(e)?e.join(" "):e}l();var BI=Symbol.for("motionComponentSymbol");l();var VI=require("react");l();function aa(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function HI(e,t,o){return(0,VI.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),o&&(typeof o=="function"?o(r):aa(o)&&(o.current=r))},[t])}l();var or=require("react");l();l();var bl=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var xz="framerAppearId",Rp="data-"+bl(xz);l();var UI=require("react"),Pp=(0,UI.createContext)({});l();var{schedule:Il,cancel:jre}=xp(queueMicrotask,!1);function zI(e,t,o,r,n){let{visualElement:a}=(0,or.useContext)(Ua),s=(0,or.useContext)(wp),i=(0,or.useContext)(ea),u=(0,or.useContext)(tr).reducedMotion,c=(0,or.useRef)(null);r=r||s.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:a,props:o,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:u}));let d=c.current,f=(0,or.useContext)(Pp);d&&!d.projection&&n&&(d.type==="html"||d.type==="svg")&&vz(c.current,o,n,f);let p=(0,or.useRef)(!1);(0,or.useInsertionEffect)(()=>{d&&p.current&&d.update(o,i)});let m=o[Rp],y=(0,or.useRef)(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Cl(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Il.render(d.render),y.current&&d.animationState&&d.animationState.animateChanges())}),(0,or.useEffect)(()=>{d&&(!y.current&&d.animationState&&d.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),y.current=!1))}),d}function vz(e,t,o,r){let{layoutId:n,layout:a,drag:s,dragConstraints:i,layoutScroll:u,layoutRoot:c,layoutCrossfade:d}=t;e.projection=new o(e.latestValues,t["data-framer-portal-id"]?void 0:qI(e.parent)),e.projection.setOptions({layoutId:n,layout:a,alwaysMeasureLayout:!!s||i&&aa(i),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:u,layoutRoot:c})}function qI(e){if(e)return e.options.allowProjection!==!1?e.projection:qI(e.parent)}l();var sn=()=>{},Ut=()=>{};sn=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Ut=(e,t)=>{if(!e)throw new Error(t)};function WI({preloadedFeatures:e,createVisualElement:t,useRender:o,useVisualState:r,Component:n}){e&&MI(e);function a(i,u){let c,d={...(0,Rl.useContext)(tr),...i,layoutId:wz(i)},{isStatic:f}=d,p=FI(i),m=r(i,f);if(!f&&wl){Cz(d,e);let y=Sz(d);c=y.MeasureLayout,p.visualElement=zI(n,m,d,t,y.ProjectionNode)}return(0,Lp.jsxs)(Ua.Provider,{value:p,children:[c&&p.visualElement?(0,Lp.jsx)(c,{visualElement:p.visualElement,...d}):null,o(n,i,HI(m,p.visualElement,u),m,f,p.visualElement)]})}a.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;let s=(0,Rl.forwardRef)(a);return s[BI]=n,s}function wz({layoutId:e}){let t=(0,Rl.useContext)(Jn).id;return t&&e!==void 0?t+"-"+e:e}function Cz(e,t){let o=(0,Rl.useContext)(wp).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?sn(!1,r):Ut(!1,r)}}function Sz(e){let{drag:t,layout:o}=ra;if(!t&&!o)return{};let r={...t,...o};return{MeasureLayout:t?.isEnabled(e)||o?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}l();var Al=require("react");l();var XI=require("react");l();l();l();var $I=e=>t=>typeof t=="string"&&t.startsWith(e),Pl=$I("--"),bz=$I("var(--"),Ll=e=>bz(e)?Iz.test(e.split("/*")[0].trim()):!1,Iz=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var Js={};function kc(e){for(let t in e)Js[t]=e[t],Pl(t)&&(Js[t].isCSSVariable=!0)}l();var Dn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Hr=new Set(Dn);function Mp(e,{layout:t,layoutId:o}){return Hr.has(e)||e.startsWith("origin")||(t||o!==void 0)&&(!!Js[e]||e==="opacity")}l();var Ke=e=>!!(e&&e.getVelocity);l();l();l();var Ep=(e,t)=>t&&typeof e=="number"?t.transform(e):e;l();l();l();l();var Io=(e,t,o)=>o>t?t:o<e?e:o;var An={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},sa={...An,transform:e=>Io(0,1,e)},Oc={...An,default:1};var fv={...An,transform:Math.round};l();var Nc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),kn=Nc("deg"),Go=Nc("%"),de=Nc("px"),GI=Nc("vh"),jI=Nc("vw"),pv={...Go,parse:e=>Go.parse(e)/100,transform:e=>Go.transform(e*100)};l();var KI={rotate:kn,rotateX:kn,rotateY:kn,rotateZ:kn,scale:Oc,scaleX:Oc,scaleY:Oc,scaleZ:Oc,skew:kn,skewX:kn,skewY:kn,distance:de,translateX:de,translateY:de,translateZ:de,x:de,y:de,z:de,perspective:de,transformPerspective:de,opacity:sa,originX:pv,originY:pv,originZ:de};var Ml={borderWidth:de,borderTopWidth:de,borderRightWidth:de,borderBottomWidth:de,borderLeftWidth:de,borderRadius:de,radius:de,borderTopLeftRadius:de,borderTopRightRadius:de,borderBottomRightRadius:de,borderBottomLeftRadius:de,width:de,maxWidth:de,height:de,maxHeight:de,top:de,right:de,bottom:de,left:de,padding:de,paddingTop:de,paddingRight:de,paddingBottom:de,paddingLeft:de,margin:de,marginTop:de,marginRight:de,marginBottom:de,marginLeft:de,backgroundPositionX:de,backgroundPositionY:de,...KI,zIndex:fv,fillOpacity:sa,strokeOpacity:sa,numOctaves:fv};var Rz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Pz=Dn.length;function YI(e,t,o){let r="",n=!0;for(let a=0;a<Pz;a++){let s=Dn[a],i=e[s];if(i===void 0)continue;let u=!0;if(typeof i=="number"?u=i===(s.startsWith("scale")?1:0):u=parseFloat(i)===0,!u||o){let c=Ep(i,Ml[s]);if(!u){n=!1;let d=Rz[s]||s;r+=`${d}(${c}) `}o&&(t[s]=c)}}return r=r.trim(),o?r=o(t,n?"":r):n&&(r="none"),r}function El(e,t,o){let{style:r,vars:n,transformOrigin:a}=e,s=!1,i=!1;for(let u in t){let c=t[u];if(Hr.has(u)){s=!0;continue}else if(Pl(u)){n[u]=c;continue}else{let d=Ep(c,Ml[u]);u.startsWith("origin")?(i=!0,a[u]=d):r[u]=d}}if(t.transform||(s||o?r.transform=YI(t,e.transform,o):r.transform&&(r.transform="none")),i){let{originX:u="50%",originY:c="50%",originZ:d=0}=a;r.transformOrigin=`${u} ${c} ${d}`}}l();var Tl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function mv(e,t,o){for(let r in t)!Ke(t[r])&&!Mp(r,o)&&(e[r]=t[r])}function Lz({transformTemplate:e},t){return(0,XI.useMemo)(()=>{let o=Tl();return El(o,t,e),Object.assign({},o.vars,o.style)},[t])}function Mz(e,t){let o=e.style||{},r={};return mv(r,o,e),Object.assign(r,Lz(e,t)),r}function QI(e,t){let o={},r=Mz(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 ZI=["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 Dl(e){return typeof e!="string"||e.includes("-")?!1:!!(ZI.indexOf(e)>-1||/[A-Z]/u.test(e))}l();var eR=require("react");l();l();var Ez={offset:"stroke-dashoffset",array:"stroke-dasharray"},Tz={offset:"strokeDashoffset",array:"strokeDasharray"};function JI(e,t,o=1,r=0,n=!0){e.pathLength=1;let a=n?Ez:Tz;e[a.offset]=de.transform(-r);let s=de.transform(t),i=de.transform(o);e[a.array]=`${s} ${i}`}function Tp(e,{attrX:t,attrY:o,attrScale:r,pathLength:n,pathSpacing:a=1,pathOffset:s=0,...i},u,c){if(El(e,i,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&&JI(d,n,a,s,!1)}l();var Dp=()=>({...Tl(),attrs:{}});l();var Ap=e=>typeof e=="string"&&e.toLowerCase()==="svg";function tR(e,t,o,r){let n=(0,eR.useMemo)(()=>{let a=Dp();return Tp(a,t,Ap(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){let a={};mv(a,e.style,e),n.style={...a,...n.style}}return n}function oR(e=!1){return(o,r,n,{latestValues:a},s)=>{let u=(Dl(o)?tR:QI)(r,a,s,o),c=TI(r,typeof o=="string",e),d=o!==Al.Fragment?{...c,...u,ref:n}:{},{children:f}=r,p=(0,Al.useMemo)(()=>Ke(f)?f.get():f,[f]);return(0,Al.createElement)(o,{...d,children:p})}}l();l();var hv=require("react");l();function rR(e){let t=[{},{}];return e?.values.forEach((o,r)=>{t[0][r]=o.get(),t[1][r]=o.getVelocity()}),t}function kl(e,t,o,r){if(typeof t=="function"){let[n,a]=rR(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]=rR(r);t=t(o!==void 0?o:e.custom,n,a)}return t}l();function Ol(e){return Ke(e)?e.get():e}function Dz({scrapeMotionValuesFromProps:e,createRenderState:t},o,r,n){return{latestValues:Az(o,r,n,e),renderState:t()}}var kp=e=>(t,o)=>{let r=(0,hv.useContext)(Ua),n=(0,hv.useContext)(ea),a=()=>Dz(e,t,r,n);return o?a():Ha(a)};function Az(e,t,o,r){let n={},a=r(e,{});for(let p in a)n[p]=Ol(a[p]);let{initial:s,animate:i}=e,u=Zs(e),c=bp(e);t&&c&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let d=o?o.initial===!1:!1;d=d||s===!1;let f=d?i:s;if(f&&typeof f!="boolean"&&!za(f)){let p=Array.isArray(f)?f:[f];for(let m=0;m<p.length;m++){let y=kl(e,p[m]);if(y){let{transitionEnd:g,transition:v,...x}=y;for(let w in x){let C=x[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 Nl(e,t,o){let{style:r}=e,n={};for(let a in r)(Ke(r[a])||t.style&&Ke(t.style[a])||Mp(a,e)||o?.getValue(a)?.liveStyle!==void 0)&&(n[a]=r[a]);return n}var nR={useVisualState:kp({scrapeMotionValuesFromProps:Nl,createRenderState:Tl})};l();l();function Op(e,t,o){let r=Nl(e,t,o);for(let n in e)if(Ke(e[n])||Ke(t[n])){let a=Dn.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[a]=e[n]}return r}var aR={useVisualState:kp({scrapeMotionValuesFromProps:Op,createRenderState:Dp})};function sR(e,t){return function(r,{forwardMotionProps:n}={forwardMotionProps:!1}){let s={...Dl(r)?aR:nR,preloadedFeatures:e,useRender:oR(n),createVisualElement:t,Component:r};return WI(s)}}l();l();l();l();l();l();l();function ia(e,t,o){let r=e.getProps();return kl(r,t,o!==void 0?o:r.custom,e)}l();l();l();var _c=e=>Array.isArray(e);l();l();var Np;function kz(){Np=void 0}var Nt={now:()=>(Np===void 0&&Nt.set(Ot.isProcessing||$o.useManualTiming?Ot.timestamp:performance.now()),Np),set:e=>{Np=e,queueMicrotask(kz)}};l();l();function _l(e,t){e.indexOf(t)===-1&&e.push(t)}function qa(e,t){let o=e.indexOf(t);o>-1&&e.splice(o,1)}var Wa=class{constructor(){this.subscriptions=[]}add(t){return _l(this.subscriptions,t),()=>qa(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 s=this.subscriptions[a];s&&s(t,o,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};l();function _p(e,t){return t?e*(1e3/t):0}var iR=30,Oz=e=>!isNaN(parseFloat(e)),lR={current:void 0},gv=class{constructor(t,o={}){this.version="12.9.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,n=!0)=>{let a=Nt.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=Nt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Oz(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return Sl(!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 Wa);let r=this.events[t].add(o);return t==="change"?()=>{r(),Pe.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 lR.current&&lR.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Nt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>iR)return 0;let o=Math.min(this.updatedAt-this.prevUpdatedAt,iR);return _p(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 la(e,t){return new gv(e,t)}function Nz(e,t,o){e.hasValue(t)?e.getValue(t).set(o):e.addValue(t,la(o))}function _z(e){return _c(e)?e[e.length-1]||0:e}function uR(e,t){let o=ia(e,t),{transitionEnd:r={},transition:n={},...a}=o||{};a={...a,...r};for(let s in a){let i=_z(a[s]);Nz(e,s,i)}}l();l();function cR(e){return!!(Ke(e)&&e.add)}function Fc(e,t){let o=e.getValue("willChange");if(cR(o))return o.add(t);if(!o&&$o.WillChange){let r=new $o.WillChange("auto");e.addValue("willChange",r),r.add(t)}}l();function Fp(e){return e.props[Rp]}l();l();var Fz=e=>e!==null;function dR(e,{repeat:t,repeatType:o="loop"},r){let n=e.filter(Fz),a=t&&o!=="loop"&&t%2===1?0:n.length-1;return!a||r===void 0?n[a]:r}l();var Bz={type:"spring",stiffness:500,damping:25,restSpeed:10},Vz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Hz={type:"keyframes",duration:.8},Uz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fR=(e,{keyframes:t})=>t.length>2?Hz:Hr.has(e)?e.startsWith("scale")?Vz(t[1]):Bz:Uz;l();function pR({when:e,delay:t,delayChildren:o,staggerChildren:r,staggerDirection:n,repeat:a,repeatType:s,repeatDelay:i,from:u,elapsed:c,...d}){return!!Object.keys(d).length}l();function Fl(e,t){return e?.[t]??e?.default??e}l();var zt=e=>e*1e3,Eo=e=>e/1e3;l();l();l();var On={layout:0,mainThread:0,waapi:0};l();l();l();l();l();l();var $a=e=>Math.round(e*1e5)/1e5;l();l();var Bl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;l();function mR(e){return e==null}l();var hR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Vl=(e,t)=>o=>!!(typeof o=="string"&&hR.test(o)&&o.startsWith(e)||t&&!mR(o)&&Object.prototype.hasOwnProperty.call(o,t)),Bp=(e,t,o)=>r=>{if(typeof r!="string")return r;let[n,a,s,i]=r.match(Bl);return{[e]:parseFloat(n),[t]:parseFloat(a),[o]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}};var zz=e=>Io(0,255,e),yv={...An,transform:e=>Math.round(zz(e))},Nn={test:Vl("rgb","red"),parse:Bp("red","green","blue"),transform:({red:e,green:t,blue:o,alpha:r=1})=>"rgba("+yv.transform(e)+", "+yv.transform(t)+", "+yv.transform(o)+", "+$a(sa.transform(r))+")"};function qz(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 Bc={test:Vl("#"),parse:qz,transform:Nn.transform};l();var Ga={test:Vl("hsl","hue"),parse:Bp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:o,alpha:r=1})=>"hsla("+Math.round(e)+", "+Go.transform($a(t))+", "+Go.transform($a(o))+", "+$a(sa.transform(r))+")"};var qt={test:e=>Nn.test(e)||Bc.test(e)||Ga.test(e),parse:e=>Nn.test(e)?Nn.parse(e):Ga.test(e)?Ga.parse(e):Bc.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Nn.transform(e):Ga.transform(e)};l();l();var gR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Wz(e){return isNaN(e)&&typeof e=="string"&&(e.match(Bl)?.length||0)+(e.match(gR)?.length||0)>0}var xR="number",vR="color",$z="var",Gz="var(",yR="${}",jz=/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 ei(e){let t=e.toString(),o=[],r={color:[],number:[],var:[]},n=[],a=0,i=t.replace(jz,u=>(qt.test(u)?(r.color.push(a),n.push(vR),o.push(qt.parse(u))):u.startsWith(Gz)?(r.var.push(a),n.push($z),o.push(u)):(r.number.push(a),n.push(xR),o.push(parseFloat(u))),++a,yR)).split(yR);return{values:o,split:i,indexes:r,types:n}}function wR(e){return ei(e).values}function CR(e){let{split:t,types:o}=ei(e),r=t.length;return n=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],n[s]!==void 0){let i=o[s];i===xR?a+=$a(n[s]):i===vR?a+=qt.transform(n[s]):a+=n[s]}return a}}var Kz=e=>typeof e=="number"?0:e;function Yz(e){let t=wR(e);return CR(e)(t.map(Kz))}var jo={test:Wz,parse:wR,createTransformer:CR,getAnimatableNone:Yz};l();l();function xv(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 SR({hue:e,saturation:t,lightness:o,alpha:r}){e/=360,t/=100,o/=100;let n=0,a=0,s=0;if(!t)n=a=s=o;else{let i=o<.5?o*(1+t):o+t-o*t,u=2*o-i;n=xv(u,i,e+1/3),a=xv(u,i,e),s=xv(u,i,e-1/3)}return{red:Math.round(n*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}l();function Hl(e,t){return o=>o>0?t:e}l();var De=(e,t,o)=>e+(t-e)*o;var vv=(e,t,o)=>{let r=e*e,n=o*(t*t-r)+r;return n<0?0:Math.sqrt(n)},Xz=[Bc,Nn,Ga],Qz=e=>Xz.find(t=>t.test(e));function bR(e){let t=Qz(e);if(sn(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let o=t.parse(e);return t===Ga&&(o=SR(o)),o}var wv=(e,t)=>{let o=bR(e),r=bR(t);if(!o||!r)return Hl(e,t);let n={...o};return a=>(n.red=vv(o.red,r.red,a),n.green=vv(o.green,r.green,a),n.blue=vv(o.blue,r.blue,a),n.alpha=De(o.alpha,r.alpha,a),Nn.transform(n))};l();var Vp=new Set(["none","hidden"]);function IR(e,t){return Vp.has(e)?o=>o<=0?e:t:o=>o>=1?t:e}l();var Zz=(e,t)=>o=>t(e(o)),_n=(...e)=>e.reduce(Zz);function Jz(e,t){return o=>De(e,t,o)}function Hp(e){return typeof e=="number"?Jz:typeof e=="string"?Ll(e)?Hl:qt.test(e)?wv:oq:Array.isArray(e)?RR:typeof e=="object"?qt.test(e)?wv:eq:Hl}function RR(e,t){let o=[...e],r=o.length,n=e.map((a,s)=>Hp(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)o[s]=n[s](a);return o}}function eq(e,t){let o={...e,...t},r={};for(let n in o)e[n]!==void 0&&t[n]!==void 0&&(r[n]=Hp(e[n])(e[n],t[n]));return n=>{for(let a in r)o[a]=r[a](n);return o}}function tq(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],s=e.indexes[a][r[a]],i=e.values[s]??0;o[n]=i,r[a]++}return o}var oq=(e,t)=>{let o=jo.createTransformer(t),r=ei(e),n=ei(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?Vp.has(e)&&!n.values.length||Vp.has(t)&&!r.values.length?IR(e,t):_n(RR(tq(r,n),n.values),o):(sn(!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.`),Hl(e,t))};function Up(e,t,o){return typeof e=="number"&&typeof t=="number"&&typeof o=="number"?De(e,t,o):Hp(e)(e,t)}l();var PR=e=>{let t=({timestamp:o})=>e(o);return{start:()=>Pe.update(t,!0),stop:()=>Sr(t),now:()=>Ot.isProcessing?Ot.timestamp:Nt.now()}};l();l();l();var zp=(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 Ul(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 qp(e,t=100,o){let r=o({...e,keyframes:[0,t]}),n=Math.min(Ul(r),2e4);return{type:"keyframes",ease:a=>r.next(n*a).value/t,duration:Eo(n)}}l();var rq=5;function Wp(e,t,o){let r=Math.max(t-rq,0);return _p(o-e(r),t-r)}l();var ft={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 Sv=.001;function LR({duration:e=ft.duration,bounce:t=ft.bounce,velocity:o=ft.velocity,mass:r=ft.mass}){let n,a;sn(e<=zt(ft.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=Io(ft.minDamping,ft.maxDamping,s),e=Io(ft.minDuration,ft.maxDuration,Eo(e)),s<1?(n=c=>{let d=c*s,f=d*e,p=d-o,m=$p(c,s),y=Math.exp(-f);return Sv-p/m*y},a=c=>{let f=c*s*e,p=f*o+o,m=Math.pow(s,2)*Math.pow(c,2)*e,y=Math.exp(-f),g=$p(Math.pow(c,2),s);return(-n(c)+Sv>0?-1:1)*((p-m)*y)/g}):(n=c=>{let d=Math.exp(-c*e),f=(c-o)*e+1;return-Sv+d*f},a=c=>{let d=Math.exp(-c*e),f=(o-c)*(e*e);return d*f});let i=5/e,u=aq(n,a,i);if(e=zt(e),isNaN(u))return{stiffness:ft.stiffness,damping:ft.damping,duration:e};{let c=Math.pow(u,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}var nq=12;function aq(e,t,o){let r=o;for(let n=1;n<nq;n++)r=r-e(r)/t(r);return r}function $p(e,t){return e*Math.sqrt(1-t*t)}var sq=["duration","bounce"],iq=["stiffness","damping","mass"];function MR(e,t){return t.some(o=>e[o]!==void 0)}function lq(e){let t={velocity:ft.velocity,stiffness:ft.stiffness,damping:ft.damping,mass:ft.mass,isResolvedFromDuration:!1,...e};if(!MR(e,iq)&&MR(e,sq))if(e.visualDuration){let o=e.visualDuration,r=2*Math.PI/(o*1.2),n=r*r,a=2*Io(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:ft.mass,stiffness:n,damping:a}}else{let o=LR(e);t={...t,...o,mass:ft.mass},t.isResolvedFromDuration=!0}return t}function ja(e=ft.visualDuration,t=ft.bounce){let o=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:n}=o,a=o.keyframes[0],s=o.keyframes[o.keyframes.length-1],i={done:!1,value:a},{stiffness:u,damping:c,mass:d,duration:f,velocity:p,isResolvedFromDuration:m}=lq({...o,velocity:-Eo(o.velocity||0)}),y=p||0,g=c/(2*Math.sqrt(u*d)),v=s-a,x=Eo(Math.sqrt(u/d)),w=Math.abs(v)<5;r||(r=w?ft.restSpeed.granular:ft.restSpeed.default),n||(n=w?ft.restDelta.granular:ft.restDelta.default);let C;if(g<1){let b=$p(x,g);C=R=>{let P=Math.exp(-g*x*R);return s-P*((y+g*x*v)/b*Math.sin(b*R)+v*Math.cos(b*R))}}else if(g===1)C=b=>s-Math.exp(-x*b)*(v+(y+x*v)*b);else{let b=x*Math.sqrt(g*g-1);C=R=>{let P=Math.exp(-g*x*R),M=Math.min(b*R,300);return s-P*((y+g*x*v)*Math.sinh(M)+b*v*Math.cosh(M))/b}}let S={calculatedDuration:m&&f||null,next:b=>{let R=C(b);if(m)i.done=b>=f;else{let P=b===0?y:0;g<1&&(P=b===0?zt(y):Wp(C,b,R));let M=Math.abs(P)<=r,T=Math.abs(s-R)<=n;i.done=M&&T}return i.value=i.done?s:R,i},toString:()=>{let b=Math.min(Ul(S),2e4),R=zp(P=>S.next(b*P).value,b,30);return b+"ms "+R},toTransition:()=>{}};return S}ja.applyToOptions=e=>{let t=qp(e,100,ja);return e.ease=t.ease,e.duration=zt(t.duration),e.type="keyframes",e};function Vc({keyframes:e,velocity:t=0,power:o=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:a=500,modifyTarget:s,min:i,max:u,restDelta:c=.5,restSpeed:d}){let f=e[0],p={done:!1,value:f},m=M=>i!==void 0&&M<i||u!==void 0&&M>u,y=M=>i===void 0?u:u===void 0||Math.abs(i-M)<Math.abs(u-M)?i:u,g=o*t,v=f+g,x=s===void 0?v:s(v);x!==v&&(g=x-f);let w=M=>-g*Math.exp(-M/r),C=M=>x+w(M),S=M=>{let T=w(M),_=C(M);p.done=Math.abs(T)<=c,p.value=p.done?x:_},b,R,P=M=>{m(p.value)&&(b=M,R=ja({keyframes:[p.value,y(p.value)],velocity:Wp(C,M,p.value),damping:n,stiffness:a,restDelta:c,restSpeed:d}))};return P(0),{calculatedDuration:null,next:M=>{let T=!1;return!R&&b===void 0&&(T=!0,S(M),P(M)),b!==void 0&&M>=b?R.next(M-b):(!T&&S(M),p)}}}l();l();l();var ln=(e,t,o)=>{let r=t-e;return r===0?1:(o-e)/r};function uq(e,t,o){let r=[],n=o||$o.mix||Up,a=e.length-1;for(let s=0;s<a;s++){let i=n(e[s],e[s+1]);if(t){let u=Array.isArray(t)?t[s]||Tt:t;i=_n(u,i)}r.push(i)}return r}function ER(e,t,{clamp:o=!0,ease:r,mixer:n}={}){let a=e.length;if(Ut(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 s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let i=uq(t,r,n),u=i.length,c=d=>{if(s&&d<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);let p=ln(e[f],e[f+1],d);return i[f](p)};return o?d=>c(Io(e[0],e[a-1],d)):c}l();l();function Gp(e,t){let o=e[e.length-1];for(let r=1;r<=t;r++){let n=ln(0,t,r);e.push(De(o,1,n))}}function jp(e){let t=[0];return Gp(t,e.length-1),t}l();function TR(e,t){return e.map(o=>o*t)}l();l();var DR=(e,t,o)=>(((1-3*o+3*t)*e+(3*o-6*t))*e+3*t)*e,cq=1e-7,dq=12;function fq(e,t,o,r,n){let a,s,i=0;do s=t+(o-t)/2,a=DR(s,r,n)-e,a>0?o=s:t=s;while(Math.abs(a)>cq&&++i<dq);return s}function Ka(e,t,o,r){if(e===t&&o===r)return Tt;let n=a=>fq(a,0,1,e,o);return a=>a===0||a===1?a:DR(n(a),t,r)}var bv=Ka(.42,0,1,1),Hc=Ka(0,0,.58,1),Uc=Ka(.42,0,.58,1);l();var Kp=e=>Array.isArray(e)&&typeof e[0]!="number";l();l();l();l();var Yp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;l();var Xp=e=>t=>1-e(1-t);var Iv=Ka(.33,1.53,.69,.99),zc=Xp(Iv),Qp=Yp(zc);var Zp=e=>(e*=2)<1?.5*zc(e):.5*(2-Math.pow(2,-10*(e-1)));l();var Jp=e=>1-Math.sin(Math.acos(e)),em=Xp(Jp),tm=Yp(Jp);l();var om=e=>Array.isArray(e)&&typeof e[0]=="number";var AR={linear:Tt,easeIn:bv,easeInOut:Uc,easeOut:Hc,circIn:Jp,circInOut:tm,circOut:em,backIn:zc,backInOut:Qp,backOut:Iv,anticipate:Zp},pq=e=>typeof e=="string",Rv=e=>{if(om(e)){Ut(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,o,r,n]=e;return Ka(t,o,r,n)}else if(pq(e))return Ut(AR[e]!==void 0,`Invalid easing type '${e}'`),AR[e];return e};function mq(e,t){return e.map(()=>t||Uc).splice(0,e.length-1)}function Ya({duration:e=300,keyframes:t,times:o,ease:r="easeInOut"}){let n=Kp(r)?r.map(Rv):Rv(r),a={done:!1,value:t[0]},s=TR(o&&o.length===t.length?o:jp(t),e),i=ER(s,t,{ease:Array.isArray(n)?n:mq(t,n)});return{calculatedDuration:e,next:u=>(a.value=i(u),a.done=u>=e,a)}}l();var hq=e=>e!==null;function zl(e,{repeat:t,repeatType:o="loop"},r,n=1){let a=e.filter(hq),i=n<0||t&&o!=="loop"&&t%2===1?0:a.length-1;return!i||r===void 0?a[i]:r}l();var gq={decay:Vc,inertia:Vc,tween:Ya,keyframes:Ya,spring:ja};function rm(e){typeof e.type=="string"&&(e.type=gq[e.type])}l();var Xa=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 yq=e=>e/100,ql=class extends Xa{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!==Nt.now()&&this.tick(Nt.now()),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:r}=this.options;r&&r()},On.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;rm(t);let{type:o=Ya,repeat:r=0,repeatDelay:n=0,repeatType:a,velocity:s=0}=t,{keyframes:i}=t,u=o||Ya;u!==Ya&&Ut(i.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`),u!==Ya&&typeof i[0]!="number"&&(this.mixKeyframes=_n(yq,Up(i[0],i[1])),i=[0,100]);let c=u({...t,keyframes:i});a==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...i].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=Ul(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:s,resolvedDuration:i,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);let{delay:c=0,keyframes:d,repeat:f,repeatType:p,repeatDelay:m,type:y,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 x=this.currentTime-c*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?x<0:x>n;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let C=this.currentTime,S=r;if(f){let M=Math.min(this.currentTime,n)/i,T=Math.floor(M),_=M%1;!_&&M>=1&&(_=1),_===1&&T--,T=Math.min(T,f+1),!!(T%2)&&(p==="reverse"?(_=1-_,m&&(_-=m/i)):p==="mirror"&&(S=s)),C=Io(0,1,_)*i}let b=w?{done:!1,value:d[0]}:S.next(C);a&&(b.value=a(b.value));let{done:R}=b;!w&&u!==null&&(R=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return P&&y!==Vc&&(b.value=zl(d,this.options,v,this.speed)),g&&g(b.value),P&&this.finish(),b}then(t,o){return this.finished.then(t,o)}get duration(){return Eo(this.calculatedDuration)}get time(){return Eo(this.currentTime)}set time(t){t=zt(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(Nt.now());let o=this.playbackSpeed!==t;this.playbackSpeed=t,o&&(this.time=Eo(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=PR,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(Nt.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,On.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 kR(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}l();l();var ti=e=>e*180/Math.PI,Pv=e=>{let t=ti(Math.atan2(e[1],e[0]));return Lv(t)},xq={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Pv,rotateZ:Pv,skewX:e=>ti(Math.atan(e[1])),skewY:e=>ti(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Lv=e=>(e=e%360,e<0&&(e+=360),e),OR=Pv,NR=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),_R=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),vq={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:NR,scaleY:_R,scale:e=>(NR(e)+_R(e))/2,rotateX:e=>Lv(ti(Math.atan2(e[6],e[5]))),rotateY:e=>Lv(ti(Math.atan2(-e[2],e[0]))),rotateZ:OR,rotate:OR,skewX:e=>ti(Math.atan(e[4])),skewY:e=>ti(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function FR(e){return e.includes("scale")?1:0}function nm(e,t){if(!e||e==="none")return FR(t);let o=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,n;if(o)r=vq,n=o;else{let i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=xq,n=i}if(!n)return FR(t);let a=r[t],s=n[1].split(",").map(wq);return typeof a=="function"?a(s):s[a]}var BR=(e,t)=>{let{transform:o="none"}=getComputedStyle(e);return nm(o,t)};function wq(e){return parseFloat(e.trim())}var Mv=e=>e===An||e===de,Cq=new Set(["x","y","z"]),Sq=Dn.filter(e=>!Cq.has(e));function VR(e){let t=[];return Sq.forEach(o=>{let r=e.getValue(o);r!==void 0&&(t.push([o,r.get()]),r.set(o.startsWith("scale")?1:0))}),t}var oi={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})=>nm(t,"x"),y:(e,{transform:t})=>nm(t,"y")};oi.translateX=oi.x;oi.translateY=oi.y;var ri=new Set,Ev=!1,Tv=!1,Dv=!1;function HR(){if(Tv){let e=Array.from(ri).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),o=new Map;t.forEach(r=>{let n=VR(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,s])=>{r.getValue(a)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Tv=!1,Ev=!1,ri.forEach(e=>e.complete(Dv)),ri.clear()}function UR(){ri.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Tv=!0)})}function zR(){Dv=!0,UR(),HR(),Dv=!1}var Qa=class{constructor(t,o,r,n,a,s=!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=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ri.add(this),Ev||(Ev=!0,Pe.read(UR),Pe.resolveKeyframes(HR))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:o,element:r,motionValue:n}=this;if(t[0]===null){let a=n?.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&o){let i=r.readValue(o,s);i!=null&&(t[0]=i)}t[0]===void 0&&(t[0]=s),n&&a===void 0&&n.set(t[0])}kR(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ri.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ri.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};l();l();l();l();var qR=e=>e.startsWith("--");function WR(e,t,o){qR(t)?e.style.setProperty(t,o):e.style[t]=o}l();l();function Wl(e){let t;return()=>(t===void 0&&(t=e()),t)}var $R=Wl(()=>window.ScrollTimeline!==void 0);l();l();l();l();l();var GR={};function jR(e,t){let o=Wl(e);return()=>GR[t]??o()}var am=jR(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");l();var ni=([e,t,o,r])=>`cubic-bezier(${e}, ${t}, ${o}, ${r})`;l();var Av={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ni([0,.65,.55,1]),circOut:ni([.55,0,1,.45]),backIn:ni([.31,.01,.66,-.59]),backOut:ni([.33,1.53,.69,.99])};function kv(e,t){if(e)return typeof e=="function"?am()?zp(e,t):"ease-out":om(e)?ni(e):Array.isArray(e)?e.map(o=>kv(o,t)||Av.easeOut):Av[e]}function KR(e,t,o,{delay:r=0,duration:n=300,repeat:a=0,repeatType:s="loop",ease:i="easeOut",times:u}={},c=void 0){let d={[t]:o};u&&(d.offset=u);let f=kv(i,n);Array.isArray(f)&&(d.easing=f),Cr.value&&On.waapi++;let p={delay:r,duration:n,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};c&&(p.pseudoElement=c);let m=e.animate(d,p);return Cr.value&&m.finished.finally(()=>{On.waapi--}),m}l();l();function $l(e){return typeof e=="function"&&"applyToOptions"in e}function YR({type:e,...t}){return $l(e)&&am()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var sm=class extends Xa{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:o,name:r,keyframes:n,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:i,onComplete:u}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,Ut(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);let c=YR(t);this.animation=KR(o,r,n,c,a),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){let d=zl(n,this.options,i,this.speed);this.updateMotionValue?this.updateMotionValue(d):WR(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 Eo(Number(t))}get time(){return Eo(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=zt(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&&$R()?(this.animation.timeline=t,Tt):o(this)}};l();var XR={anticipate:Zp,backInOut:Qp,circInOut:tm};function bq(e){return e in XR}function QR(e){typeof e.ease=="string"&&bq(e.ease)&&(e.ease=XR[e.ease])}var ZR=10,im=class extends sm{constructor(t){QR(t),rm(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:o,onUpdate:r,onComplete:n,element:a,...s}=this.options;if(!o)return;if(t!==void 0){o.set(t);return}let i=new ql({...s,autoplay:!1}),u=zt(this.finishedTime??this.time);o.setWithVelocity(i.sample(u-ZR).value,i.sample(u).value,ZR),i.stop()}};l();l();var Ov=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(jo.test(e)||e==="0")&&!e.startsWith("url("));function Iq(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 JR(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],s=Ov(n,t),i=Ov(a,t);return sn(s===i,`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.`),!s||!i?!1:Iq(e)||(o==="spring"||$l(o))&&r}l();var Rq=new Set(["opacity","clipPath","filter","transform"]),Pq=Wl(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function eP(e){let{motionValue:t,name:o,repeatDelay:r,repeatType:n,damping:a,type:s}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:i,transformTemplate:u}=t.owner.getProps();return Pq()&&o&&Rq.has(o)&&(o!=="transform"||!u)&&!i&&!r&&n!=="mirror"&&a!==0&&s!=="inertia"}var Lq=40,lm=class extends Xa{constructor({autoplay:t=!0,delay:o=0,type:r="keyframes",repeat:n=0,repeatDelay:a=0,repeatType:s="loop",keyframes:i,name:u,motionValue:c,element:d,...f}){super(),this.stop=()=>{this._animation?(this._animation.stop(),this.stopTimeline?.()):this.keyframeResolver?.cancel()},this.createdAt=Nt.now();let p={autoplay:t,delay:o,type:r,repeat:n,repeatDelay:a,repeatType:s,name:u,motionValue:c,element:d,...f},m=d?.KeyframeResolver||Qa;this.keyframeResolver=new m(i,(y,g,v)=>this.onKeyframesResolved(y,g,p,!v),u,c,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,o,r,n){this.keyframeResolver=void 0;let{name:a,type:s,velocity:i,delay:u,isHandoff:c,onUpdate:d}=r;this.resolvedAt=Nt.now(),JR(t,a,s,i)||(($o.instantAnimations||!u)&&d?.(zl(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>Lq?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...r,keyframes:t},m=!c&&eP(p)?new im({...p,element:p.motionValue.owner.current}):new ql(p);m.finished.then(()=>this.notifyFinished()).catch(Tt),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||zR(),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 Gl=(e,t,o,r={},n,a)=>s=>{let i=Fl(r,e)||{},u=i.delay||r.delay||0,{elapsed:c=0}=r;c=c-zt(u);let d={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-c,onUpdate:p=>{t.set(p),i.onUpdate&&i.onUpdate(p)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:a?void 0:n};pR(i)||Object.assign(d,fR(e,d)),d.duration&&(d.duration=zt(d.duration)),d.repeatDelay&&(d.repeatDelay=zt(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)),($o.instantAnimations||$o.skipAnimations)&&(f=!0,d.duration=0,d.delay=0),d.allowFlatten=!i.type&&!i.ease,f&&!a&&t.get()!==void 0){let p=dR(d.keyframes,i);if(p!==void 0){Pe.update(()=>{d.onUpdate(p),d.onComplete()});return}}return new lm(d)};l();var um=new Set(["width","height","top","left","right","bottom",...Dn]);function Mq({protectedKeys:e,needsAnimating:t},o){let r=e.hasOwnProperty(o)&&t[o]!==!0;return t[o]=!1,r}function jl(e,t,{delay:o=0,transitionOverride:r,type:n}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...i}=t;r&&(a=r);let u=[],c=n&&e.animationState&&e.animationState.getState()[n];for(let d in i){let f=e.getValue(d,e.latestValues[d]??null),p=i[d];if(p===void 0||c&&Mq(c,d))continue;let m={delay:o,...Fl(a||{},d)},y=f.get();if(y!==void 0&&!f.isAnimating&&!Array.isArray(p)&&p===y&&!m.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){let x=Fp(e);if(x){let w=window.MotionHandoffAnimation(x,d,Pe);w!==null&&(m.startTime=w,g=!0)}}Fc(e,d),f.start(Gl(d,f,p,e.shouldReduceMotion&&um.has(d)?{type:!1}:m,e,g));let v=f.animation;v&&u.push(v)}return s&&Promise.all(u).then(()=>{Pe.update(()=>{s&&uR(e,s)})}),u}l();function cm(e,t,o={}){let r=ia(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(jl(e,r,o)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{let{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=n;return Eq(e,t,c+u,d,f,o)}:()=>Promise.resolve(),{when:i}=n;if(i){let[u,c]=i==="beforeChildren"?[a,s]:[s,a];return u().then(()=>c())}else return Promise.all([a(),s(o.delay)])}function Eq(e,t,o=0,r=0,n=1,a){let s=[],i=(e.variantChildren.size-1)*r,u=n===1?(c=0)=>c*r:(c=0)=>i-c*r;return Array.from(e.variantChildren).sort(Tq).forEach((c,d)=>{c.notify("AnimationStart",t),s.push(cm(c,t,{...a,delay:o+u(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function Tq(e,t){return e.sortNodePosition(t)}function tP(e,t,o={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){let n=t.map(a=>cm(e,a,o));r=Promise.all(n)}else if(typeof t=="string")r=cm(e,t,o);else{let n=typeof t=="function"?ia(e,t,o.custom):t;r=Promise.all(jl(e,n,o))}return r.then(()=>{e.notify("AnimationComplete",t)})}l();function Nv(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 Dq=Ac.length;function _v(e){if(!e)return;if(!e.isControllingVariants){let o=e.parent?_v(e.parent)||{}:{};return e.props.initial!==void 0&&(o.initial=e.props.initial),o}let t={};for(let o=0;o<Dq;o++){let r=Ac[o],n=e.props[r];(na(n)||n===!1)&&(t[r]=n)}return t}var Aq=[...Sp].reverse(),kq=Sp.length;function Oq(e){return t=>Promise.all(t.map(({animation:o,options:r})=>tP(e,o,r)))}function rP(e){let t=Oq(e),o=oP(),r=!0,n=u=>(c,d)=>{let f=ia(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(f){let{transition:p,transitionEnd:m,...y}=f;c={...c,...y,...m}}return c};function a(u){t=u(e)}function s(u){let{props:c}=e,d=_v(e.parent)||{},f=[],p=new Set,m={},y=1/0;for(let v=0;v<kq;v++){let x=Aq[v],w=o[x],C=c[x]!==void 0?c[x]:d[x],S=na(C),b=x===u?w.isActive:null;b===!1&&(y=v);let R=C===d[x]&&C!==c[x]&&S;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),w.protectedKeys={...m},!w.isActive&&b===null||!C&&!w.prevProp||za(C)||typeof C=="boolean")continue;let P=Nq(w.prevProp,C),M=P||x===u&&w.isActive&&!R&&S||v>y&&S,T=!1,_=Array.isArray(C)?C:[C],B=_.reduce(n(x),{});b===!1&&(B={});let{prevResolvedValues:k={}}=w,N={...k,...B},I=D=>{M=!0,p.has(D)&&(T=!0,p.delete(D)),w.needsAnimating[D]=!0;let O=e.getValue(D);O&&(O.liveStyle=!1)};for(let D in N){let O=B[D],E=k[D];if(m.hasOwnProperty(D))continue;let H=!1;_c(O)&&_c(E)?H=!Nv(O,E):H=O!==E,H?O!=null?I(D):p.add(D):O!==void 0&&p.has(D)?I(D):w.protectedKeys[D]=!0}w.prevProp=C,w.prevResolvedValues=B,w.isActive&&(m={...m,...B}),r&&e.blockInitialAnimation&&(M=!1),M&&(!(R&&P)||T)&&f.push(..._.map(D=>({animation:D,options:{type:x}})))}if(p.size){let v={};if(typeof c.initial!="boolean"){let x=ia(e,Array.isArray(c.initial)?c.initial[0]:c.initial);x&&x.transition&&(v.transition=x.transition)}p.forEach(x=>{let w=e.getBaseTarget(x),C=e.getValue(x);C&&(C.liveStyle=!0),v[x]=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 i(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=s(u);for(let f in o)o[f].protectedKeys={};return d}return{animateChanges:s,setActive:i,setAnimateFunction:a,getState:()=>o,reset:()=>{o=oP(),r=!0}}}function Nq(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Nv(t,e):!1}function ai(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function oP(){return{animate:ai(!0),whileInView:ai(),whileHover:ai(),whileTap:ai(),whileDrag:ai(),whileFocus:ai(),exit:ai()}}l();var mo=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};var dm=class extends mo{constructor(t){super(t),t.animationState||(t.animationState=rP(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();za(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 _q=0,fm=class extends mo{constructor(){super(...arguments),this.id=_q++}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 nP={animation:{Feature:dm},exit:{Feature:fm}};l();l();l();l();function ua(e,t,o,r={passive:!0}){return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o)}l();l();l();var Kl=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ca(e){return{point:{x:e.pageX,y:e.pageY}}}var aP=e=>t=>Kl(t)&&e(t,ca(t));function Za(e,t,o,r){return ua(e,t,aP(o),r)}l();function pm({top:e,left:t,right:o,bottom:r}){return{x:{min:t,max:o},y:{min:e,max:r}}}function sP({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function iP(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 dP=1e-4,Fq=1-dP,Bq=1+dP,fP=.01,Vq=0-fP,Hq=0+fP;function Zt(e){return e.max-e.min}function pP(e,t,o){return Math.abs(e-t)<=o}function lP(e,t,o,r=.5){e.origin=r,e.originPoint=De(t.min,t.max,e.origin),e.scale=Zt(o)/Zt(t),e.translate=De(o.min,o.max,e.origin)-e.originPoint,(e.scale>=Fq&&e.scale<=Bq||isNaN(e.scale))&&(e.scale=1),(e.translate>=Vq&&e.translate<=Hq||isNaN(e.translate))&&(e.translate=0)}function Yl(e,t,o,r){lP(e.x,t.x,o.x,r?r.originX:void 0),lP(e.y,t.y,o.y,r?r.originY:void 0)}function uP(e,t,o){e.min=o.min+t.min,e.max=e.min+Zt(t)}function mP(e,t,o){uP(e.x,t.x,o.x),uP(e.y,t.y,o.y)}function cP(e,t,o){e.min=t.min-o.min,e.max=e.min+Zt(t)}function Xl(e,t,o){cP(e.x,t.x,o.x),cP(e.y,t.y,o.y)}l();var hP=()=>({translate:0,scale:1,origin:0,originPoint:0}),si=()=>({x:hP(),y:hP()}),gP=()=>({min:0,max:0}),nt=()=>({x:gP(),y:gP()});l();function rr(e){return[e("x"),e("y")]}l();l();l();function Fv(e){return e===void 0||e===1}function mm({scale:e,scaleX:t,scaleY:o}){return!Fv(e)||!Fv(t)||!Fv(o)}function da(e){return mm(e)||Bv(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Bv(e){return yP(e.x)||yP(e.y)}function yP(e){return e&&e!=="0%"}function qc(e,t,o){let r=e-o,n=t*r;return o+n}function xP(e,t,o,r,n){return n!==void 0&&(e=qc(e,n,r)),qc(e,o,r)+t}function Vv(e,t=0,o=1,r,n){e.min=xP(e.min,t,o,r,n),e.max=xP(e.max,t,o,r,n)}function Hv(e,{x:t,y:o}){Vv(e.x,t.translate,t.scale,t.originPoint),Vv(e.y,o.translate,o.scale,o.originPoint)}var vP=.999999999999,wP=1.0000000000001;function SP(e,t,o,r=!1){let n=o.length;if(!n)return;t.x=t.y=1;let a,s;for(let i=0;i<n;i++){a=o[i],s=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&&ii(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Hv(e,s)),r&&da(a.latestValues)&&ii(e,a.latestValues))}t.x<wP&&t.x>vP&&(t.x=1),t.y<wP&&t.y>vP&&(t.y=1)}function Ja(e,t){e.min=e.min+t,e.max=e.max+t}function CP(e,t,o,r,n=.5){let a=De(e.min,e.max,n);Vv(e,t,o,a,r)}function ii(e,t){CP(e.x,t.x,t.scaleX,t.scale,t.originX),CP(e.y,t.y,t.scaleY,t.scale,t.originY)}function Uv(e,t){return pm(iP(e.getBoundingClientRect(),t))}function bP(e,t,o){let r=Uv(e,o),{scroll:n}=t;return n&&(Ja(r.x,n.offset.x),Ja(r.y,n.offset.y)),r}l();var hm=({current:e})=>e?e.ownerDocument.defaultView:null;l();l();var IP=(e,t)=>Math.abs(e-t);function RP(e,t){let o=IP(e.x,t.x),r=IP(e.y,t.y);return Math.sqrt(o**2+r**2)}var Ql=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=qv(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,m=RP(f.offset,{x:0,y:0})>=3;if(!p&&!m)return;let{point:y}=f,{timestamp:g}=Ot;this.history.push({...y,timestamp:g});let{onStart:v,onMove:x}=this.handlers;p||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=zv(p,this.transformPagePoint),Pe.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();let{onEnd:m,onSessionEnd:y,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let v=qv(f.type==="pointercancel"?this.lastMoveEventInfo:zv(p,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,v),y&&y(f,v)},!Kl(t))return;this.dragSnapToOrigin=a,this.handlers=o,this.transformPagePoint=r,this.contextWindow=n||window;let s=ca(t),i=zv(s,this.transformPagePoint),{point:u}=i,{timestamp:c}=Ot;this.history=[{...u,timestamp:c}];let{onSessionStart:d}=o;d&&d(t,qv(i,this.history)),this.removeListeners=_n(Za(this.contextWindow,"pointermove",this.handlePointerMove),Za(this.contextWindow,"pointerup",this.handlePointerUp),Za(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Sr(this.updatePoint)}};function zv(e,t){return t?{point:t(e.point)}:e}function PP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qv({point:e},t){return{point:e,delta:PP(e,LP(t)),offset:PP(e,Uq(t)),velocity:zq(t,.1)}}function Uq(e){return e[0]}function LP(e){return e[e.length-1]}function zq(e,t){if(e.length<2)return{x:0,y:0};let o=e.length-1,r=null,n=LP(e);for(;o>=0&&(r=e[o],!(n.timestamp-r.timestamp>zt(t)));)o--;if(!r)return{x:0,y:0};let a=Eo(n.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let s={x:(n.x-r.x)/a,y:(n.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}l();function AP(e,{min:t,max:o},r){return t!==void 0&&e<t?e=r?De(t,e,r.min):Math.max(e,t):o!==void 0&&e>o&&(e=r?De(o,e,r.max):Math.min(e,o)),e}function MP(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 kP(e,{top:t,left:o,bottom:r,right:n}){return{x:MP(e.x,o,n),y:MP(e.y,t,r)}}function EP(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 OP(e,t){return{x:EP(e.x,t.x),y:EP(e.y,t.y)}}function NP(e,t){let o=.5,r=Zt(e),n=Zt(t);return n>r?o=ln(t.min,t.max-r,e.min):r>n&&(o=ln(e.min,e.max-n,t.min)),Io(0,1,o)}function _P(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 gm=.35;function FP(e=gm){return e===!1?e=0:e===!0&&(e=gm),{x:TP(e,"left","right"),y:TP(e,"top","bottom")}}function TP(e,t,o){return{min:DP(e,t),max:DP(e,o)}}function DP(e,t){return typeof e=="number"?e:e[t]||0}l();l();var Ur={x:!1,y:!1};function ym(){return Ur.x||Ur.y}function BP(e){return e==="x"||e==="y"?Ur[e]?null:(Ur[e]=!0,()=>{Ur[e]=!1}):Ur.x||Ur.y?null:(Ur.x=Ur.y=!0,()=>{Ur.x=Ur.y=!1})}var qq=new WeakMap,vm=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=nt(),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(ca(d).point)},a=(d,f)=>{let{drag:p,dragPropagation:m,onDragStart:y}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=BP(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),rr(v=>{let x=this.getAxisMotionValue(v).get()||0;if(Go.test(x)){let{projection:w}=this.visualElement;if(w&&w.layout){let C=w.layout.layoutBox[v];C&&(x=Zt(C)*(parseFloat(x)/100))}}this.originPoint[v]=x}),y&&Pe.postRender(()=>y(d,f)),Fc(this.visualElement,"transform");let{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(d,f)=>{let{dragPropagation:p,dragDirectionLock:m,onDirectionLock:y,onDrag:g}=this.getProps();if(!p&&!this.openDragLock)return;let{offset:v}=f;if(m&&this.currentDirection===null){this.currentDirection=Wq(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),g&&g(d,f)},i=(d,f)=>this.stop(d,f),u=()=>rr(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Ql(t,{onSessionStart:n,onStart:a,onMove:s,onSessionEnd:i,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:hm(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&&Pe.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||!xm(t,n,this.currentDirection))return;let a=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=AP(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&aa(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=kP(r.layoutBox,t):this.constraints=!1,this.elastic=FP(o),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&rr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=_P(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:o}=this.getProps();if(!t||!aa(t))return!1;let r=t.current;Ut(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=bP(r,n.root,this.visualElement.getTransformPagePoint()),s=OP(n.layout.layoutBox,a);if(o){let i=o(sP(s));this.hasMutatedConstraints=!!i,i&&(s=pm(i))}return s}startAnimation(t){let{drag:o,dragMomentum:r,dragElastic:n,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),u=this.constraints||{},c=rr(d=>{if(!xm(d,o,this.currentDirection))return;let f=u&&u[d]||{};s&&(f={min:0,max:0});let p=n?200:1e6,m=n?40:1e7,y={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(d,y)});return Promise.all(c).then(i)}startAxisValueAnimation(t,o){let r=this.getAxisMotionValue(t);return Fc(this.visualElement,t),r.start(Gl(t,r,0,o,this.visualElement,!1))}stopAnimation(){rr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rr(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){rr(o=>{let{drag:r}=this.getProps();if(!xm(o,r,this.currentDirection))return;let{projection:n}=this.visualElement,a=this.getAxisMotionValue(o);if(n&&n.layout){let{min:s,max:i}=n.layout.layoutBox[o];a.set(t[o]-De(s,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:o}=this.getProps(),{projection:r}=this.visualElement;if(!aa(o)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};rr(s=>{let i=this.getAxisMotionValue(s);if(i&&this.constraints!==!1){let u=i.get();n[s]=NP({min:u,max:u},this.constraints[s])}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rr(s=>{if(!xm(s,t,null))return;let i=this.getAxisMotionValue(s),{min:u,max:c}=this.constraints[s];i.set(De(u,c,n[s]))})}addListeners(){if(!this.visualElement.current)return;qq.set(this.visualElement,this);let t=this.visualElement.current,o=Za(t,"pointerdown",u=>{let{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(u)}),r=()=>{let{dragConstraints:u}=this.getProps();aa(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()),Pe.read(r);let s=ua(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(rr(d=>{let f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())});return()=>{s(),o(),a(),i&&i()}}getProps(){let t=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:a=!1,dragElastic:s=gm,dragMomentum:i=!0}=t;return{...t,drag:o,dragDirectionLock:r,dragPropagation:n,dragConstraints:a,dragElastic:s,dragMomentum:i}}};function xm(e,t,o){return(t===!0||t===e)&&(o===null||o===e)}function Wq(e,t=10){let o=null;return Math.abs(e.y)>t?o="y":Math.abs(e.x)>t&&(o="x"),o}var wm=class extends mo{constructor(t){super(t),this.removeGroupControls=Tt,this.removeListeners=Tt,this.controls=new vm(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Tt}unmount(){this.removeGroupControls(),this.removeListeners()}};l();var VP=e=>(t,o)=>{e&&Pe.postRender(()=>e(t,o))},Cm=class extends mo{constructor(){super(...arguments),this.removePointerDownListener=Tt}onPointerDown(t){this.session=new Ql(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hm(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:o,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:VP(t),onStart:VP(o),onMove:r,onEnd:(a,s)=>{delete this.session,n&&Pe.postRender(()=>n(a,s))}}}mount(){this.removePointerDownListener=Za(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();var zP=require("react/jsx-runtime"),Wc=require("react");l();var Zl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};l();function HP(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Jl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(de.test(e))e=parseFloat(e);else return e;let o=HP(e,t.target.x),r=HP(e,t.target.y);return`${o}% ${r}%`}};l();var UP={correct:(e,{treeScale:t,projectionDelta:o})=>{let r=e,n=jo.parse(e);if(n.length>5)return r;let a=jo.createTransformer(e),s=typeof n[0]!="number"?1:0,i=o.x.scale*t.x,u=o.y.scale*t.y;n[0+s]/=i,n[1+s]/=u;let c=De(i,u,.5);return typeof n[2+s]=="number"&&(n[2+s]/=c),typeof n[3+s]=="number"&&(n[3+s]/=c),a(n)}};var Wv=class extends Wc.Component{componentDidMount(){let{visualElement:t,layoutGroup:o,switchLayoutGroup:r,layoutId:n}=this.props,{projection:a}=t;kc($q),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()})),Zl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:o,visualElement:r,drag:n,isPresent:a}=this.props,s=r.projection;return s&&(s.isPresent=a,n||t.layoutDependency!==o||o===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||Pe.postRender(()=>{let i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Il.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 Sm(e){let[t,o]=Rc(),r=(0,Wc.useContext)(Jn);return(0,zP.jsx)(Wv,{...e,layoutGroup:r,switchLayoutGroup:(0,Wc.useContext)(Pp),isPresent:t,safeToRemove:o})}var $q={borderRadius:{...Jl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Jl,borderTopRightRadius:Jl,borderBottomLeftRadius:Jl,borderBottomRightRadius:Jl,boxShadow:UP};l();l();l();function bm(e,t,o){let r=Ke(e)?e:la(e);return r.start(Gl("",r,t,o)),r.animation}l();function Im(e){return e instanceof SVGElement&&e.tagName!=="svg"}l();l();var qP=(e,t)=>e.depth-t.depth;var Rm=class{constructor(){this.children=[],this.isDirty=!1}add(t){_l(this.children,t),this.isDirty=!0}remove(t){qa(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(qP),this.isDirty=!1,this.children.forEach(t)}};l();function WP(e,t){let o=Nt.now(),r=({timestamp:n})=>{let a=n-o;a>=t&&(Sr(r),e(a-t))};return Pe.setup(r,!0),()=>Sr(r)}l();var KP=["TopLeft","TopRight","BottomLeft","BottomRight"],Gq=KP.length,$P=e=>typeof e=="string"?parseFloat(e):e,GP=e=>typeof e=="number"||de.test(e);function YP(e,t,o,r,n,a){n?(e.opacity=De(0,o.opacity??1,jq(r)),e.opacityExit=De(t.opacity??1,0,Kq(r))):a&&(e.opacity=De(t.opacity??1,o.opacity??1,r));for(let s=0;s<Gq;s++){let i=`border${KP[s]}Radius`,u=jP(t,i),c=jP(o,i);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||GP(u)===GP(c)?(e[i]=Math.max(De($P(u),$P(c),r),0),(Go.test(c)||Go.test(u))&&(e[i]+="%")):e[i]=c}(t.rotate||o.rotate)&&(e.rotate=De(t.rotate||0,o.rotate||0,r))}function jP(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var jq=XP(0,.5,em),Kq=XP(.5,.95,Tt);function XP(e,t,o){return r=>r<e?0:r>t?1:o(ln(e,t,r))}l();function QP(e,t){e.min=t.min,e.max=t.max}function br(e,t){QP(e.x,t.x),QP(e.y,t.y)}function $v(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}l();function ZP(e,t,o,r,n){return e-=t,e=qc(e,1/o,r),n!==void 0&&(e=qc(e,1/n,r)),e}function Yq(e,t=0,o=1,r=.5,n,a=e,s=e){if(Go.test(t)&&(t=parseFloat(t),t=De(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=De(a.min,a.max,r);e===a&&(i-=t),e.min=ZP(e.min,t,o,i,n),e.max=ZP(e.max,t,o,i,n)}function JP(e,t,[o,r,n],a,s){Yq(e,t[o],t[r],t[n],t.scale,a,s)}var Xq=["x","scaleX","originX"],Qq=["y","scaleY","originY"];function Gv(e,t,o,r){JP(e.x,t,Xq,o?o.x:void 0,r?r.x:void 0),JP(e.y,t,Qq,o?o.y:void 0,r?r.y:void 0)}l();function eL(e){return e.translate===0&&e.scale===1}function jv(e){return eL(e.x)&&eL(e.y)}function tL(e,t){return e.min===t.min&&e.max===t.max}function rL(e,t){return tL(e.x,t.x)&&tL(e.y,t.y)}function oL(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Kv(e,t){return oL(e.x,t.x)&&oL(e.y,t.y)}function Yv(e){return Zt(e.x)/Zt(e.y)}function Xv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}l();var Pm=class{constructor(){this.members=[]}add(t){_l(this.members,t),t.scheduleRender()}remove(t){if(qa(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 nL(e,t,o){let r="",n=e.x.translate/t.x,a=e.y.translate/t.y,s=o?.z||0;if((n||a||s)&&(r=`translate3d(${n}px, ${a}px, ${s}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:y}=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) `),y&&(r+=`skewY(${y}deg) `)}let i=e.x.scale*t.x,u=e.y.scale*t.y;return(i!==1||u!==1)&&(r+=`scale(${i}, ${u})`),r||"none"}var li={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Qv=["","X","Y","Z"],Zq={visibility:"hidden"},aL=1e3,Jq=0;function Zv(e,t,o,r){let{latestValues:n}=t;n[e]&&(o[e]=n[e],t.setStaticValue(e,0),r&&(r[e]=0))}function pL(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let o=Fp(t);if(window.MotionHasOptimisedAnimation(o,"transform")){let{layout:n,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(o,"transform",Pe,!(n||a))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&pL(r)}function Lm({attachResizeListener:e,defaultParent:t,measureScroll:o,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(s={},i=t?.()){this.id=Jq++,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,Cr.value&&(li.nodes=li.calculatedTargetDeltas=li.calculatedProjections=0),this.nodes.forEach(oW),this.nodes.forEach(iW),this.nodes.forEach(lW),this.nodes.forEach(rW),Cr.addProjectionMetrics&&Cr.addProjectionMetrics(li)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new Rm)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Wa),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){let u=this.eventHandlers.get(s);u&&u.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Im(s),this.instance=s;let{layoutId:u,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(c||u)&&(this.isLayoutDirty=!0),e){let f,p=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=WP(p,250),Zl.hasAnimatedSinceResize&&(Zl.hasAnimatedSinceResize=!1,this.nodes.forEach(iL))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeLayoutChanged:m,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let g=this.options.transition||d.getDefaultTransition()||pW,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=d.getProps(),w=!this.targetLayout||!Kv(this.targetLayout,y),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={...Fl(g,"layout"),onPlay:v,onComplete:x};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else p||iL(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Sr(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(uW),this.animationId++)}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&pL(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:i,layout:u}=this.options;if(i===void 0&&!u)return;let c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(sL);return}this.isUpdating||this.nodes.forEach(aW),this.isUpdating=!1,this.nodes.forEach(sW),this.nodes.forEach(eW),this.nodes.forEach(tW),this.clearAllSnapshots();let i=Nt.now();Ot.delta=Io(0,1e3/60,i-Ot.timestamp),Ot.timestamp=i,Ot.isProcessing=!0,vp.update.process(Ot),vp.preRender.process(Ot),vp.render.process(Ot),Ot.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Il.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nW),this.sharedNodes.forEach(cW)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Pe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Pe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Zt(this.snapshot.measuredBox.x)&&!Zt(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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=nt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i){let u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:u,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!n)return;let s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,i=this.projectionDelta&&!jv(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;s&&(i||da(this.latestValues)||d)&&(n(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let i=this.measurePageBox(),u=this.removeElementScroll(i);return s&&(u=this.removeTransform(u)),mW(u),{animationId:this.root.animationId,measuredBox:i,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return nt();let i=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(hW))){let{scroll:c}=this.root;c&&(Ja(i.x,c.offset.x),Ja(i.y,c.offset.y))}return i}removeElementScroll(s){let i=nt();if(br(i,s),this.scroll?.wasRoot)return i;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&&br(i,s),Ja(i.x,d.offset.x),Ja(i.y,d.offset.y))}return i}applyTransform(s,i=!1){let u=nt();br(u,s);for(let c=0;c<this.path.length;c++){let d=this.path[c];!i&&d.options.layoutScroll&&d.scroll&&d!==d.root&&ii(u,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),da(d.latestValues)&&ii(u,d.latestValues)}return da(this.latestValues)&&ii(u,this.latestValues),u}removeTransform(s){let i=nt();br(i,s);for(let u=0;u<this.path.length;u++){let c=this.path[u];if(!c.instance||!da(c.latestValues))continue;mm(c.latestValues)&&c.updateSnapshot();let d=nt(),f=c.measurePageBox();br(d,f),Gv(i,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return da(this.latestValues)&&Gv(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Ot.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){let i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);let u=!!this.resumingFrom||this!==i;if(!(s||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=Ot.timestamp,!this.targetDelta&&!this.relativeTarget){let p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nt(),this.relativeTargetOrigin=nt(),Xl(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),br(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=nt(),this.targetWithTransforms=nt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),mP(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):br(this.target,this.layout.layoutBox),Hv(this.target,this.targetDelta)):br(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=nt(),this.relativeTargetOrigin=nt(),Xl(this.relativeTargetOrigin,this.target,p.target),br(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Cr.value&&li.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||mm(this.parent.latestValues)||Bv(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 s=this.getLead(),i=!!this.resumingFrom||this!==s,u=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(u=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Ot.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;br(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,p=this.treeScale.y;SP(this.layoutCorrected,this.treeScale,this.path,i),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=nt());let{target:m}=s;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($v(this.prevProjectionDelta.x,this.projectionDelta.x),$v(this.prevProjectionDelta.y,this.projectionDelta.y)),Yl(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!Xv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Xv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Cr.value&&li.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){let i=this.getStack();i&&i.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=si(),this.projectionDelta=si(),this.projectionDeltaWithTransform=si()}setAnimationOrigin(s,i=!1){let u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},f=si();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let p=nt(),m=u?u.source:void 0,y=this.layout?this.layout.source:void 0,g=m!==y,v=this.getStack(),x=!v||v.members.length<=1,w=!!(g&&!x&&this.options.crossfade===!0&&!this.path.some(fW));this.animationProgress=0;let C;this.mixTargetDelta=S=>{let b=S/1e3;lL(f.x,s.x,b),lL(f.y,s.y,b),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xl(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dW(this.relativeTarget,this.relativeTargetOrigin,p,b),C&&rL(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=nt()),br(C,this.relativeTarget)),g&&(this.animationValues=d,YP(d,c,this.latestValues,b,w,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Sr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Pe.update(()=>{Zl.hasAnimatedSinceResize=!0,On.layout++,this.currentAnimation=bm(0,aL,{...s,onUpdate:i=>{this.mixTargetDelta(i),s.onUpdate&&s.onUpdate(i)},onStop:()=>{On.layout--},onComplete:()=>{On.layout--,s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(aL),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:i,target:u,layout:c,latestValues:d}=s;if(!(!i||!u||!c)){if(this!==s&&this.layout&&c&&mL(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||nt();let f=Zt(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+f;let p=Zt(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+p}br(i,u),ii(i,d),Yl(this.projectionDeltaWithTransform,this.layoutCorrected,i,d)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Pm),this.sharedNodes.get(s).add(i);let c=i.options.initialPromotionConfig;i.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(i):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){let{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:u}={}){let c=this.getStack();c&&c.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let i=!1,{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(i=!0),!i)return;let c={};u.z&&Zv("z",s,c,this.animationValues);for(let d=0;d<Qv.length;d++)Zv(`rotate${Qv[d]}`,s,c,this.animationValues),Zv(`skew${Qv[d]}`,s,c,this.animationValues);s.render();for(let d in c)s.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);s.scheduleRender()}getProjectionStyles(s){if(!this.instance||this.isSVG)return;if(!this.isVisible)return Zq;let i={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=Ol(s?.pointerEvents)||"",i.transform=u?u(this.latestValues,""):"none",i;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=Ol(s?.pointerEvents)||""),this.hasProjected&&!da(this.latestValues)&&(m.transform=u?u({},""):"none",this.hasProjected=!1),m}let d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),i.transform=nL(this.projectionDeltaWithTransform,this.treeScale,d),u&&(i.transform=u(d,i.transform));let{x:f,y:p}=this.projectionDelta;i.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,c.animationValues?i.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:i.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(let m in Js){if(d[m]===void 0)continue;let{correct:y,applyTo:g,isCSSVariable:v}=Js[m],x=i.transform==="none"?d[m]:y(d[m],c);if(g){let w=g.length;for(let C=0;C<w;C++)i[g[C]]=x}else v?this.options.visualElement.renderState.vars[m]=x:i[m]=x}return this.options.layoutId&&(i.pointerEvents=c===this?Ol(s?.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(sL),this.root.sharedNodes.clear()}}}function eW(e){e.updateLayout()}function tW(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"?rr(d=>{let f=a?t.measuredBox[d]:t.layoutBox[d],p=Zt(f);f.min=o[d].min,f.max=f.min+p}):mL(n,t.layoutBox,o)&&rr(d=>{let f=a?t.measuredBox[d]:t.layoutBox[d],p=Zt(o[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});let s=si();Yl(s,o,t.layoutBox);let i=si();a?Yl(i,e.applyTransform(r,!0),t.measuredBox):Yl(i,o,t.layoutBox);let u=!jv(s),c=!1;if(!e.resumeFrom){let d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){let{snapshot:f,layout:p}=d;if(f&&p){let m=nt();Xl(m,t.layoutBox,f.layoutBox);let y=nt();Xl(y,o,p.layoutBox),Kv(m,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:t,delta:i,layoutDelta:s,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function oW(e){Cr.value&&li.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 rW(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nW(e){e.clearSnapshot()}function sL(e){e.clearMeasurements()}function aW(e){e.isLayoutDirty=!1}function sW(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function iL(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iW(e){e.resolveTargetDelta()}function lW(e){e.calcProjection()}function uW(e){e.resetSkewAndRotation()}function cW(e){e.removeLeadSnapshot()}function lL(e,t,o){e.translate=De(t.translate,0,o),e.scale=De(t.scale,1,o),e.origin=t.origin,e.originPoint=t.originPoint}function uL(e,t,o,r){e.min=De(t.min,o.min,r),e.max=De(t.max,o.max,r)}function dW(e,t,o,r){uL(e.x,t.x,o.x,r),uL(e.y,t.y,o.y,r)}function fW(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var pW={duration:.45,ease:[.4,0,.1,1]},cL=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),dL=cL("applewebkit/")&&!cL("chrome/")?Math.round:Tt;function fL(e){e.min=dL(e.min),e.max=dL(e.max)}function mW(e){fL(e.x),fL(e.y)}function mL(e,t,o){return e==="position"||e==="preserve-aspect"&&!pP(Yv(t),Yv(o),.2)}function hW(e){return e!==e.root&&e.scroll?.wasRoot}l();var hL=Lm({attachResizeListener:(e,t)=>ua(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Jv={current:void 0},Mm=Lm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Jv.current){let e=new hL({});e.mount(window),e.setOptions({layoutScroll:!0}),Jv.current=e}return Jv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var gL={pan:{Feature:Cm},drag:{Feature:wm,ProjectionNode:Mm,MeasureLayout:Sm}};l();l();l();l();l();function Em(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 Tm(e,t){let o=Em(e),r=new AbortController,n={passive:!0,...t,signal:r.signal};return[o,n,()=>r.abort()]}function yL(e){return!(e.pointerType==="touch"||ym())}function xL(e,t,o={}){let[r,n,a]=Tm(e,o),s=i=>{if(!yL(i))return;let{target:u}=i,c=t(u,i);if(typeof c!="function"||!u)return;let d=f=>{yL(f)&&(c(f),u.removeEventListener("pointerleave",d))};u.addEventListener("pointerleave",d,n)};return r.forEach(i=>{i.addEventListener("pointerenter",s,n)}),a}function vL(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&&Pe.postRender(()=>a(t,ca(t)))}var Dm=class extends mo{mount(){let{current:t}=this.node;t&&(this.unmount=xL(t,(o,r)=>(vL(this.node,r,"Start"),n=>vL(this.node,n,"End"))))}unmount(){}};l();var Am=class extends mo{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=_n(ua(this.node.current,"focus",()=>this.onFocus()),ua(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};l();l();l();var ew=(e,t)=>t?e===t?!0:ew(e,t.parentElement):!1;l();var gW=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wL(e){return gW.has(e.tagName)||e.tabIndex!==-1}l();l();var ui=new WeakSet;function CL(e){return t=>{t.key==="Enter"&&e(t)}}function tw(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var SL=(e,t)=>{let o=e.currentTarget;if(!o)return;let r=CL(()=>{if(ui.has(o))return;tw(o,"down");let n=CL(()=>{tw(o,"up")}),a=()=>tw(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 bL(e){return Kl(e)&&!ym()}function IL(e,t,o={}){let[r,n,a]=Tm(e,o),s=i=>{let u=i.currentTarget;if(!bL(i)||ui.has(u))return;ui.add(u);let c=t(u,i),d=(m,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!bL(m)||!ui.has(u))&&(ui.delete(u),typeof c=="function"&&c(m,{success:y}))},f=m=>{d(m,u===window||u===document||o.useGlobalTarget||ew(u,m.target))},p=m=>{d(m,!1)};window.addEventListener("pointerup",f,n),window.addEventListener("pointercancel",p,n)};return r.forEach(i=>{(o.useGlobalTarget?window:i).addEventListener("pointerdown",s,n),i instanceof HTMLElement&&(i.addEventListener("focus",c=>SL(c,n)),!wL(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),a}function RL(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&&Pe.postRender(()=>a(t,ca(t)))}var km=class extends mo{mount(){let{current:t}=this.node;t&&(this.unmount=IL(t,(o,r)=>(RL(this.node,r,"Start"),(n,{success:a})=>RL(this.node,n,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};l();l();var rw=new WeakMap,ow=new WeakMap,yW=e=>{let t=rw.get(e.target);t&&t(e)},xW=e=>{e.forEach(yW)};function vW({root:e,...t}){let o=e||document;ow.has(o)||ow.set(o,{});let r=ow.get(o),n=JSON.stringify(t);return r[n]||(r[n]=new IntersectionObserver(xW,{root:e,...t})),r[n]}function PL(e,t,o){let r=vW(t);return rw.set(e,o),r.observe(e),()=>{rw.delete(e),r.unobserve(e)}}var wW={some:0,all:1},Om=class extends mo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:o,margin:r,amount:n="some",once:a}=t,s={root:o?o.current:void 0,rootMargin:r,threshold:typeof n=="number"?n:wW[n]},i=u=>{let{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);let{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=c?d:f;p&&p(u)};return PL(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:o}=this.node;["amount","margin","root"].some(CW(t,o))&&this.startObserver()}unmount(){}};function CW({viewport:e={}},{viewport:t={}}={}){return o=>e[o]!==t[o]}var LL={inView:{Feature:Om},tap:{Feature:km},focus:{Feature:Am},hover:{Feature:Dm}};l();var ML={layout:{ProjectionNode:Mm,MeasureLayout:Sm}};l();var FL=require("react");l();l();l();l();l();var $c={current:null},Nm={current:!1};function EL(){if(Nm.current=!0,!!wl)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>$c.current=e.matches;e.addListener(t),t()}else $c.current=!1}l();var es=new WeakMap;l();function TL(e,t,o){for(let r in t){let n=t[r],a=o[r];if(Ke(n))e.addValue(r,n);else if(Ke(a))e.addValue(r,la(n,{owner:e}));else if(a!==n)if(e.hasValue(r)){let s=e.getValue(r);s.liveStyle===!0?s.jump(n):s.hasAnimated||s.set(n)}else{let s=e.getStaticValue(r);e.addValue(r,la(s!==void 0?s:n,{owner:e}))}}for(let r in o)t[r]===void 0&&e.removeValue(r);return t}l();var _m=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);l();var Fm=e=>/^0[^.\s]+$/u.test(e);l();l();l();var DL={test:e=>e==="auto",parse:e=>e};l();var Bm=e=>t=>t.test(e);var nw=[An,de,Go,kn,jI,GI,DL],aw=e=>nw.find(Bm(e));var SW=[...nw,qt,jo],AL=e=>SW.find(Bm(e));l();l();var bW=new Set(["brightness","contrast","saturate","opacity"]);function IW(e){let[t,o]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[r]=o.match(Bl)||[];if(!r)return e;let n=o.replace(r,""),a=bW.has(t)?1:0;return r!==o&&(a*=100),t+"("+a+n+")"}var RW=/\b([a-z-]*)\(.*?\)/gu,Gc={...jo,getAnimatableNone:e=>{let t=e.match(RW);return t?t.map(IW).join(" "):e}};l();var PW={...Ml,color:qt,backgroundColor:qt,outlineColor:qt,fill:qt,stroke:qt,borderColor:qt,borderTopColor:qt,borderRightColor:qt,borderBottomColor:qt,borderLeftColor:qt,filter:Gc,WebkitFilter:Gc},Vm=e=>PW[e];function Hm(e,t){let o=Vm(e);return o!==Gc&&(o=jo),o.getAnimatableNone?o.getAnimatableNone(t):void 0}var kL=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eu=class{scrapeMotionValuesFromProps(t,o,r){return{}}constructor({parent:t,props:o,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:a,visualState:s},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Qa,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=Nt.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Pe.render(this.render,!1,!0))};let{latestValues:u,renderState:c}=s;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=i,this.blockInitialAnimation=!!a,this.isControllingVariants=Zs(o),this.isVariantNode=bp(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&&Ke(m)&&m.set(u[p],!1)}}mount(t){this.current=t,es.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)),Nm.current||EL(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:$c.current,Sl(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(),Sr(this.notifyUpdate),Sr(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=Hr.has(t);r&&this.onBindTransform&&this.onBindTransform();let n=o.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&Pe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=o.on("renderRequest",this.scheduleRender),s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,o)),this.valueSubscriptions.set(t,()=>{n(),a(),s&&s(),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 ra){let o=ra[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):nt()}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<kL.length;r++){let n=kL[r];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let a="on"+n,s=t[a];s&&(this.propEventSubscriptions[n]=this.on(n,s))}this.prevMotionValues=TL(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=la(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"&&(_m(r)||Fm(r))?r=parseFloat(r):!AL(r)&&jo.test(o)&&(r=Hm(t,o)),this.setBaseTarget(t,Ke(r)?r.get():r)),Ke(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=kl(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&&!Ke(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 Wa),this.events[t].add(o)}notify(t,...o){this.events[t]&&this.events[t].notify(...o)}};l();l();var LW=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function MW(e){let t=LW.exec(e);if(!t)return[,];let[,o,r,n]=t;return[`--${o??r}`,n]}var EW=4;function sw(e,t,o=1){Ut(o<=EW,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,n]=MW(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let s=a.trim();return _m(s)?parseFloat(s):s}return Ll(n)?sw(n,t,o+1):n}l();function OL(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Fm(e):!0}l();var TW=new Set(["auto","none","0"]);function NL(e,t,o){let r=0,n;for(;r<e.length&&!n;){let a=e[r];typeof a=="string"&&!TW.has(a)&&ei(a).values.length&&(n=e[r]),r++}if(n&&o)for(let a of t)e[a]=Hm(o,n)}var Um=class extends Qa{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(),Ll(c))){let d=sw(c,o.current);d!==void 0&&(t[u]=d),u===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!um.has(r)||t.length!==2)return;let[n,a]=t,s=aw(n),i=aw(a);if(s!==i)if(Mv(s)&&Mv(i))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||OL(t[n]))&&r.push(n);r.length&&NL(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=oi[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,s=r[a];r[a]=oi[o](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([i,u])=>{t.getValue(i).set(u)}),this.resolveNoneKeyframes()}};var tu=class extends eu{constructor(){super(...arguments),this.KeyframeResolver=Um}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;Ke(t)&&(this.childSubscription=t.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}};l();function zm(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 DW(e){return window.getComputedStyle(e)}var ou=class extends tu{constructor(){super(...arguments),this.type="html",this.renderInstance=zm}readValueFromInstance(t,o){if(Hr.has(o))return BR(t,o);{let r=DW(t),n=(Pl(o)?r.getPropertyValue(o):r[o])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:o}){return Uv(t,o)}build(t,o,r){El(t,o,r.transformTemplate)}scrapeMotionValuesFromProps(t,o,r){return Nl(t,o,r)}};l();l();var qm=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 _L(e,t,o,r){zm(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(qm.has(n)?n:bl(n),t.attrs[n])}var ru=class extends tu{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nt}getBaseTargetFromProps(t,o){return t[o]}readValueFromInstance(t,o){if(Hr.has(o)){let r=Vm(o);return r&&r.default||0}return o=qm.has(o)?o:bl(o),t.getAttribute(o)}scrapeMotionValuesFromProps(t,o,r){return Op(t,o,r)}build(t,o,r){Tp(t,o,this.isSVGTag,r.transformTemplate)}renderInstance(t,o,r,n){_L(t,o,r,n)}mount(t){this.isSVGTag=Ap(t.tagName),super.mount(t)}};var BL=(e,t)=>Dl(e)?new ru(t):new ou(t,{allowProjection:e!==FL.Fragment});var VL=sR({...nP,...LL,...gL,...ML},BL);var Ye=kI(VL);l();l();l();l();l();function jc(e){return typeof e=="object"&&!Array.isArray(e)}function Wm(e,t,o,r){return typeof e=="string"&&jc(t)?Em(e,o,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}l();function HL(e,t,o){return e*(t+1)}l();function iw(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 UL=(e,t,o)=>{let r=t-e;return((o-e)%r+r)%r+e};function $m(e,t){return Kp(e)?e[UL(0,e.length,t)]:e}function AW(e,t,o){for(let r=0;r<e.length;r++){let n=e[r];n.at>t&&n.at<o&&(qa(e,n),r--)}}function zL(e,t,o,r,n,a){AW(e,n,a);for(let s=0;s<t.length;s++)e.push({value:t[s],at:De(n,a,r[s]),easing:$m(o,s)})}l();function qL(e,t){for(let o=0;o<e.length;o++)e[o]=e[o]/(t+1)}l();function WL(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var kW="easeInOut",OW=20;function jL(e,{defaultTransition:t={},...o}={},r,n){let a=t.duration||.3,s=new Map,i=new Map,u={},c=new Map,d=0,f=0,p=0;for(let m=0;m<e.length;m++){let y=e[m];if(typeof y=="string"){c.set(y,f);continue}else if(!Array.isArray(y)){c.set(y.name,iw(f,y.at,d,c));continue}let[g,v,x={}]=y;x.at!==void 0&&(f=iw(f,x.at,d,c));let w=0,C=(S,b,R,P=0,M=0)=>{let T=NW(S),{delay:_=0,times:B=jp(T),type:k="keyframes",repeat:N,repeatType:I,repeatDelay:A=0,...L}=b,{ease:D=t.ease||"easeOut",duration:O}=b,E=typeof _=="function"?_(P,M):_,H=T.length,V=$l(k)?k:n?.[k];if(H<=2&&V){let U=100;if(H===2&&BW(T)){let X=T[1]-T[0];U=Math.abs(X)}let W={...L};O!==void 0&&(W.duration=zt(O));let q=qp(W,U,V);D=q.ease,O=q.duration}O??(O=a);let z=f+E;B.length===1&&B[0]===0&&(B[1]=1);let j=B.length-T.length;if(j>0&&Gp(B,j),T.length===1&&T.unshift(null),N){Ut(N<OW,"Repeat count too high, must be less than 20"),O=HL(O,N);let U=[...T],W=[...B];D=Array.isArray(D)?[...D]:[D];let q=[...D];for(let X=0;X<N;X++){T.push(...U);for(let J=0;J<U.length;J++)B.push(W[J]+(X+1)),D.push(J===0?"linear":$m(q,J-1))}qL(B,N)}let Y=z+O;zL(R,T,D,B,z,Y),w=Math.max(E+O,w),p=Math.max(Y,p)};if(Ke(g)){let S=$L(g,i);C(v,x,GL("default",S))}else{let S=Wm(g,v,r,u),b=S.length;for(let R=0;R<b;R++){v=v,x=x;let P=S[R],M=$L(P,i);for(let T in v)C(v[T],_W(x,T),GL(T,M),R,b)}}d=f,f+=w}return i.forEach((m,y)=>{for(let g in m){let v=m[g];v.sort(WL);let x=[],w=[],C=[];for(let b=0;b<v.length;b++){let{at:R,value:P,easing:M}=v[b];x.push(P),w.push(ln(0,p,R)),C.push(M||"easeOut")}w[0]!==0&&(w.unshift(0),x.unshift(x[0]),C.unshift(kW)),w[w.length-1]!==1&&(w.push(1),x.push(null)),s.has(y)||s.set(y,{keyframes:{},transition:{}});let S=s.get(y);S.keyframes[g]=x,S.transition[g]={...t,duration:p,ease:C,times:w,...o}}}),s}function $L(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function GL(e,t){return t[e]||(t[e]=[]),t[e]}function NW(e){return Array.isArray(e)?e:[e]}function _W(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var FW=e=>typeof e=="number",BW=e=>e.every(FW);l();l();l();function VW(e,t){return e in t}var Gm=class extends eu{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,o){if(VW(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 nt()}build(t,o){Object.assign(t.output,o)}renderInstance(t,{output:o}){Object.assign(t,o)}sortInstanceNodePosition(){return 0}};function KL(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},o=Im(e)?new ru(t):new ou(t);o.mount(e),es.set(e,o)}function YL(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},o=new Gm(t);o.mount(e),es.set(e,o)}function HW(e,t){return Ke(e)||typeof e=="number"||typeof e=="string"&&!jc(t)}function jm(e,t,o,r){let n=[];if(HW(e,t))n.push(bm(e,jc(t)&&t.default||t,o&&(o.default||o)));else{let a=Wm(e,t,r),s=a.length;Ut(!!s,"No valid elements provided.");for(let i=0;i<s;i++){let u=a[i],c=u instanceof Element?KL:YL;es.has(u)||c(u);let d=es.get(u),f={...o};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(i,s)),n.push(...jl(d,{...t,transition:f},{}))}}return n}function XL(e,t,o){let r=[];return jL(e,t,o,{spring:ja}).forEach(({keyframes:a,transition:s},i)=>{r.push(...jm(i,a,s))}),r}l();l();var Km=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 Ym=class extends Km{then(t,o){return this.finished.finally(t).then(()=>{})}};function UW(e){return Array.isArray(e)&&e.some(Array.isArray)}function QL(e){function t(o,r,n){let a=[];UW(o)?a=XL(o,r,e):a=jm(o,r,n,e);let s=new Ym(a);return e&&e.animations.push(s),s}return t}var lw=QL();l();var xi=require("react");l();l();l();var n$={},Xm=Object.create(null),Kc=e=>globalThis.process?.env||n$.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?Xm:globalThis),ts=new Proxy(Xm,{get(e,t){return Kc()[t]??Xm[t]},has(e,t){let o=Kc();return t in o||t in Xm},set(e,t,o){let r=Kc(!0);return r[t]=o,!0},deleteProperty(e,t){if(!t)return!1;let o=Kc(!0);return delete o[t],!0},ownKeys(){let e=Kc(!0);return Object.keys(e)}}),zW=typeof process<"u"&&process.env&&"true"||"",qW=[["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 WW(){if(globalThis.process?.env)for(let e of qW){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 JL=WW(),eM=JL.name;function ci(e){return e?e!=="false":!1}var Yc=globalThis.process?.platform||"",Qm=ci(ts.CI)||JL.ci!==!1,tM=ci(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);var Rbe=ci(ts.DEBUG),$W=zW==="test"||ci(ts.TEST);var Pbe=ci(ts.MINIMAL)||Qm||$W||!tM,GW=/^win/i.test(Yc),Lbe=/^linux/i.test(Yc),Mbe=/^darwin/i.test(Yc),Ebe=!ci(ts.NO_COLOR)&&(ci(ts.FORCE_COLOR)||(tM||GW)&&ts.TERM!=="dumb"||Qm),uw=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null,Tbe=Number(uw?.split(".")[0])||null,jW=globalThis.process||Object.create(null),ZL={versions:{}},oM=new Proxy(jW,{get(e,t){if(t==="env")return ts;if(t in e)return e[t];if(t in ZL)return ZL[t]}}),KW=globalThis.process?.release?.name==="node",YW=!!globalThis.Bun||!!globalThis.process?.versions?.bun,XW=!!globalThis.Deno,QW=!!globalThis.fastly,ZW=!!globalThis.Netlify,JW=!!globalThis.EdgeRuntime,e$=globalThis.navigator?.userAgent==="Cloudflare-Workers",t$=[[ZW,"netlify"],[JW,"edge-light"],[e$,"workerd"],[QW,"fastly"],[XW,"deno"],[YW,"bun"],[KW,"node"]];function o$(){let e=t$.find(t=>t[0]);if(e)return{name:e[1]}}var r$=o$(),Dbe=r$?.name||"";l();function rM(e=new Date){return`${a$(e)}T${s$(e)}${i$(e)}`}function a$(e){return[e.getFullYear(),di(e.getMonth()+1),di(e.getDate())].join("-")}function s$(e){return[di(e.getHours()),di(e.getMinutes()),di(e.getSeconds())].join(":")}function i$(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?"-":"+"}${di(r)}:${di(n)}`}function di(e){return String(e).padStart(2,"0")}var l$="https://checkpoint.prisma.io/v1";var u$="check/:product";async function nM(e){let t=new URL(u$,e.baseURL||l$);t.pathname=t.pathname.replace(":product",e.product);let{additionalData:o}=e;t.search=new URLSearchParams([...Object.entries({arch:e.architecture||oM.arch||"unknown",check_if_update_available:`${e.skipUpdateCheck!==!0}`,ci:`${Qm}`,ci_name:eM,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:rM(e.timestamp),node_version:uw||"0.0.0",os:e.platform||Yc||"unknown",previous_client_event_id:e.previousEventId||"",project_hash:e.projectHash||"",signature:e.signature,version:e.version}),...cw("schema_generators_providers",e.ormGeneratorProviders),...cw("schema_preview_features",e.ormPreviewFeatures),...cw("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 cw(e,t){return t?.filter(Boolean).map(o=>[e,o])||[]}l();l();l();l();l();var zr=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 nr=typeof window>"u"||"Deno"in globalThis;function To(){}function iM(e,t){return typeof e=="function"?e(t):e}function Xc(e){return typeof e=="number"&&e>=0&&e!==1/0}function Zm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function os(e,t){return typeof e=="function"?e(t):e}function Ir(e,t){return typeof e=="function"?e(t):e}function Jm(e,t){let{type:o="all",exact:r,fetchStatus:n,predicate:a,queryKey:s,stale:i}=e;if(s){if(r){if(t.queryHash!==Qc(s,t.options))return!1}else if(!au(t.queryKey,s))return!1}if(o!=="all"){let u=t.isActive();if(o==="active"&&!u||o==="inactive"&&u)return!1}return!(typeof i=="boolean"&&t.isStale()!==i||n&&n!==t.state.fetchStatus||a&&!a(t))}function eh(e,t){let{exact:o,status:r,predicate:n,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(o){if(Fn(t.options.mutationKey)!==Fn(a))return!1}else if(!au(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||n&&!n(t))}function Qc(e,t){return(t?.queryKeyHashFn||Fn)(e)}function Fn(e){return JSON.stringify(e,(t,o)=>dw(o)?Object.keys(o).sort().reduce((r,n)=>(r[n]=o[n],r),{}):o)}function au(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(o=>au(e[o],t[o])):!1}function nu(e,t){if(e===t)return e;let o=aM(e)&&aM(t);if(o||dw(e)&&dw(t)){let r=o?e:Object.keys(e),n=r.length,a=o?t:Object.keys(t),s=a.length,i=o?[]:{},u=0;for(let c=0;c<s;c++){let d=o?c:a[c];(!o&&r.includes(d)||o)&&e[d]===void 0&&t[d]===void 0?(i[d]=void 0,u++):(i[d]=nu(e[d],t[d]),i[d]===e[d]&&e[d]!==void 0&&u++)}return n===s&&u===n?e:i}return t}function su(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 aM(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function dw(e){if(!sM(e))return!1;let t=e.constructor;if(t===void 0)return!0;let o=t.prototype;return!(!sM(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function sM(e){return Object.prototype.toString.call(e)==="[object Object]"}function lM(e){return new Promise(t=>{setTimeout(t,e)})}function Zc(e,t,o){if(typeof o.structuralSharing=="function")return o.structuralSharing(e,t);if(o.structuralSharing!==!1){try{return nu(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 nu(e,t)}return t}function uM(e,t,o=0){let r=[...e,t];return o&&r.length>o?r.slice(1):r}function cM(e,t,o=0){let r=[t,...e];return o&&r.length>o?r.slice(0,-1):r}var fi=Symbol();function th(e,t){return e.queryFn===fi&&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===fi?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var c$=class extends zr{#t;#e;#o;constructor(){super(),this.#o=e=>{if(!nr&&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"}},iu=new c$;l();var d$=class extends zr{#t=!0;#e;#o;constructor(){super(),this.#o=e=>{if(!nr&&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}},lu=new d$;l();function Jc(){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 f$(e){return Math.min(1e3*2**e,3e4)}function fw(e){return(e??"online")==="online"?lu.isOnline():!0}var dM=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function oh(e){return e instanceof dM}function rh(e){let t=!1,o=0,r=!1,n,a=Jc(),s=g=>{r||(p(new dM(g)),e.abort?.())},i=()=>{t=!0},u=()=>{t=!1},c=()=>iu.isFocused()&&(e.networkMode==="always"||lu.isOnline())&&e.canRun(),d=()=>fw(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?.()}),y=()=>{if(r)return;let g,v=o===0?e.initialPromise:void 0;try{g=v??e.fn()}catch(x){g=Promise.reject(x)}Promise.resolve(g).then(f).catch(x=>{if(r)return;let w=e.retry??(nr?0:3),C=e.retryDelay??f$,S=typeof C=="function"?C(o,x):C,b=w===!0||typeof w=="number"&&o<w||typeof w=="function"&&w(o,x);if(t||!b){p(x);return}o++,e.onFail?.(o,x),lM(S).then(()=>c()?void 0:m()).then(()=>{t?p(x):y()})})};return{promise:a,cancel:s,continue:()=>(n?.(),a),cancelRetry:i,continueRetry:u,canStart:d,start:()=>(d()?y():m().then(y),a)}}l();l();l();var fM=e=>setTimeout(e,0);function p$(){let e=[],t=0,o=i=>{i()},r=i=>{i()},n=fM,a=i=>{t?e.push(i):n(()=>{o(i)})},s=()=>{let i=e;e=[],i.length&&n(()=>{r(()=>{i.forEach(u=>{o(u)})})})};return{batch:i=>{let u;t++;try{u=i()}finally{t--,t||s()}return u},batchCalls:i=>(...u)=>{a(()=>{i(...u)})},schedule:a,setNotifyFunction:i=>{o=i},setBatchNotifyFunction:i=>{r=i},setScheduler:i=>{n=i}}}var Ge=p$();l();var nh=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Xc(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(nr?1/0:5*60*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}};var pM=class extends nh{#t;#e;#o;#r;#n;#s;#i;constructor(e){super(),this.#i=!1,this.#s=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=m$(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.#s,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#o.remove(this)}setData(e,t){let o=Zc(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(To).catch(To):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Ir(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fi||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||!Zm(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.#i?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 i=this.observers.find(u=>u.options.queryFn);i&&this.setOptions(i.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");let o=new AbortController,r=i=>{Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(this.#i=!0,o.signal)})},n=()=>{let i=th(this.options,t),u={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(u),this.#i=!1,this.options.persister?this.options.persister(i,u,this):i(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 s=i=>{oh(i)&&i.silent||this.#a({type:"error",error:i}),oh(i)||(this.#o.config.onError?.(i,this),this.#o.config.onSettled?.(this.state.data,i,this)),this.scheduleGc()};return this.#n=rh({initialPromise:t?.initialPromise,fn:a.fetchFn,abort:o.abort.bind(o),onSuccess:i=>{if(i===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}`),s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(i)}catch(u){s(u);return}this.#o.config.onSuccess?.(i,this),this.#o.config.onSettled?.(i,this.state.error,this),this.scheduleGc()},onError:s,onFail:(i,u)=>{this.#a({type:"failed",failureCount:i,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,...pw(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 oh(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),Ge.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:e})})}};function pw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:fw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function m$(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 mM=class extends zr{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,o){let r=t.queryKey,n=t.queryHash??Qc(r,t),a=this.get(n);return a||(a=new pM({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(){Ge.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=>Jm(t,o))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(o=>Jm(e,o)):t}notify(e){Ge.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ge.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ge.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}};l();l();l();var hM=class extends nh{#t;#e;#o;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||mw(),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=rh({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),Ge.batch(()=>{this.#t.forEach(o=>{o.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function mw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var gM=class extends zr{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 hM({mutationCache:this,mutationId:++this.#o,options:e.defaultMutationOptions(t),state:o});return this.add(r),r}add(e){this.#t.add(e);let t=ah(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=ah(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=ah(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=ah(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ge.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=>eh(t,o))}findAll(e={}){return this.getAll().filter(t=>eh(e,t))}notify(e){Ge.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(t=>t.state.isPaused);return Ge.batch(()=>Promise.all(e.map(t=>t.continue().catch(To))))}};function ah(e){return e.options.scope?.id}l();function hw(e){return{onFetch:(t,o)=>{let r=t.options,n=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[],i={pages:[],pageParams:[]},u=0,c=async()=>{let d=!1,f=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?d=!0:t.signal.addEventListener("abort",()=>{d=!0}),t.signal)})},p=th(t.options,t.fetchOptions),m=async(y,g,v)=>{if(d)return Promise.reject();if(g==null&&y.pages.length)return Promise.resolve(y);let x={client:t.client,queryKey:t.queryKey,pageParam:g,direction:v?"backward":"forward",meta:t.options.meta};f(x);let w=await p(x),{maxPages:C}=t.options,S=v?cM:uM;return{pages:S(y.pages,w,C),pageParams:S(y.pageParams,g,C)}};if(n&&a.length){let y=n==="backward",g=y?h$:yM,v={pages:a,pageParams:s},x=g(r,v);i=await m(v,x,y)}else{let y=e??a.length;do{let g=u===0?s[0]??r.initialPageParam:yM(r,i);if(u>0&&g==null)break;i=await m(i,g),u++}while(u<y)}return i};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},o):t.fetchFn=c}}}function yM(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 h$(e,{pages:t,pageParams:o}){return t.length>0?e.getPreviousPageParam?.(t[0],t,o[0],o):void 0}var gw=class{#t;#e;#o;#r;#n;#s;#i;#a;constructor(e={}){this.#t=e.queryCache||new mM,this.#e=e.mutationCache||new gM,this.#o=e.defaultOptions||{},this.#r=new Map,this.#n=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#i=iu.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#a=lu.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#i?.(),this.#i=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(os(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,s=iM(t,a);if(s!==void 0)return this.#t.build(this,r).setData(s,{...o,manual:!0})}setQueriesData(e,t,o){return Ge.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;Ge.batch(()=>{t.findAll(e).forEach(o=>{t.remove(o)})})}resetQueries(e,t){let o=this.#t;return Ge.batch(()=>(o.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let o={revert:!0,...t},r=Ge.batch(()=>this.#t.findAll(e).map(n=>n.cancel(o)));return Promise.all(r).then(To).catch(To)}invalidateQueries(e,t={}){return Ge.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=Ge.batch(()=>this.#t.findAll(e).filter(n=>!n.isDisabled()).map(n=>{let a=n.fetch(void 0,o);return o.throwOnError||(a=a.catch(To)),n.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(To)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let o=this.#t.build(this,t);return o.isStaleByTime(os(t.staleTime,o))?o.fetch(t):Promise.resolve(o.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(To).catch(To)}fetchInfiniteQuery(e){return e.behavior=hw(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(To).catch(To)}ensureInfiniteQueryData(e){return e.behavior=hw(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return lu.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(Fn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],o={};return t.forEach(r=>{au(e,r.queryKey)&&Object.assign(o,r.defaultOptions)}),o}setMutationDefaults(e,t){this.#n.set(Fn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#n.values()],o={};return t.forEach(r=>{au(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=Qc(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===fi&&(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 xw=class extends zr{constructor(e,t){super(),this.options=t,this.#t=e,this.#a=null,this.#i=Jc(),this.options.experimental_prefetchInRender||this.#i.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;#s;#i;#a;#h;#f;#p;#u;#c;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),xM(this.#e,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yw(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yw(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 Ir(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&&!su(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});let r=this.hasListeners();r&&vM(this.#e,o,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==o||Ir(this.options.enabled,this.#e)!==Ir(t.enabled,this.#e)||os(this.options.staleTime,this.#e)!==os(t.staleTime,this.#e))&&this.#g();let n=this.#y();r&&(this.#e!==o||Ir(this.options.enabled,this.#e)!==Ir(t.enabled,this.#e)||n!==this.#l)&&this.#x(n)}getOptimisticResult(e){let t=this.#t.getQueryCache().build(this.#t,e),o=this.createResult(t,e);return y$(this,o)&&(this.#r=o,this.#s=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(To)),t}#g(){this.#w();let e=os(this.options.staleTime,this.#e);if(nr||this.#r.isStale||!Xc(e))return;let o=Zm(this.#r.dataUpdatedAt,e)+1;this.#u=setTimeout(()=>{this.#r.isStale||this.updateResult()},o)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#x(e){this.#C(),this.#l=e,!(nr||Ir(this.options.enabled,this.#e)===!1||!Xc(this.#l)||this.#l===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||iu.isFocused())&&this.#d()},this.#l))}#v(){this.#g(),this.#x(this.#y())}#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,s=this.#s,u=e!==o?e.state:this.#o,{state:c}=e,d={...c},f=!1,p;if(t._optimisticResults){let P=this.hasListeners(),M=!P&&xM(e,t),T=P&&vM(e,o,t,r);(M||T)&&(d={...d,...pw(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:y,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=Zc(n?.data,p,t),this.#f=p,this.#a=null}catch(P){this.#a=P}else p=d.data;if(t.placeholderData!==void 0&&p===void 0&&g==="pending"){let P;if(n?.isPlaceholderData&&t.placeholderData===s?.placeholderData)P=n.data;else if(P=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,t.select&&P!==void 0)try{P=t.select(P),this.#a=null}catch(M){this.#a=M}P!==void 0&&(g="success",p=Zc(n?.data,P,t),f=!0)}this.#a&&(m=this.#a,p=this.#f,y=Date.now(),g="error");let v=d.fetchStatus==="fetching",x=g==="pending",w=g==="error",C=x&&v,S=p!==void 0,R={status:g,fetchStatus:d.fetchStatus,isPending:x,isSuccess:g==="success",isError:w,isInitialLoading:C,isLoading:C,data:p,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:y,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&&!x,isLoadingError:w&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:w&&S,isStale:vw(e,t),refetch:this.refetch,promise:this.#i};if(this.options.experimental_prefetchInRender){let P=_=>{R.status==="error"?_.reject(R.error):R.data!==void 0&&_.resolve(R.data)},M=()=>{let _=this.#i=R.promise=Jc();P(_)},T=this.#i;switch(T.status){case"pending":e.queryHash===o.queryHash&&P(T);break;case"fulfilled":(R.status==="error"||R.data!==T.value)&&M();break;case"rejected":(R.status!=="error"||R.error!==T.reason)&&M();break}}return R}updateResult(){let e=this.#r,t=this.createResult(this.#e,this.options);if(this.#n=this.#e.state,this.#s=this.options,this.#n.data!==void 0&&(this.#p=this.#e),su(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(s=>{let i=s;return this.#r[i]!==e[i]&&a.has(i)})};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){Ge.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function g$(e,t){return Ir(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function xM(e,t){return g$(e,t)||e.state.data!==void 0&&yw(e,t,t.refetchOnMount)}function yw(e,t,o){if(Ir(t.enabled,e)!==!1){let r=typeof o=="function"?o(e):o;return r==="always"||r!==!1&&vw(e,t)}return!1}function vM(e,t,o,r){return(e!==t||Ir(r.enabled,e)===!1)&&(!o.suspense||e.state.status!=="error")&&vw(e,o)}function vw(e,t){return Ir(t.enabled,e)!==!1&&e.isStaleByTime(os(t.staleTime,e))}function y$(e,t){return!su(e.getCurrentResult(),t)}l();var ww=class extends zr{#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),su(this.options,t)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#o,observer:this}),t?.mutationKey&&this.options.mutationKey&&Fn(t.mutationKey)!==Fn(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.#s(e)}getCurrentResult(){return this.#e}reset(){this.#o?.removeObserver(this),this.#o=void 0,this.#n(),this.#s()}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??mw();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}}#s(e){Ge.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();var uu=$(require("react"),1),wM=require("react/jsx-runtime"),Cw=uu.createContext(void 0),ar=e=>{let t=uu.useContext(Cw);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Sw=({client:e,children:t})=>(uu.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,wM.jsx)(Cw.Provider,{value:e,children:t}));l();var sh=$(require("react"),1),CM=sh.createContext(!1),SM=()=>sh.useContext(CM),EIe=CM.Provider;l();var ed=$(require("react"),1),x$=require("react/jsx-runtime");function v$(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var w$=ed.createContext(v$()),bM=()=>ed.useContext(w$);l();var IM=$(require("react"),1);l();function ih(e,t){return typeof e=="function"?e(...t):!!e}function td(){}var RM=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},PM=e=>{IM.useEffect(()=>{e.clearReset()},[e])},LM=({result:e,errorResetBoundary:t,throwOnError:o,query:r,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(n&&e.data===void 0||ih(o,[e.error,r]));l();var MM=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)))},EM=(e,t)=>e.isLoading&&e.isFetching&&!t,TM=(e,t)=>e?.suspense&&t.isPending,bw=(e,t,o)=>t.fetchOptimistic(e).catch(()=>{o.clearReset()});l();l();var rs=$(require("react"),1);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=ar(o),n=SM(),a=bM(),s=r.defaultQueryOptions(e);r.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s.queryFn||console.error(`[${s.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),s._optimisticResults=n?"isRestoring":"optimistic",MM(s),RM(s,a),PM(a);let i=!r.getQueryCache().get(s.queryHash),[u]=rs.useState(()=>new t(r,s)),c=u.getOptimisticResult(s),d=!n&&e.subscribed!==!1;if(rs.useSyncExternalStore(rs.useCallback(f=>{let p=d?u.subscribe(Ge.batchCalls(f)):td;return u.updateResult(),p},[u,d]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),rs.useEffect(()=>{u.setOptions(s)},[s,u]),TM(s,c))throw bw(s,u,a);if(LM({result:c,errorResetBoundary:a,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;return r.getDefaultOptions().queries?._experimental_afterQuery?.(s,c),s.experimental_prefetchInRender&&!nr&&EM(c,n)&&(i?bw(s,u,a):r.getQueryCache().get(s.queryHash)?.promise)?.catch(td).finally(()=>{u.updateResult()}),s.notifyOnChangeProps?c:u.trackResult(c)}function od(e,t){return DM(e,xw,t)}l();var fa=$(require("react"),1);function rd(e,t){let o=ar(t);return kM({filters:{...e,status:"pending"}},o).length}function AM(e,t){return e.findAll(t.filters).map(o=>t.select?t.select(o):o.state)}function kM(e={},t){let o=ar(t).getMutationCache(),r=fa.useRef(e),n=fa.useRef(null);return n.current||(n.current=AM(o,e)),fa.useEffect(()=>{r.current=e}),fa.useSyncExternalStore(fa.useCallback(a=>o.subscribe(()=>{let s=nu(n.current,AM(o,r.current));n.current!==s&&(n.current=s,Ge.schedule(a))}),[o]),()=>n.current,()=>n.current)}l();var pa=$(require("react"),1);function pi(e,t){let o=ar(t),[r]=pa.useState(()=>new ww(o,e));pa.useEffect(()=>{r.setOptions(e)},[r,e]);let n=pa.useSyncExternalStore(pa.useCallback(s=>r.subscribe(Ge.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=pa.useCallback((s,i)=>{r.mutate(s,i).catch(td)},[r]);if(n.error&&ih(r.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:a,mutateAsync:n.mutate}}var ir=require("react"),zw=$(ld(),1);l();var ee=$(require("react"),1),uE=$(require("react-dom"),1);function k3(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 O3=e=>{switch(e){case"success":return F3;case"info":return V3;case"warning":return B3;case"error":return H3;default:return null}},N3=Array(12).fill(0),_3=({visible:e,className:t})=>ee.default.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},ee.default.createElement("div",{className:"sonner-spinner"},N3.map((o,r)=>ee.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),F3=ee.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.default.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"})),B3=ee.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ee.default.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"})),V3=ee.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.default.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"})),H3=ee.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.default.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"})),U3=ee.default.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"},ee.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ee.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),z3=()=>{let[e,t]=ee.default.useState(document.hidden);return ee.default.useEffect(()=>{let o=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),e},_w=1,Fw=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:_w++,s=this.toasts.find(u=>u.id===a),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),s?this.toasts=this.toasts.map(u=>u.id===a?(this.publish({...u,...t,id:a,title:r}),{...u,...t,id:a,dismissible:i,title:r}):u):this.addToast({title:r,...n,dismissible:i,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(o=>o({id:t,dismiss:!0})))):this.toasts.forEach(o=>{this.subscribers.forEach(r=>r({id:o.id,dismiss:!0}))}),t),this.message=(t,o)=>this.create({...o,message:t}),this.error=(t,o)=>this.create({...o,message:t,type:"error"}),this.success=(t,o)=>this.create({...o,type:"success",message:t}),this.info=(t,o)=>this.create({...o,type:"info",message:t}),this.warning=(t,o)=>this.create({...o,type:"warning",message:t}),this.loading=(t,o)=>this.create({...o,type:"loading",message:t}),this.promise=(t,o)=>{if(!o)return;let r;o.loading!==void 0&&(r=this.create({...o,promise:t,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));let n=Promise.resolve(t instanceof Function?t():t),a=r!==void 0,s,i=n.then(async c=>{if(s=["resolve",c],ee.default.isValidElement(c))a=!1,this.create({id:r,type:"default",message:c});else if(W3(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,y=typeof f=="object"&&!ee.default.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:p,...y})}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,y=typeof f=="object"&&!ee.default.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:p,...y})}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,y=typeof f=="object"&&!ee.default.isValidElement(f)?f:{message:f};this.create({id:r,type:"success",description:p,...y})}}).catch(async c=>{if(s=["reject",c],o.error!==void 0){a=!1;let d=typeof o.error=="function"?await o.error(c):o.error,f=typeof o.description=="function"?await o.description(c):o.description,m=typeof d=="object"&&!ee.default.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...m})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),o.finally==null||o.finally.call(o)}),u=()=>new Promise((c,d)=>i.then(()=>s[0]==="reject"?d(s[1]):c(s[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:u}:Object.assign(r,{unwrap:u})},this.custom=(t,o)=>{let r=o?.id||_w++;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}},sr=new Fw,q3=(e,t)=>{let o=t?.id||_w++;return sr.addToast({title:e,...t,id:o}),o},W3=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",$3=q3,G3=()=>sr.toasts,j3=()=>sr.getActiveToasts(),cu=Object.assign($3,{success:sr.success,info:sr.info,warning:sr.warning,error:sr.error,custom:sr.custom,message:sr.message,promise:sr.promise,dismiss:sr.dismiss,loading:sr.loading},{getHistory:G3,getToasts:j3});k3("[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 bh(e){return e.label!==void 0}var K3=3,Y3="24px",X3="16px",iE=4e3,Q3=356,Z3=14,J3=45,e5=200;function Bn(...e){return e.filter(Boolean).join(" ")}function t5(e){let[t,o]=e.split("-"),r=[];return t&&r.push(t),o&&r.push(o),r}var o5=e=>{var t,o,r,n,a,s,i,u,c;let{invert:d,toast:f,unstyled:p,interacting:m,setHeights:y,visibleToasts:g,heights:v,index:x,toasts:w,expanded:C,removeToast:S,defaultRichColors:b,closeButton:R,style:P,cancelButtonStyle:M,actionButtonStyle:T,className:_="",descriptionClassName:B="",duration:k,position:N,gap:I,expandByDefault:A,classNames:L,icons:D,closeButtonAriaLabel:O="Close toast"}=e,[E,H]=ee.default.useState(null),[V,z]=ee.default.useState(null),[j,Y]=ee.default.useState(!1),[U,W]=ee.default.useState(!1),[q,X]=ee.default.useState(!1),[J,Q]=ee.default.useState(!1),[ae,se]=ee.default.useState(!1),[ye,Ie]=ee.default.useState(0),[ke,Qe]=ee.default.useState(0),we=ee.default.useRef(f.duration||k||iE),ne=ee.default.useRef(null),qe=ee.default.useRef(null),Mt=x===0,er=x+1<=g,rt=f.type,uo=f.dismissible!==!1,Lo=f.className||"",Vr=f.descriptionClassName||"",Mo=ee.default.useMemo(()=>v.findIndex(ie=>ie.toastId===f.id)||0,[v,f.id]),co=ee.default.useMemo(()=>{var ie;return(ie=f.closeButton)!=null?ie:R},[f.closeButton,R]),fo=ee.default.useMemo(()=>f.duration||k||iE,[f.duration,k]),po=ee.default.useRef(0),So=ee.default.useRef(0),We=ee.default.useRef(0),Et=ee.default.useRef(null),[me,Fe]=N.split("-"),Re=ee.default.useMemo(()=>v.reduce((ie,Be,Ne)=>Ne>=Mo?ie:ie+Be.height,0),[v,Mo]),ct=z3(),Ct=f.invert||d,zo=rt==="loading";So.current=ee.default.useMemo(()=>Mo*I+Re,[Mo,Re]),ee.default.useEffect(()=>{we.current=fo},[fo]),ee.default.useEffect(()=>{Y(!0)},[]),ee.default.useEffect(()=>{let ie=qe.current;if(ie){let Be=ie.getBoundingClientRect().height;return Qe(Be),y(Ne=>[{toastId:f.id,height:Be,position:f.position},...Ne]),()=>y(Ne=>Ne.filter(Ze=>Ze.toastId!==f.id))}},[y,f.id]),ee.default.useLayoutEffect(()=>{if(!j)return;let ie=qe.current,Be=ie.style.height;ie.style.height="auto";let Ne=ie.getBoundingClientRect().height;ie.style.height=Be,Qe(Ne),y(Ze=>Ze.find(ut=>ut.toastId===f.id)?Ze.map(ut=>ut.toastId===f.id?{...ut,height:Ne}:ut):[{toastId:f.id,height:Ne,position:f.position},...Ze])},[j,f.title,f.description,y,f.id]);let $e=ee.default.useCallback(()=>{W(!0),Ie(So.current),y(ie=>ie.filter(Be=>Be.toastId!==f.id)),setTimeout(()=>{S(f)},e5)},[f,S,y,So]);ee.default.useEffect(()=>{if(f.promise&&rt==="loading"||f.duration===1/0||f.type==="loading")return;let ie;return C||m||ct?(()=>{if(We.current<po.current){let Ze=new Date().getTime()-po.current;we.current=we.current-Ze}We.current=new Date().getTime()})():(()=>{we.current!==1/0&&(po.current=new Date().getTime(),ie=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),$e()},we.current))})(),()=>clearTimeout(ie)},[C,m,f,rt,ct,$e]),ee.default.useEffect(()=>{f.delete&&$e()},[$e,f.delete]);function Ht(){var ie;if(D?.loading){var Be;return ee.default.createElement("div",{className:Bn(L?.loader,f==null||(Be=f.classNames)==null?void 0:Be.loader,"sonner-loader"),"data-visible":rt==="loading"},D.loading)}return ee.default.createElement(_3,{className:Bn(L?.loader,f==null||(ie=f.classNames)==null?void 0:ie.loader),visible:rt==="loading"})}let Te=f.icon||D?.[rt]||O3(rt);var ht,lt;return ee.default.createElement("li",{tabIndex:0,ref:qe,className:Bn(_,Lo,L?.toast,f==null||(t=f.classNames)==null?void 0:t.toast,L?.default,L?.[rt],f==null||(o=f.classNames)==null?void 0:o[rt]),"data-sonner-toast":"","data-rich-colors":(ht=f.richColors)!=null?ht:b,"data-styled":!(f.jsx||f.unstyled||p),"data-mounted":j,"data-promise":!!f.promise,"data-swiped":ae,"data-removed":U,"data-visible":er,"data-y-position":me,"data-x-position":Fe,"data-index":x,"data-front":Mt,"data-swiping":q,"data-dismissible":uo,"data-type":rt,"data-invert":Ct,"data-swipe-out":J,"data-swipe-direction":V,"data-expanded":!!(C||A&&j),style:{"--index":x,"--toasts-before":x,"--z-index":w.length-x,"--offset":`${U?ye:So.current}px`,"--initial-height":A?"auto":`${ke}px`,...P,...f.style},onDragEnd:()=>{X(!1),H(null),Et.current=null},onPointerDown:ie=>{zo||!uo||(ne.current=new Date,Ie(So.current),ie.target.setPointerCapture(ie.pointerId),ie.target.tagName!=="BUTTON"&&(X(!0),Et.current={x:ie.clientX,y:ie.clientY}))},onPointerUp:()=>{var ie,Be,Ne;if(J||!uo)return;Et.current=null;let Ze=Number(((ie=qe.current)==null?void 0:ie.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),bo=Number(((Be=qe.current)==null?void 0:Be.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ut=new Date().getTime()-((Ne=ne.current)==null?void 0:Ne.getTime()),Ue=E==="x"?Ze:bo,qo=Math.abs(Ue)/ut;if(Math.abs(Ue)>=J3||qo>.11){Ie(So.current),f.onDismiss==null||f.onDismiss.call(f,f),z(E==="x"?Ze>0?"right":"left":bo>0?"down":"up"),$e(),Q(!0);return}else{var gt,St;(gt=qe.current)==null||gt.style.setProperty("--swipe-amount-x","0px"),(St=qe.current)==null||St.style.setProperty("--swipe-amount-y","0px")}se(!1),X(!1),H(null)},onPointerMove:ie=>{var Be,Ne,Ze;if(!Et.current||!uo||((Be=window.getSelection())==null?void 0:Be.toString().length)>0)return;let ut=ie.clientY-Et.current.y,Ue=ie.clientX-Et.current.x;var qo;let gt=(qo=e.swipeDirections)!=null?qo:t5(N);!E&&(Math.abs(Ue)>1||Math.abs(ut)>1)&&H(Math.abs(Ue)>Math.abs(ut)?"x":"y");let St={x:0,y:0},En=Wo=>1/(1.5+Math.abs(Wo)/20);if(E==="y"){if(gt.includes("top")||gt.includes("bottom"))if(gt.includes("top")&&ut<0||gt.includes("bottom")&&ut>0)St.y=ut;else{let Wo=ut*En(ut);St.y=Math.abs(Wo)<Math.abs(ut)?Wo:ut}}else if(E==="x"&&(gt.includes("left")||gt.includes("right")))if(gt.includes("left")&&Ue<0||gt.includes("right")&&Ue>0)St.x=Ue;else{let Wo=Ue*En(Ue);St.x=Math.abs(Wo)<Math.abs(Ue)?Wo:Ue}(Math.abs(St.x)>0||Math.abs(St.y)>0)&&se(!0),(Ne=qe.current)==null||Ne.style.setProperty("--swipe-amount-x",`${St.x}px`),(Ze=qe.current)==null||Ze.style.setProperty("--swipe-amount-y",`${St.y}px`)}},co&&!f.jsx&&rt!=="loading"?ee.default.createElement("button",{"aria-label":O,"data-disabled":zo,"data-close-button":!0,onClick:zo||!uo?()=>{}:()=>{$e(),f.onDismiss==null||f.onDismiss.call(f,f)},className:Bn(L?.closeButton,f==null||(r=f.classNames)==null?void 0:r.closeButton)},(lt=D?.close)!=null?lt:U3):null,(rt||f.icon||f.promise)&&f.icon!==null&&(D?.[rt]!==null||f.icon)?ee.default.createElement("div",{"data-icon":"",className:Bn(L?.icon,f==null||(n=f.classNames)==null?void 0:n.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Ht():null,f.type!=="loading"?Te:null):null,ee.default.createElement("div",{"data-content":"",className:Bn(L?.content,f==null||(a=f.classNames)==null?void 0:a.content)},ee.default.createElement("div",{"data-title":"",className:Bn(L?.title,f==null||(s=f.classNames)==null?void 0:s.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?ee.default.createElement("div",{"data-description":"",className:Bn(B,Vr,L?.description,f==null||(i=f.classNames)==null?void 0:i.description)},typeof f.description=="function"?f.description():f.description):null),ee.default.isValidElement(f.cancel)?f.cancel:f.cancel&&bh(f.cancel)?ee.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||M,onClick:ie=>{bh(f.cancel)&&uo&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,ie),$e())},className:Bn(L?.cancelButton,f==null||(u=f.classNames)==null?void 0:u.cancelButton)},f.cancel.label):null,ee.default.isValidElement(f.action)?f.action:f.action&&bh(f.action)?ee.default.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||T,onClick:ie=>{bh(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,ie),!ie.defaultPrevented&&$e())},className:Bn(L?.actionButton,f==null||(c=f.classNames)==null?void 0:c.actionButton)},f.action.label):null)};function lE(){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 r5(e,t){let o={};return[e,t].forEach((r,n)=>{let a=n===1,s=a?"--mobile-offset":"--offset",i=a?X3:Y3;function u(c){["top","right","bottom","left"].forEach(d=>{o[`${s}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?u(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?o[`${s}-${c}`]=i:o[`${s}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):u(i)}),o}var cE=ee.default.forwardRef(function(t,o){let{invert:r,position:n="bottom-right",hotkey:a=["altKey","KeyT"],expand:s,closeButton:i,className:u,offset:c,mobileOffset:d,theme:f="light",richColors:p,duration:m,style:y,visibleToasts:g=K3,toastOptions:v,dir:x=lE(),gap:w=Z3,icons:C,containerAriaLabel:S="Notifications"}=t,[b,R]=ee.default.useState([]),P=ee.default.useMemo(()=>Array.from(new Set([n].concat(b.filter(V=>V.position).map(V=>V.position)))),[b,n]),[M,T]=ee.default.useState([]),[_,B]=ee.default.useState(!1),[k,N]=ee.default.useState(!1),[I,A]=ee.default.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),L=ee.default.useRef(null),D=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=ee.default.useRef(null),E=ee.default.useRef(!1),H=ee.default.useCallback(V=>{R(z=>{var j;return(j=z.find(Y=>Y.id===V.id))!=null&&j.delete||sr.dismiss(V.id),z.filter(({id:Y})=>Y!==V.id)})},[]);return ee.default.useEffect(()=>sr.subscribe(V=>{if(V.dismiss){requestAnimationFrame(()=>{R(z=>z.map(j=>j.id===V.id?{...j,delete:!0}:j))});return}setTimeout(()=>{uE.default.flushSync(()=>{R(z=>{let j=z.findIndex(Y=>Y.id===V.id);return j!==-1?[...z.slice(0,j),{...z[j],...V},...z.slice(j+1)]:[V,...z]})})})}),[b]),ee.default.useEffect(()=>{if(f!=="system"){A(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?A("dark"):A("light")),typeof window>"u")return;let V=window.matchMedia("(prefers-color-scheme: dark)");try{V.addEventListener("change",({matches:z})=>{A(z?"dark":"light")})}catch{V.addListener(({matches:j})=>{try{A(j?"dark":"light")}catch(Y){console.error(Y)}})}},[f]),ee.default.useEffect(()=>{b.length<=1&&B(!1)},[b]),ee.default.useEffect(()=>{let V=z=>{var j;if(a.every(W=>z[W]||z.code===W)){var U;B(!0),(U=L.current)==null||U.focus()}z.code==="Escape"&&(document.activeElement===L.current||(j=L.current)!=null&&j.contains(document.activeElement))&&B(!1)};return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[a]),ee.default.useEffect(()=>{if(L.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,E.current=!1)}},[L.current]),ee.default.createElement("section",{ref:o,"aria-label":`${S} ${D}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((V,z)=>{var j;let[Y,U]=V.split("-");return b.length?ee.default.createElement("ol",{key:V,dir:x==="auto"?lE():x,tabIndex:-1,ref:L,className:u,"data-sonner-toaster":!0,"data-sonner-theme":I,"data-y-position":Y,"data-lifted":_&&b.length>1&&!s,"data-x-position":U,style:{"--front-toast-height":`${((j=M[0])==null?void 0:j.height)||0}px`,"--width":`${Q3}px`,"--gap":`${w}px`,...y,...r5(c,d)},onBlur:W=>{E.current&&!W.currentTarget.contains(W.relatedTarget)&&(E.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:W=>{W.target instanceof HTMLElement&&W.target.dataset.dismissible==="false"||E.current||(E.current=!0,O.current=W.relatedTarget)},onMouseEnter:()=>B(!0),onMouseMove:()=>B(!0),onMouseLeave:()=>{k||B(!1)},onDragEnd:()=>B(!1),onPointerDown:W=>{W.target instanceof HTMLElement&&W.target.dataset.dismissible==="false"||N(!0)},onPointerUp:()=>N(!1)},b.filter(W=>!W.position&&z===0||W.position===V).map((W,q)=>{var X,J;return ee.default.createElement(o5,{key:W.id,icons:C,index:q,toast:W,defaultRichColors:p,duration:(X=v?.duration)!=null?X:m,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:r,visibleToasts:g,closeButton:(J=v?.closeButton)!=null?J:i,interacting:k,position:V,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:H,toasts:b.filter(Q=>Q.position==W.position),heights:M.filter(Q=>Q.position==W.position),setHeights:T,expandByDefault:s,gap:w,expanded:_,swipeDirections:t.swipeDirections})})):null}))});l();var C5={},Ih=Object.create(null),ud=e=>globalThis.process?.env||C5.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?Ih:globalThis),as=new Proxy(Ih,{get(e,t){return ud()[t]??Ih[t]},has(e,t){let o=ud();return t in o||t in Ih},set(e,t,o){let r=ud(!0);return r[t]=o,!0},deleteProperty(e,t){if(!t)return!1;let o=ud(!0);return delete o[t],!0},ownKeys(){let e=ud(!0);return Object.keys(e)}}),n5=typeof process<"u"&&process.env&&"true"||"",a5=[["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 s5(){if(globalThis.process?.env)for(let e of a5){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 fE=s5(),rPe=fE.name;function hi(e){return e?e!=="false":!1}var Bw=globalThis.process?.platform||"",Rh=hi(as.CI)||fE.ci!==!1,pE=hi(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY),Ph=typeof window<"u",nPe=hi(as.DEBUG),i5=n5==="test"||hi(as.TEST);var aPe=hi(as.MINIMAL)||Rh||i5||!pE,l5=/^win/i.test(Bw),sPe=/^linux/i.test(Bw),iPe=/^darwin/i.test(Bw),lPe=!hi(as.NO_COLOR)&&(hi(as.FORCE_COLOR)||(pE||l5)&&as.TERM!=="dumb"||Rh),u5=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null,uPe=Number(u5?.split(".")[0])||null,c5=globalThis.process||Object.create(null),dE={versions:{}},cPe=new Proxy(c5,{get(e,t){if(t==="env")return as;if(t in e)return e[t];if(t in dE)return dE[t]}}),d5=globalThis.process?.release?.name==="node",f5=!!globalThis.Bun||!!globalThis.process?.versions?.bun,p5=!!globalThis.Deno,m5=!!globalThis.fastly,h5=!!globalThis.Netlify,g5=!!globalThis.EdgeRuntime,y5=globalThis.navigator?.userAgent==="Cloudflare-Workers",x5=[[h5,"netlify"],[g5,"edge-light"],[y5,"workerd"],[m5,"fastly"],[p5,"deno"],[f5,"bun"],[d5,"node"]];function v5(){let e=x5.find(t=>t[0]);if(e)return{name:e[1]}}var w5=v5(),dPe=w5?.name||"";l();var hE=require("react/jsx-runtime"),mE=({...e})=>(0,hE.jsx)(cE,{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();var du=require("react");function Vw(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=gE(r[1])),n&&n[1]&&(t.dark=gE(n[1])),Object.keys(t.light).length===0&&Object.keys(t.dark).length===0?null:t}catch{return null}}function gE(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 S5(e){let t=document.documentElement;Object.entries(e).forEach(([o,r])=>{t.style.setProperty(o,r)})}function b5(e){let t=document.querySelector(".ps");t&&(e?t.classList.add("dark"):t.classList.remove("dark"))}function yE(e,t){let o=(0,du.useMemo)(()=>e?typeof e=="string"?Vw(e):e:null,[e]),r=(0,du.useMemo)(()=>o?o[t?"dark":"light"]||{}:null,[o,t]);return(0,du.useEffect)(()=>{r&&S5(r)},[r]),(0,du.useEffect)(()=>{b5(t??!1)},[t]),{parsedTheme:o,currentThemeVariables:r,hasCustomTheme:!!o}}l();l();l();var fu=require("react"),I5={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 dd(e){return`[nuqs] ${I5[e]}
10
- See https://err.47ng.com/NUQS-${e}`}var Hw=P5();function cn(e,...t){if(!Hw)return;let o=R5(e,...t);performance.mark(o);try{console.log(e,...t)}catch{console.log(o)}}function xE(e,...t){Hw&&console.warn(e,...t)}function R5(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 P5(){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 cd=(0,fu.createContext)({useAdapter(){throw new Error(dd(404))}});cd.displayName="NuqsAdapterContext";Hw&&typeof window<"u"&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==cd&&console.error(dd(303)),window.__NuqsAdapterContext=cd);function Uw(e){return({children:t,...o})=>(0,fu.createElement)(cd.Provider,{...o,value:{useAdapter:e}},t)}function vE(){let e=(0,fu.useContext)(cd);if(!("useAdapter"in e))throw new Error(dd(404));return e.useAdapter()}var Lh=require("react");function M5(e,t){let o;return(...r)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...r),t)}}function E5(){let e=typeof window<"u"?window.location.hash.slice(1):"",[t,o]=(0,Lh.useState)(new URLSearchParams(e));function r(a,{history:s}){let{pathname:i,search:u}=window.location,c=a.toString(),d=`${i}${u}#${c}`;s==="push"?window.history.pushState(null,"",d):window.history.replaceState(null,"",d),o(a)}function n(){if(typeof window>"u")return new URLSearchParams;let a=window.location.hash.slice(1);return new URLSearchParams(a)}return(0,Lh.useEffect)(()=>{let a=M5(()=>{let s=window.location.hash.slice(1);o(new URLSearchParams(s))},50);return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[]),{searchParams:t,updateUrl:r,getSearchParamsSnapshot:n}}var wE=Uw(E5);var gi=require("react/jsx-runtime"),CE=new gw,SE=(0,ir.createContext)(void 0);function bE(e){let{children:t,onEvent:o,adapter:r,theme:n}=e,[a,s]=(0,ir.useState)(!1),[i,u]=(0,ir.useState)(!0),[c,d]=(0,ir.useState)([]),[f,p]=(0,ir.useState)(()=>typeof document<"u"?document.documentElement.classList.contains("dark"):!1);(0,ir.useEffect)(()=>{p(document.documentElement.classList.contains("dark"))},[]);let[m]=(0,ir.useState)(zw.default.generate()),{hasCustomTheme:y}=yE(n,f);(0,ir.useEffect)(()=>{CE.resetQueries({exact:!1,queryKey:[]})},[r]),(0,ir.useEffect)(()=>{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;cu.error(`"${S.operation}" operation failed`,{action:{label:"Console",onClick:()=>{window.location.hash=qw({viewParam:"console"})}}})}let b=zw.default.generate(),R=new Date().toISOString(),P={...w,eventId:b,timestamp:R};(P.name==="studio_operation_success"||P.name==="studio_operation_error")&&d(M=>{let T=[...M,P];return T.length>100?T.slice(0,100):T}),o?.(P),C==="studio_launched"&&Ph&&!Rh&&!T5()&&!A5()&&nM({additionalData:{eventPayload:S,variant:"licensed"},command:C,eventId:b,product:"prisma-studio-embedded",signature:m,skipUpdateCheck:!0,timestamp:new Date(R),version:"0.0.0-dev.202512170050"}).catch(M=>{console.error(M)})},v=()=>s(w=>!w),x=()=>u(w=>!w);return(0,gi.jsxs)(Sw,{client:CE,children:[(0,gi.jsx)(mE,{}),(0,gi.jsx)(wE,{children:(0,gi.jsx)(SE.Provider,{value:{adapter:r,isFullscreen:a,onEvent:g,operationEvents:c,toggleFullscreen:v,isNavigationOpen:i,toggleNavigation:x,isDarkMode:f,hasCustomTheme:y},children:(0,gi.jsx)(IE,{children:t})})})]})}function ho(){let e=(0,ir.useContext)(SE);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}function T5(){return D5()&&"__PVCE__"in window&&window.__PVCE__===!0}function D5(){return Ph&&"acquireVsCodeApi"in window&&typeof window.acquireVsCodeApi=="function"}function A5(){if(!Ph)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 Mh(e,t,o){try{return e(t)}catch(r){return xE("[nuqs] Error while parsing value `%s`: %O"+(o?" (for key `%s`)":""),t,r,o),null}}function k5(){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 pu=k5(),pd=new Map,Rr={history:"replace",scroll:!1,shallow:!0,throttleMs:pu},Ww=new Set,RE=0,fd=null;function PE(e){return pd.get(e)}function O5(){pd.clear(),Ww.clear(),Rr.history="replace",Rr.scroll=!1,Rr.shallow=!0,Rr.throttleMs=pu}function LE(e,t,o,r){let n=t===null?null:o(t);return cn("[nuqs queue] Enqueueing %s=%s %O",e,n,r),pd.set(e,n),r.history==="push"&&(Rr.history="push"),r.scroll&&(Rr.scroll=!0),r.shallow===!1&&(Rr.shallow=!1),r.startTransition&&Ww.add(r.startTransition),Rr.throttleMs=Math.max(r.throttleMs??pu,Number.isFinite(Rr.throttleMs)?Rr.throttleMs:0),n}function N5(){return new URLSearchParams(location.search)}function ME({getSearchParamsSnapshot:e=N5,updateUrl:t,rateLimitFactor:o=1}){return fd===null&&(fd=new Promise((r,n)=>{if(!Number.isFinite(Rr.throttleMs)){cn("[nuqs queue] Skipping flush due to throttleMs=Infinity"),r(e()),setTimeout(()=>{fd=null},0);return}function a(){RE=performance.now();let[i,u]=_5({updateUrl:t,getSearchParamsSnapshot:e});u===null?r(i):n(i),fd=null}function s(){let u=performance.now()-RE,c=Rr.throttleMs,d=o*Math.max(0,Math.min(c,c-u));cn("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",d,c),d===0?a():setTimeout(a,d)}setTimeout(s,0)})),fd}function _5({updateUrl:e,getSearchParamsSnapshot:t}){let o=t();if(pd.size===0)return[o,null];let r=Array.from(pd.entries()),n={...Rr},a=Array.from(Ww);O5(),cn("[nuqs queue] Flushing queue %O with options %O",r,n);for(let[s,i]of r)i===null?o.delete(s):o.set(s,i);try{return F5(a,()=>{e(o,{history:n.history,scroll:n.scroll,shallow:n.shallow})}),[o,null]}catch(s){return console.error(dd(429),r.map(([i])=>i).join(),s),[o,s]}}function F5(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)}var dn=require("react");l();function EE(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 ha(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),Mh(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 KPe=ha({parse:e=>e,serialize:e=>`${e}`}),TE=ha({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:t},serialize:e=>Math.round(e).toFixed()}),YPe=ha({parse:e=>{let t=TE.parse(e);return t===null?null:t-1},serialize:e=>TE.serialize(e+1)}),XPe=ha({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")}}),QPe=ha({parse:e=>{let t=parseFloat(e);return Number.isNaN(t)?null:t},serialize:e=>e.toString()}),ZPe=ha({parse:e=>e==="true",serialize:e=>e?"true":"false"});function Gw(e,t){return e.valueOf()===t.valueOf()}var JPe=ha({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:new Date(t)},serialize:e=>e.valueOf().toString(),eq:Gw}),eLe=ha({parse:e=>{let t=new Date(e);return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString(),eq:Gw}),tLe=ha({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:Gw});var $w=EE();function DE(e,{history:t="replace",shallow:o=!0,scroll:r=!1,throttleMs:n=pu,parse:a=f=>f,serialize:s=String,eq:i=(f,p)=>f===p,defaultValue:u=void 0,clearOnDefault:c=!0,startTransition:d}={history:"replace",scroll:!1,shallow:!0,throttleMs:pu,parse:f=>f,serialize:String,eq:(f,p)=>f===p,clearOnDefault:!0,defaultValue:void 0}){let f=vE(),p=f.searchParams,m=(0,dn.useRef)(p?.get(e)??null),[y,g]=(0,dn.useState)(()=>{let w=PE(e),C=w===void 0?p?.get(e)??null:w;return C===null?null:Mh(a,C,e)}),v=(0,dn.useRef)(y);cn("[nuqs `%s`] render - state: %O, iSP: %s",e,y,p?.get(e)??null),(0,dn.useEffect)(()=>{let w=p?.get(e)??null;if(w===m.current)return;let C=w===null?null:Mh(a,w,e);cn("[nuqs `%s`] syncFromUseSearchParams %O",e,C),v.current=C,m.current=w,g(C)},[p?.get(e),e]),(0,dn.useEffect)(()=>{function w({state:C,query:S}){cn("[nuqs `%s`] updateInternalState %O",e,C),v.current=C,m.current=S,g(C)}return cn("[nuqs `%s`] subscribing to sync",e),$w.on(e,w),()=>{cn("[nuqs `%s`] unsubscribing from sync",e),$w.off(e,w)}},[e]);let x=(0,dn.useCallback)((w,C={})=>{let S=B5(w)?w(v.current??u??null):w;(C.clearOnDefault??c)&&S!==null&&u!==void 0&&i(S,u)&&(S=null);let b=LE(e,S,s,{history:C.history??t,shallow:C.shallow??o,scroll:C.scroll??r,throttleMs:C.throttleMs??n,startTransition:C.startTransition??d});return $w.emit(e,{state:S,query:b}),ME(f)},[e,t,o,r,n,d,f.updateUrl,f.getSearchParamsSnapshot,f.rateLimitFactor]);return[y??u??null,x]}function B5(e){return typeof e=="function"}var sLe=Symbol("BRAND_SYMBOL");function ss(e,t){return DE(e,t)}l();var yi=require("react"),AE=$(ld(),1);var kE={kind:"FilterGroup",filters:[],after:"and",id:AE.default.generate()},OE=e=>{let t=0;for(let o of e.filters)o.kind==="ColumnFilter"?o.column.trim()&&t++:o.kind==="FilterGroup"&&(t+=OE(o));return t};function NE(){let{filterParam:e,setFilterParam:t}=Je(),o=(0,yi.useMemo)(()=>JSON.parse(e),[e]),r=i=>void t(JSON.stringify(i)),[n,a]=(0,yi.useState)(o);(0,yi.useEffect)(()=>{a(o)},[o]);let s=(0,yi.useMemo)(()=>OE(n),[n]);return{appliedFilter:o,setAppliedFilter:r,editingFilter:n,setEditingFilter:a,totalEditingFilters:s}}l();var _E=-1;function Vn(){let{adapter:e,onEvent:t}=ho();return od({initialData:{schemas:{[e.defaultSchema||"db"]:{name:e.defaultSchema||"db",tables:{}}},timezone:"UTC",filterOperators:[],query:{parameters:[],sql:""}},initialDataUpdatedAt:_E,queryFn:async({signal:o})=>{let[r,n]=await e.introspect({abortSignal:o});if(r)throw t({name:"studio_operation_error",payload:{operation:"introspect",query:r.query,error:r}}),r;t({name:"studio_operation_success",payload:{operation:"introspect",query:n.query,error:void 0}});let a=Object.values(n.schemas).reduce((s,i)=>s+Object.keys(i.tables).length,0);return t({name:"studio_launched",payload:{tableCount:a}}),n},queryKey:["introspection"],staleTime:o=>o.state.dataUpdatedAt===_E?0:1/0})}var BE=require("react/jsx-runtime");function qw(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 V5(e){let{adapter:t,introspection:o}=e,{schemas:r}=o,{defaultSchema:n}=t,a=n??Object.keys(r)[0]??"public",s=Object.keys(r[a]?.tables??{})[0]??"",i=JSON.stringify(kE);return{schema:a,table:s,filter:i,pageIndex:"0",pageSize:"25",view:"table"}}function H5(){let{adapter:e}=ho(),{data:t,isFetching:o}=Vn(),{schemas:r}=t,n=(0,xi.useMemo)(()=>V5({adapter:e,introspection:t}),[e,t]),[a,s]=ss("filter",{defaultValue:n.filter}),[i,u]=ss("pageIndex",{defaultValue:n.pageIndex}),[c,d]=ss("pageSize",{defaultValue:n.pageSize}),[f,p]=ss("schema",{defaultValue:n.schema}),[m,y]=ss("sort"),[g,v]=ss("table",{defaultValue:n.table}),[x,w]=ss("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:(0,xi.useMemo)(()=>({activeSchema:C,activeTables:S,activeTable:b,isFetching:o}),[C,S,b,o]),createUrl:qw,filterParam:a,pageIndexParam:i,pageSizeParam:c,schemaParam:f,sortParam:m,tableParam:g,viewParam:x,setFilterParam:s,setPageIndexParam:u,setPageSizeParam:d,setSchemaParam:p,setSortParam:y,setTableParam:v,setViewParam:w}}var FE=(0,xi.createContext)(void 0);function IE({children:e}){let t=H5();return(0,BE.jsx)(FE.Provider,{value:t,children:e})}function Je(){let e=(0,xi.useContext)(FE);if(e===void 0)throw new Error("useNavigationContext must be used within a NavigationContextProvider");return e}l();l();function VE(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=VE(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function HE(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=VE(e))&&(r&&(r+=" "),r+=t);return r}l();var Yw="-",U5=e=>{let t=q5(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let i=s.split(Yw);return i[0]===""&&i.length!==1&&i.shift(),$E(i,t)||z5(s)},getConflictingClassGroupIds:(s,i)=>{let u=o[s]||[];return i&&r[s]?[...u,...r[s]]:u}}},$E=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?$E(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(Yw);return t.validators.find(({validator:s})=>s(a))?.classGroupId},UE=/^\[(.+)\]$/,z5=e=>{if(UE.test(e)){let t=UE.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},q5=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return $5(Object.entries(e.classGroups),o).forEach(([a,s])=>{Kw(s,r,a,t)}),r},Kw=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:zE(t,n);a.classGroupId=o;return}if(typeof n=="function"){if(W5(n)){Kw(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,s])=>{Kw(s,zE(t,a),o,r)})})},zE=(e,t)=>{let o=e;return t.split(Yw).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},W5=e=>e.isThemeGetter,$5=(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(([s,i])=>[t+s,i])):a);return[o,n]}):e,G5=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(a,s)=>{o.set(a,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let s=o.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return n(a,s),s},set(a,s){o.has(a)?o.set(a,s):n(a,s)}}},GE="!",j5=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],a=t.length,s=i=>{let u=[],c=0,d=0,f;for(let v=0;v<i.length;v++){let x=i[v];if(c===0){if(x===n&&(r||i.slice(v,v+a)===t)){u.push(i.slice(d,v)),d=v+a;continue}if(x==="/"){f=v;continue}}x==="["?c++:x==="]"&&c--}let p=u.length===0?i:i.substring(d),m=p.startsWith(GE),y=m?p.substring(1):p,g=f&&f>d?f-d:void 0;return{modifiers:u,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:g}};return o?i=>o({className:i,parseClassName:s}):s},K5=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},Y5=e=>({cache:G5(e.cacheSize),parseClassName:j5(e),...U5(e)}),X5=/\s+/,Q5=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,a=[],s=e.trim().split(X5),i="";for(let u=s.length-1;u>=0;u-=1){let c=s[u],{modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=o(c),y=!!m,g=r(y?p.substring(0,m):p);if(!g){if(!y){i=c+(i.length>0?" "+i:i);continue}if(g=r(p),!g){i=c+(i.length>0?" "+i:i);continue}y=!1}let v=K5(d).join(":"),x=f?v+GE:v,w=x+g;if(a.includes(w))continue;a.push(w);let C=n(g,y);for(let S=0;S<C.length;++S){let b=C[S];a.push(x+b)}i=c+(i.length>0?" "+i:i)}return i};function Z5(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=jE(t))&&(r&&(r+=" "),r+=o);return r}var jE=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=jE(e[r]))&&(o&&(o+=" "),o+=t);return o};function qE(e,...t){let o,r,n,a=s;function s(u){let c=t.reduce((d,f)=>f(d),e());return o=Y5(c),r=o.cache.get,n=o.cache.set,a=i,i(u)}function i(u){let c=r(u);if(c)return c;let d=Q5(u,o);return n(u,d),d}return function(){return a(Z5.apply(null,arguments))}}var pt=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},KE=/^\[(?:([a-z-]+):)?(.+)\]$/i,J5=/^\d+\/\d+$/,eG=new Set(["px","full","screen"]),tG=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oG=/\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$/,rG=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,nG=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,aG=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ga=e=>mu(e)||eG.has(e)||J5.test(e),is=e=>hu(e,"length",pG),mu=e=>!!e&&!Number.isNaN(Number(e)),jw=e=>hu(e,"number",mu),md=e=>!!e&&Number.isInteger(Number(e)),sG=e=>e.endsWith("%")&&mu(e.slice(0,-1)),Se=e=>KE.test(e),ls=e=>tG.test(e),iG=new Set(["length","size","percentage"]),lG=e=>hu(e,iG,YE),uG=e=>hu(e,"position",YE),cG=new Set(["image","url"]),dG=e=>hu(e,cG,hG),fG=e=>hu(e,"",mG),hd=()=>!0,hu=(e,t,o)=>{let r=KE.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},pG=e=>oG.test(e)&&!rG.test(e),YE=()=>!1,mG=e=>nG.test(e),hG=e=>aG.test(e);var WE=()=>{let e=pt("colors"),t=pt("spacing"),o=pt("blur"),r=pt("brightness"),n=pt("borderColor"),a=pt("borderRadius"),s=pt("borderSpacing"),i=pt("borderWidth"),u=pt("contrast"),c=pt("grayscale"),d=pt("hueRotate"),f=pt("invert"),p=pt("gap"),m=pt("gradientColorStops"),y=pt("gradientColorStopPositions"),g=pt("inset"),v=pt("margin"),x=pt("opacity"),w=pt("padding"),C=pt("saturate"),S=pt("scale"),b=pt("sepia"),R=pt("skew"),P=pt("space"),M=pt("translate"),T=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",Se,t],k=()=>[Se,t],N=()=>["",ga,is],I=()=>["auto",mu,Se],A=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],E=()=>["","0",Se],H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[mu,Se];return{cacheSize:500,separator:":",theme:{colors:[hd],spacing:[ga,is],blur:["none","",ls,Se],brightness:V(),borderColor:[e],borderRadius:["none","","full",ls,Se],borderSpacing:k(),borderWidth:N(),contrast:V(),grayscale:E(),hueRotate:V(),invert:E(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[sG,is],inset:B(),margin:B(),opacity:V(),padding:k(),saturate:V(),scale:V(),sepia:E(),skew:V(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",Se]}],container:["container"],columns:[{columns:[ls]}],"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:[...A(),Se]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],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",md,Se]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Se]}],grow:[{grow:E()}],shrink:[{shrink:E()}],order:[{order:["first","last","none",md,Se]}],"grid-cols":[{"grid-cols":[hd]}],"col-start-end":[{col:["auto",{span:["full",md,Se]},Se]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[hd]}],"row-start-end":[{row:["auto",{span:[md,Se]},Se]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Se]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Se]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"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":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Se,t]}],"min-w":[{"min-w":[Se,t,"min","max","fit"]}],"max-w":[{"max-w":[Se,t,"none","full","min","max","fit","prose",{screen:[ls]},ls]}],h:[{h:[Se,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Se,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Se,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Se,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ls,is]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",jw]}],"font-family":[{font:[hd]}],"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",Se]}],"line-clamp":[{"line-clamp":["none",mu,jw]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ga,Se]}],"list-image":[{"list-image":["none",Se]}],"list-style-type":[{list:["none","disc","decimal",Se]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ga,is]}],"underline-offset":[{"underline-offset":["auto",ga,Se]}],"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:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Se]}],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",Se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...A(),uG]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lG]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},dG]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"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:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:L()}],"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:["",...L()]}],"outline-offset":[{"outline-offset":[ga,Se]}],"outline-w":[{outline:[ga,is]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[ga,is]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ls,fG]}],"shadow-color":[{shadow:[hd]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",ls,Se]}],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":[x]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Se]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",Se]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",Se]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[md,Se]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Se]}],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",Se]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Se]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ga,is,jw]}],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"]}}},gG=(e,{cacheSize:t,prefix:o,separator:r,experimentalParseClassName:n,extend:a={},override:s={}})=>{gd(e,"cacheSize",t),gd(e,"prefix",o),gd(e,"separator",r),gd(e,"experimentalParseClassName",n);for(let i in s)yG(e[i],s[i]);for(let i in a)xG(e[i],a[i]);return e},gd=(e,t,o)=>{o!==void 0&&(e[t]=o)},yG=(e,t)=>{if(t)for(let o in t)gd(e,o,t[o])},xG=(e,t)=>{if(t)for(let o in t){let r=t[o];r!==void 0&&(e[o]=(e[o]||[]).concat(r))}},XE=(e,...t)=>typeof e=="function"?qE(WE,e,...t):qE(()=>gG(WE(),e),...t);var vG=XE({});function G(...e){return vG(HE(e))}l();l();var Jt=$(require("react"),1);l();var ZE=$(require("react"),1);function QE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vi(...e){return t=>{let o=!1,r=e.map(n=>{let a=QE(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():QE(e[n],null)}}}}function Ae(...e){return ZE.useCallback(vi(...e),e)}var gu=require("react/jsx-runtime"),No=Jt.forwardRef((e,t)=>{let{children:o,...r}=e,n=Jt.Children.toArray(o),a=n.find(CG);if(a){let s=a.props.children,i=n.map(u=>u===a?Jt.Children.count(s)>1?Jt.Children.only(null):Jt.isValidElement(s)?s.props.children:null:u);return(0,gu.jsx)(Xw,{...r,ref:t,children:Jt.isValidElement(s)?Jt.cloneElement(s,void 0,i):null})}return(0,gu.jsx)(Xw,{...r,ref:t,children:o})});No.displayName="Slot";var Xw=Jt.forwardRef((e,t)=>{let{children:o,...r}=e;if(Jt.isValidElement(o)){let n=bG(o),a=SG(r,o.props);return o.type!==Jt.Fragment&&(a.ref=t?vi(t,n):n),Jt.cloneElement(o,a)}return Jt.Children.count(o)>1?Jt.Children.only(null):null});Xw.displayName="SlotClone";var wG=({children:e})=>(0,gu.jsx)(gu.Fragment,{children:e});function CG(e){return Jt.isValidElement(e)&&e.type===wG}function SG(e,t){let o={...t};for(let r in t){let n=e[r],a=t[r];/^on[A-Z]/.test(r)?n&&a?o[r]=(...i)=>{a(...i),n(...i)}:n&&(o[r]=n):r==="style"?o[r]={...n,...a}:r==="className"&&(o[r]=[n,a].filter(Boolean).join(" "))}return{...e,...o}}function bG(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();var Th=require("react");l();var JE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Eh=(...e)=>e.filter((t,o,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===o).join(" ").trim();l();var yd=require("react");l();var eT={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 tT=(0,yd.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:n="",children:a,iconNode:s,...i},u)=>(0,yd.createElement)("svg",{ref:u,...eT,width:t,height:t,stroke:e,strokeWidth:r?Number(o)*24/Number(t):o,className:Eh("lucide",n),...i},[...s.map(([c,d])=>(0,yd.createElement)(c,d)),...Array.isArray(a)?a:[a]]));var re=(e,t)=>{let o=(0,Th.forwardRef)(({className:r,...n},a)=>(0,Th.createElement)(tT,{ref:a,iconNode:t,className:Eh(`lucide-${JE(e)}`,r),...n}));return o.displayName=`${e}`,o};l();var us=re("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 xd=re("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);l();var vd=re("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 fn=re("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);l();var qr=re("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);l();var wd=re("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);l();var Pr=re("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);l();var Cd=re("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);l();var Sd=re("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);l();var bd=re("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);l();var Hn=re("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 cs=re("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 ds=re("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 wi=re("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);l();var Ci=re("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 Id=re("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 Rd=re("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);l();var Pd=re("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 Ld=re("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 ya=re("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 Md=re("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 Ed=re("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 Td=re("MoveDown",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);l();var Dd=re("MoveUp",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);l();var fs=re("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 ps=re("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 Ad=re("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 kd=re("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 Od=re("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 ms=re("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 Nd=re("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);l();var _d=re("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 hs=re("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 gs=re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);l();l();var te=$(require("react"),1),OC=$(require("react-dom"),1);l();function Qw(e,[t,o]){return Math.min(o,Math.max(t,e))}l();function oe(e,t,{checkForDefaultPrevented:o=!0}={}){return function(n){if(e?.(n),o===!1||!n.defaultPrevented)return t?.(n)}}l();var ys=$(require("react"),1);l();var xa=$(require("react"),1),oT=require("react/jsx-runtime");function go(e,t=[]){let o=[];function r(a,s){let i=xa.createContext(s),u=o.length;o=[...o,s];let c=f=>{let{scope:p,children:m,...y}=f,g=p?.[e]?.[u]||i,v=xa.useMemo(()=>y,Object.values(y));return(0,oT.jsx)(g.Provider,{value:v,children:m})};c.displayName=a+"Provider";function d(f,p){let m=p?.[e]?.[u]||i,y=xa.useContext(m);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[c,d]}let n=()=>{let a=o.map(s=>xa.createContext(s));return function(i){let u=i?.[e]||a;return xa.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return n.scopeName=e,[r,IG(n,...t)]}function IG(...e){let t=e[0];if(e.length===1)return t;let o=()=>{let r=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(a){let s=r.reduce((i,{useScope:u,scopeName:c})=>{let f=u(a)[`__scope${c}`];return{...i,...f}},{});return xa.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return o.scopeName=t.scopeName,o}var Dh=require("react/jsx-runtime");function yu(e){let t=e+"CollectionProvider",[o,r]=go(t),[n,a]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{let{scope:y,children:g}=m,v=ys.default.useRef(null),x=ys.default.useRef(new Map).current;return(0,Dh.jsx)(n,{scope:y,itemMap:x,collectionRef:v,children:g})};s.displayName=t;let i=e+"CollectionSlot",u=ys.default.forwardRef((m,y)=>{let{scope:g,children:v}=m,x=a(i,g),w=Ae(y,x.collectionRef);return(0,Dh.jsx)(No,{ref:w,children:v})});u.displayName=i;let c=e+"CollectionItemSlot",d="data-radix-collection-item",f=ys.default.forwardRef((m,y)=>{let{scope:g,children:v,...x}=m,w=ys.default.useRef(null),C=Ae(y,w),S=a(c,g);return ys.default.useEffect(()=>(S.itemMap.set(w,{ref:w,...x}),()=>void S.itemMap.delete(w))),(0,Dh.jsx)(No,{[d]:"",ref:C,children:v})});f.displayName=c;function p(m){let y=a(e+"CollectionConsumer",m);return ys.default.useCallback(()=>{let v=y.collectionRef.current;if(!v)return[];let x=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(y.itemMap.values()).sort((S,b)=>x.indexOf(S.ref.current)-x.indexOf(b.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:u,ItemSlot:f},p,r]}l();var Ah=$(require("react"),1),RG=require("react/jsx-runtime"),PG=Ah.createContext(void 0);function xu(e){let t=Ah.useContext(PG);return e||t||"ltr"}l();var It=$(require("react"),1);l();var rT=$(require("react"),1),nT=$(require("react-dom"),1);var aT=require("react/jsx-runtime"),LG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],xe=LG.reduce((e,t)=>{let o=rT.forwardRef((r,n)=>{let{asChild:a,...s}=r,i=a?No:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,aT.jsx)(i,{...s,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function kh(e,t){e&&nT.flushSync(()=>e.dispatchEvent(t))}l();var vu=$(require("react"),1);function bt(e){let t=vu.useRef(e);return vu.useEffect(()=>{t.current=e}),vu.useMemo(()=>(...o)=>t.current?.(...o),[])}l();var sT=$(require("react"),1);function iT(e,t=globalThis?.document){let o=bt(e);sT.useEffect(()=>{let r=n=>{n.key==="Escape"&&o(n)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[o,t])}var Jw=require("react/jsx-runtime"),MG="DismissableLayer",Zw="dismissableLayer.update",EG="dismissableLayer.pointerDownOutside",TG="dismissableLayer.focusOutside",lT,cT=It.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Si=It.forwardRef((e,t)=>{let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:n,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...u}=e,c=It.useContext(cT),[d,f]=It.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=It.useState({}),y=Ae(t,P=>f(P)),g=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(v),w=d?g.indexOf(d):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,S=w>=x,b=kG(P=>{let M=P.target,T=[...c.branches].some(_=>_.contains(M));!S||T||(n?.(P),s?.(P),P.defaultPrevented||i?.())},p),R=OG(P=>{let M=P.target;[...c.branches].some(_=>_.contains(M))||(a?.(P),s?.(P),P.defaultPrevented||i?.())},p);return iT(P=>{w===c.layers.size-1&&(r?.(P),!P.defaultPrevented&&i&&(P.preventDefault(),i()))},p),It.useEffect(()=>{if(d)return o&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(lT=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),uT(),()=>{o&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=lT)}},[d,p,o,c]),It.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),uT())},[d,c]),It.useEffect(()=>{let P=()=>m({});return document.addEventListener(Zw,P),()=>document.removeEventListener(Zw,P)},[]),(0,Jw.jsx)(xe.div,{...u,ref:y,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:oe(e.onFocusCapture,R.onFocusCapture),onBlurCapture:oe(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:oe(e.onPointerDownCapture,b.onPointerDownCapture)})});Si.displayName=MG;var DG="DismissableLayerBranch",AG=It.forwardRef((e,t)=>{let o=It.useContext(cT),r=It.useRef(null),n=Ae(t,r);return It.useEffect(()=>{let a=r.current;if(a)return o.branches.add(a),()=>{o.branches.delete(a)}},[o.branches]),(0,Jw.jsx)(xe.div,{...e,ref:n})});AG.displayName=DG;function kG(e,t=globalThis?.document){let o=bt(e),r=It.useRef(!1),n=It.useRef(()=>{});return It.useEffect(()=>{let a=i=>{if(i.target&&!r.current){let c=function(){dT(EG,o,d,{discrete:!0})};var u=c;let d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",n.current),n.current=c,t.addEventListener("click",n.current,{once:!0})):c()}else t.removeEventListener("click",n.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",n.current)}},[t,o]),{onPointerDownCapture:()=>r.current=!0}}function OG(e,t=globalThis?.document){let o=bt(e),r=It.useRef(!1);return It.useEffect(()=>{let n=a=>{a.target&&!r.current&&dT(TG,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 uT(){let e=new CustomEvent(Zw);document.dispatchEvent(e)}function dT(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?kh(n,a):n.dispatchEvent(a)}l();var pT=$(require("react"),1),eC=0;function wu(){pT.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??fT()),document.body.insertAdjacentElement("beforeend",e[1]??fT()),eC++,()=>{eC===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),eC--}},[])}function fT(){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();var Wr=$(require("react"),1);var xT=require("react/jsx-runtime"),tC="focusScope.autoFocusOnMount",oC="focusScope.autoFocusOnUnmount",mT={bubbles:!1,cancelable:!0},NG="FocusScope",bi=Wr.forwardRef((e,t)=>{let{loop:o=!1,trapped:r=!1,onMountAutoFocus:n,onUnmountAutoFocus:a,...s}=e,[i,u]=Wr.useState(null),c=bt(n),d=bt(a),f=Wr.useRef(null),p=Ae(t,g=>u(g)),m=Wr.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Wr.useEffect(()=>{if(r){let w=function(R){if(m.paused||!i)return;let P=R.target;i.contains(P)?f.current=P:xs(f.current,{select:!0})},C=function(R){if(m.paused||!i)return;let P=R.relatedTarget;P!==null&&(i.contains(P)||xs(f.current,{select:!0}))},S=function(R){if(document.activeElement===document.body)for(let M of R)M.removedNodes.length>0&&xs(i)};var g=w,v=C,x=S;document.addEventListener("focusin",w),document.addEventListener("focusout",C);let b=new MutationObserver(S);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",C),b.disconnect()}}},[r,i,m.paused]),Wr.useEffect(()=>{if(i){gT.add(m);let g=document.activeElement;if(!i.contains(g)){let x=new CustomEvent(tC,mT);i.addEventListener(tC,c),i.dispatchEvent(x),x.defaultPrevented||(_G(UG(vT(i)),{select:!0}),document.activeElement===g&&xs(i))}return()=>{i.removeEventListener(tC,c),setTimeout(()=>{let x=new CustomEvent(oC,mT);i.addEventListener(oC,d),i.dispatchEvent(x),x.defaultPrevented||xs(g??document.body,{select:!0}),i.removeEventListener(oC,d),gT.remove(m)},0)}}},[i,c,d,m]);let y=Wr.useCallback(g=>{if(!o&&!r||m.paused)return;let v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,x=document.activeElement;if(v&&x){let w=g.currentTarget,[C,S]=FG(w);C&&S?!g.shiftKey&&x===S?(g.preventDefault(),o&&xs(C,{select:!0})):g.shiftKey&&x===C&&(g.preventDefault(),o&&xs(S,{select:!0})):x===w&&g.preventDefault()}},[o,r,m.paused]);return(0,xT.jsx)(xe.div,{tabIndex:-1,...s,ref:p,onKeyDown:y})});bi.displayName=NG;function _G(e,{select:t=!1}={}){let o=document.activeElement;for(let r of e)if(xs(r,{select:t}),document.activeElement!==o)return}function FG(e){let t=vT(e),o=hT(t,e),r=hT(t.reverse(),e);return[o,r]}function vT(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 hT(e,t){for(let o of e)if(!BG(o,{upTo:t}))return o}function BG(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 VG(e){return e instanceof HTMLInputElement&&"select"in e}function xs(e,{select:t=!1}={}){if(e&&e.focus){let o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&VG(e)&&t&&e.select()}}var gT=HG();function HG(){let e=[];return{add(t){let o=e[0];t!==o&&o?.pause(),e=yT(e,t),e.unshift(t)},remove(t){e=yT(e,t),e[0]?.resume()}}}function yT(e,t){let o=[...e],r=o.indexOf(t);return r!==-1&&o.splice(r,1),o}function UG(e){return e.filter(t=>t.tagName!=="A")}l();var Oh=$(require("react"),1);l();var wT=$(require("react"),1),_t=globalThis?.document?wT.useLayoutEffect:()=>{};var zG=Oh.useId||(()=>{}),qG=0;function lr(e){let[t,o]=Oh.useState(zG());return _t(()=>{e||o(r=>r??String(qG++))},[e]),e||(t?`radix-${t}`:"")}l();var Lr=$(require("react"),1);l();l();l();l();var CT=["top","right","bottom","left"];var Un=Math.min,Ko=Math.max,Bd=Math.round,Vd=Math.floor,pn=e=>({x:e,y:e}),WG={left:"right",right:"left",bottom:"top",top:"bottom"},$G={start:"end",end:"start"};function _h(e,t,o){return Ko(e,Un(t,o))}function zn(e,t){return typeof e=="function"?e(t):e}function qn(e){return e.split("-")[0]}function Ii(e){return e.split("-")[1]}function Fh(e){return e==="x"?"y":"x"}function Bh(e){return e==="y"?"height":"width"}function va(e){return["top","bottom"].includes(qn(e))?"y":"x"}function Vh(e){return Fh(va(e))}function ST(e,t,o){o===void 0&&(o=!1);let r=Ii(e),n=Vh(e),a=Bh(n),s=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Fd(s)),[s,Fd(s)]}function bT(e){let t=Fd(e);return[Nh(e),t,Nh(t)]}function Nh(e){return e.replace(/start|end/g,t=>$G[t])}function GG(e,t,o){let r=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return o?t?n:r:t?r:n;case"left":case"right":return t?a:s;default:return[]}}function IT(e,t,o,r){let n=Ii(e),a=GG(qn(e),o==="start",r);return n&&(a=a.map(s=>s+"-"+n),t&&(a=a.concat(a.map(Nh)))),a}function Fd(e){return e.replace(/left|right|bottom|top/g,t=>WG[t])}function jG(e){return{top:0,right:0,bottom:0,left:0,...e}}function rC(e){return typeof e!="number"?jG(e):{top:e,right:e,bottom:e,left:e}}function Ri(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 RT(e,t,o){let{reference:r,floating:n}=e,a=va(t),s=Vh(t),i=Bh(s),u=qn(t),c=a==="y",d=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,p=r[i]/2-n[i]/2,m;switch(u){case"top":m={x:d,y:r.y-n.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-n.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Ii(t)){case"start":m[s]-=p*(o&&c?-1:1);break;case"end":m[s]+=p*(o&&c?-1:1);break}return m}var MT=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,i=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:f}=RT(c,r,u),p=r,m={},y=0;for(let g=0;g<i.length;g++){let{name:v,fn:x}=i[g],{x:w,y:C,data:S,reset:b}=await x({x:d,y:f,initialPlacement:r,placement:p,strategy:n,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});d=w??d,f=C??f,m={...m,[v]:{...m[v],...S}},b&&y<=50&&(y++,typeof b=="object"&&(b.placement&&(p=b.placement),b.rects&&(c=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):b.rects),{x:d,y:f}=RT(c,p,u)),g=-1)}return{x:d,y:f,placement:p,strategy:n,middlewareData:m}};async function Cu(e,t){var o;t===void 0&&(t={});let{x:r,y:n,platform:a,rects:s,elements:i,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=zn(t,e),y=rC(m),v=i[p?f==="floating"?"reference":"floating":f],x=Ri(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(v)))==null||o?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:u})),w=f==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),S=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},b=Ri(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:C,strategy:u}):w);return{top:(x.top-b.top+y.top)/S.y,bottom:(b.bottom-x.bottom+y.bottom)/S.y,left:(x.left-b.left+y.left)/S.x,right:(b.right-x.right+y.right)/S.x}}var ET=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:r,placement:n,rects:a,platform:s,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=zn(e,t)||{};if(c==null)return{};let f=rC(d),p={x:o,y:r},m=Vh(n),y=Bh(m),g=await s.getDimensions(c),v=m==="y",x=v?"top":"left",w=v?"bottom":"right",C=v?"clientHeight":"clientWidth",S=a.reference[y]+a.reference[m]-p[m]-a.floating[y],b=p[m]-a.reference[m],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c)),P=R?R[C]:0;(!P||!await(s.isElement==null?void 0:s.isElement(R)))&&(P=i.floating[C]||a.floating[y]);let M=S/2-b/2,T=P/2-g[y]/2-1,_=Un(f[x],T),B=Un(f[w],T),k=_,N=P-g[y]-B,I=P/2-g[y]/2+M,A=_h(k,I,N),L=!u.arrow&&Ii(n)!=null&&I!==A&&a.reference[y]/2-(I<k?_:B)-g[y]/2<0,D=L?I<k?I-k:I-N:0;return{[m]:p[m]+D,data:{[m]:A,centerOffset:I-A-D,...L&&{alignmentOffset:D}},reset:L}}});var TT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;let{placement:n,middlewareData:a,rects:s,initialPlacement:i,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...v}=zn(e,t);if((o=a.arrow)!=null&&o.alignmentOffset)return{};let x=qn(n),w=va(i),C=qn(i)===i,S=await(u.isRTL==null?void 0:u.isRTL(c.floating)),b=p||(C||!g?[Fd(i)]:bT(i)),R=y!=="none";!p&&R&&b.push(...IT(i,g,y,S));let P=[i,...b],M=await Cu(t,v),T=[],_=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&T.push(M[x]),f){let I=ST(n,s,S);T.push(M[I[0]],M[I[1]])}if(_=[..._,{placement:n,overflows:T}],!T.every(I=>I<=0)){var B,k;let I=(((B=a.flip)==null?void 0:B.index)||0)+1,A=P[I];if(A)return{data:{index:I,overflows:_},reset:{placement:A}};let L=(k=_.filter(D=>D.overflows[0]<=0).sort((D,O)=>D.overflows[1]-O.overflows[1])[0])==null?void 0:k.placement;if(!L)switch(m){case"bestFit":{var N;let D=(N=_.filter(O=>{if(R){let E=va(O.placement);return E===w||E==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(E=>E>0).reduce((E,H)=>E+H,0)]).sort((O,E)=>O[1]-E[1])[0])==null?void 0:N[0];D&&(L=D);break}case"initialPlacement":L=i;break}if(n!==L)return{reset:{placement:L}}}return{}}}};function PT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function LT(e){return CT.some(t=>e[t]>=0)}var DT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:o}=t,{strategy:r="referenceHidden",...n}=zn(e,t);switch(r){case"referenceHidden":{let a=await Cu(t,{...n,elementContext:"reference"}),s=PT(a,o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:LT(s)}}}case"escaped":{let a=await Cu(t,{...n,altBoundary:!0}),s=PT(a,o.floating);return{data:{escapedOffsets:s,escaped:LT(s)}}}default:return{}}}}};async function KG(e,t){let{placement:o,platform:r,elements:n}=e,a=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=qn(o),i=Ii(o),u=va(o)==="y",c=["left","top"].includes(s)?-1:1,d=a&&u?-1:1,f=zn(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof y=="number"&&(m=i==="end"?y*-1:y),u?{x:m*d,y:p*c}:{x:p*c,y:m*d}}var AT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;let{x:n,y:a,placement:s,middlewareData:i}=t,u=await KG(t,e);return s===((o=i.offset)==null?void 0:o.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:n+u.x,y:a+u.y,data:{...u,placement:s}}}}},kT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:r,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:v=>{let{x,y:w}=v;return{x,y:w}}},...u}=zn(e,t),c={x:o,y:r},d=await Cu(t,u),f=va(qn(n)),p=Fh(f),m=c[p],y=c[f];if(a){let v=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=m+d[v],C=m-d[x];m=_h(w,m,C)}if(s){let v=f==="y"?"top":"left",x=f==="y"?"bottom":"right",w=y+d[v],C=y-d[x];y=_h(w,y,C)}let g=i.fn({...t,[p]:m,[f]:y});return{...g,data:{x:g.x-o,y:g.y-r,enabled:{[p]:a,[f]:s}}}}}},OT=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:o,y:r,placement:n,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:u=!0,crossAxis:c=!0}=zn(e,t),d={x:o,y:r},f=va(n),p=Fh(f),m=d[p],y=d[f],g=zn(i,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){let C=p==="y"?"height":"width",S=a.reference[p]-a.floating[C]+v.mainAxis,b=a.reference[p]+a.reference[C]-v.mainAxis;m<S?m=S:m>b&&(m=b)}if(c){var x,w;let C=p==="y"?"width":"height",S=["top","left"].includes(qn(n)),b=a.reference[f]-a.floating[C]+(S&&((x=s.offset)==null?void 0:x[f])||0)+(S?0:v.crossAxis),R=a.reference[f]+a.reference[C]+(S?0:((w=s.offset)==null?void 0:w[f])||0)-(S?v.crossAxis:0);y<b?y=b:y>R&&(y=R)}return{[p]:m,[f]:y}}}},NT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,r;let{placement:n,rects:a,platform:s,elements:i}=t,{apply:u=()=>{},...c}=zn(e,t),d=await Cu(t,c),f=qn(n),p=Ii(n),m=va(n)==="y",{width:y,height:g}=a.floating,v,x;f==="top"||f==="bottom"?(v=f,x=p===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(x=f,v=p==="end"?"top":"bottom");let w=g-d.top-d.bottom,C=y-d.left-d.right,S=Un(g-d[v],w),b=Un(y-d[x],C),R=!t.middlewareData.shift,P=S,M=b;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(M=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=w),R&&!p){let _=Ko(d.left,0),B=Ko(d.right,0),k=Ko(d.top,0),N=Ko(d.bottom,0);m?M=y-2*(_!==0||B!==0?_+B:Ko(d.left,d.right)):P=g-2*(k!==0||N!==0?k+N:Ko(d.top,d.bottom))}await u({...t,availableWidth:M,availableHeight:P});let T=await s.getDimensions(i.floating);return y!==T.width||g!==T.height?{reset:{rects:!0}}:{}}}};l();function Hh(){return typeof window<"u"}function Li(e){return FT(e)?(e.nodeName||"").toLowerCase():"#document"}function ur(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mn(e){var t;return(t=(FT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function FT(e){return Hh()?e instanceof Node||e instanceof ur(e).Node:!1}function $r(e){return Hh()?e instanceof Element||e instanceof ur(e).Element:!1}function hn(e){return Hh()?e instanceof HTMLElement||e instanceof ur(e).HTMLElement:!1}function _T(e){return!Hh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ur(e).ShadowRoot}function Su(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=Gr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(n)}function BT(e){return["table","td","th"].includes(Li(e))}function Hd(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Uh(e){let t=zh(),o=$r(e)?Gr(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 VT(e){let t=wa(e);for(;hn(t)&&!Mi(t);){if(Uh(t))return t;if(Hd(t))return null;t=wa(t)}return null}function zh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mi(e){return["html","body","#document"].includes(Li(e))}function Gr(e){return ur(e).getComputedStyle(e)}function Ud(e){return $r(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wa(e){if(Li(e)==="html")return e;let t=e.assignedSlot||e.parentNode||_T(e)&&e.host||mn(e);return _T(t)?t.host:t}function HT(e){let t=wa(e);return Mi(t)?e.ownerDocument?e.ownerDocument.body:e.body:hn(t)&&Su(t)?t:HT(t)}function Pi(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=HT(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),s=ur(n);if(a){let i=qh(s);return t.concat(s,s.visualViewport||[],Su(n)?n:[],i&&o?Pi(i):[])}return t.concat(n,Pi(n,[],o))}function qh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qT(e){let t=Gr(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=hn(e),a=n?e.offsetWidth:o,s=n?e.offsetHeight:r,i=Bd(o)!==a||Bd(r)!==s;return i&&(o=a,r=s),{width:o,height:r,$:i}}function aC(e){return $r(e)?e:e.contextElement}function bu(e){let t=aC(e);if(!hn(t))return pn(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:a}=qT(t),s=(a?Bd(o.width):o.width)/r,i=(a?Bd(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}var YG=pn(0);function WT(e){let t=ur(e);return!zh()||!t.visualViewport?YG:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function XG(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==ur(e)?!1:t}function Ei(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),a=aC(e),s=pn(1);t&&(r?$r(r)&&(s=bu(r)):s=bu(e));let i=XG(a,o,r)?WT(a):pn(0),u=(n.left+i.x)/s.x,c=(n.top+i.y)/s.y,d=n.width/s.x,f=n.height/s.y;if(a){let p=ur(a),m=r&&$r(r)?ur(r):r,y=p,g=qh(y);for(;g&&r&&m!==y;){let v=bu(g),x=g.getBoundingClientRect(),w=Gr(g),C=x.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,S=x.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;u*=v.x,c*=v.y,d*=v.x,f*=v.y,u+=C,c+=S,y=ur(g),g=qh(y)}}return Ri({width:d,height:f,x:u,y:c})}function sC(e,t){let o=Ud(e).scrollLeft;return t?t.left+o:Ei(mn(e)).left+o}function $T(e,t,o){o===void 0&&(o=!1);let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-(o?0:sC(e,r)),a=r.top+t.scrollTop;return{x:n,y:a}}function QG(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,a=n==="fixed",s=mn(r),i=t?Hd(t.floating):!1;if(r===s||i&&a)return o;let u={scrollLeft:0,scrollTop:0},c=pn(1),d=pn(0),f=hn(r);if((f||!f&&!a)&&((Li(r)!=="body"||Su(s))&&(u=Ud(r)),hn(r))){let m=Ei(r);c=bu(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}let p=s&&!f&&!a?$T(s,u,!0):pn(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 ZG(e){return Array.from(e.getClientRects())}function JG(e){let t=mn(e),o=Ud(e),r=e.ownerDocument.body,n=Ko(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ko(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-o.scrollLeft+sC(e),i=-o.scrollTop;return Gr(r).direction==="rtl"&&(s+=Ko(t.clientWidth,r.clientWidth)-n),{width:n,height:a,x:s,y:i}}function e4(e,t){let o=ur(e),r=mn(e),n=o.visualViewport,a=r.clientWidth,s=r.clientHeight,i=0,u=0;if(n){a=n.width,s=n.height;let c=zh();(!c||c&&t==="fixed")&&(i=n.offsetLeft,u=n.offsetTop)}return{width:a,height:s,x:i,y:u}}function t4(e,t){let o=Ei(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,a=hn(e)?bu(e):pn(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,u=n*a.x,c=r*a.y;return{width:s,height:i,x:u,y:c}}function UT(e,t,o){let r;if(t==="viewport")r=e4(e,o);else if(t==="document")r=JG(mn(e));else if($r(t))r=t4(t,o);else{let n=WT(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ri(r)}function GT(e,t){let o=wa(e);return o===t||!$r(o)||Mi(o)?!1:Gr(o).position==="fixed"||GT(o,t)}function o4(e,t){let o=t.get(e);if(o)return o;let r=Pi(e,[],!1).filter(i=>$r(i)&&Li(i)!=="body"),n=null,a=Gr(e).position==="fixed",s=a?wa(e):e;for(;$r(s)&&!Mi(s);){let i=Gr(s),u=Uh(s);!u&&i.position==="fixed"&&(n=null),(a?!u&&!n:!u&&i.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Su(s)&&!u&&GT(e,s))?r=r.filter(d=>d!==s):n=i,s=wa(s)}return t.set(e,r),r}function r4(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,s=[...o==="clippingAncestors"?Hd(t)?[]:o4(t,this._c):[].concat(o),r],i=s[0],u=s.reduce((c,d)=>{let f=UT(t,d,n);return c.top=Ko(f.top,c.top),c.right=Un(f.right,c.right),c.bottom=Un(f.bottom,c.bottom),c.left=Ko(f.left,c.left),c},UT(t,i,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function n4(e){let{width:t,height:o}=qT(e);return{width:t,height:o}}function a4(e,t,o){let r=hn(t),n=mn(t),a=o==="fixed",s=Ei(e,!0,a,t),i={scrollLeft:0,scrollTop:0},u=pn(0);if(r||!r&&!a)if((Li(t)!=="body"||Su(n))&&(i=Ud(t)),r){let p=Ei(t,!0,a,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else n&&(u.x=sC(n));let c=n&&!r&&!a?$T(n,i):pn(0),d=s.left+i.scrollLeft-u.x-c.x,f=s.top+i.scrollTop-u.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function nC(e){return Gr(e).position==="static"}function zT(e,t){if(!hn(e)||Gr(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return mn(e)===o&&(o=o.ownerDocument.body),o}function jT(e,t){let o=ur(e);if(Hd(e))return o;if(!hn(e)){let n=wa(e);for(;n&&!Mi(n);){if($r(n)&&!nC(n))return n;n=wa(n)}return o}let r=zT(e,t);for(;r&&BT(r)&&nC(r);)r=zT(r,t);return r&&Mi(r)&&nC(r)&&!Uh(r)?o:r||VT(e)||o}var s4=async function(e){let t=this.getOffsetParent||jT,o=this.getDimensions,r=await o(e.floating);return{reference:a4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function i4(e){return Gr(e).direction==="rtl"}var KT={convertOffsetParentRelativeRectToViewportRelativeRect:QG,getDocumentElement:mn,getClippingRect:r4,getOffsetParent:jT,getElementRects:s4,getClientRects:ZG,getDimensions:n4,getScale:bu,isElement:$r,isRTL:i4};function YT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function l4(e,t){let o=null,r,n=mn(e);function a(){var i;clearTimeout(r),(i=o)==null||i.disconnect(),o=null}function s(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),a();let c=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=c;if(i||t(),!p||!m)return;let y=Vd(f),g=Vd(n.clientWidth-(d+p)),v=Vd(n.clientHeight-(f+m)),x=Vd(d),C={rootMargin:-y+"px "+-g+"px "+-v+"px "+-x+"px",threshold:Ko(0,Un(1,u))||1},S=!0;function b(R){let P=R[0].intersectionRatio;if(P!==u){if(!S)return s();P?s(!1,P):r=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!YT(c,e.getBoundingClientRect())&&s(),S=!1}try{o=new IntersectionObserver(b,{...C,root:n.ownerDocument})}catch{o=new IntersectionObserver(b,C)}o.observe(e)}return s(!0),a}function zd(e,t,o,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=aC(e),d=n||a?[...c?Pi(c):[],...Pi(t)]:[];d.forEach(x=>{n&&x.addEventListener("scroll",o,{passive:!0}),a&&x.addEventListener("resize",o)});let f=c&&i?l4(c,o):null,p=-1,m=null;s&&(m=new ResizeObserver(x=>{let[w]=x;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 y,g=u?Ei(e):null;u&&v();function v(){let x=Ei(e);g&&!YT(g,x)&&o(),g=x,y=requestAnimationFrame(v)}return o(),()=>{var x;d.forEach(w=>{n&&w.removeEventListener("scroll",o),a&&w.removeEventListener("resize",o)}),f?.(),(x=m)==null||x.disconnect(),m=null,u&&cancelAnimationFrame(y)}}var XT=AT;var QT=kT,ZT=TT,JT=NT,eD=DT,iC=ET;var tD=OT,lC=(e,t,o)=>{let r=new Map,n={platform:KT,...o},a={...n.platform,_c:r};return MT(e,t,{...n,platform:a})};var Wt=$(require("react"),1),Gh=require("react"),rD=$(require("react-dom"),1),Wh=typeof document<"u"?Gh.useLayoutEffect:Gh.useEffect;function $h(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(!$h(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)&&!$h(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function nD(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function oD(e,t){let o=nD(e);return Math.round(t*o)/o}function uC(e){let t=Wt.useRef(e);return Wh(()=>{t.current=e}),t}function jh(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:r=[],platform:n,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:u,open:c}=e,[d,f]=Wt.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=Wt.useState(r);$h(p,r)||m(r);let[y,g]=Wt.useState(null),[v,x]=Wt.useState(null),w=Wt.useCallback(O=>{O!==R.current&&(R.current=O,g(O))},[]),C=Wt.useCallback(O=>{O!==P.current&&(P.current=O,x(O))},[]),S=a||y,b=s||v,R=Wt.useRef(null),P=Wt.useRef(null),M=Wt.useRef(d),T=u!=null,_=uC(u),B=uC(n),k=uC(c),N=Wt.useCallback(()=>{if(!R.current||!P.current)return;let O={placement:t,strategy:o,middleware:p};B.current&&(O.platform=B.current),lC(R.current,P.current,O).then(E=>{let H={...E,isPositioned:k.current!==!1};I.current&&!$h(M.current,H)&&(M.current=H,rD.flushSync(()=>{f(H)}))})},[p,t,o,B,k]);Wh(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,f(O=>({...O,isPositioned:!1})))},[c]);let I=Wt.useRef(!1);Wh(()=>(I.current=!0,()=>{I.current=!1}),[]),Wh(()=>{if(S&&(R.current=S),b&&(P.current=b),S&&b){if(_.current)return _.current(S,b,N);N()}},[S,b,N,_,T]);let A=Wt.useMemo(()=>({reference:R,floating:P,setReference:w,setFloating:C}),[w,C]),L=Wt.useMemo(()=>({reference:S,floating:b}),[S,b]),D=Wt.useMemo(()=>{let O={position:o,left:0,top:0};if(!L.floating)return O;let E=oD(L.floating,d.x),H=oD(L.floating,d.y);return i?{...O,transform:"translate("+E+"px, "+H+"px)",...nD(L.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:E,top:H}},[o,i,L.floating,d.x,d.y]);return Wt.useMemo(()=>({...d,update:N,refs:A,elements:L,floatingStyles:D}),[d,N,A,L,D])}var u4=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?iC({element:r.current,padding:n}).fn(o):{}:r?iC({element:r,padding:n}).fn(o):{}}}},Kh=(e,t)=>({...XT(e),options:[e,t]}),Yh=(e,t)=>({...QT(e),options:[e,t]}),Xh=(e,t)=>({...tD(e),options:[e,t]}),Qh=(e,t)=>({...ZT(e),options:[e,t]}),Zh=(e,t)=>({...JT(e),options:[e,t]});var Jh=(e,t)=>({...eD(e),options:[e,t]});var eg=(e,t)=>({...u4(e),options:[e,t]});l();var aD=$(require("react"),1);var cC=require("react/jsx-runtime"),c4="Arrow",sD=aD.forwardRef((e,t)=>{let{children:o,width:r=10,height:n=5,...a}=e;return(0,cC.jsx)(xe.svg,{...a,ref:t,width:r,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:(0,cC.jsx)("polygon",{points:"0,0 30,0 15,10"})})});sD.displayName=c4;var iD=sD;l();var lD=$(require("react"),1);function tg(e){let[t,o]=lD.useState(void 0);return _t(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;let a=n[0],s,i;if("borderBoxSize"in a){let u=a.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;o({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else o(void 0)},[e]),t}var vs=require("react/jsx-runtime");var dC="Popper",[uD,Ca]=go(dC),[f4,cD]=uD(dC),dD=e=>{let{__scopePopper:t,children:o}=e,[r,n]=Lr.useState(null);return(0,vs.jsx)(f4,{scope:t,anchor:r,onAnchorChange:n,children:o})};dD.displayName=dC;var fD="PopperAnchor",pD=Lr.forwardRef((e,t)=>{let{__scopePopper:o,virtualRef:r,...n}=e,a=cD(fD,o),s=Lr.useRef(null),i=Ae(t,s);return Lr.useEffect(()=>{a.onAnchorChange(r?.current||s.current)}),r?null:(0,vs.jsx)(xe.div,{...n,ref:i})});pD.displayName=fD;var fC="PopperContent",[p4,m4]=uD(fC),mD=Lr.forwardRef((e,t)=>{let{__scopePopper:o,side:r="bottom",sideOffset:n=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:y,...g}=e,v=cD(fC,o),[x,w]=Lr.useState(null),C=Ae(t,q=>w(q)),[S,b]=Lr.useState(null),R=tg(S),P=R?.width??0,M=R?.height??0,T=r+(a!=="center"?"-"+a:""),_=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},B=Array.isArray(c)?c:[c],k=B.length>0,N={padding:_,boundary:B.filter(g4),altBoundary:k},{refs:I,floatingStyles:A,placement:L,isPositioned:D,middlewareData:O}=jh({strategy:"fixed",placement:T,whileElementsMounted:(...q)=>zd(...q,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[Kh({mainAxis:n+M,alignmentAxis:s}),u&&Yh({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Xh():void 0,...N}),u&&Qh({...N}),Zh({...N,apply:({elements:q,rects:X,availableWidth:J,availableHeight:Q})=>{let{width:ae,height:se}=X.reference,ye=q.floating.style;ye.setProperty("--radix-popper-available-width",`${J}px`),ye.setProperty("--radix-popper-available-height",`${Q}px`),ye.setProperty("--radix-popper-anchor-width",`${ae}px`),ye.setProperty("--radix-popper-anchor-height",`${se}px`)}}),S&&eg({element:S,padding:i}),y4({arrowWidth:P,arrowHeight:M}),p&&Jh({strategy:"referenceHidden",...N})]}),[E,H]=yD(L),V=bt(y);_t(()=>{D&&V?.()},[D,V]);let z=O.arrow?.x,j=O.arrow?.y,Y=O.arrow?.centerOffset!==0,[U,W]=Lr.useState();return _t(()=>{x&&W(window.getComputedStyle(x).zIndex)},[x]),(0,vs.jsx)("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:D?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[O.transformOrigin?.x,O.transformOrigin?.y].join(" "),...O.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,vs.jsx)(p4,{scope:o,placedSide:E,onArrowChange:b,arrowX:z,arrowY:j,shouldHideArrow:Y,children:(0,vs.jsx)(xe.div,{"data-side":E,"data-align":H,...g,ref:C,style:{...g.style,animation:D?void 0:"none"}})})})});mD.displayName=fC;var hD="PopperArrow",h4={top:"bottom",right:"left",bottom:"top",left:"right"},gD=Lr.forwardRef(function(t,o){let{__scopePopper:r,...n}=t,a=m4(hD,r),s=h4[a.placedSide];return(0,vs.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,vs.jsx)(iD,{...n,ref:o,style:{...n.style,display:"block"}})})});gD.displayName=hD;function g4(e){return e!==null}var y4=e=>({name:"transformOrigin",options:e,fn(t){let{placement:o,rects:r,middlewareData:n}=t,s=n.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[c,d]=yD(o),f={start:"0%",center:"50%",end:"100%"}[d],p=(n.arrow?.x??0)+i/2,m=(n.arrow?.y??0)+u/2,y="",g="";return c==="bottom"?(y=s?f:`${p}px`,g=`${-u}px`):c==="top"?(y=s?f:`${p}px`,g=`${r.floating.height+u}px`):c==="right"?(y=`${-u}px`,g=s?f:`${m}px`):c==="left"&&(y=`${r.floating.width+u}px`,g=s?f:`${m}px`),{data:{x:y,y:g}}}});function yD(e){let[t,o="center"]=e.split("-");return[t,o]}var Ti=dD,Di=pD,Iu=mD,Ru=gD;l();var og=$(require("react"),1),xD=$(require("react-dom"),1);var vD=require("react/jsx-runtime"),x4="Portal",Ai=og.forwardRef((e,t)=>{let{container:o,...r}=e,[n,a]=og.useState(!1);_t(()=>a(!0),[]);let s=o||n&&globalThis?.document?.body;return s?xD.default.createPortal((0,vD.jsx)(xe.div,{...r,ref:t}),s):null});Ai.displayName=x4;l();var ws=$(require("react"),1);function Mr({prop:e,defaultProp:t,onChange:o=()=>{}}){let[r,n]=v4({defaultProp:t,onChange:o}),a=e!==void 0,s=a?e:r,i=bt(o),u=ws.useCallback(c=>{if(a){let f=typeof c=="function"?c(e):c;f!==e&&i(f)}else n(c)},[a,e,n,i]);return[s,u]}function v4({defaultProp:e,onChange:t}){let o=ws.useState(e),[r]=o,n=ws.useRef(r),a=bt(t);return ws.useEffect(()=>{n.current!==r&&(a(r),n.current=r)},[r,n,a]),o}l();var rg=$(require("react"),1);function ng(e){let t=rg.useRef({value:e,previous:e});return rg.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}l();var wD=$(require("react"),1);var CD=require("react/jsx-runtime"),w4="VisuallyHidden",mC=wD.forwardRef((e,t)=>(0,CD.jsx)(xe.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}}));mC.displayName=w4;l();var C4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Pu=new WeakMap,ag=new WeakMap,sg={},hC=0,SD=function(e){return e&&(e.host||SD(e.parentNode))},S4=function(e,t){return t.map(function(o){if(e.contains(o))return o;var r=SD(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})},b4=function(e,t,o,r){var n=S4(t,Array.isArray(e)?e:[e]);sg[o]||(sg[o]=new WeakMap);var a=sg[o],s=[],i=new Set,u=new Set(n),c=function(f){!f||i.has(f)||(i.add(f),c(f.parentNode))};n.forEach(c);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(p){if(i.has(p))d(p);else try{var m=p.getAttribute(r),y=m!==null&&m!=="false",g=(Pu.get(p)||0)+1,v=(a.get(p)||0)+1;Pu.set(p,g),a.set(p,v),s.push(p),g===1&&y&&ag.set(p,!0),v===1&&p.setAttribute(o,"true"),y||p.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",p,x)}})};return d(t),i.clear(),hC++,function(){s.forEach(function(f){var p=Pu.get(f)-1,m=a.get(f)-1;Pu.set(f,p),a.set(f,m),p||(ag.has(f)||f.removeAttribute(r),ag.delete(f)),m||f.removeAttribute(o)}),hC--,hC||(Pu=new WeakMap,Pu=new WeakMap,ag=new WeakMap,sg={})}},Lu=function(e,t,o){o===void 0&&(o="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),n=t||C4(e);return n?(r.push.apply(r,Array.from(n.querySelectorAll("[aria-live]"))),b4(r,n,o,"aria-hidden")):function(){return null}};l();l();l();var cr=function(){return cr=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},cr.apply(this,arguments)};function ig(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 bD(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))}var fg=$(require("react"));l();var _o=$(require("react"));l();var ki="right-scroll-bar-position",Oi="width-before-scroll-bar",gC="with-scroll-bars-hidden",yC="--removed-body-scroll-bar-size";l();l();function lg(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}l();var ID=require("react");function RD(e,t){var o=(0,ID.useState)(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();var ug=$(require("react"));var I4=typeof window<"u"?ug.useLayoutEffect:ug.useEffect,PD=new WeakMap;function xC(e,t){var o=RD(t||null,function(r){return e.forEach(function(n){return lg(n,r)})});return I4(function(){var r=PD.get(o);if(r){var n=new Set(r),a=new Set(e),s=o.current;n.forEach(function(i){a.has(i)||lg(i,null)}),a.forEach(function(i){n.has(i)||lg(i,s)})}PD.set(o,e)},[e]),o}l();l();l();function R4(e){return e}function P4(e,t){t===void 0&&(t=R4);var o=[],r=!1,n={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:e},useMedium:function(a){var s=t(a,r);return o.push(s),function(){o=o.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;o.length;){var s=o;o=[],s.forEach(a)}o={push:function(i){return a(i)},filter:function(){return o}}},assignMedium:function(a){r=!0;var s=[];if(o.length){var i=o;o=[],i.forEach(a),s=o}var u=function(){var d=s;s=[],d.forEach(a)},c=function(){return Promise.resolve().then(u)};c(),o={push:function(d){s.push(d),c()},filter:function(d){return s=s.filter(d),o}}}};return n}function vC(e){e===void 0&&(e={});var t=P4(null);return t.options=cr({async:!0,ssr:!1},e),t}l();var LD=$(require("react")),MD=function(e){var t=e.sideCar,o=ig(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,cr({},o))};MD.isSideCarExport=!0;function wC(e,t){return e.useMedium(t),MD}var cg=vC();var CC=function(){},qd=_o.forwardRef(function(e,t){var o=_o.useRef(null),r=_o.useState({onScrollCapture:CC,onWheelCapture:CC,onTouchMoveCapture:CC}),n=r[0],a=r[1],s=e.forwardProps,i=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,y=e.inert,g=e.allowPinchZoom,v=e.as,x=v===void 0?"div":v,w=e.gapMode,C=ig(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,b=xC([o,t]),R=cr(cr({},C),n);return _o.createElement(_o.Fragment,null,d&&_o.createElement(S,{sideCar:cg,removeScrollBar:c,shards:f,noIsolation:m,inert:y,setCallbacks:a,allowPinchZoom:!!g,lockRef:o,gapMode:w}),s?_o.cloneElement(_o.Children.only(i),cr(cr({},R),{ref:b})):_o.createElement(x,cr({},R,{className:u,ref:b}),i))});qd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};qd.classNames={fullWidth:Oi,zeroRight:ki};l();l();var mt=$(require("react"));l();l();var Eu=$(require("react"));l();l();l();var DD=$(require("react"));l();l();var ED;var TD=function(){if(ED)return ED;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function L4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=TD();return t&&e.setAttribute("nonce",t),e}function M4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function E4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var SC=function(){var e=0,t=null;return{add:function(o){e==0&&(t=L4())&&(M4(t,o),E4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var bC=function(){var e=SC();return function(t,o){DD.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])}};var Wd=function(){var e=bC(),t=function(o){var r=o.styles,n=o.dynamic;return e(r,n),null};return t};l();var T4={left:0,top:0,right:0,gap:0},IC=function(e){return parseInt(e||"",10)||0},D4=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[IC(o),IC(r),IC(n)]},RC=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return T4;var t=D4(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 A4=Wd(),Mu="data-scroll-locked",k4=function(e,t,o,r){var n=e.left,a=e.top,s=e.right,i=e.gap;return o===void 0&&(o="margin"),`
10
+ See https://err.47ng.com/NUQS-${e}`}var Hw=P5();function cn(e,...t){if(!Hw)return;let o=R5(e,...t);performance.mark(o);try{console.log(e,...t)}catch{console.log(o)}}function xE(e,...t){Hw&&console.warn(e,...t)}function R5(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 P5(){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 cd=(0,fu.createContext)({useAdapter(){throw new Error(dd(404))}});cd.displayName="NuqsAdapterContext";Hw&&typeof window<"u"&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==cd&&console.error(dd(303)),window.__NuqsAdapterContext=cd);function Uw(e){return({children:t,...o})=>(0,fu.createElement)(cd.Provider,{...o,value:{useAdapter:e}},t)}function vE(){let e=(0,fu.useContext)(cd);if(!("useAdapter"in e))throw new Error(dd(404));return e.useAdapter()}var Lh=require("react");function M5(e,t){let o;return(...r)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...r),t)}}function E5(){let e=typeof window<"u"?window.location.hash.slice(1):"",[t,o]=(0,Lh.useState)(new URLSearchParams(e));function r(a,{history:s}){let{pathname:i,search:u}=window.location,c=a.toString(),d=`${i}${u}#${c}`;s==="push"?window.history.pushState(null,"",d):window.history.replaceState(null,"",d),o(a)}function n(){if(typeof window>"u")return new URLSearchParams;let a=window.location.hash.slice(1);return new URLSearchParams(a)}return(0,Lh.useEffect)(()=>{let a=M5(()=>{let s=window.location.hash.slice(1);o(new URLSearchParams(s))},50);return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[]),{searchParams:t,updateUrl:r,getSearchParamsSnapshot:n}}var wE=Uw(E5);var gi=require("react/jsx-runtime"),CE=new gw,SE=(0,ir.createContext)(void 0);function bE(e){let{children:t,onEvent:o,adapter:r,theme:n}=e,[a,s]=(0,ir.useState)(!1),[i,u]=(0,ir.useState)(!0),[c,d]=(0,ir.useState)([]),[f,p]=(0,ir.useState)(()=>typeof document<"u"?document.documentElement.classList.contains("dark"):!1);(0,ir.useEffect)(()=>{p(document.documentElement.classList.contains("dark"))},[]);let[m]=(0,ir.useState)(zw.default.generate()),{hasCustomTheme:y}=yE(n,f);(0,ir.useEffect)(()=>{CE.resetQueries({exact:!1,queryKey:[]})},[r]),(0,ir.useEffect)(()=>{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;cu.error(`"${S.operation}" operation failed`,{action:{label:"Console",onClick:()=>{window.location.hash=qw({viewParam:"console"})}}})}let b=zw.default.generate(),R=new Date().toISOString(),P={...w,eventId:b,timestamp:R};(P.name==="studio_operation_success"||P.name==="studio_operation_error")&&d(M=>{let T=[...M,P];return T.length>100?T.slice(0,100):T}),o?.(P),C==="studio_launched"&&Ph&&!Rh&&!T5()&&!A5()&&nM({additionalData:{eventPayload:S,variant:"licensed"},command:C,eventId:b,product:"prisma-studio-embedded",signature:m,skipUpdateCheck:!0,timestamp:new Date(R),version:"0.0.0-dev.202512231618"}).catch(M=>{console.error(M)})},v=()=>s(w=>!w),x=()=>u(w=>!w);return(0,gi.jsxs)(Sw,{client:CE,children:[(0,gi.jsx)(mE,{}),(0,gi.jsx)(wE,{children:(0,gi.jsx)(SE.Provider,{value:{adapter:r,isFullscreen:a,onEvent:g,operationEvents:c,toggleFullscreen:v,isNavigationOpen:i,toggleNavigation:x,isDarkMode:f,hasCustomTheme:y},children:(0,gi.jsx)(IE,{children:t})})})]})}function ho(){let e=(0,ir.useContext)(SE);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}function T5(){return D5()&&"__PVCE__"in window&&window.__PVCE__===!0}function D5(){return Ph&&"acquireVsCodeApi"in window&&typeof window.acquireVsCodeApi=="function"}function A5(){if(!Ph)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 Mh(e,t,o){try{return e(t)}catch(r){return xE("[nuqs] Error while parsing value `%s`: %O"+(o?" (for key `%s`)":""),t,r,o),null}}function k5(){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 pu=k5(),pd=new Map,Rr={history:"replace",scroll:!1,shallow:!0,throttleMs:pu},Ww=new Set,RE=0,fd=null;function PE(e){return pd.get(e)}function O5(){pd.clear(),Ww.clear(),Rr.history="replace",Rr.scroll=!1,Rr.shallow=!0,Rr.throttleMs=pu}function LE(e,t,o,r){let n=t===null?null:o(t);return cn("[nuqs queue] Enqueueing %s=%s %O",e,n,r),pd.set(e,n),r.history==="push"&&(Rr.history="push"),r.scroll&&(Rr.scroll=!0),r.shallow===!1&&(Rr.shallow=!1),r.startTransition&&Ww.add(r.startTransition),Rr.throttleMs=Math.max(r.throttleMs??pu,Number.isFinite(Rr.throttleMs)?Rr.throttleMs:0),n}function N5(){return new URLSearchParams(location.search)}function ME({getSearchParamsSnapshot:e=N5,updateUrl:t,rateLimitFactor:o=1}){return fd===null&&(fd=new Promise((r,n)=>{if(!Number.isFinite(Rr.throttleMs)){cn("[nuqs queue] Skipping flush due to throttleMs=Infinity"),r(e()),setTimeout(()=>{fd=null},0);return}function a(){RE=performance.now();let[i,u]=_5({updateUrl:t,getSearchParamsSnapshot:e});u===null?r(i):n(i),fd=null}function s(){let u=performance.now()-RE,c=Rr.throttleMs,d=o*Math.max(0,Math.min(c,c-u));cn("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",d,c),d===0?a():setTimeout(a,d)}setTimeout(s,0)})),fd}function _5({updateUrl:e,getSearchParamsSnapshot:t}){let o=t();if(pd.size===0)return[o,null];let r=Array.from(pd.entries()),n={...Rr},a=Array.from(Ww);O5(),cn("[nuqs queue] Flushing queue %O with options %O",r,n);for(let[s,i]of r)i===null?o.delete(s):o.set(s,i);try{return F5(a,()=>{e(o,{history:n.history,scroll:n.scroll,shallow:n.shallow})}),[o,null]}catch(s){return console.error(dd(429),r.map(([i])=>i).join(),s),[o,s]}}function F5(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)}var dn=require("react");l();function EE(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 ha(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),Mh(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 KPe=ha({parse:e=>e,serialize:e=>`${e}`}),TE=ha({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:t},serialize:e=>Math.round(e).toFixed()}),YPe=ha({parse:e=>{let t=TE.parse(e);return t===null?null:t-1},serialize:e=>TE.serialize(e+1)}),XPe=ha({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")}}),QPe=ha({parse:e=>{let t=parseFloat(e);return Number.isNaN(t)?null:t},serialize:e=>e.toString()}),ZPe=ha({parse:e=>e==="true",serialize:e=>e?"true":"false"});function Gw(e,t){return e.valueOf()===t.valueOf()}var JPe=ha({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:new Date(t)},serialize:e=>e.valueOf().toString(),eq:Gw}),eLe=ha({parse:e=>{let t=new Date(e);return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString(),eq:Gw}),tLe=ha({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:Gw});var $w=EE();function DE(e,{history:t="replace",shallow:o=!0,scroll:r=!1,throttleMs:n=pu,parse:a=f=>f,serialize:s=String,eq:i=(f,p)=>f===p,defaultValue:u=void 0,clearOnDefault:c=!0,startTransition:d}={history:"replace",scroll:!1,shallow:!0,throttleMs:pu,parse:f=>f,serialize:String,eq:(f,p)=>f===p,clearOnDefault:!0,defaultValue:void 0}){let f=vE(),p=f.searchParams,m=(0,dn.useRef)(p?.get(e)??null),[y,g]=(0,dn.useState)(()=>{let w=PE(e),C=w===void 0?p?.get(e)??null:w;return C===null?null:Mh(a,C,e)}),v=(0,dn.useRef)(y);cn("[nuqs `%s`] render - state: %O, iSP: %s",e,y,p?.get(e)??null),(0,dn.useEffect)(()=>{let w=p?.get(e)??null;if(w===m.current)return;let C=w===null?null:Mh(a,w,e);cn("[nuqs `%s`] syncFromUseSearchParams %O",e,C),v.current=C,m.current=w,g(C)},[p?.get(e),e]),(0,dn.useEffect)(()=>{function w({state:C,query:S}){cn("[nuqs `%s`] updateInternalState %O",e,C),v.current=C,m.current=S,g(C)}return cn("[nuqs `%s`] subscribing to sync",e),$w.on(e,w),()=>{cn("[nuqs `%s`] unsubscribing from sync",e),$w.off(e,w)}},[e]);let x=(0,dn.useCallback)((w,C={})=>{let S=B5(w)?w(v.current??u??null):w;(C.clearOnDefault??c)&&S!==null&&u!==void 0&&i(S,u)&&(S=null);let b=LE(e,S,s,{history:C.history??t,shallow:C.shallow??o,scroll:C.scroll??r,throttleMs:C.throttleMs??n,startTransition:C.startTransition??d});return $w.emit(e,{state:S,query:b}),ME(f)},[e,t,o,r,n,d,f.updateUrl,f.getSearchParamsSnapshot,f.rateLimitFactor]);return[y??u??null,x]}function B5(e){return typeof e=="function"}var sLe=Symbol("BRAND_SYMBOL");function ss(e,t){return DE(e,t)}l();var yi=require("react"),AE=$(ld(),1);var kE={kind:"FilterGroup",filters:[],after:"and",id:AE.default.generate()},OE=e=>{let t=0;for(let o of e.filters)o.kind==="ColumnFilter"?o.column.trim()&&t++:o.kind==="FilterGroup"&&(t+=OE(o));return t};function NE(){let{filterParam:e,setFilterParam:t}=Je(),o=(0,yi.useMemo)(()=>JSON.parse(e),[e]),r=i=>void t(JSON.stringify(i)),[n,a]=(0,yi.useState)(o);(0,yi.useEffect)(()=>{a(o)},[o]);let s=(0,yi.useMemo)(()=>OE(n),[n]);return{appliedFilter:o,setAppliedFilter:r,editingFilter:n,setEditingFilter:a,totalEditingFilters:s}}l();var _E=-1;function Vn(){let{adapter:e,onEvent:t}=ho();return od({initialData:{schemas:{[e.defaultSchema||"db"]:{name:e.defaultSchema||"db",tables:{}}},timezone:"UTC",filterOperators:[],query:{parameters:[],sql:""}},initialDataUpdatedAt:_E,queryFn:async({signal:o})=>{let[r,n]=await e.introspect({abortSignal:o});if(r)throw t({name:"studio_operation_error",payload:{operation:"introspect",query:r.query,error:r}}),r;t({name:"studio_operation_success",payload:{operation:"introspect",query:n.query,error:void 0}});let a=Object.values(n.schemas).reduce((s,i)=>s+Object.keys(i.tables).length,0);return t({name:"studio_launched",payload:{tableCount:a}}),n},queryKey:["introspection"],staleTime:o=>o.state.dataUpdatedAt===_E?0:1/0})}var BE=require("react/jsx-runtime");function qw(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 V5(e){let{adapter:t,introspection:o}=e,{schemas:r}=o,{defaultSchema:n}=t,a=n??Object.keys(r)[0]??"public",s=Object.keys(r[a]?.tables??{})[0]??"",i=JSON.stringify(kE);return{schema:a,table:s,filter:i,pageIndex:"0",pageSize:"25",view:"table"}}function H5(){let{adapter:e}=ho(),{data:t,isFetching:o}=Vn(),{schemas:r}=t,n=(0,xi.useMemo)(()=>V5({adapter:e,introspection:t}),[e,t]),[a,s]=ss("filter",{defaultValue:n.filter}),[i,u]=ss("pageIndex",{defaultValue:n.pageIndex}),[c,d]=ss("pageSize",{defaultValue:n.pageSize}),[f,p]=ss("schema",{defaultValue:n.schema}),[m,y]=ss("sort"),[g,v]=ss("table",{defaultValue:n.table}),[x,w]=ss("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:(0,xi.useMemo)(()=>({activeSchema:C,activeTables:S,activeTable:b,isFetching:o}),[C,S,b,o]),createUrl:qw,filterParam:a,pageIndexParam:i,pageSizeParam:c,schemaParam:f,sortParam:m,tableParam:g,viewParam:x,setFilterParam:s,setPageIndexParam:u,setPageSizeParam:d,setSchemaParam:p,setSortParam:y,setTableParam:v,setViewParam:w}}var FE=(0,xi.createContext)(void 0);function IE({children:e}){let t=H5();return(0,BE.jsx)(FE.Provider,{value:t,children:e})}function Je(){let e=(0,xi.useContext)(FE);if(e===void 0)throw new Error("useNavigationContext must be used within a NavigationContextProvider");return e}l();l();function VE(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=VE(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function HE(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=VE(e))&&(r&&(r+=" "),r+=t);return r}l();var Yw="-",U5=e=>{let t=q5(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let i=s.split(Yw);return i[0]===""&&i.length!==1&&i.shift(),$E(i,t)||z5(s)},getConflictingClassGroupIds:(s,i)=>{let u=o[s]||[];return i&&r[s]?[...u,...r[s]]:u}}},$E=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?$E(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(Yw);return t.validators.find(({validator:s})=>s(a))?.classGroupId},UE=/^\[(.+)\]$/,z5=e=>{if(UE.test(e)){let t=UE.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},q5=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return $5(Object.entries(e.classGroups),o).forEach(([a,s])=>{Kw(s,r,a,t)}),r},Kw=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:zE(t,n);a.classGroupId=o;return}if(typeof n=="function"){if(W5(n)){Kw(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,s])=>{Kw(s,zE(t,a),o,r)})})},zE=(e,t)=>{let o=e;return t.split(Yw).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},W5=e=>e.isThemeGetter,$5=(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(([s,i])=>[t+s,i])):a);return[o,n]}):e,G5=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(a,s)=>{o.set(a,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let s=o.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return n(a,s),s},set(a,s){o.has(a)?o.set(a,s):n(a,s)}}},GE="!",j5=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],a=t.length,s=i=>{let u=[],c=0,d=0,f;for(let v=0;v<i.length;v++){let x=i[v];if(c===0){if(x===n&&(r||i.slice(v,v+a)===t)){u.push(i.slice(d,v)),d=v+a;continue}if(x==="/"){f=v;continue}}x==="["?c++:x==="]"&&c--}let p=u.length===0?i:i.substring(d),m=p.startsWith(GE),y=m?p.substring(1):p,g=f&&f>d?f-d:void 0;return{modifiers:u,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:g}};return o?i=>o({className:i,parseClassName:s}):s},K5=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},Y5=e=>({cache:G5(e.cacheSize),parseClassName:j5(e),...U5(e)}),X5=/\s+/,Q5=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,a=[],s=e.trim().split(X5),i="";for(let u=s.length-1;u>=0;u-=1){let c=s[u],{modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=o(c),y=!!m,g=r(y?p.substring(0,m):p);if(!g){if(!y){i=c+(i.length>0?" "+i:i);continue}if(g=r(p),!g){i=c+(i.length>0?" "+i:i);continue}y=!1}let v=K5(d).join(":"),x=f?v+GE:v,w=x+g;if(a.includes(w))continue;a.push(w);let C=n(g,y);for(let S=0;S<C.length;++S){let b=C[S];a.push(x+b)}i=c+(i.length>0?" "+i:i)}return i};function Z5(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=jE(t))&&(r&&(r+=" "),r+=o);return r}var jE=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=jE(e[r]))&&(o&&(o+=" "),o+=t);return o};function qE(e,...t){let o,r,n,a=s;function s(u){let c=t.reduce((d,f)=>f(d),e());return o=Y5(c),r=o.cache.get,n=o.cache.set,a=i,i(u)}function i(u){let c=r(u);if(c)return c;let d=Q5(u,o);return n(u,d),d}return function(){return a(Z5.apply(null,arguments))}}var pt=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},KE=/^\[(?:([a-z-]+):)?(.+)\]$/i,J5=/^\d+\/\d+$/,eG=new Set(["px","full","screen"]),tG=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oG=/\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$/,rG=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,nG=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,aG=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ga=e=>mu(e)||eG.has(e)||J5.test(e),is=e=>hu(e,"length",pG),mu=e=>!!e&&!Number.isNaN(Number(e)),jw=e=>hu(e,"number",mu),md=e=>!!e&&Number.isInteger(Number(e)),sG=e=>e.endsWith("%")&&mu(e.slice(0,-1)),Se=e=>KE.test(e),ls=e=>tG.test(e),iG=new Set(["length","size","percentage"]),lG=e=>hu(e,iG,YE),uG=e=>hu(e,"position",YE),cG=new Set(["image","url"]),dG=e=>hu(e,cG,hG),fG=e=>hu(e,"",mG),hd=()=>!0,hu=(e,t,o)=>{let r=KE.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},pG=e=>oG.test(e)&&!rG.test(e),YE=()=>!1,mG=e=>nG.test(e),hG=e=>aG.test(e);var WE=()=>{let e=pt("colors"),t=pt("spacing"),o=pt("blur"),r=pt("brightness"),n=pt("borderColor"),a=pt("borderRadius"),s=pt("borderSpacing"),i=pt("borderWidth"),u=pt("contrast"),c=pt("grayscale"),d=pt("hueRotate"),f=pt("invert"),p=pt("gap"),m=pt("gradientColorStops"),y=pt("gradientColorStopPositions"),g=pt("inset"),v=pt("margin"),x=pt("opacity"),w=pt("padding"),C=pt("saturate"),S=pt("scale"),b=pt("sepia"),R=pt("skew"),P=pt("space"),M=pt("translate"),T=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",Se,t],k=()=>[Se,t],N=()=>["",ga,is],I=()=>["auto",mu,Se],A=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],E=()=>["","0",Se],H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[mu,Se];return{cacheSize:500,separator:":",theme:{colors:[hd],spacing:[ga,is],blur:["none","",ls,Se],brightness:V(),borderColor:[e],borderRadius:["none","","full",ls,Se],borderSpacing:k(),borderWidth:N(),contrast:V(),grayscale:E(),hueRotate:V(),invert:E(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[sG,is],inset:B(),margin:B(),opacity:V(),padding:k(),saturate:V(),scale:V(),sepia:E(),skew:V(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",Se]}],container:["container"],columns:[{columns:[ls]}],"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:[...A(),Se]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],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",md,Se]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Se]}],grow:[{grow:E()}],shrink:[{shrink:E()}],order:[{order:["first","last","none",md,Se]}],"grid-cols":[{"grid-cols":[hd]}],"col-start-end":[{col:["auto",{span:["full",md,Se]},Se]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[hd]}],"row-start-end":[{row:["auto",{span:[md,Se]},Se]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Se]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Se]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"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":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Se,t]}],"min-w":[{"min-w":[Se,t,"min","max","fit"]}],"max-w":[{"max-w":[Se,t,"none","full","min","max","fit","prose",{screen:[ls]},ls]}],h:[{h:[Se,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Se,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Se,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Se,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ls,is]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",jw]}],"font-family":[{font:[hd]}],"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",Se]}],"line-clamp":[{"line-clamp":["none",mu,jw]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ga,Se]}],"list-image":[{"list-image":["none",Se]}],"list-style-type":[{list:["none","disc","decimal",Se]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ga,is]}],"underline-offset":[{"underline-offset":["auto",ga,Se]}],"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:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Se]}],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",Se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...A(),uG]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lG]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},dG]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"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:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:L()}],"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:["",...L()]}],"outline-offset":[{"outline-offset":[ga,Se]}],"outline-w":[{outline:[ga,is]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[ga,is]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ls,fG]}],"shadow-color":[{shadow:[hd]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",ls,Se]}],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":[x]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Se]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",Se]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",Se]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[md,Se]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Se]}],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",Se]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Se]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ga,is,jw]}],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"]}}},gG=(e,{cacheSize:t,prefix:o,separator:r,experimentalParseClassName:n,extend:a={},override:s={}})=>{gd(e,"cacheSize",t),gd(e,"prefix",o),gd(e,"separator",r),gd(e,"experimentalParseClassName",n);for(let i in s)yG(e[i],s[i]);for(let i in a)xG(e[i],a[i]);return e},gd=(e,t,o)=>{o!==void 0&&(e[t]=o)},yG=(e,t)=>{if(t)for(let o in t)gd(e,o,t[o])},xG=(e,t)=>{if(t)for(let o in t){let r=t[o];r!==void 0&&(e[o]=(e[o]||[]).concat(r))}},XE=(e,...t)=>typeof e=="function"?qE(WE,e,...t):qE(()=>gG(WE(),e),...t);var vG=XE({});function G(...e){return vG(HE(e))}l();l();var Jt=$(require("react"),1);l();var ZE=$(require("react"),1);function QE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vi(...e){return t=>{let o=!1,r=e.map(n=>{let a=QE(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():QE(e[n],null)}}}}function Ae(...e){return ZE.useCallback(vi(...e),e)}var gu=require("react/jsx-runtime"),No=Jt.forwardRef((e,t)=>{let{children:o,...r}=e,n=Jt.Children.toArray(o),a=n.find(CG);if(a){let s=a.props.children,i=n.map(u=>u===a?Jt.Children.count(s)>1?Jt.Children.only(null):Jt.isValidElement(s)?s.props.children:null:u);return(0,gu.jsx)(Xw,{...r,ref:t,children:Jt.isValidElement(s)?Jt.cloneElement(s,void 0,i):null})}return(0,gu.jsx)(Xw,{...r,ref:t,children:o})});No.displayName="Slot";var Xw=Jt.forwardRef((e,t)=>{let{children:o,...r}=e;if(Jt.isValidElement(o)){let n=bG(o),a=SG(r,o.props);return o.type!==Jt.Fragment&&(a.ref=t?vi(t,n):n),Jt.cloneElement(o,a)}return Jt.Children.count(o)>1?Jt.Children.only(null):null});Xw.displayName="SlotClone";var wG=({children:e})=>(0,gu.jsx)(gu.Fragment,{children:e});function CG(e){return Jt.isValidElement(e)&&e.type===wG}function SG(e,t){let o={...t};for(let r in t){let n=e[r],a=t[r];/^on[A-Z]/.test(r)?n&&a?o[r]=(...i)=>{a(...i),n(...i)}:n&&(o[r]=n):r==="style"?o[r]={...n,...a}:r==="className"&&(o[r]=[n,a].filter(Boolean).join(" "))}return{...e,...o}}function bG(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();var Th=require("react");l();var JE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Eh=(...e)=>e.filter((t,o,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===o).join(" ").trim();l();var yd=require("react");l();var eT={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 tT=(0,yd.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:n="",children:a,iconNode:s,...i},u)=>(0,yd.createElement)("svg",{ref:u,...eT,width:t,height:t,stroke:e,strokeWidth:r?Number(o)*24/Number(t):o,className:Eh("lucide",n),...i},[...s.map(([c,d])=>(0,yd.createElement)(c,d)),...Array.isArray(a)?a:[a]]));var re=(e,t)=>{let o=(0,Th.forwardRef)(({className:r,...n},a)=>(0,Th.createElement)(tT,{ref:a,iconNode:t,className:Eh(`lucide-${JE(e)}`,r),...n}));return o.displayName=`${e}`,o};l();var us=re("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 xd=re("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);l();var vd=re("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 fn=re("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);l();var qr=re("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);l();var wd=re("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);l();var Pr=re("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);l();var Cd=re("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);l();var Sd=re("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);l();var bd=re("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);l();var Hn=re("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 cs=re("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 ds=re("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 wi=re("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);l();var Ci=re("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 Id=re("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 Rd=re("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);l();var Pd=re("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 Ld=re("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 ya=re("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 Md=re("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 Ed=re("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 Td=re("MoveDown",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);l();var Dd=re("MoveUp",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);l();var fs=re("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 ps=re("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 Ad=re("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 kd=re("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 Od=re("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 ms=re("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 Nd=re("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);l();var _d=re("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 hs=re("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 gs=re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);l();l();var te=$(require("react"),1),OC=$(require("react-dom"),1);l();function Qw(e,[t,o]){return Math.min(o,Math.max(t,e))}l();function oe(e,t,{checkForDefaultPrevented:o=!0}={}){return function(n){if(e?.(n),o===!1||!n.defaultPrevented)return t?.(n)}}l();var ys=$(require("react"),1);l();var xa=$(require("react"),1),oT=require("react/jsx-runtime");function go(e,t=[]){let o=[];function r(a,s){let i=xa.createContext(s),u=o.length;o=[...o,s];let c=f=>{let{scope:p,children:m,...y}=f,g=p?.[e]?.[u]||i,v=xa.useMemo(()=>y,Object.values(y));return(0,oT.jsx)(g.Provider,{value:v,children:m})};c.displayName=a+"Provider";function d(f,p){let m=p?.[e]?.[u]||i,y=xa.useContext(m);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[c,d]}let n=()=>{let a=o.map(s=>xa.createContext(s));return function(i){let u=i?.[e]||a;return xa.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return n.scopeName=e,[r,IG(n,...t)]}function IG(...e){let t=e[0];if(e.length===1)return t;let o=()=>{let r=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(a){let s=r.reduce((i,{useScope:u,scopeName:c})=>{let f=u(a)[`__scope${c}`];return{...i,...f}},{});return xa.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return o.scopeName=t.scopeName,o}var Dh=require("react/jsx-runtime");function yu(e){let t=e+"CollectionProvider",[o,r]=go(t),[n,a]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{let{scope:y,children:g}=m,v=ys.default.useRef(null),x=ys.default.useRef(new Map).current;return(0,Dh.jsx)(n,{scope:y,itemMap:x,collectionRef:v,children:g})};s.displayName=t;let i=e+"CollectionSlot",u=ys.default.forwardRef((m,y)=>{let{scope:g,children:v}=m,x=a(i,g),w=Ae(y,x.collectionRef);return(0,Dh.jsx)(No,{ref:w,children:v})});u.displayName=i;let c=e+"CollectionItemSlot",d="data-radix-collection-item",f=ys.default.forwardRef((m,y)=>{let{scope:g,children:v,...x}=m,w=ys.default.useRef(null),C=Ae(y,w),S=a(c,g);return ys.default.useEffect(()=>(S.itemMap.set(w,{ref:w,...x}),()=>void S.itemMap.delete(w))),(0,Dh.jsx)(No,{[d]:"",ref:C,children:v})});f.displayName=c;function p(m){let y=a(e+"CollectionConsumer",m);return ys.default.useCallback(()=>{let v=y.collectionRef.current;if(!v)return[];let x=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(y.itemMap.values()).sort((S,b)=>x.indexOf(S.ref.current)-x.indexOf(b.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:u,ItemSlot:f},p,r]}l();var Ah=$(require("react"),1),RG=require("react/jsx-runtime"),PG=Ah.createContext(void 0);function xu(e){let t=Ah.useContext(PG);return e||t||"ltr"}l();var It=$(require("react"),1);l();var rT=$(require("react"),1),nT=$(require("react-dom"),1);var aT=require("react/jsx-runtime"),LG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],xe=LG.reduce((e,t)=>{let o=rT.forwardRef((r,n)=>{let{asChild:a,...s}=r,i=a?No:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,aT.jsx)(i,{...s,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function kh(e,t){e&&nT.flushSync(()=>e.dispatchEvent(t))}l();var vu=$(require("react"),1);function bt(e){let t=vu.useRef(e);return vu.useEffect(()=>{t.current=e}),vu.useMemo(()=>(...o)=>t.current?.(...o),[])}l();var sT=$(require("react"),1);function iT(e,t=globalThis?.document){let o=bt(e);sT.useEffect(()=>{let r=n=>{n.key==="Escape"&&o(n)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[o,t])}var Jw=require("react/jsx-runtime"),MG="DismissableLayer",Zw="dismissableLayer.update",EG="dismissableLayer.pointerDownOutside",TG="dismissableLayer.focusOutside",lT,cT=It.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Si=It.forwardRef((e,t)=>{let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:n,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...u}=e,c=It.useContext(cT),[d,f]=It.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=It.useState({}),y=Ae(t,P=>f(P)),g=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(v),w=d?g.indexOf(d):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,S=w>=x,b=kG(P=>{let M=P.target,T=[...c.branches].some(_=>_.contains(M));!S||T||(n?.(P),s?.(P),P.defaultPrevented||i?.())},p),R=OG(P=>{let M=P.target;[...c.branches].some(_=>_.contains(M))||(a?.(P),s?.(P),P.defaultPrevented||i?.())},p);return iT(P=>{w===c.layers.size-1&&(r?.(P),!P.defaultPrevented&&i&&(P.preventDefault(),i()))},p),It.useEffect(()=>{if(d)return o&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(lT=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),uT(),()=>{o&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=lT)}},[d,p,o,c]),It.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),uT())},[d,c]),It.useEffect(()=>{let P=()=>m({});return document.addEventListener(Zw,P),()=>document.removeEventListener(Zw,P)},[]),(0,Jw.jsx)(xe.div,{...u,ref:y,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:oe(e.onFocusCapture,R.onFocusCapture),onBlurCapture:oe(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:oe(e.onPointerDownCapture,b.onPointerDownCapture)})});Si.displayName=MG;var DG="DismissableLayerBranch",AG=It.forwardRef((e,t)=>{let o=It.useContext(cT),r=It.useRef(null),n=Ae(t,r);return It.useEffect(()=>{let a=r.current;if(a)return o.branches.add(a),()=>{o.branches.delete(a)}},[o.branches]),(0,Jw.jsx)(xe.div,{...e,ref:n})});AG.displayName=DG;function kG(e,t=globalThis?.document){let o=bt(e),r=It.useRef(!1),n=It.useRef(()=>{});return It.useEffect(()=>{let a=i=>{if(i.target&&!r.current){let c=function(){dT(EG,o,d,{discrete:!0})};var u=c;let d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",n.current),n.current=c,t.addEventListener("click",n.current,{once:!0})):c()}else t.removeEventListener("click",n.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",n.current)}},[t,o]),{onPointerDownCapture:()=>r.current=!0}}function OG(e,t=globalThis?.document){let o=bt(e),r=It.useRef(!1);return It.useEffect(()=>{let n=a=>{a.target&&!r.current&&dT(TG,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 uT(){let e=new CustomEvent(Zw);document.dispatchEvent(e)}function dT(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?kh(n,a):n.dispatchEvent(a)}l();var pT=$(require("react"),1),eC=0;function wu(){pT.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??fT()),document.body.insertAdjacentElement("beforeend",e[1]??fT()),eC++,()=>{eC===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),eC--}},[])}function fT(){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();var Wr=$(require("react"),1);var xT=require("react/jsx-runtime"),tC="focusScope.autoFocusOnMount",oC="focusScope.autoFocusOnUnmount",mT={bubbles:!1,cancelable:!0},NG="FocusScope",bi=Wr.forwardRef((e,t)=>{let{loop:o=!1,trapped:r=!1,onMountAutoFocus:n,onUnmountAutoFocus:a,...s}=e,[i,u]=Wr.useState(null),c=bt(n),d=bt(a),f=Wr.useRef(null),p=Ae(t,g=>u(g)),m=Wr.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Wr.useEffect(()=>{if(r){let w=function(R){if(m.paused||!i)return;let P=R.target;i.contains(P)?f.current=P:xs(f.current,{select:!0})},C=function(R){if(m.paused||!i)return;let P=R.relatedTarget;P!==null&&(i.contains(P)||xs(f.current,{select:!0}))},S=function(R){if(document.activeElement===document.body)for(let M of R)M.removedNodes.length>0&&xs(i)};var g=w,v=C,x=S;document.addEventListener("focusin",w),document.addEventListener("focusout",C);let b=new MutationObserver(S);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",C),b.disconnect()}}},[r,i,m.paused]),Wr.useEffect(()=>{if(i){gT.add(m);let g=document.activeElement;if(!i.contains(g)){let x=new CustomEvent(tC,mT);i.addEventListener(tC,c),i.dispatchEvent(x),x.defaultPrevented||(_G(UG(vT(i)),{select:!0}),document.activeElement===g&&xs(i))}return()=>{i.removeEventListener(tC,c),setTimeout(()=>{let x=new CustomEvent(oC,mT);i.addEventListener(oC,d),i.dispatchEvent(x),x.defaultPrevented||xs(g??document.body,{select:!0}),i.removeEventListener(oC,d),gT.remove(m)},0)}}},[i,c,d,m]);let y=Wr.useCallback(g=>{if(!o&&!r||m.paused)return;let v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,x=document.activeElement;if(v&&x){let w=g.currentTarget,[C,S]=FG(w);C&&S?!g.shiftKey&&x===S?(g.preventDefault(),o&&xs(C,{select:!0})):g.shiftKey&&x===C&&(g.preventDefault(),o&&xs(S,{select:!0})):x===w&&g.preventDefault()}},[o,r,m.paused]);return(0,xT.jsx)(xe.div,{tabIndex:-1,...s,ref:p,onKeyDown:y})});bi.displayName=NG;function _G(e,{select:t=!1}={}){let o=document.activeElement;for(let r of e)if(xs(r,{select:t}),document.activeElement!==o)return}function FG(e){let t=vT(e),o=hT(t,e),r=hT(t.reverse(),e);return[o,r]}function vT(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 hT(e,t){for(let o of e)if(!BG(o,{upTo:t}))return o}function BG(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 VG(e){return e instanceof HTMLInputElement&&"select"in e}function xs(e,{select:t=!1}={}){if(e&&e.focus){let o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&VG(e)&&t&&e.select()}}var gT=HG();function HG(){let e=[];return{add(t){let o=e[0];t!==o&&o?.pause(),e=yT(e,t),e.unshift(t)},remove(t){e=yT(e,t),e[0]?.resume()}}}function yT(e,t){let o=[...e],r=o.indexOf(t);return r!==-1&&o.splice(r,1),o}function UG(e){return e.filter(t=>t.tagName!=="A")}l();var Oh=$(require("react"),1);l();var wT=$(require("react"),1),_t=globalThis?.document?wT.useLayoutEffect:()=>{};var zG=Oh.useId||(()=>{}),qG=0;function lr(e){let[t,o]=Oh.useState(zG());return _t(()=>{e||o(r=>r??String(qG++))},[e]),e||(t?`radix-${t}`:"")}l();var Lr=$(require("react"),1);l();l();l();l();var CT=["top","right","bottom","left"];var Un=Math.min,Ko=Math.max,Bd=Math.round,Vd=Math.floor,pn=e=>({x:e,y:e}),WG={left:"right",right:"left",bottom:"top",top:"bottom"},$G={start:"end",end:"start"};function _h(e,t,o){return Ko(e,Un(t,o))}function zn(e,t){return typeof e=="function"?e(t):e}function qn(e){return e.split("-")[0]}function Ii(e){return e.split("-")[1]}function Fh(e){return e==="x"?"y":"x"}function Bh(e){return e==="y"?"height":"width"}function va(e){return["top","bottom"].includes(qn(e))?"y":"x"}function Vh(e){return Fh(va(e))}function ST(e,t,o){o===void 0&&(o=!1);let r=Ii(e),n=Vh(e),a=Bh(n),s=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Fd(s)),[s,Fd(s)]}function bT(e){let t=Fd(e);return[Nh(e),t,Nh(t)]}function Nh(e){return e.replace(/start|end/g,t=>$G[t])}function GG(e,t,o){let r=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return o?t?n:r:t?r:n;case"left":case"right":return t?a:s;default:return[]}}function IT(e,t,o,r){let n=Ii(e),a=GG(qn(e),o==="start",r);return n&&(a=a.map(s=>s+"-"+n),t&&(a=a.concat(a.map(Nh)))),a}function Fd(e){return e.replace(/left|right|bottom|top/g,t=>WG[t])}function jG(e){return{top:0,right:0,bottom:0,left:0,...e}}function rC(e){return typeof e!="number"?jG(e):{top:e,right:e,bottom:e,left:e}}function Ri(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 RT(e,t,o){let{reference:r,floating:n}=e,a=va(t),s=Vh(t),i=Bh(s),u=qn(t),c=a==="y",d=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,p=r[i]/2-n[i]/2,m;switch(u){case"top":m={x:d,y:r.y-n.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-n.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Ii(t)){case"start":m[s]-=p*(o&&c?-1:1);break;case"end":m[s]+=p*(o&&c?-1:1);break}return m}var MT=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,i=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:f}=RT(c,r,u),p=r,m={},y=0;for(let g=0;g<i.length;g++){let{name:v,fn:x}=i[g],{x:w,y:C,data:S,reset:b}=await x({x:d,y:f,initialPlacement:r,placement:p,strategy:n,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});d=w??d,f=C??f,m={...m,[v]:{...m[v],...S}},b&&y<=50&&(y++,typeof b=="object"&&(b.placement&&(p=b.placement),b.rects&&(c=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):b.rects),{x:d,y:f}=RT(c,p,u)),g=-1)}return{x:d,y:f,placement:p,strategy:n,middlewareData:m}};async function Cu(e,t){var o;t===void 0&&(t={});let{x:r,y:n,platform:a,rects:s,elements:i,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=zn(t,e),y=rC(m),v=i[p?f==="floating"?"reference":"floating":f],x=Ri(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(v)))==null||o?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:u})),w=f==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),S=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},b=Ri(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:C,strategy:u}):w);return{top:(x.top-b.top+y.top)/S.y,bottom:(b.bottom-x.bottom+y.bottom)/S.y,left:(x.left-b.left+y.left)/S.x,right:(b.right-x.right+y.right)/S.x}}var ET=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:r,placement:n,rects:a,platform:s,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=zn(e,t)||{};if(c==null)return{};let f=rC(d),p={x:o,y:r},m=Vh(n),y=Bh(m),g=await s.getDimensions(c),v=m==="y",x=v?"top":"left",w=v?"bottom":"right",C=v?"clientHeight":"clientWidth",S=a.reference[y]+a.reference[m]-p[m]-a.floating[y],b=p[m]-a.reference[m],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c)),P=R?R[C]:0;(!P||!await(s.isElement==null?void 0:s.isElement(R)))&&(P=i.floating[C]||a.floating[y]);let M=S/2-b/2,T=P/2-g[y]/2-1,_=Un(f[x],T),B=Un(f[w],T),k=_,N=P-g[y]-B,I=P/2-g[y]/2+M,A=_h(k,I,N),L=!u.arrow&&Ii(n)!=null&&I!==A&&a.reference[y]/2-(I<k?_:B)-g[y]/2<0,D=L?I<k?I-k:I-N:0;return{[m]:p[m]+D,data:{[m]:A,centerOffset:I-A-D,...L&&{alignmentOffset:D}},reset:L}}});var TT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;let{placement:n,middlewareData:a,rects:s,initialPlacement:i,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...v}=zn(e,t);if((o=a.arrow)!=null&&o.alignmentOffset)return{};let x=qn(n),w=va(i),C=qn(i)===i,S=await(u.isRTL==null?void 0:u.isRTL(c.floating)),b=p||(C||!g?[Fd(i)]:bT(i)),R=y!=="none";!p&&R&&b.push(...IT(i,g,y,S));let P=[i,...b],M=await Cu(t,v),T=[],_=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&T.push(M[x]),f){let I=ST(n,s,S);T.push(M[I[0]],M[I[1]])}if(_=[..._,{placement:n,overflows:T}],!T.every(I=>I<=0)){var B,k;let I=(((B=a.flip)==null?void 0:B.index)||0)+1,A=P[I];if(A)return{data:{index:I,overflows:_},reset:{placement:A}};let L=(k=_.filter(D=>D.overflows[0]<=0).sort((D,O)=>D.overflows[1]-O.overflows[1])[0])==null?void 0:k.placement;if(!L)switch(m){case"bestFit":{var N;let D=(N=_.filter(O=>{if(R){let E=va(O.placement);return E===w||E==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(E=>E>0).reduce((E,H)=>E+H,0)]).sort((O,E)=>O[1]-E[1])[0])==null?void 0:N[0];D&&(L=D);break}case"initialPlacement":L=i;break}if(n!==L)return{reset:{placement:L}}}return{}}}};function PT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function LT(e){return CT.some(t=>e[t]>=0)}var DT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:o}=t,{strategy:r="referenceHidden",...n}=zn(e,t);switch(r){case"referenceHidden":{let a=await Cu(t,{...n,elementContext:"reference"}),s=PT(a,o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:LT(s)}}}case"escaped":{let a=await Cu(t,{...n,altBoundary:!0}),s=PT(a,o.floating);return{data:{escapedOffsets:s,escaped:LT(s)}}}default:return{}}}}};async function KG(e,t){let{placement:o,platform:r,elements:n}=e,a=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=qn(o),i=Ii(o),u=va(o)==="y",c=["left","top"].includes(s)?-1:1,d=a&&u?-1:1,f=zn(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof y=="number"&&(m=i==="end"?y*-1:y),u?{x:m*d,y:p*c}:{x:p*c,y:m*d}}var AT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;let{x:n,y:a,placement:s,middlewareData:i}=t,u=await KG(t,e);return s===((o=i.offset)==null?void 0:o.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:n+u.x,y:a+u.y,data:{...u,placement:s}}}}},kT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:r,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:v=>{let{x,y:w}=v;return{x,y:w}}},...u}=zn(e,t),c={x:o,y:r},d=await Cu(t,u),f=va(qn(n)),p=Fh(f),m=c[p],y=c[f];if(a){let v=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=m+d[v],C=m-d[x];m=_h(w,m,C)}if(s){let v=f==="y"?"top":"left",x=f==="y"?"bottom":"right",w=y+d[v],C=y-d[x];y=_h(w,y,C)}let g=i.fn({...t,[p]:m,[f]:y});return{...g,data:{x:g.x-o,y:g.y-r,enabled:{[p]:a,[f]:s}}}}}},OT=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:o,y:r,placement:n,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:u=!0,crossAxis:c=!0}=zn(e,t),d={x:o,y:r},f=va(n),p=Fh(f),m=d[p],y=d[f],g=zn(i,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){let C=p==="y"?"height":"width",S=a.reference[p]-a.floating[C]+v.mainAxis,b=a.reference[p]+a.reference[C]-v.mainAxis;m<S?m=S:m>b&&(m=b)}if(c){var x,w;let C=p==="y"?"width":"height",S=["top","left"].includes(qn(n)),b=a.reference[f]-a.floating[C]+(S&&((x=s.offset)==null?void 0:x[f])||0)+(S?0:v.crossAxis),R=a.reference[f]+a.reference[C]+(S?0:((w=s.offset)==null?void 0:w[f])||0)-(S?v.crossAxis:0);y<b?y=b:y>R&&(y=R)}return{[p]:m,[f]:y}}}},NT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,r;let{placement:n,rects:a,platform:s,elements:i}=t,{apply:u=()=>{},...c}=zn(e,t),d=await Cu(t,c),f=qn(n),p=Ii(n),m=va(n)==="y",{width:y,height:g}=a.floating,v,x;f==="top"||f==="bottom"?(v=f,x=p===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(x=f,v=p==="end"?"top":"bottom");let w=g-d.top-d.bottom,C=y-d.left-d.right,S=Un(g-d[v],w),b=Un(y-d[x],C),R=!t.middlewareData.shift,P=S,M=b;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(M=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=w),R&&!p){let _=Ko(d.left,0),B=Ko(d.right,0),k=Ko(d.top,0),N=Ko(d.bottom,0);m?M=y-2*(_!==0||B!==0?_+B:Ko(d.left,d.right)):P=g-2*(k!==0||N!==0?k+N:Ko(d.top,d.bottom))}await u({...t,availableWidth:M,availableHeight:P});let T=await s.getDimensions(i.floating);return y!==T.width||g!==T.height?{reset:{rects:!0}}:{}}}};l();function Hh(){return typeof window<"u"}function Li(e){return FT(e)?(e.nodeName||"").toLowerCase():"#document"}function ur(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mn(e){var t;return(t=(FT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function FT(e){return Hh()?e instanceof Node||e instanceof ur(e).Node:!1}function $r(e){return Hh()?e instanceof Element||e instanceof ur(e).Element:!1}function hn(e){return Hh()?e instanceof HTMLElement||e instanceof ur(e).HTMLElement:!1}function _T(e){return!Hh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ur(e).ShadowRoot}function Su(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=Gr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(n)}function BT(e){return["table","td","th"].includes(Li(e))}function Hd(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Uh(e){let t=zh(),o=$r(e)?Gr(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 VT(e){let t=wa(e);for(;hn(t)&&!Mi(t);){if(Uh(t))return t;if(Hd(t))return null;t=wa(t)}return null}function zh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mi(e){return["html","body","#document"].includes(Li(e))}function Gr(e){return ur(e).getComputedStyle(e)}function Ud(e){return $r(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wa(e){if(Li(e)==="html")return e;let t=e.assignedSlot||e.parentNode||_T(e)&&e.host||mn(e);return _T(t)?t.host:t}function HT(e){let t=wa(e);return Mi(t)?e.ownerDocument?e.ownerDocument.body:e.body:hn(t)&&Su(t)?t:HT(t)}function Pi(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=HT(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),s=ur(n);if(a){let i=qh(s);return t.concat(s,s.visualViewport||[],Su(n)?n:[],i&&o?Pi(i):[])}return t.concat(n,Pi(n,[],o))}function qh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qT(e){let t=Gr(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=hn(e),a=n?e.offsetWidth:o,s=n?e.offsetHeight:r,i=Bd(o)!==a||Bd(r)!==s;return i&&(o=a,r=s),{width:o,height:r,$:i}}function aC(e){return $r(e)?e:e.contextElement}function bu(e){let t=aC(e);if(!hn(t))return pn(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:a}=qT(t),s=(a?Bd(o.width):o.width)/r,i=(a?Bd(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}var YG=pn(0);function WT(e){let t=ur(e);return!zh()||!t.visualViewport?YG:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function XG(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==ur(e)?!1:t}function Ei(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),a=aC(e),s=pn(1);t&&(r?$r(r)&&(s=bu(r)):s=bu(e));let i=XG(a,o,r)?WT(a):pn(0),u=(n.left+i.x)/s.x,c=(n.top+i.y)/s.y,d=n.width/s.x,f=n.height/s.y;if(a){let p=ur(a),m=r&&$r(r)?ur(r):r,y=p,g=qh(y);for(;g&&r&&m!==y;){let v=bu(g),x=g.getBoundingClientRect(),w=Gr(g),C=x.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,S=x.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;u*=v.x,c*=v.y,d*=v.x,f*=v.y,u+=C,c+=S,y=ur(g),g=qh(y)}}return Ri({width:d,height:f,x:u,y:c})}function sC(e,t){let o=Ud(e).scrollLeft;return t?t.left+o:Ei(mn(e)).left+o}function $T(e,t,o){o===void 0&&(o=!1);let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-(o?0:sC(e,r)),a=r.top+t.scrollTop;return{x:n,y:a}}function QG(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,a=n==="fixed",s=mn(r),i=t?Hd(t.floating):!1;if(r===s||i&&a)return o;let u={scrollLeft:0,scrollTop:0},c=pn(1),d=pn(0),f=hn(r);if((f||!f&&!a)&&((Li(r)!=="body"||Su(s))&&(u=Ud(r)),hn(r))){let m=Ei(r);c=bu(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}let p=s&&!f&&!a?$T(s,u,!0):pn(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 ZG(e){return Array.from(e.getClientRects())}function JG(e){let t=mn(e),o=Ud(e),r=e.ownerDocument.body,n=Ko(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ko(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-o.scrollLeft+sC(e),i=-o.scrollTop;return Gr(r).direction==="rtl"&&(s+=Ko(t.clientWidth,r.clientWidth)-n),{width:n,height:a,x:s,y:i}}function e4(e,t){let o=ur(e),r=mn(e),n=o.visualViewport,a=r.clientWidth,s=r.clientHeight,i=0,u=0;if(n){a=n.width,s=n.height;let c=zh();(!c||c&&t==="fixed")&&(i=n.offsetLeft,u=n.offsetTop)}return{width:a,height:s,x:i,y:u}}function t4(e,t){let o=Ei(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,a=hn(e)?bu(e):pn(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,u=n*a.x,c=r*a.y;return{width:s,height:i,x:u,y:c}}function UT(e,t,o){let r;if(t==="viewport")r=e4(e,o);else if(t==="document")r=JG(mn(e));else if($r(t))r=t4(t,o);else{let n=WT(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ri(r)}function GT(e,t){let o=wa(e);return o===t||!$r(o)||Mi(o)?!1:Gr(o).position==="fixed"||GT(o,t)}function o4(e,t){let o=t.get(e);if(o)return o;let r=Pi(e,[],!1).filter(i=>$r(i)&&Li(i)!=="body"),n=null,a=Gr(e).position==="fixed",s=a?wa(e):e;for(;$r(s)&&!Mi(s);){let i=Gr(s),u=Uh(s);!u&&i.position==="fixed"&&(n=null),(a?!u&&!n:!u&&i.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Su(s)&&!u&&GT(e,s))?r=r.filter(d=>d!==s):n=i,s=wa(s)}return t.set(e,r),r}function r4(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,s=[...o==="clippingAncestors"?Hd(t)?[]:o4(t,this._c):[].concat(o),r],i=s[0],u=s.reduce((c,d)=>{let f=UT(t,d,n);return c.top=Ko(f.top,c.top),c.right=Un(f.right,c.right),c.bottom=Un(f.bottom,c.bottom),c.left=Ko(f.left,c.left),c},UT(t,i,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function n4(e){let{width:t,height:o}=qT(e);return{width:t,height:o}}function a4(e,t,o){let r=hn(t),n=mn(t),a=o==="fixed",s=Ei(e,!0,a,t),i={scrollLeft:0,scrollTop:0},u=pn(0);if(r||!r&&!a)if((Li(t)!=="body"||Su(n))&&(i=Ud(t)),r){let p=Ei(t,!0,a,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else n&&(u.x=sC(n));let c=n&&!r&&!a?$T(n,i):pn(0),d=s.left+i.scrollLeft-u.x-c.x,f=s.top+i.scrollTop-u.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function nC(e){return Gr(e).position==="static"}function zT(e,t){if(!hn(e)||Gr(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return mn(e)===o&&(o=o.ownerDocument.body),o}function jT(e,t){let o=ur(e);if(Hd(e))return o;if(!hn(e)){let n=wa(e);for(;n&&!Mi(n);){if($r(n)&&!nC(n))return n;n=wa(n)}return o}let r=zT(e,t);for(;r&&BT(r)&&nC(r);)r=zT(r,t);return r&&Mi(r)&&nC(r)&&!Uh(r)?o:r||VT(e)||o}var s4=async function(e){let t=this.getOffsetParent||jT,o=this.getDimensions,r=await o(e.floating);return{reference:a4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function i4(e){return Gr(e).direction==="rtl"}var KT={convertOffsetParentRelativeRectToViewportRelativeRect:QG,getDocumentElement:mn,getClippingRect:r4,getOffsetParent:jT,getElementRects:s4,getClientRects:ZG,getDimensions:n4,getScale:bu,isElement:$r,isRTL:i4};function YT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function l4(e,t){let o=null,r,n=mn(e);function a(){var i;clearTimeout(r),(i=o)==null||i.disconnect(),o=null}function s(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),a();let c=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=c;if(i||t(),!p||!m)return;let y=Vd(f),g=Vd(n.clientWidth-(d+p)),v=Vd(n.clientHeight-(f+m)),x=Vd(d),C={rootMargin:-y+"px "+-g+"px "+-v+"px "+-x+"px",threshold:Ko(0,Un(1,u))||1},S=!0;function b(R){let P=R[0].intersectionRatio;if(P!==u){if(!S)return s();P?s(!1,P):r=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!YT(c,e.getBoundingClientRect())&&s(),S=!1}try{o=new IntersectionObserver(b,{...C,root:n.ownerDocument})}catch{o=new IntersectionObserver(b,C)}o.observe(e)}return s(!0),a}function zd(e,t,o,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=aC(e),d=n||a?[...c?Pi(c):[],...Pi(t)]:[];d.forEach(x=>{n&&x.addEventListener("scroll",o,{passive:!0}),a&&x.addEventListener("resize",o)});let f=c&&i?l4(c,o):null,p=-1,m=null;s&&(m=new ResizeObserver(x=>{let[w]=x;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 y,g=u?Ei(e):null;u&&v();function v(){let x=Ei(e);g&&!YT(g,x)&&o(),g=x,y=requestAnimationFrame(v)}return o(),()=>{var x;d.forEach(w=>{n&&w.removeEventListener("scroll",o),a&&w.removeEventListener("resize",o)}),f?.(),(x=m)==null||x.disconnect(),m=null,u&&cancelAnimationFrame(y)}}var XT=AT;var QT=kT,ZT=TT,JT=NT,eD=DT,iC=ET;var tD=OT,lC=(e,t,o)=>{let r=new Map,n={platform:KT,...o},a={...n.platform,_c:r};return MT(e,t,{...n,platform:a})};var Wt=$(require("react"),1),Gh=require("react"),rD=$(require("react-dom"),1),Wh=typeof document<"u"?Gh.useLayoutEffect:Gh.useEffect;function $h(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(!$h(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)&&!$h(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function nD(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function oD(e,t){let o=nD(e);return Math.round(t*o)/o}function uC(e){let t=Wt.useRef(e);return Wh(()=>{t.current=e}),t}function jh(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:r=[],platform:n,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:u,open:c}=e,[d,f]=Wt.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=Wt.useState(r);$h(p,r)||m(r);let[y,g]=Wt.useState(null),[v,x]=Wt.useState(null),w=Wt.useCallback(O=>{O!==R.current&&(R.current=O,g(O))},[]),C=Wt.useCallback(O=>{O!==P.current&&(P.current=O,x(O))},[]),S=a||y,b=s||v,R=Wt.useRef(null),P=Wt.useRef(null),M=Wt.useRef(d),T=u!=null,_=uC(u),B=uC(n),k=uC(c),N=Wt.useCallback(()=>{if(!R.current||!P.current)return;let O={placement:t,strategy:o,middleware:p};B.current&&(O.platform=B.current),lC(R.current,P.current,O).then(E=>{let H={...E,isPositioned:k.current!==!1};I.current&&!$h(M.current,H)&&(M.current=H,rD.flushSync(()=>{f(H)}))})},[p,t,o,B,k]);Wh(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,f(O=>({...O,isPositioned:!1})))},[c]);let I=Wt.useRef(!1);Wh(()=>(I.current=!0,()=>{I.current=!1}),[]),Wh(()=>{if(S&&(R.current=S),b&&(P.current=b),S&&b){if(_.current)return _.current(S,b,N);N()}},[S,b,N,_,T]);let A=Wt.useMemo(()=>({reference:R,floating:P,setReference:w,setFloating:C}),[w,C]),L=Wt.useMemo(()=>({reference:S,floating:b}),[S,b]),D=Wt.useMemo(()=>{let O={position:o,left:0,top:0};if(!L.floating)return O;let E=oD(L.floating,d.x),H=oD(L.floating,d.y);return i?{...O,transform:"translate("+E+"px, "+H+"px)",...nD(L.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:E,top:H}},[o,i,L.floating,d.x,d.y]);return Wt.useMemo(()=>({...d,update:N,refs:A,elements:L,floatingStyles:D}),[d,N,A,L,D])}var u4=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?iC({element:r.current,padding:n}).fn(o):{}:r?iC({element:r,padding:n}).fn(o):{}}}},Kh=(e,t)=>({...XT(e),options:[e,t]}),Yh=(e,t)=>({...QT(e),options:[e,t]}),Xh=(e,t)=>({...tD(e),options:[e,t]}),Qh=(e,t)=>({...ZT(e),options:[e,t]}),Zh=(e,t)=>({...JT(e),options:[e,t]});var Jh=(e,t)=>({...eD(e),options:[e,t]});var eg=(e,t)=>({...u4(e),options:[e,t]});l();var aD=$(require("react"),1);var cC=require("react/jsx-runtime"),c4="Arrow",sD=aD.forwardRef((e,t)=>{let{children:o,width:r=10,height:n=5,...a}=e;return(0,cC.jsx)(xe.svg,{...a,ref:t,width:r,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:(0,cC.jsx)("polygon",{points:"0,0 30,0 15,10"})})});sD.displayName=c4;var iD=sD;l();var lD=$(require("react"),1);function tg(e){let[t,o]=lD.useState(void 0);return _t(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;let a=n[0],s,i;if("borderBoxSize"in a){let u=a.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;o({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else o(void 0)},[e]),t}var vs=require("react/jsx-runtime");var dC="Popper",[uD,Ca]=go(dC),[f4,cD]=uD(dC),dD=e=>{let{__scopePopper:t,children:o}=e,[r,n]=Lr.useState(null);return(0,vs.jsx)(f4,{scope:t,anchor:r,onAnchorChange:n,children:o})};dD.displayName=dC;var fD="PopperAnchor",pD=Lr.forwardRef((e,t)=>{let{__scopePopper:o,virtualRef:r,...n}=e,a=cD(fD,o),s=Lr.useRef(null),i=Ae(t,s);return Lr.useEffect(()=>{a.onAnchorChange(r?.current||s.current)}),r?null:(0,vs.jsx)(xe.div,{...n,ref:i})});pD.displayName=fD;var fC="PopperContent",[p4,m4]=uD(fC),mD=Lr.forwardRef((e,t)=>{let{__scopePopper:o,side:r="bottom",sideOffset:n=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:y,...g}=e,v=cD(fC,o),[x,w]=Lr.useState(null),C=Ae(t,q=>w(q)),[S,b]=Lr.useState(null),R=tg(S),P=R?.width??0,M=R?.height??0,T=r+(a!=="center"?"-"+a:""),_=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},B=Array.isArray(c)?c:[c],k=B.length>0,N={padding:_,boundary:B.filter(g4),altBoundary:k},{refs:I,floatingStyles:A,placement:L,isPositioned:D,middlewareData:O}=jh({strategy:"fixed",placement:T,whileElementsMounted:(...q)=>zd(...q,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[Kh({mainAxis:n+M,alignmentAxis:s}),u&&Yh({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Xh():void 0,...N}),u&&Qh({...N}),Zh({...N,apply:({elements:q,rects:X,availableWidth:J,availableHeight:Q})=>{let{width:ae,height:se}=X.reference,ye=q.floating.style;ye.setProperty("--radix-popper-available-width",`${J}px`),ye.setProperty("--radix-popper-available-height",`${Q}px`),ye.setProperty("--radix-popper-anchor-width",`${ae}px`),ye.setProperty("--radix-popper-anchor-height",`${se}px`)}}),S&&eg({element:S,padding:i}),y4({arrowWidth:P,arrowHeight:M}),p&&Jh({strategy:"referenceHidden",...N})]}),[E,H]=yD(L),V=bt(y);_t(()=>{D&&V?.()},[D,V]);let z=O.arrow?.x,j=O.arrow?.y,Y=O.arrow?.centerOffset!==0,[U,W]=Lr.useState();return _t(()=>{x&&W(window.getComputedStyle(x).zIndex)},[x]),(0,vs.jsx)("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:D?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[O.transformOrigin?.x,O.transformOrigin?.y].join(" "),...O.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,vs.jsx)(p4,{scope:o,placedSide:E,onArrowChange:b,arrowX:z,arrowY:j,shouldHideArrow:Y,children:(0,vs.jsx)(xe.div,{"data-side":E,"data-align":H,...g,ref:C,style:{...g.style,animation:D?void 0:"none"}})})})});mD.displayName=fC;var hD="PopperArrow",h4={top:"bottom",right:"left",bottom:"top",left:"right"},gD=Lr.forwardRef(function(t,o){let{__scopePopper:r,...n}=t,a=m4(hD,r),s=h4[a.placedSide];return(0,vs.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,vs.jsx)(iD,{...n,ref:o,style:{...n.style,display:"block"}})})});gD.displayName=hD;function g4(e){return e!==null}var y4=e=>({name:"transformOrigin",options:e,fn(t){let{placement:o,rects:r,middlewareData:n}=t,s=n.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[c,d]=yD(o),f={start:"0%",center:"50%",end:"100%"}[d],p=(n.arrow?.x??0)+i/2,m=(n.arrow?.y??0)+u/2,y="",g="";return c==="bottom"?(y=s?f:`${p}px`,g=`${-u}px`):c==="top"?(y=s?f:`${p}px`,g=`${r.floating.height+u}px`):c==="right"?(y=`${-u}px`,g=s?f:`${m}px`):c==="left"&&(y=`${r.floating.width+u}px`,g=s?f:`${m}px`),{data:{x:y,y:g}}}});function yD(e){let[t,o="center"]=e.split("-");return[t,o]}var Ti=dD,Di=pD,Iu=mD,Ru=gD;l();var og=$(require("react"),1),xD=$(require("react-dom"),1);var vD=require("react/jsx-runtime"),x4="Portal",Ai=og.forwardRef((e,t)=>{let{container:o,...r}=e,[n,a]=og.useState(!1);_t(()=>a(!0),[]);let s=o||n&&globalThis?.document?.body;return s?xD.default.createPortal((0,vD.jsx)(xe.div,{...r,ref:t}),s):null});Ai.displayName=x4;l();var ws=$(require("react"),1);function Mr({prop:e,defaultProp:t,onChange:o=()=>{}}){let[r,n]=v4({defaultProp:t,onChange:o}),a=e!==void 0,s=a?e:r,i=bt(o),u=ws.useCallback(c=>{if(a){let f=typeof c=="function"?c(e):c;f!==e&&i(f)}else n(c)},[a,e,n,i]);return[s,u]}function v4({defaultProp:e,onChange:t}){let o=ws.useState(e),[r]=o,n=ws.useRef(r),a=bt(t);return ws.useEffect(()=>{n.current!==r&&(a(r),n.current=r)},[r,n,a]),o}l();var rg=$(require("react"),1);function ng(e){let t=rg.useRef({value:e,previous:e});return rg.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}l();var wD=$(require("react"),1);var CD=require("react/jsx-runtime"),w4="VisuallyHidden",mC=wD.forwardRef((e,t)=>(0,CD.jsx)(xe.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}}));mC.displayName=w4;l();var C4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Pu=new WeakMap,ag=new WeakMap,sg={},hC=0,SD=function(e){return e&&(e.host||SD(e.parentNode))},S4=function(e,t){return t.map(function(o){if(e.contains(o))return o;var r=SD(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})},b4=function(e,t,o,r){var n=S4(t,Array.isArray(e)?e:[e]);sg[o]||(sg[o]=new WeakMap);var a=sg[o],s=[],i=new Set,u=new Set(n),c=function(f){!f||i.has(f)||(i.add(f),c(f.parentNode))};n.forEach(c);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(p){if(i.has(p))d(p);else try{var m=p.getAttribute(r),y=m!==null&&m!=="false",g=(Pu.get(p)||0)+1,v=(a.get(p)||0)+1;Pu.set(p,g),a.set(p,v),s.push(p),g===1&&y&&ag.set(p,!0),v===1&&p.setAttribute(o,"true"),y||p.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",p,x)}})};return d(t),i.clear(),hC++,function(){s.forEach(function(f){var p=Pu.get(f)-1,m=a.get(f)-1;Pu.set(f,p),a.set(f,m),p||(ag.has(f)||f.removeAttribute(r),ag.delete(f)),m||f.removeAttribute(o)}),hC--,hC||(Pu=new WeakMap,Pu=new WeakMap,ag=new WeakMap,sg={})}},Lu=function(e,t,o){o===void 0&&(o="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),n=t||C4(e);return n?(r.push.apply(r,Array.from(n.querySelectorAll("[aria-live]"))),b4(r,n,o,"aria-hidden")):function(){return null}};l();l();l();var cr=function(){return cr=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},cr.apply(this,arguments)};function ig(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 bD(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))}var fg=$(require("react"));l();var _o=$(require("react"));l();var ki="right-scroll-bar-position",Oi="width-before-scroll-bar",gC="with-scroll-bars-hidden",yC="--removed-body-scroll-bar-size";l();l();function lg(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}l();var ID=require("react");function RD(e,t){var o=(0,ID.useState)(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();var ug=$(require("react"));var I4=typeof window<"u"?ug.useLayoutEffect:ug.useEffect,PD=new WeakMap;function xC(e,t){var o=RD(t||null,function(r){return e.forEach(function(n){return lg(n,r)})});return I4(function(){var r=PD.get(o);if(r){var n=new Set(r),a=new Set(e),s=o.current;n.forEach(function(i){a.has(i)||lg(i,null)}),a.forEach(function(i){n.has(i)||lg(i,s)})}PD.set(o,e)},[e]),o}l();l();l();function R4(e){return e}function P4(e,t){t===void 0&&(t=R4);var o=[],r=!1,n={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:e},useMedium:function(a){var s=t(a,r);return o.push(s),function(){o=o.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;o.length;){var s=o;o=[],s.forEach(a)}o={push:function(i){return a(i)},filter:function(){return o}}},assignMedium:function(a){r=!0;var s=[];if(o.length){var i=o;o=[],i.forEach(a),s=o}var u=function(){var d=s;s=[],d.forEach(a)},c=function(){return Promise.resolve().then(u)};c(),o={push:function(d){s.push(d),c()},filter:function(d){return s=s.filter(d),o}}}};return n}function vC(e){e===void 0&&(e={});var t=P4(null);return t.options=cr({async:!0,ssr:!1},e),t}l();var LD=$(require("react")),MD=function(e){var t=e.sideCar,o=ig(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,cr({},o))};MD.isSideCarExport=!0;function wC(e,t){return e.useMedium(t),MD}var cg=vC();var CC=function(){},qd=_o.forwardRef(function(e,t){var o=_o.useRef(null),r=_o.useState({onScrollCapture:CC,onWheelCapture:CC,onTouchMoveCapture:CC}),n=r[0],a=r[1],s=e.forwardProps,i=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,y=e.inert,g=e.allowPinchZoom,v=e.as,x=v===void 0?"div":v,w=e.gapMode,C=ig(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,b=xC([o,t]),R=cr(cr({},C),n);return _o.createElement(_o.Fragment,null,d&&_o.createElement(S,{sideCar:cg,removeScrollBar:c,shards:f,noIsolation:m,inert:y,setCallbacks:a,allowPinchZoom:!!g,lockRef:o,gapMode:w}),s?_o.cloneElement(_o.Children.only(i),cr(cr({},R),{ref:b})):_o.createElement(x,cr({},R,{className:u,ref:b}),i))});qd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};qd.classNames={fullWidth:Oi,zeroRight:ki};l();l();var mt=$(require("react"));l();l();var Eu=$(require("react"));l();l();l();var DD=$(require("react"));l();l();var ED;var TD=function(){if(ED)return ED;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function L4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=TD();return t&&e.setAttribute("nonce",t),e}function M4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function E4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var SC=function(){var e=0,t=null;return{add:function(o){e==0&&(t=L4())&&(M4(t,o),E4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var bC=function(){var e=SC();return function(t,o){DD.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])}};var Wd=function(){var e=bC(),t=function(o){var r=o.styles,n=o.dynamic;return e(r,n),null};return t};l();var T4={left:0,top:0,right:0,gap:0},IC=function(e){return parseInt(e||"",10)||0},D4=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[IC(o),IC(r),IC(n)]},RC=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return T4;var t=D4(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 A4=Wd(),Mu="data-scroll-locked",k4=function(e,t,o,r){var n=e.left,a=e.top,s=e.right,i=e.gap;return o===void 0&&(o="margin"),`
11
11
  .`.concat(gC,` {
12
12
  overflow: hidden `).concat(r,`;
13
13
  padding-right: `).concat(i,"px ").concat(r,`;