intlayer-editor 9.5.11 → 9.5.12

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.
@@ -0,0 +1,41 @@
1
+ import{r as e,t}from"./rolldown-runtime-hePW80VL.js";import{t as n}from"./react-Cvdyeg_0.js";import{n as r,t as i}from"./dist-CcmWBeAo.js";var a=t((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return l(e,t,null,n)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.0`})),o=t(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=a()})),s={locales:[`en`,`en-GB`,`fr`,`es`,`de`,`ja`,`ko`,`zh`,`it`,`pt`,`hi`,`ar`,`ru`],requiredLocales:[`en`,`en-GB`,`fr`,`es`,`de`,`ja`,`ko`,`zh`,`it`,`pt`,`hi`,`ar`,`ru`],strictMode:`strict`,defaultLocale:`en`},c={mode:`prefix-no-default`,storage:{cookies:[{name:`INTLAYER_LOCALE`,attributes:{path:`/`}}],headers:[{name:`x-intlayer-locale`}]},basePath:``},l={editorURL:`http://localhost:8000`,cmsURL:`https://app.intlayer.org`,backendURL:`https://back.intlayer.org`,port:8e3,enabled:!1,dictionaryPriorityStrategy:`local_first`,liveSync:!1,liveSyncPort:4e3,liveSyncURL:`http://localhost:4000`},u=e=>{if(typeof e==`number`)return Date.now()+e*1e3;if(typeof e==`string`){let t=Date.parse(e);return Number.isNaN(t)?void 0:t}},d=(e,t,n)=>{let r=[`${e}=${encodeURIComponent(t)}`];n.path&&r.push(`Path=${n.path}`),n.domain&&r.push(`Domain=${n.domain}`);let i=u(n.expires);return i!==void 0&&r.push(`Expires=${new Date(i).toUTCString()}`),n.secure&&r.push(`Secure`),n.sameSite&&r.push(`SameSite=${n.sameSite}`),r.join(`; `)},f={}.INTLAYER_ROUTING_STORAGE_COOKIES===`false`;({}).INTLAYER_ROUTING_STORAGE_HEADERS;var p={getCookie:e=>document.cookie.split(`;`).find(t=>t.trim().startsWith(`${e}=`))?.split(`=`)[1],getLocaleStorage:e=>localStorage.getItem(e),getSessionStorage:e=>sessionStorage.getItem(e),isCookieEnabled:!0,setCookieStore:(e,t,n)=>cookieStore.set({name:e,value:t,path:n.path,domain:n.domain,expires:n.expires,sameSite:n.sameSite}),setCookieString:(e,t)=>{document.cookie=t},setSessionStorage:(e,t)=>sessionStorage.setItem(e,t),setLocaleStorage:(e,t)=>localStorage.setItem(e,t)},m=(e=p)=>{let{locales:t}=s;if(e?.isCookieEnabled===!1)return;let n=e=>!!e&&t.includes(e);if(!f)for(let t=0;t<(c.storage.cookies??[]).length;t++)try{let r=e?.getCookie?.(c.storage.cookies[t].name);if(n(r))return r}catch{}},h=!1,g,_=()=>typeof window>`u`?m(p):(h||=(g=m(p),!0),g),v=(e,t)=>{if(t?.isCookieEnabled!==!1&&(h=!1,!f&&c.storage.cookies))for(let n=0;n<c.storage.cookies.length;n++){let{name:r,attributes:i}=c.storage.cookies[n];try{t?.setCookieStore&&t.setCookieStore(r,e,{...i,expires:u(i.expires)})}catch{try{t?.setCookieString&&t.setCookieString(r,d(r,e,i))}catch{}}}},y=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e),b=new Map,x=(e,t)=>Object.create(new Proxy(e,{get:(e,t,n)=>{if(typeof t!=`string`||t===`constructor`||t in e)return Reflect.get(e,t,n);let{value:r}=n;if(r==null)return;let i=Object(r)[t];return typeof i==`function`?i.bind(r):i},has:(e,n)=>n in e||typeof n==`string`&&n!==`constructor`&&t!==null&&n in t}),{toString:{value(){return String(this.value??``)}},valueOf:{value(){return this.value}},[Symbol.toPrimitive]:{value(){return this.value??``}}}),S=(e,t=Object.prototype)=>{let n=typeof e,r=e==null?null:n===`object`||n===`function`?Object.getPrototypeOf(e):n,i=b.get(t);i||(i=new Map,b.set(t,i));let a=i.get(r);return a||(a=x(t,r===null?null:Object.getPrototypeOf(Object(e))),i.set(r,a)),a},C=e(n(),1),w=r(),T=({children:e,value:t,additionalProps:n})=>Object.setPrototypeOf({...(0,C.isValidElement)(e)?e:(0,w.jsx)(w.Fragment,{children:e}),value:t,...n},S(t)),E=new WeakMap,D=0,O=e=>{if(!e)return`base`;let t=E.get(e);if(t)return t;D+=1;let n=`p${D}`;return E.set(e,n),n},k=256,A=new WeakMap,j=e=>typeof e==`object`&&!!e,ee=(e,t,n)=>`${e}_${t}_${O(n)}`,M=(e,t)=>{if(!j(e))return{hit:!1};let n=A.get(e);return n?.has(t)?{hit:!0,content:n.get(t)}:{hit:!1}},te=(e,t,n)=>{if(!j(e))return n;let r=A.get(e);return r||(r=new Map,A.set(e,r)),r.size>=k&&r.clear(),r.set(t,n),n},ne=(e,t)=>{let n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},N=`translation`,re=`enumeration`,ie=`plural`,ae=`condition`,oe=`insertion`,se=`file`,ce=`object`,le=`array`,ue=`nested`,de=`reactNode`,fe=`preactNode`,pe=`solidNode`,me=`markdown`,he=`html`,ge=`text`,_e=`number`,ve=`boolean`,ye=`gender`,be=`select`,xe=`null`,Se=`unknown`,Ce=(e,t,n)=>({...e,children:t,keyPath:[...e.keyPath,n]}),we=(e,t)=>{for(let n of t.plugins??[])if(n.canHandle(e))return n.transform(e,t,we);if(typeof e!=`object`||!e||e.$$typeof!==void 0||e.__v_isVNode!==void 0||e._isVNode!==void 0||e.isJSX!==void 0)return e;if(Array.isArray(e))return e.map((e,n)=>we(e,Ce(t,e,{type:le,key:n})));let n={};for(let r in e){let i={type:ce,key:r};if(t.eager){n[r]=we(e[r],Ce(t,e[r],i));continue}Object.defineProperty(n,r,{enumerable:!0,configurable:!0,get:function(){let n=we(e[r],Ce(t,e[r],i));return Object.defineProperty(this,r,{value:n,enumerable:!0,configurable:!0}),n}})}return n},Te=(e,t)=>e.replace(/\{\{\s*(.*?)\s*\}\}/g,(e,n)=>(t[n.trim()]??``).toString()),Ee=e=>{let t=globalThis;return t[e]??=new Set,t[e]},De=()=>Ee(Symbol.for(`intlayer.ambientLocaleResolvers`)),Oe=()=>{for(let e of De())try{let t=e();if(t)return t}catch{}},ke=e=>e??Oe()??(typeof window>`u`?void 0:_())??s.defaultLocale,Ae=()=>({}),je=(e,t,n)=>{let r=Ae()[e];return tt(r,t,n)},Me=e=>{if(typeof e!=`object`||!e||typeof e.then==`function`||e.$$typeof!==void 0||e.__v_isVNode!==void 0||e._isVNode!==void 0||e.isJSX!==void 0)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Array.isArray(e)},Ne=(e,t)=>{if(e===void 0)return t;if(t===void 0||Array.isArray(e)||!Me(e)||!Me(t))return e;let n=e;for(let r of Object.keys(t)){let i=t[r];if(r===`__proto__`||r===`constructor`||i===void 0)continue;let a=e[r],o=a===void 0?i:typeof a==`object`?Ne(a,i):a;o!==a&&(n===e&&(n={...e}),n[r]=o)}return n},Pe=(e,t,n)=>{let r=t=>e[t],i=r(t);if(typeof i==`string`)return i;let a=[t,t.split(`-`)[0],n,n?.split(`-`)[0]],o=[];for(let e=0;e<a.length;e++){let t=a[e];if(!t||a.indexOf(t)<e)continue;let n=r(t);if(n!==void 0){if(typeof n==`string`){if(o.length===0)return n;continue}o.push(n)}}if(o.length!==0)return o.length===1||Array.isArray(o[0])?o[0]:o.reduce((e,t)=>Ne(e,t))},Fe=e=>{if(typeof e!=`object`||!e||!(`nodeType`in e))return!1;let{nodeType:t}=e;return!1},Ie=e=>{if(typeof e==`string`)return e;if(Fe(e))return e.nodeType===`html`?e[he]:e[me]},Le=(e,t)=>{if(typeof e==`string`)return t;if(Fe(e)){let n=e.nodeType===`html`?he:me;return{...e,[n]:t}}return e},Re=(e,t,n,r,i)=>{let a=Le(e,Te(Ie(e),t));return i(a,{...n,plugins:r,children:a})},P={id:`fallback-plugin`,canHandle:()=>!1,transform:e=>e},ze=e=>{if(typeof e!=`function`)return!1;let{value:t}=e;return t===void 0||typeof t==`function`},Be=(e,t)=>({}).INTLAYER_NODE_TYPE_TRANSLATION===`false`?P:{id:`translation-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===`translation`,transform:(n,r,i)=>{let a=Pe(n.translation??{},e,t);return i(a,{...r,children:a,keyPath:[...r.keyPath,{type:N,key:e}]})}},Ve=P,He=e=>P,Ue={}.INTLAYER_NODE_TYPE_CONDITION===`false`?P:{id:`condition-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===`condition`,transform:(e,t,n)=>{let r=e[ae],i={};for(let e in r){let a=r[e];i[e]=n(a,{...t,children:a,keyPath:[...t.keyPath,{type:ae,key:e}]})}return e=>{let t=typeof e==`boolean`?e:e.value,n=ne(i,t);return ze(n)&&typeof e==`object`?n(e):n}}},We={}.INTLAYER_NODE_TYPE_INSERTION===`false`?P:{id:`insertion-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===`insertion`,transform:(e,t,n)=>{let r=[...t.keyPath,{type:oe}],i=e[oe],a={id:`insertion-string-plugin`,canHandle:e=>typeof e==`string`||Fe(e),transform:(e,n,r)=>{if(Fe(e))return i=>Re(e,i,n,t.plugins,r);let i=r(e,{...n,children:e,plugins:[...(t.plugins??[]).filter(e=>e.id!==`intlayer-node-plugin`)]});return e=>{let a=Te(i,e);return r(a,{...n,plugins:t.plugins,children:a})}}};return qe(i,n(i,{...t,children:i,keyPath:r,plugins:[a,...t.plugins??[]]}))}},Ge=[re,ae,ie,ye,be],Ke=(e,t,n,r=!1)=>{let i=e?.nodeType;if(typeof t!=`function`||!i||!Ge.includes(i))return t;let a=i===`plural`||i===`enumeration`;return e=>{if(typeof e==`object`&&e)return t({...n,...e});if(a)return t({...n,count:e});let i=t(e);return!r&&ze(i)?i(n):i}},qe=(e,t)=>typeof t==`function`&&Ge.includes(e?.nodeType??``)?n=>Ke(e,t,n):t,Je=P,Ye=P,Xe=e=>P,Ze=P,Qe=(e,t=!0)=>[Be(e??s.defaultLocale,t?s.defaultLocale:void 0),Ve,He(e??s.defaultLocale),Ue,We,Xe(e??s.defaultLocale),Ze,Je,Ye].filter(e=>e!==P),$e=(e,t,n=[])=>we(e,{...t,plugins:n}),et=new WeakSet,tt=(e,t,n)=>{let{locale:r,selector:i}={locale:t,selector:void 0},a=ke(r),o=ee(a,``,n),s=M(e,o);if(s.hit)return s.content;let c=n??Qe(a),l=e,u=e=>{let t={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:c,nestedDictionaries:e.nestedDictionaries,eager:!et.has(e)};et.add(e);try{return $e(e.content,t,c)}finally{t.eager&&et.delete(e)}};return l===null?te(e,o,null):Array.isArray(l)?te(e,o,l.map(u)):te(e,o,u(l))},nt=[`en`],rt=e=>e!=null&&typeof e!=`string`&&typeof e!=`number`&&typeof e!=`boolean`,it=/\{\{\s*(.*?)\s*\}\}/g,at=(e,t={})=>{if(!Object.values(t).some(rt))return{isSimple:!0,parts:e.replace(it,(e,n)=>(t[n.trim()]??``).toString())};let n=e.split(it),r=[];for(let e=0;e<n.length;e++)if(e%2==0)n[e]&&r.push(n[e]);else{let i=t[n[e].trim()];i!=null&&r.push(i)}return{isSimple:!1,parts:r}},ot={id:`intlayer-node-plugin`,canHandle:e=>typeof e==`bigint`||typeof e==`string`||typeof e==`number`,transform:(e,t)=>T({value:t.children,children:t.children})},st=P,ct=(e,t)=>{let n=at(e,t);return n.isSimple?n.parts:(0,C.createElement)(C.Fragment,null,...n.parts.map((e,t)=>(0,C.createElement)(C.Fragment,{key:t},e)))},lt={}.INTLAYER_NODE_TYPE_INSERTION===`false`?P:{id:`insertion-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===`insertion`,transform:(e,t,n)=>{let r=[...t.keyPath,{type:oe}],i=e[oe],a={id:`insertion-string-plugin`,canHandle:e=>typeof e==`string`||Fe(e),transform:(e,n,r)=>{if(Fe(e))return i=>Re(e,i,n,t.plugins,r);let i=r(e,{...n,children:e,plugins:[...(t.plugins??[]).filter(e=>e.id!==`intlayer-node-plugin`)]});return e=>{let a=ct(i,e);return r(a,{...n,plugins:t.plugins,children:a})}}};return qe(i,n(i,{...t,children:i,keyPath:r,plugins:[a,...t.plugins??[]]}))}},ut=P,dt=P,ft=new Map,pt=(e,t=!0)=>{let n=ke(e),r=`${n}_${t}`;if(ft.has(r))return ft.get(r);let i=[ot,Be(n,t?s.defaultLocale:void 0),Ve,He(n),Ue,Xe(n),Ze,Je,Ye,st,lt,ut,dt].filter(e=>e!==P);return ft.set(r,i),i},mt=(e,t)=>je(e,t,pt(typeof t==`object`&&t?t.locale:t)),ht=_,gt=(e,t)=>v(e,{...p,isCookieEnabled:t}),_t=()=>{typeof window<`u`&&(window.intlayer={enabled:!0})},vt=(e,t=s?.locales)=>{let n=y(e),r=e;e?.endsWith(`/`)&&(r=e.slice(0,-1));let i=n?new URL(r):new URL(r,`http://e.com`),a=i.pathname;a.startsWith(`/`)||(i.pathname=`/${a}`);{let e=a.split(`/`),n=e[1];t?.includes(n)&&(e.splice(1,1),i.pathname=e.join(`/`)??`/`)}return n?i.toString():i.toString().replace(`http://e.com`,``)},yt=(e,t,n)=>(n??c?.rewrite,e),bt=(e={})=>({...e,defaultLocale:e.defaultLocale??s?.defaultLocale??`en`,mode:e.mode??c?.mode??`prefix-no-default`,locales:e.locales??s?.locales??nt,rewrite:e.rewrite??c?.rewrite,domains:e.domains??c?.domains}),xt=(e,t)=>!!e&&(t??s.locales).includes(e),St=(e,t={})=>{let{defaultLocale:n,mode:r,locales:i,domains:a}=bt(t);return!e||!xt(e,i)?{prefix:``,localePrefix:void 0}:r===`prefix-all`||r===`prefix-no-default`&&n!==e?{prefix:`${e}/`,localePrefix:e}:{prefix:``,localePrefix:void 0}},Ct=(e,t,n)=>({path:e,isRewritten:!1}),wt=(e,t=s?.defaultLocale,n={})=>{let{defaultLocale:r,mode:i,locales:a,rewrite:o,domains:c}=bt(n),l=vt(e,a),u=new URL(l,`http://e.com`),d=Ct(yt(u.pathname,void 0,void 0),t,void 0).path,{prefix:f}=St(t,{defaultLocale:r,mode:i,locales:a,domains:c}),p=`/${f}${d}`.replace(/\/+/g,`/`);return p.length>1&&p.endsWith(`/`)&&(p=p.slice(0,-1)),`${p}${u.search}${u.hash}`},Tt=(e,t=s?.defaultLocale,n={})=>{let{domains:r,currentDomain:i}=bt(n),a=y(e),o=a?new URL(e):new URL(e,`http://e.com`);return`${a?`${o.protocol}//${o.host}`:``}${wt(`${o.pathname}${o.search}${o.hash}`,t,n)}`},Et=(e,t=s?.locales,n=s?.defaultLocale)=>{if(t?.includes(e))return e;let r=[e].flat(),i=e=>e.trim().toLowerCase();try{for(let e of r){let n=i(e),r=t.find(e=>i(e)===n);if(r)return r;let[a]=n.split(`-`),o=t.find(e=>i(e).split(`-`)[0]===a);if(o)return o}}catch{}return n},Dt=(0,C.createContext)({get locale(){return ht()??s?.defaultLocale},setLocale:()=>null,isCookieEnabled:!0}),Ot=({locale:e,defaultLocale:t,variant:n,children:r,setLocale:i,disableEditor:a,isCookieEnabled:o})=>{let{locales:c,defaultLocale:l}=s??{},[u,d]=(0,C.useState)(()=>e??ht()??t??l),[f,p]=(0,C.useState)(e);e!==f&&(p(e),e&&e!==u&&d(e)),(0,C.useEffect)(()=>{_t()},[]);let m=(0,C.useCallback)(e=>{if(u.toString()!==e.toString()){if(!c?.map(String).includes(e)){console.error(`Locale ${e} is not available`);return}d(e),gt(e,o)}},[u,c,o]),h=i??m,g=Et(u),_=(0,C.useMemo)(()=>({locale:g,setLocale:h,variant:n,disableEditor:a}),[g,h,n,a]);return(0,w.jsx)(Dt.Provider,{value:_,children:r})},kt=(e,t)=>{let{locale:n,variant:r}=(0,C.useContext)(Dt)??{},i=t??n;return(0,C.useMemo)(()=>mt(e,i),[e,i])},At=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function jt(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:At(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Mt=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},Nt=e=>{let t=Mt(e);return t.charAt(0).toUpperCase()+t.slice(1)},Pt=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Ft={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function It(e){return e!=null}function Lt(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Ft.width,a=e.size??e.height??Ft.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Pt(...c):Pt(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Ft[`stroke-width`])*Number(e.size??e.width??Ft.width)/Number(t.size??t.width??Ft.width):t.strokeWidth??Ft[`stroke-width`];return[`svg`,{...Object.entries(Ft).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&It(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&It(t.width)&&{[r(`width`)]:t.width},...`height`in t&&It(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function Rt(e,t={}){return Lt(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var zt=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Bt=(0,C.createContext)({}),Vt=()=>(0,C.useContext)(Bt),Ht=(0,C.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=Vt()??{},y=!!c||zt(d),[b,x,S=[]]=Rt(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:Pt(v,s),hasA11yProp:y,attributes:d});return(0,C.createElement)(b,{ref:f,...x},[...S.map(([e,t])=>(0,C.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function Ut(e,t=[],n=[]){let r=typeof e==`string`?jt(e,t,n):e,i=(0,C.forwardRef)(({className:e,...t},n)=>(0,C.createElement)(Ht,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Nt(r.name)),i}var Wt={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Wt.node;var Gt=Ut(Wt),Kt={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Kt.node;var qt=Ut(Kt),Jt={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};Jt.node;var Yt=Ut(Jt),Xt={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};Xt.node;var Zt=Ut(Xt),Qt={name:`copy-check`,size:24,node:[[`path`,{d:`m12 15 2 2 4-4`,key:`2c609p`}],[`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`}]]};Qt.node;var $t=Ut(Qt),en={name:`copy`,size:24,node:[[`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`}]]};en.node;var tn=Ut(en),nn={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};nn.node;var rn=Ut(nn),an={name:`move-right`,size:24,node:[[`path`,{d:`M18 8L22 12L18 16`,key:`1r0oui`}],[`path`,{d:`M2 12H22`,key:`1m8cig`}]]};an.node;var on=Ut(an),sn={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};sn.node;var cn=Ut(sn),ln=e(o(),1);function un(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=un(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function dn(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=un(e))&&(r&&(r+=` `),r+=t);return r}var fn=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,pn=dn,mn=(e,t)=>n=>{if(t?.variants==null)return pn(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=fn(t)||fn(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return pn(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},hn=Object.defineProperty,gn=(e,t)=>hn(e,`name`,{value:t,configurable:!0}),_n=!!(typeof window<`u`&&window.document&&window.document.createElement);function F(e,t,{checkForDefaultPrevented:n=!0}={}){return gn(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}gn(F,`composeEventHandlers`);function vn(e){if(!_n)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}gn(vn,`getOwnerWindow`);function yn(e){if(!_n)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}gn(yn,`getOwnerDocument`);function bn(e,t=!1){let{activeElement:n}=yn(e);if(!n?.nodeName)return null;if(xn(n)&&n.contentDocument)return bn(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=yn(n).getElementById(e);if(t)return t}}return n}gn(bn,`getActiveElement`);function xn(e){return e.tagName===`IFRAME`}gn(xn,`isFrame`);var Sn=Object.defineProperty,Cn=(e,t)=>Sn(e,`name`,{value:t,configurable:!0});function wn(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Cn(wn,`setRef`);function Tn(...e){return t=>{let n=!1,r=e.map(e=>{let r=wn(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():wn(e[t],null)}}}}Cn(Tn,`composeRefs`);function I(...e){return C.useCallback(Tn(...e),e)}Cn(I,`useComposedRefs`);var En=Object.defineProperty,Dn=(e,t)=>En(e,`name`,{value:t,configurable:!0});function On(e,t){let n=C.createContext(t);n.displayName=e+`Context`;let r=Dn(e=>{let{children:t,...r}=e,i=C.useMemo(()=>r,Object.values(r));return(0,w.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=C.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return Dn(i,`useContext`),[r,i]}Dn(On,`createContext`);function kn(e,t=[]){let n=[];function r(t,r){let i=C.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=Dn(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=C.useMemo(()=>o,Object.values(o));return(0,w.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=C.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return Dn(s,`useContext`),[o,s]}Dn(r,`createContext`);let i=Dn(()=>{let t=n.map(e=>C.createContext(e));return Dn(function(n){let r=n?.[e]||t;return C.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,An(i,...t)]}Dn(kn,`createContextScope`);function An(...e){let t=e[0];if(e.length===1)return t;let n=Dn(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Dn(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}Dn(An,`composeContextScopes`);var jn=Object.defineProperty,Mn=(e,t)=>jn(e,`name`,{value:t,configurable:!0});function Nn(e){let t=C.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Hn(r)&&typeof Kn==`function`&&(r=Kn(r._payload)),C.Children.forEach(r,e=>{if(Bn(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Hn(n)&&typeof Kn==`function`&&(n=Kn(n._payload)),a=Ln(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=C.cloneElement(a,void 0,s):!o&&C.Children.count(r)===1&&C.isValidElement(r)&&(a=r);let c=a?zn(a):void 0,l=I(n,c);if(!a){if(r||r===0)throw Error(o?Gn(e):Wn(e));return r}let u=Rn(i,a.props??{});return a.type!==C.Fragment&&(u.ref=n?l:c),C.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Mn(Nn,`createSlot`);var Pn=Nn(`Slot`),Fn=Symbol.for(`radix.slottable`);function In(e){let t=Mn(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=Fn,t}Mn(In,`createSlottable`);var Ln=Mn((e,t)=>{if(`child`in e.props){let t=e.props.child;return C.isValidElement(t)?C.cloneElement(t,void 0,e.props.children(t.props.children)):null}return C.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function Rn(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}Mn(Rn,`mergeProps`);function zn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Mn(zn,`getElementRef`);function Bn(e){return C.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Fn}Mn(Bn,`isSlottable`);var Vn=Symbol.for(`react.lazy`);function Hn(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Vn&&`_payload`in e&&Un(e._payload)}Mn(Hn,`isLazyComponent`);function Un(e){return typeof e==`object`&&!!e&&`then`in e}Mn(Un,`isPromiseLike`);var Wn=Mn(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Gn=Mn(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Kn=C.use,qn=Object.defineProperty,L=(e,t)=>qn(e,`name`,{value:t,configurable:!0});function Jn(e){let t=e+`CollectionProvider`,[n,r]=kn(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=L(e=>{let{scope:t,children:n}=e,r=C.useRef(null),a=C.useRef(new Map).current;return(0,w.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=Nn(s),l=C.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=I(t,a(s,n).collectionRef);return(0,w.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Nn(u),p=C.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=C.useRef(null),s=I(t,o),c=a(u,n);return C.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,w.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return C.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return L(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}L(Jn,`createCollection`);var Yn=new WeakMap,Xn=class e extends Map{static{L(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],Yn.set(this,!0)}set(e,t){return Yn.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=$n(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=Zn(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=Zn(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return Zn(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function Zn(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=Qn(e,t);return n===-1?void 0:e[n]}L(Zn,`at`);function Qn(e,t){let n=e.length,r=$n(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}L(Qn,`toSafeIndex`);function $n(e){return e!==e||e===0?0:Math.trunc(e)}L($n,`toSafeInteger`);function er(e){let t=e+`CollectionProvider`,[n,r]=kn(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Xn,setItemMap:L(()=>void 0,`setItemMap`)}),o=L(({state:e,...t})=>e?(0,w.jsx)(c,{...t,state:e}):(0,w.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=L(e=>{let t=h();return(0,w.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=L(e=>{let{scope:t,children:n,state:r}=e,a=C.useRef(null),[o,s]=C.useState(null),c=I(a,s),[l,u]=r;return C.useEffect(()=>{if(!o)return;let e=ir(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,w.jsx)(i,{scope:t,itemMap:l,setItemMap:u,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);c.displayName=t+`Impl`;let l=e+`CollectionSlot`,u=Nn(l),d=C.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=I(t,a(l,n).collectionRef);return(0,w.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=Nn(f),m=C.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=C.useRef(null),[s,c]=C.useState(null),l=I(t,o,c),{setItemMap:u}=a(f,n),d=C.useRef(i);tr(d.current,i)||(d.current=i);let m=d.current;return C.useEffect(()=>{let e=m;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(rr):(t.set(s,{...e,element:s}),t.toSorted(rr)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new Xn(e)))}},[s,m,u]),(0,w.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});m.displayName=f;function h(){return C.useState(new Xn)}L(h,`useInitCollection`);function g(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return L(g,`useCollection`),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:g,useInitCollection:h}]}L(er,`createCollection`);function tr(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}L(tr,`shallowEqual`);function nr(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}L(nr,`isElementPreceding`);function rr(e,t){return!e[1].element||!t[1].element?0:nr(e[1].element,t[1].element)?-1:1}L(rr,`sortByDocumentPosition`);function ir(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}L(ir,`getChildListObserver`);var ar=Object.defineProperty,or=(e,t)=>ar(e,`name`,{value:t,configurable:!0}),R=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Nn(`Primitive.${t}`),r=C.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,w.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function sr(e,t){e&&ln.flushSync(()=>e.dispatchEvent(t))}or(sr,`dispatchDiscreteCustomEvent`);var cr=Object.defineProperty,lr=(e,t)=>cr(e,`name`,{value:t,configurable:!0});function ur(e){let t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>((...e)=>t.current?.(...e)),[])}lr(ur,`useCallbackRef`);var dr=Object.defineProperty,z=(e,t)=>dr(e,`name`,{value:t,configurable:!0}),fr=`dismissableLayer.update`,pr=`dismissableLayer.pointerDownOutside`,mr=`dismissableLayer.focusOutside`,hr,gr=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),_r=C.forwardRef(z(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=C.useContext(gr),[d,f]=C.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=C.useState({}),h=I(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=C.useRef(!1),T=xr(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:C.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),E=Sr(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),D=d?y===g.length-1:!1,O=ur(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return C.useEffect(()=>{if(D)return p.addEventListener(`keydown`,O,{capture:!0}),()=>p.removeEventListener(`keydown`,O,{capture:!0})},[p,D,O]),C.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(hr=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Cr(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=hr))}},[d,p,n,u]),C.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Cr())},[d,u]),C.useEffect(()=>{let e=z(()=>m({}),`handleUpdate`);return document.addEventListener(fr,e),()=>document.removeEventListener(fr,e)},[]),(0,w.jsx)(R.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:F(e.onFocusCapture,E.onFocusCapture),onBlurCapture:F(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:F(e.onPointerDownCapture,T.onPointerDownCapture)})},`DismissableLayer`)),vr=C.forwardRef(z(function(e,t){let n=C.useContext(gr),r=C.useRef(null),i=I(t,r);return C.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,w.jsx)(R.div,{...e,ref:i})},`DismissableLayerBranch`));function yr(){let e=C.useContext(gr),[t,n]=C.useState(null);return C.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}z(yr,`useDismissableLayerSurface`);var br=z(()=>!0,`IS_TRUE`);function xr(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=br}=t,s=ur(e),c=C.useRef(!1),l=C.useRef(!1),u=C.useRef(new Map),d=C.useRef(()=>{});return C.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}z(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}z(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}z(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}z(p,`handleInteractionBubble`);let m=z(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||wr(pr,s,p,{discrete:!0})};if(z(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:z(()=>c.current=!0,`onPointerDownCapture`)}}z(xr,`usePointerDownOutside`);function Sr(e,t=globalThis?.document){let n=ur(e),r=C.useRef(!1);return C.useEffect(()=>{let e=z(e=>{e.target&&!r.current&&wr(mr,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:z(()=>r.current=!0,`onFocusCapture`),onBlurCapture:z(()=>r.current=!1,`onBlurCapture`)}}z(Sr,`useFocusOutside`);function Cr(){let e=new CustomEvent(fr);document.dispatchEvent(e)}z(Cr,`dispatchUpdate`);function wr(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?sr(i,a):i.dispatchEvent(a)}z(wr,`handleAndDispatchCustomEvent`);var Tr=_r,Er=vr,B=globalThis?.document?C.useLayoutEffect:()=>{},Dr=Object.defineProperty,Or=C.forwardRef(((e,t)=>Dr(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=C.useState(!1);B(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?ln.createPortal((0,w.jsx)(R.div,{...r,ref:t}),o):null},`Portal`)),kr=Object.defineProperty,Ar=(e,t)=>kr(e,`name`,{value:t,configurable:!0});function jr(e,t){return C.useReducer((e,n)=>t[e][n]??e,e)}Ar(jr,`useStateMachine`);var Mr=Ar(e=>{let{present:t,children:n}=e,r=Nr(t),i=typeof n==`function`?n({present:r.isPresent}):C.Children.only(n),a=Fr(r.ref,Lr(i));return typeof n==`function`||r.isPresent?C.cloneElement(i,{ref:a}):null},`Presence`);function Nr(e){let[t,n]=C.useState(),r=C.useRef(null),i=C.useRef(e),a=C.useRef(`none`),o=C.useRef(void 0),[s,c]=jr(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return C.useEffect(()=>{s===`mounted`?(a.current=o.current??Ir(r.current),o.current=void 0):a.current=`none`},[s]),B(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Ir(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),B(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=Ar(a=>{let o=Ir(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=Ar(e=>{e.target===t&&(a.current=Ir(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:C.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Ir(t)}else r.current=null;n(e)},[])}}Ar(Nr,`usePresence`);function Pr(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Ar(Pr,`setRef`);function Fr(...e){let t=C.useRef(e);return t.current=e,C.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Pr(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Pr(n[e],null)}}},[])}Ar(Fr,`useStableComposedRefs`);function Ir(e){return e?.animationName||`none`}Ar(Ir,`getAnimationName`);function Lr(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Ar(Lr,`getElementRef`);var Rr=Object.defineProperty,zr=(e,t)=>Rr(e,`name`,{value:t,configurable:!0}),Br=C.useEffectEvent,Vr=C.useInsertionEffect;function Hr(e){if(typeof Br==`function`)return Br(e);let t=C.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Vr==`function`?Vr(()=>{t.current=e}):B(()=>{t.current=e}),C.useMemo(()=>((...e)=>t.current?.(...e)),[])}zr(Hr,`useEffectEvent`);var Ur=Object.defineProperty,Wr=(e,t)=>Ur(e,`name`,{value:t,configurable:!0}),Gr=C.useInsertionEffect||B;function Kr({prop:e,defaultProp:t,onChange:n=Wr(()=>{},`onChange`),caller:r}){let[i,a,o]=qr({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,C.useCallback(t=>{if(s){let n=Jr(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}Wr(Kr,`useControllableState`);function qr({defaultProp:e,onChange:t}){let[n,r]=C.useState(e),i=C.useRef(n),a=C.useRef(t);return Gr(()=>{a.current=t},[t]),C.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}Wr(qr,`useUncontrolledState`);function Jr(e){return typeof e==`function`}Wr(Jr,`isFunction`);var Yr=Symbol(`RADIX:SYNC_STATE`);function Xr(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=Hr(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=C.useReducer((t,n)=>{if(n.type===Yr)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=C.useRef(p);C.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=C.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return C.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:Yr,state:i})},[i,d.state,c]),[h,f]}Wr(Xr,`useControllableStateReducer`);var Zr=Object.defineProperty,Qr=(e,t)=>Zr(e,`name`,{value:t,configurable:!0}),$r=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),ei=C.forwardRef(Qr(function(e,t){return(0,w.jsx)(R.span,{...e,ref:t,style:{...$r,...e.style}})},`VisuallyHidden`)),ti=(0,C.createContext)({});function ni(e){let t=(0,C.useRef)(null);return t.current===null&&(t.current=e()),t.current}var ri=typeof window<`u`?C.useLayoutEffect:C.useEffect,ii=(0,C.createContext)(null);function ai(e,t){e.indexOf(t)===-1&&e.push(t)}function oi(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var si=(e,t,n)=>n>t?t:n<e?e:n,ci={},li=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ui=e=>typeof e==`object`&&!!e,di=e=>/^0[^.\s]+$/u.test(e);function fi(e){let t;return()=>(t===void 0&&(t=e()),t)}var pi=e=>e,mi=(...e)=>e.reduce((e,t)=>n=>t(e(n))),hi=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},gi=class{constructor(){this.subscriptions=[]}add(e){return ai(this.subscriptions,e),()=>this.remove(e)}remove(e){oi(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},_i=e=>e*1e3,vi=e=>e/1e3,yi=(e,t)=>t?1e3/t*e:0,bi=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,xi=1e-7,Si=12;function Ci(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=bi(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>xi&&++s<Si);return o}function wi(e,t,n,r){if(e===t&&n===r)return pi;let i=t=>Ci(t,0,1,e,n);return e=>e===0||e===1?e:bi(i(e),t,r)}var Ti=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ei=e=>t=>1-e(1-t),Di=wi(.33,1.53,.69,.99),Oi=Ei(Di),ki=Ti(Oi),Ai=e=>e>=1?1:(e*=2)<1?.5*Oi(e):.5*(2-2**(-10*(e-1))),ji=e=>1-Math.sin(Math.acos(e)),Mi=Ei(ji),Ni=Ti(ji),Pi=wi(.42,0,1,1),Fi=wi(0,0,.58,1),Ii=wi(.42,0,.58,1),Li=e=>Array.isArray(e)&&typeof e[0]!=`number`,Ri=e=>Array.isArray(e)&&typeof e[0]==`number`,zi={linear:pi,easeIn:Pi,easeInOut:Ii,easeOut:Fi,circIn:ji,circInOut:Ni,circOut:Mi,backIn:Oi,backInOut:ki,backOut:Di,anticipate:Ai},Bi=e=>typeof e==`string`,Vi=e=>{if(Ri(e)){e.length;let[t,n,r,i]=e;return wi(t,n,r,i)}return Bi(e)?(zi[e],`${e}`,zi[e]):e},Hi=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Ui(e){let t=new Set,n=new Set,r=!1,i=!1,a=new Set,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(n.add(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var Wi=40;function Gi(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Hi.reduce((e,t)=>(e[t]=Ui(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=ci.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Wi),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Hi.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Hi.length;t++)o[Hi[t]].cancel(e)},state:i,steps:o}}var{schedule:V,cancel:Ki,state:H,steps:qi}=Gi(typeof requestAnimationFrame<`u`?requestAnimationFrame:pi,!0),Ji;function Yi(){Ji=void 0}var U={now:()=>(Ji===void 0&&U.set(H.isProcessing||ci.useManualTiming?H.timestamp:performance.now()),Ji),set:e=>{Ji=e,queueMicrotask(Yi)}},Xi=e=>Math.round(e*1e5)/1e5,Zi=e=>t=>typeof t==`string`&&t.startsWith(e),Qi=Zi(`--`),$i=Zi(`var(--`),ea=e=>$i(e)?ta.test(e.split(`/*`)[0].trim()):!1,ta=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function na(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var ra={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},ia={...ra,transform:e=>si(0,1,e)},aa={...ra,default:1},oa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function sa(e){return e==null}var ca=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,la=(e,t)=>n=>!!(typeof n==`string`&&ca.test(n)&&n.startsWith(e)||t&&!sa(n)&&Object.prototype.hasOwnProperty.call(n,t)),ua=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(oa);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},da=e=>si(0,255,e),fa={...ra,transform:e=>Math.round(da(e))},pa={test:la(`rgb`,`red`),parse:ua(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+fa.transform(e)+`, `+fa.transform(t)+`, `+fa.transform(n)+`, `+Xi(ia.transform(r))+`)`};function ma(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var ha={test:la(`#`),parse:ma,transform:pa.transform},ga=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_a=ga(`deg`),va=ga(`%`),W=ga(`px`),ya=ga(`vh`),ba=ga(`vw`),xa={...va,parse:e=>va.parse(e)/100,transform:e=>va.transform(e*100)},Sa={test:la(`hsl`,`hue`),parse:ua(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+va.transform(Xi(t))+`, `+va.transform(Xi(n))+`, `+Xi(ia.transform(r))+`)`},G={test:e=>pa.test(e)||ha.test(e)||Sa.test(e),parse:e=>pa.test(e)?pa.parse(e):Sa.test(e)?Sa.parse(e):ha.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?pa.transform(e):Sa.transform(e),getAnimatableNone:e=>{let t=G.parse(e);return t.alpha=0,G.transform(t)}},Ca=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,wa=new RegExp(oa.source),Ta=new RegExp(Ca.source,`i`);function Ea(e){return isNaN(e)&&typeof e==`string`&&(wa.test(e)||Ta.test(e))}var Da=`number`,Oa=`color`,ka=`var`,Aa=`var(`,ja="${}",Ma=/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 Na(e){let t=e.toString();return wa.test(t)||Ta.test(t)}function Pa(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Ma,e=>(G.test(e)?(r.color.push(a),i.push(Oa),n.push(G.parse(e))):e.startsWith(Aa)?(r.var.push(a),i.push(ka),n.push(e)):(r.number.push(a),i.push(Da),n.push(parseFloat(e))),++a,ja)).split(ja),indexes:r,types:i}}function Fa(e){return Pa(e).values}function Ia({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===Da?Xi(r[a]):e===Oa?G.transform(r[a]):r[a]}return i}}function La(e){return Ia(Pa(e))}var Ra=e=>typeof e==`number`?0:G.test(e)?G.getAnimatableNone(e):e,za=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Ra(e);function Ba(e){let t=Pa(e);return Ia(t)(t.values.map((e,n)=>za(e,t.split[n])))}var Va={test:Ea,parse:Fa,createTransformer:La,getAnimatableNone:Ba};function Ha(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ua({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Ha(s,r,e+1/3),a=Ha(s,r,e),o=Ha(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Wa(e,t){return n=>n>0?t:e}var K=(e,t,n)=>e+(t-e)*n,Ga=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ka=[ha,pa,Sa],qa=e=>Ka.find(t=>t.test(e));function Ja(e){let t=qa(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===Sa&&(n=Ua(n)),n}var Ya=(e,t)=>{let n=Ja(e),r=Ja(t);if(!n||!r)return Wa(e,t);let i={...n};return e=>(i.red=Ga(n.red,r.red,e),i.green=Ga(n.green,r.green,e),i.blue=Ga(n.blue,r.blue,e),i.alpha=K(n.alpha,r.alpha,e),pa.transform(i))},Xa=new Set([`none`,`hidden`]);function Za(e,t){return Xa.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Qa(e,t){return n=>K(e,t,n)}function $a(e){return typeof e==`number`?Qa:typeof e==`string`?ea(e)?Wa:G.test(e)?Ya:ro:Array.isArray(e)?eo:typeof e==`object`?G.test(e)?Ya:to:Wa}function eo(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>$a(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function to(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=$a(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function no(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var ro=(e,t)=>{let n=Va.createTransformer(t),r=Pa(e),i=Pa(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Xa.has(e)&&!i.values.length||Xa.has(t)&&!r.values.length?Za(e,t):mi(eo(no(r,i),i.values),n):(`${e}${t}`,Wa(e,t))},io=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function ao(e,t){let n=io.exec(e);if(!n)return;let r=io.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>Xi(K(a,o,e))+i}function oo(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return K(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=ao(e,t);if(n)return n}return $a(e)(e,t)}var so=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>V.update(t,e),stop:()=>Ki(t),now:()=>H.isProcessing?H.timestamp:U.now()}},co=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},lo=2e4;function uo(e,t=50,n=lo,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function fo(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(uo(r),lo);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:vi(i)}}var q={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function po(e,t){return e*Math.sqrt(1-t*t)}var mo=12;function ho(e,t,n){let r=n;for(let n=1;n<mo;n++)r-=e(r)/t(r);return r}var go=.001;function _o({duration:e=q.duration,bounce:t=q.bounce}){let n,r;q.maxDuration;let i=1-t;i=si(q.minDamping,q.maxDamping,i),e=si(q.minDuration,q.maxDuration,vi(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=po(t,i),o=Math.exp(-r);return go-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=po(t*t,i);return(-n(t)+go>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=ho(n,r,a),s=o*o;return{stiffness:s,damping:i*2*Math.sqrt(s),duration:_i(e)}}var vo=(e,t)=>(t?e>=0:e>0)&&e<1/0;function yo(e,t){if(vo(e,t))return e}function bo(e){let t=yo(e.stiffness),n=yo(e.damping,!0),r=yo(e.mass),i={...e,stiffness:t??q.stiffness,damping:n??q.damping,mass:r??q.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=2*Math.PI/(e.visualDuration*1.2);i.stiffness=t*t,i.damping=2*si(.05,1,1-(e.bounce||0))*Math.sqrt(i.stiffness)}else Object.assign(i,_o(i)),i.isResolvedFromDuration=!0;(!vo(i.stiffness)||!vo(i.damping,!0))&&(i.stiffness=q.stiffness,i.damping=q.damping)}return i}function xo(e=q.visualDuration,t=q.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=bo({...n}),f=e=>d?0:-vi(e),p=s/(2*Math.sqrt(o*c)),m=vi(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?q.restSpeed.granular:q.restSpeed.default),g.restDelta=n.restDelta||(e?q.restDelta.granular:q.restDelta.default)};_();let v,y,b;if(p<1){let e=po(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1);v=t=>{let n=Math.exp(-h*t),r=Math.min(e*t,300);return g.target-n*((g.velocity+h*g.delta)*Math.sinh(r)+e*g.delta*Math.cosh(r))/e};let t={P:0,sinh:0,cosh:0};b=()=>{t.P=(g.velocity+h*g.delta)/e,t.sinh=h*t.P-g.delta*e,t.cosh=h*g.delta-t.P*e},y=n=>{let r=Math.exp(-h*n),i=Math.min(e*n,300);return r*(t.sinh*Math.sinh(i)+t.cosh*Math.cosh(i))}}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>_i(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=_i(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(uo(S),lo),t=co(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}xo.applyToOptions=e=>{let t=fo(e,100,xo);return e.ease=t.ease,e.duration=_i(t.duration),e.type=`keyframes`,e};function So({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=xo({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function Co(e,t,n){let r=[],i=n||ci.mix||oo,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=mi(Array.isArray(t)?t[n]||pi:t,a)),r.push(a)}return r}function wo(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Co(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=hi(e[r],e[r+1],n);return s[r](i)};return n?t=>l(si(e[0],e[a-1],t)):l}function To(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=hi(0,t,r);e.push(K(n,1,i))}}function Eo(e){let t=[0];return To(t,e.length-1),t}function Do(e,t){return e.map(e=>e*t)}function Oo(e,t){return e.map(()=>t||Ii).splice(0,e.length-1)}function ko({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Li(r)?r.map(Vi):Vi(r)||Ii,a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(ci.mix||oo)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?si(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=wo(Do(n&&n.length===t.length?n:Eo(t),e),t,{ease:Array.isArray(i)?i:Oo(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Ao=5;function jo(e,t,n){let r=Math.max(t-Ao,0);return yi(n-e(r),t-r)}function Mo(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):jo(t=>e.next(t).value,t,e.next(t).value)}var No=e=>e!==null;function Po(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(No),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Fo={decay:So,inertia:So,tween:ko,keyframes:ko,spring:xo};function Io(e){typeof e.type==`string`&&(e.type=Fo[e.type])}function Lo(e,t){return{kind:e,animation:t,timestamp:U.now(),frameTimestamp:H.timestamp,frameIsProcessing:H.isProcessing}}function Ro(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...Lo(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function zo(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...Lo(`layout-animation-start`,e),node:t})}catch{}}var Bo=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},Vo=e=>e/100,Ho=class extends Bo{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==U.now()&&this.tick(U.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),Ro(this,this.options)}initAnimation(){let{options:e}=this;Io(e);let{type:t=ko,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||ko;s!==ko&&typeof o[0]!=`number`&&(this.mixKeyframes=mi(Vo,oo(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=uo(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=si(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==So&&(b.value=Po(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return vi(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+vi(e)}get time(){return vi(this.currentTime)}set time(e){e=_i(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return Mo(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(U.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=vi(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=so,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,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(U.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}},Uo=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Wo(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(oa)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Uo.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Go=/\b([a-z-]*)\(.*?\)/gu,Ko={...Va,getAnimatableNone:e=>{let t=e.match(Go);return t?t.map(Wo).join(` `):e}},qo={...Va,getAnimatableNone:e=>{let t=Va.parse(e);return Va.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Jo={...ra,transform:Math.round},Yo={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,inset:W,insetBlock:W,insetBlockStart:W,insetBlockEnd:W,insetInline:W,insetInlineStart:W,insetInlineEnd:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,paddingBlock:W,paddingBlockStart:W,paddingBlockEnd:W,paddingInline:W,paddingInlineStart:W,paddingInlineEnd:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,marginBlock:W,marginBlockStart:W,marginBlockEnd:W,marginInline:W,marginInlineStart:W,marginInlineEnd:W,fontSize:W,backgroundPositionX:W,backgroundPositionY:W,rotate:_a,pathRotation:_a,rotateX:_a,rotateY:_a,rotateZ:_a,scale:aa,scaleX:aa,scaleY:aa,scaleZ:aa,skew:_a,skewX:_a,skewY:_a,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:ia,originX:xa,originY:xa,originZ:W,zIndex:Jo,fillOpacity:ia,strokeOpacity:ia,numOctaves:Jo},Xo={...Yo,color:G,backgroundColor:G,outlineColor:G,fill:G,stroke:G,borderColor:G,borderTopColor:G,borderRightColor:G,borderBottomColor:G,borderLeftColor:G,filter:Ko,WebkitFilter:Ko,mask:qo,WebkitMask:qo},Zo=e=>Xo[e],Qo=new Set([Ko,qo]);function $o(e,t){let n=Zo(e);return Qo.has(n)||(n=Va),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function es(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var ts=e=>e*180/Math.PI,ns=e=>is(ts(Math.atan2(e[1],e[0]))),rs={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ns,rotateZ:ns,skewX:e=>ts(Math.atan(e[1])),skewY:e=>ts(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},is=e=>(e%=360,e<0&&(e+=360),e),as=ns,os=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ss=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),cs={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:os,scaleY:ss,scale:e=>(os(e)+ss(e))/2,rotateX:e=>is(ts(Math.atan2(e[6],e[5]))),rotateY:e=>is(ts(Math.atan2(-e[2],e[0]))),rotateZ:as,rotate:as,skewX:e=>ts(Math.atan(e[4])),skewY:e=>ts(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ls(e){return+!!e.includes(`scale`)}function us(e,t){if(!e||e===`none`)return ls(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=cs,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=rs,i=t}if(!i)return ls(t);let a=r[t],o=i[1].split(`,`).map(fs);return typeof a==`function`?a(o):o[a]}var ds=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return us(n,t)};function fs(e){return parseFloat(e.trim())}var ps=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],ms=new Set([...ps,`pathRotation`]),hs=e=>e===ra||e===W,gs=new Set([`x`,`y`,`z`]),_s=ps.filter(e=>!gs.has(e));function vs(e){let t=[];return _s.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var ys=new Set([`bottom`,`right`]);function bs(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var xs={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>bs(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>bs(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:({transform:e})=>us(e,`x`),y:({transform:e})=>us(e,`y`)};xs.translateX=xs.x,xs.translateY=xs.y;var Ss=new Set,Cs=!1,ws=!1,Ts=!1;function Es(){if(ws){let e=[],t=new Set,n=new Set;Ss.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),ys.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=vs(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}ws=!1,Cs=!1,Ss.forEach(e=>e.complete(Ts)),Ss.clear()}function Ds(){Ss.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ws=!0)})}function Os(){Ts=!0,Ds(),Es(),Ts=!1}function ks(e,t,n){if(typeof e==`string`){if(li(e)||di(e))return parseFloat(e);if(!Va.test(e)&&Va.test(n))return $o(t,n)}return e??void 0}var As=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Ss.add(this),Cs||(Cs=!0,V.read(Ds),V.resolveKeyframes(Es))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=ks(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}es(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ss.delete(this)}cancel(){this.state===`scheduled`&&(Ss.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},js=e=>e.startsWith(`--`);function Ms(e,t,n){js(t)?e.style.setProperty(t,n):e.style[t]=n}var Ns={};function Ps(e,t){let n=fi(e);return()=>Ns[t]??n()}var Fs=Ps(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Is=Ps(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Ls=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Rs={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Ls([0,.65,.55,1]),circOut:Ls([.55,0,1,.45]),backIn:Ls([.31,.01,.66,-.59]),backOut:Ls([.33,1.53,.69,.99])};function zs(e,t){if(e)return typeof e==`function`?Is()?co(e,t):`ease-out`:Ri(e)?Ls(e):Array.isArray(e)?e.map(e=>zs(e,t)||Rs.easeOut):Rs[e]}function Bs(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=zs(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Vs(e){return typeof e==`function`&&`applyToOptions`in e}function Hs({type:e,...t}){return Vs(e)&&Is()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Us=class extends Bo{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Hs(e);this.animation=Bs(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Po(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Ms(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},Ro(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,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:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return vi(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+vi(e)}get time(){return vi(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=_i(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Fs()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),pi):r(this)}},Ws={anticipate:Ai,backInOut:ki,circInOut:Ni};function Gs(e){return e in Ws}function Ks(e){typeof e.ease==`string`&&Gs(e.ease)&&(e.ease=Ws[e.ease])}var qs=10,Js=class extends Us{constructor(e){Ks(e),Io(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Ho({...a,autoplay:!1}),s=Math.max(qs,U.now()-this.startTime),c=si(0,qs,s-qs),l=o.sample(s).value,{name:u}=this.options;i&&u&&Ms(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Ys=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Va.test(e)||e===`0`)&&!e.startsWith(`url(`));function Xs(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Zs(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Ys(i,t),s=Ys(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):Xs(e)||(n===`spring`||Vs(n))&&r}function Qs(e){e.duration=0,e.type=`keyframes`}var $s=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),ec=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function tc(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&ec.test(e[t]))return!0;return!1}var nc=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),rc=fi(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function ic(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!($s.has(n)||nc.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return rc()&&($s.has(n)||nc.has(n)&&tc(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var ac=40,oc=class extends Bo{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=U.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||As;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=U.now();let u=!0;Zs(e,i,a,o)||(u=!1,(ci.instantAnimations||!s)&&l?.(Po(e,n,t)),e[0]=e[e.length-1],Qs(n),n.repeat=0);let d=r?this.resolvedAt&&this.resolvedAt-this.createdAt>ac?this.resolvedAt:this.createdAt:void 0,{onComplete:f}=n;n.startTime??=d,n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{f?.(),this.notifyFinished()};let p=u&&!c&&ic(n),m;if(p){n.element=n.motionValue?.owner?.current;try{m=new Js(n)}catch{m=new Ho(n)}}else m=new Ho(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Os()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function sc(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var cc=30,lc=e=>!isNaN(parseFloat(e)),uc={current:void 0},dc=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=U.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=U.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=lc(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new gi)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new gi,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){V.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return uc.current&&uc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=U.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>cc)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,cc);return yi(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function fc(e,t){return new dc(e,t)}function pc(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function mc(e,t){let n=e?.[t]??e?.default??e;return n===e?n:pc(n,e)}var hc={type:`spring`,stiffness:500,damping:25,restSpeed:10},gc=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_c={type:`keyframes`,duration:.8},vc={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},yc=(e,{keyframes:t})=>t.length>2?_c:ms.has(e)?e.startsWith(`scale`)?gc(t[1]):hc:vc,bc=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function xc(e){for(let t in e)if(!bc.has(t))return!0;return!1}var Sc=(e,t,n,r={},i,a)=>o=>{let s=mc(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=_i(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};xc(s)||Object.assign(u,yc(e,u)),u.duration&&=_i(u.duration),u.repeatDelay&&=_i(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Qs(u),u.delay===0&&(d=!0)),(ci.instantAnimations||ci.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Qs(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Po(u.keyframes,s);if(e!==void 0){V.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Ho(u):new oc(u)},Cc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wc(e){let t=Cc.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Tc(e,t,n=1){`${e}`;let[r,i]=wc(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return li(e)?parseFloat(e):e}return ea(i)?Tc(i,t,n+1):i}function Ec(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Dc(e,t,n,r){if(typeof t==`function`){let[i,a]=Ec(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Ec(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Oc(e,t,n){let r=e.getProps();return Dc(r,t,n===void 0?r.custom:n,e)}var kc=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...ps]),Ac=e=>Array.isArray(e);function jc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,fc(n))}function Mc(e){return Ac(e)?e[e.length-1]||0:e}function Nc(e,t){let{transitionEnd:n={},transition:r={},...i}=Oc(e,t)||{};i={...i,...n};for(let t in i)jc(e,t,Mc(i[t]))}var J=e=>!!(e&&e.getVelocity);function Pc(e){return!!(J(e)&&e.add)}function Fc(e,t){let n=e.getValue(`willChange`);if(Pc(n))return n.add(t);if(!n&&ci.WillChange){let n=new ci.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Ic(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Lc=`data-`+Ic(`framerAppearId`);function Rc(e){return e.props[Lc]}var zc=typeof window<`u`;function Bc({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Vc(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?pc(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Bc(f,t))continue;let o={delay:n,...mc(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){V.update(()=>r.set(i));continue}let p=!1;if(zc&&window.MotionHandoffAnimation){let n=Rc(e);if(n){let e=window.MotionHandoffAnimation(n,t,V);e!==null&&(o.startTime=e,p=!0)}}Fc(e,t);let m=l??e.shouldReduceMotion;r.start(Sc(t,r,i,m&&kc.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>V.update(()=>{o&&Nc(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Hc(e,t,n={}){let r=Oc(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Vc(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Uc(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function Uc(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Hc(c,t,{...o,delay:n+(typeof r==`function`?0:r)+sc(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Wc(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Hc(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Hc(e,t,n);else{let i=typeof t==`function`?Oc(e,t,n.custom):t;r=Promise.all(Vc(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Gc={test:e=>e===`auto`,parse:e=>e},Kc=e=>t=>t.test(e),qc=[ra,W,va,_a,ba,ya,Gc],Jc=e=>qc.find(Kc(e));function Yc(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||di(e)}var Xc=new Set([`auto`,`none`,`0`]);function Zc(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Xc.has(t)&&Na(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=$o(n,i))}var Qc=class extends As{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),ea(r))){let i=Tc(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!kc.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=Jc(r),o=Jc(i);if(na(r)!==na(i)&&xs[n]){this.needsMeasurement=!0;return}if(a!==o){if(hs(a)&&hs(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else xs[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Yc(e[t]))&&n.push(t);n.length&&Zc(e,n,t)}measure(){let{element:e,name:t}=this;return xs[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},$c=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function el(e){return ui(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function tl(e){return ui(e)&&`ownerSVGElement`in e}var nl=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function rl(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var il={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},al=ps.length;function ol(e,t,n){let r=``,i=!0;for(let a=0;a<al;a++){let o=ps[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=nl(s,Yo[o]);if(!c){i=!1;let t=il[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${nl(a,Yo.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function sl(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(ms.has(e)){o=!0;continue}if(Qi(e)){i[e]=n;continue}{let t=nl(n,Yo[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=ol(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var cl={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ll={offset:`strokeDashoffset`,array:`strokeDasharray`};function ul(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?cl:ll;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var dl=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function fl(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(sl(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of dl)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&ul(d,i,a,o,!1)}function pl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ml({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function hl(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function gl(e){return e===void 0||e===1}function _l({scale:e,scaleX:t,scaleY:n}){return!gl(e)||!gl(t)||!gl(n)}function vl(e){return _l(e)||yl(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function yl(e){return bl(e.x)||bl(e.y)}function bl(e){return e&&e!==`0%`}function xl(e,t,n){return n+t*(e-n)}function Sl(e,t,n,r,i){return i!==void 0&&(e=xl(e,i,r)),xl(e,n,r)+t}function Cl(e,t=0,n=1,r,i){e.min=Sl(e.min,t,n,r,i),e.max=Sl(e.max,t,n,r,i)}function wl(e,{x:t,y:n}){Cl(e.x,t.translate,t.scale,t.originPoint),Cl(e.y,n.translate,n.scale,n.originPoint)}var Tl=.999999999999,El=1.0000000000001;function Dl(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Ol(e.x,-a.scroll.offset.x),Ol(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,wl(e,o)),r&&vl(a.latestValues)&&jl(e,a.latestValues,a.layout?.layoutBox))}t.x<El&&t.x>Tl&&(t.x=1),t.y<El&&t.y>Tl&&(t.y=1)}function Ol(e,t){e.min+=t,e.max+=t}function kl(e,t,n,r,i=.5){Cl(e,t,n,K(e.min,e.max,i),r)}function Al(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function jl(e,t,n){let r=n??e;kl(e.x,Al(t.x,r.x),t.scaleX,t.scale,t.originX),kl(e.y,Al(t.y,r.y),t.scaleY,t.scale,t.originY)}function Ml(e,t){return pl(hl(e.getBoundingClientRect(),t))}function Nl(e,t,n){let r=Ml(e,n),{scroll:i}=t;return i&&(Ol(r.x,i.offset.x),Ol(r.y,i.offset.y)),r}var{schedule:Pl,cancel:Fl}=Gi(queueMicrotask,!1),Il={x:!1,y:!1};function Ll(){return Il.x||Il.y}function Rl(e){return e===`x`||e===`y`?Il[e]?null:(Il[e]=!0,()=>{Il[e]=!1}):Il.x||Il.y?null:(Il.x=Il.y=!0,()=>{Il.x=Il.y=!1})}function zl(e,t){let n=rl(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Bl(e){return!(e.pointerType===`touch`||Ll())}function Vl(e,t,n={}){let[r,i,a]=zl(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Bl(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Hl=(e,t)=>t?e===t||Hl(e,t.parentElement):!1,Ul=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Wl=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Gl(e){return Wl.has(e.tagName)||e.isContentEditable===!0}var Kl=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function ql(e){return Kl.has(e.tagName)||e.isContentEditable===!0}var Jl=new WeakSet;function Yl(e){return t=>{t.key===`Enter`&&e(t)}}function Xl(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Zl=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Yl(()=>{if(Jl.has(n))return;Xl(n,`down`);let e=Yl(()=>{Xl(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Xl(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Ql(e){return Ul(e)&&!Ll()}var $l=new WeakSet;function eu(e,t,n={}){let[r,i,a]=zl(e,n),o=e=>{let r=e.currentTarget;if(!Ql(e)||$l.has(e))return;Jl.add(r),n.stopPropagation&&$l.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Jl.has(r)&&Jl.delete(r),Ql(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Hl(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),el(e)&&(e.addEventListener(`focus`,e=>Zl(e,i)),!Gl(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var tu=new WeakMap,nu,ru=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:tl(r)&&`getBBox`in r?r.getBBox()[t]:r[n],iu=ru(`inline`,`width`,`offsetWidth`),au=ru(`block`,`height`,`offsetHeight`);function ou({target:e,borderBoxSize:t}){tu.get(e)?.forEach(n=>{n(e,{get width(){return iu(e,t)},get height(){return au(e,t)}})})}function su(e){e.forEach(ou)}function cu(){typeof ResizeObserver<`u`&&(nu=new ResizeObserver(su))}function lu(e,t){nu||cu();let n=rl(e);return n.forEach(e=>{let n=tu.get(e);n||(n=new Set,tu.set(e,n)),n.add(t),nu?.observe(e)}),()=>{n.forEach(e=>{let n=tu.get(e);n?.delete(t),n?.size||nu?.unobserve(e)})}}var uu=new Set,du;function fu(){du=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};uu.forEach(t=>t(e))},window.addEventListener(`resize`,du)}function pu(e){return uu.add(e),du||fu(),()=>{uu.delete(e),!uu.size&&typeof du==`function`&&(window.removeEventListener(`resize`,du),du=void 0)}}function mu(e,t){return typeof e==`function`?pu(e):lu(e,t)}var hu={value:null,addProjectionMetrics:null};function gu(e){return tl(e)&&e.tagName===`svg`}var _u=()=>({translate:0,scale:1,origin:0,originPoint:0}),vu=()=>({x:_u(),y:_u()}),yu=()=>({min:0,max:0}),Y=()=>({x:yu(),y:yu()}),bu=new WeakMap;function xu(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Su(e){return typeof e==`string`||Array.isArray(e)}var Cu=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],wu=[`initial`,...Cu];function Tu(e){if(xu(e.animate))return!0;for(let t=0;t<wu.length;t++)if(Su(e[wu[t]]))return!0;return!1}function Eu(e){return!!(Tu(e)||e.variants)}function Du(e,t,n){for(let r in t){let i=t[r],a=n[r];if(J(i))e.addValue(r,i);else if(J(a))e.addValue(r,fc(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,fc(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Ou={current:null},ku={current:!1},Au=typeof window<`u`;function ju(){if(ku.current=!0,Au){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Ou.current=e.matches;e.addEventListener(`change`,t),t()}else Ou.current=!1}}var Mu=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Nu={};function Pu(e){Nu=e}function Fu(){return Nu}var Iu=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=As,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 e=U.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,V.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Tu(t),this.isVariantNode=Eu(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&J(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,bu.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(ku.current||ju(),this.shouldReduceMotion=Ou.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Ki(this.notifyUpdate),Ki(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&$s.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Us({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:_i(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=ms.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&V.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Nu){let t=Nu[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Y()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Mu.length;t++){let n=Mu[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Du(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=fc(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(li(n)||di(n))?n=parseFloat(n):typeof n!=`number`&&!Va.test(n)&&Va.test(t)&&(n=$o(e,t)),this.setBaseTarget(e,J(n)?n.get():n)),J(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Dc(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!J(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new gi),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Pl.render(this.render)}},Lu=class extends Iu{constructor(){super(...arguments),this.KeyframeResolver=Qc}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;J(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Ru=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function zu(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Bu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Vu={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(W.test(e))e=parseFloat(e);else return e}return`${Bu(e,t.target.x)}% ${Bu(e,t.target.y)}%`}},Hu={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Va.parse(e);if(i.length>5)return r;let a=Va.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=K(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Uu={borderRadius:{...Vu,applyTo:[...$c]},borderTopLeftRadius:Vu,borderTopRightRadius:Vu,borderBottomLeftRadius:Vu,borderBottomRightRadius:Vu,boxShadow:Hu};function Wu(e,{layout:t,layoutId:n}){return ms.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Uu[e]||e===`opacity`)}function Gu(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(J(r[t])||i&&J(i[t])||Wu(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Ku(e){return window.getComputedStyle(e)}var qu=class extends Lu{constructor(){super(...arguments),this.type=`html`,this.renderInstance=zu}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(ms.has(t))return this.projection?.isProjecting?ls(t):ds(e,t);{let n=Ku(e),r=(Qi(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ml(e,t)}build(e,t,n){sl(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Gu(e,t,n)}},Ju=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`]),Yu=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Xu(e,t,n,r){zu(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Ju.has(n)?n:Ic(n),t.attrs[n])}function Zu(e,t,n){let r=Gu(e,t,n);for(let n in e)if(J(e[n])||J(t[n])){let t=ps.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Qu=class extends Lu{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Y}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ms.has(t)){let e=Zo(t);return e&&e.default||0}if(dl.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Ju.has(t)?t:Ic(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Zu(e,t,n)}build(e,t,n){fl(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Xu(e,t,n,r)}mount(e){this.isSVGTag=Yu(e.tagName),super.mount(e)}},$u=wu.length;function ed(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&ed(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<$u;n++){let r=wu[n],i=e.props[r];(Su(i)||i===!1)&&(t[r]=i)}return t}function td(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var nd=[...Cu].reverse(),rd=Cu.length;function id(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Wc(e,t,n)))}function ad(e){let t=id(e),n=cd(),r=!0,i=!1,a=t=>(n,r)=>{let i=Oc(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=ed(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<rd;t++){let p=nd[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Su(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||xu(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=od(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Ac(t)&&Ac(n)?!td(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Oc(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=sc(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Oc(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=cd(),i=!0}}}function od(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!td(t,e):!1}function sd(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function cd(){return{animate:sd(!0),whileInView:sd(),whileHover:sd(),whileTap:sd(),whileDrag:sd(),whileFocus:sd(),exit:sd()}}function ld(e,t){e.min=t.min,e.max=t.max}function ud(e,t){ld(e.x,t.x),ld(e.y,t.y)}function dd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var fd=.9999,pd=1.0001,md=-.01,hd=.01;function X(e){return e.max-e.min}function gd(e,t,n){return Math.abs(e-t)<=n}function _d(e,t,n,r=.5){e.origin=r,e.originPoint=K(t.min,t.max,e.origin),e.scale=X(n)/X(t),e.translate=K(n.min,n.max,e.origin)-e.originPoint,(e.scale>=fd&&e.scale<=pd||isNaN(e.scale))&&(e.scale=1),(e.translate>=md&&e.translate<=hd||isNaN(e.translate))&&(e.translate=0)}function vd(e,t,n,r){_d(e.x,t.x,n.x,r?r.originX:void 0),_d(e.y,t.y,n.y,r?r.originY:void 0)}function yd(e,t,n,r=0){e.min=(r?K(n.min,n.max,r):n.min)+t.min,e.max=e.min+X(t)}function bd(e,t,n,r){yd(e.x,t.x,n.x,r?.x),yd(e.y,t.y,n.y,r?.y)}function xd(e,t,n,r=0){let i=r?K(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+X(t)}function Sd(e,t,n,r){xd(e.x,t.x,n.x,r?.x),xd(e.y,t.y,n.y,r?.y)}function Cd(e,t,n,r,i){return e-=t,e=xl(e,1/n,r),i!==void 0&&(e=xl(e,1/i,r)),e}function wd(e,t=0,n=1,r=.5,i,a=e,o=e){if(va.test(t)&&(t=parseFloat(t),t=K(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=K(a.min,a.max,r);e===a&&(s-=t),e.min=Cd(e.min,t,n,s,i),e.max=Cd(e.max,t,n,s,i)}function Td(e,t,[n,r,i],a,o){wd(e,t[n],t[r],t[i],t.scale,a,o)}var Ed=[`x`,`scaleX`,`originX`],Dd=[`y`,`scaleY`,`originY`];function Od(e,t,n,r){Td(e.x,t,Ed,n?n.x:void 0,r?r.x:void 0),Td(e.y,t,Dd,n?n.y:void 0,r?r.y:void 0)}function kd(e){return e.translate===0&&e.scale===1}function Ad(e){return kd(e.x)&&kd(e.y)}function jd(e,t){return e.min===t.min&&e.max===t.max}function Md(e,t){return jd(e.x,t.x)&&jd(e.y,t.y)}function Nd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Pd(e,t){return Nd(e.x,t.x)&&Nd(e.y,t.y)}function Fd(e){return X(e.x)/X(e.y)}function Id(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Ld(e){return[e(`x`),e(`y`)]}function Rd(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var zd=$c.length,Bd=e=>typeof e==`string`?parseFloat(e):e,Vd=e=>typeof e==`number`||W.test(e);function Hd(e,t,n,r,i,a){i?(e.opacity=K(0,n.opacity??1,Wd(r)),e.opacityExit=K(t.opacity??1,0,Gd(r))):a&&(e.opacity=K(t.opacity??1,n.opacity??1,r));for(let i=0;i<zd;i++){let a=$c[i],o=Ud(t,a),s=Ud(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Vd(o)===Vd(s)?(e[a]=Math.max(K(Bd(o),Bd(s),r),0),(va.test(s)||va.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=K(t.rotate||0,n.rotate||0,r))}function Ud(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Wd=Kd(0,.5,Mi),Gd=Kd(.5,.95,pi);function Kd(e,t,n){return r=>r<e?0:r>t?1:n(hi(e,t,r))}function qd(e,t,n){let r=J(e)?e:fc(e);return r.start(Sc(``,r,t,n)),r.animation}function Jd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Yd=(e,t)=>e.depth-t.depth,Xd=class{constructor(){this.children=[],this.isDirty=!1}add(e){ai(this.children,e),this.isDirty=!0}remove(e){oi(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Yd),this.isDirty=!1,this.children.forEach(e)}};function Zd(e,t){let n=U.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Ki(r),e(a-t))};return V.setup(r,!0),()=>Ki(r)}function Qd(e){return J(e)?e.get():e}var $d=class{constructor(){this.members=[]}add(e){ai(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(oi(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(oi(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},ef={hasAnimatedSinceResize:!0,hasEverUpdated:!1},tf={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},nf=[``,`X`,`Y`,`Z`],rf=1e3,af=0;function of(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function sf(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Rc(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,V,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&sf(r)}function cf({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=af++,this.animationId=0,this.animationCommitId=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,hu.value&&(tf.nodes=tf.calculatedTargetDeltas=tf.calculatedProjections=0),this.nodes.forEach(df),this.nodes.forEach(xf),this.nodes.forEach(Sf),this.nodes.forEach(ff),hu.addProjectionMetrics&&hu.addProjectionMetrics(tf)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Xd)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new gi),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=tl(t)&&!gu(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;V.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Zd(i,250),ef.hasAnimatedSinceResize&&(ef.hasAnimatedSinceResize=!1,this.nodes.forEach(bf)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||kf,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Pd(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...mc(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||bf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ki(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(Cf),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&sf(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(hf),this.nodes.forEach(mf);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(gf);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(_f),this.nodes.forEach(vf),this.nodes.forEach(yf),this.nodes.forEach(lf),this.nodes.forEach(uf)):this.nodes.forEach(gf),this.clearAllSnapshots();let e=U.now();H.delta=si(0,1e3/60,e-H.timestamp),H.timestamp=e,H.isProcessing=!0,qi.update.process(H),qi.preRender.process(H),qi.render.process(H),H.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Pl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(pf),this.sharedNodes.forEach(wf)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,V.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){V.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!X(this.snapshot.measuredBox.x)&&!X(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected||=Y(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Ad(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||vl(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Nf(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Y();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Ff))){let{scroll:e}=this.root;e&&(Ol(t.x,e.offset.x),Ol(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Y();if(ud(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&ud(t,e),Ol(t.x,i.offset.x),Ol(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Y();ud(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Ol(r.x,-n.scroll.offset.x),Ol(r.y,-n.scroll.offset.y)),vl(n.latestValues)&&jl(r,n.latestValues,n.layout?.layoutBox)}return vl(this.latestValues)&&jl(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Y();ud(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!vl(n.latestValues))continue;let r;n.instance&&(_l(n.latestValues)&&n.updateSnapshot(),r=Y(),ud(r,n.measurePageBox())),Od(t,n.latestValues,n.snapshot?.layoutBox,r)}return vl(this.latestValues)&&Od(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}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!==H.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=H.timestamp;let a=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=Y(),this.targetWithTransforms=Y()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),bd(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):ud(this.target,this.layout.layoutBox),wl(this.target,this.targetDelta)):ud(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),hu.value&&tf.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||_l(this.parent.latestValues)||yl(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),Sd(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),ud(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===H.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;ud(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Dl(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Y());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(dd(this.prevProjectionDelta.x,this.projectionDelta.x),dd(this.prevProjectionDelta.y,this.projectionDelta.y)),vd(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Id(this.projectionDelta.x,this.prevProjectionDelta.x)||!Id(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),hu.value&&tf.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=vu(),this.projectionDelta=vu(),this.projectionDeltaWithTransform=vu()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=vu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Y(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(Of));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=K(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=K(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Tf(o.x,e.x,n),Tf(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Sd(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Df(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Md(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Y(),ud(f,this.relativeTarget)),c&&(this.animationValues=a,Hd(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Ki(this.pendingAnimation),void 0),this.pendingAnimation=V.update(()=>{ef.hasAnimatedSinceResize=!0,this.motionValue||=fc(0),this.motionValue.jump(0,!1),this.currentAnimation=qd(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),zo(this.currentAnimation,this),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 e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(rf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&Pf(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||Y();let t=X(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=X(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}ud(t,i),jl(t,r),vd(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new $d),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&of(`z`,e,r,this.animationValues);for(let t=0;t<nf.length;t++)of(`rotate${nf[t]}`,e,r,this.animationValues),of(`skew${nf[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Qd(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Qd(t?.pointerEvents)||``),this.hasProjected&&!vl(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Rd(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Uu){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Uu[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Qd(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(mf),this.root.sharedNodes.clear()}}}function lf(e){e.updateLayout()}function uf(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Ld(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=X(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;ld(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Pf(i,t.layoutBox,n)&&Ld(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=X(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=vu();vd(o,n,t.layoutBox);let s=vu();a?vd(s,e.applyTransform(r,!0),t.measuredBox):vd(s,n,t.layoutBox);let c=!Ad(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=Y();Sd(s,t.layoutBox,i.layoutBox,o);let c=Y();Sd(c,n,a.layoutBox,o),Pd(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function df(e){hu.value&&tf.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function ff(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pf(e){e.clearSnapshot()}function mf(e){e.clearMeasurements()}function hf(e){e.isLayoutDirty=!0,e.updateLayout()}function gf(e){e.isLayoutDirty=!1}function _f(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function vf(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function yf(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function bf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function xf(e){e.resolveTargetDelta()}function Sf(e){e.calcProjection()}function Cf(e){e.resetSkewAndRotation()}function wf(e){e.removeLeadSnapshot()}function Tf(e,t,n){e.translate=K(t.translate,0,n),e.scale=K(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ef(e,t,n,r){e.min=K(t.min,n.min,r),e.max=K(t.max,n.max,r)}function Df(e,t,n,r){Ef(e.x,t.x,n.x,r),Ef(e.y,t.y,n.y,r)}function Of(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var kf={duration:.45,ease:[.4,0,.1,1]},Af=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),jf=Af(`applewebkit/`)&&!Af(`chrome/`)?Math.round:pi;function Mf(e){e.min=jf(e.min),e.max=jf(e.max)}function Nf(e){Mf(e.x),Mf(e.y)}function Pf(e,t,n){return e===`position`||e===`preserve-aspect`&&!gd(Fd(t),Fd(n),.2)}function Ff(e){return e!==e.root&&e.scroll?.wasRoot}var If=cf({attachResizeListener:(e,t)=>Jd(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Lf={current:void 0},Rf=cf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Lf.current){let e=new If({});e.mount(window),e.setOptions({layoutScroll:!0}),Lf.current=e}return Lf.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),zf=(0,C.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Bf(e=!0){let t=(0,C.useContext)(ii);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,C.useId)();(0,C.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,C.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Vf=(0,C.createContext)({strict:!1}),Hf={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`]},Uf=!1;function Wf(){if(Uf)return;let e={};for(let t in Hf)e[t]={isEnabled:e=>Hf[t].some(t=>!!e[t])};Pu(e),Uf=!0}function Gf(){return Wf(),Fu()}function Kf(e){let t=Gf();for(let n in e)t[n]={...t[n],...e[n]};Pu(t)}var qf=(0,C.createContext)({});function Jf(e,t){if(Tu(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Su(t)?t:void 0,animate:Su(n)?n:void 0}}return e.inherit===!1?{}:t}function Yf(e){let{initial:t,animate:n}=Jf(e,(0,C.useContext)(qf));return(0,C.useMemo)(()=>({initial:t,animate:n}),[Xf(t),Xf(n)])}function Xf(e){return Array.isArray(e)?e.join(` `):e}var Zf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qf(e,t,n){for(let r in t)!J(t[r])&&!Wu(r,n)&&(e[r]=t[r])}function $f({transformTemplate:e},t){return(0,C.useMemo)(()=>{let n=Zf();return sl(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ep(e,t){let n=e.style||{},r={};return Qf(r,n,e),Object.assign(r,$f(e,t)),r}function tp(e,t){let n={},r=ep(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var np=()=>({...Zf(),attrs:{}});function rp(e,t,n,r){let i=(0,C.useMemo)(()=>{let n=np();return fl(n,t,Yu(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Qf(t,e.style,e),i.style={...t,...i.style}}return i}var ip=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.propagate.ignoreStrict.viewport`.split(`.`));function ap(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||ip.has(e)}function op(e,t){return e.startsWith(`on`)?!ap(e):t?.(e)??!ap(e)}function sp(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(J(e[a])||(op(a,r)||n===!0&&ap(a)||!t&&!ap(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var cp=[`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 lp(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(cp.indexOf(e)>-1||/[A-Z]/u.test(e))}function up(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??lp(e)?rp:tp)(t,r,i,e),l=sp(t,typeof e==`string`,a,s),u=e===C.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,C.useMemo)(()=>J(d)?d.get():d,[d]);return(0,C.createElement)(e,{...u,children:f})}function dp({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:fp(n,r,i,e),renderState:t()}}function fp(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Qd(a[e]);let{initial:o,animate:s}=e,c=Tu(e),l=Eu(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!xu(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Dc(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var pp=e=>(t,n)=>{let r=(0,C.useContext)(qf),i=(0,C.useContext)(ii),a=()=>dp(e,t,r,i);return n?a():ni(a)},mp=pp({scrapeMotionValuesFromProps:Gu,createRenderState:Zf}),hp=pp({scrapeMotionValuesFromProps:Zu,createRenderState:np}),gp=Symbol.for(`motionComponentSymbol`);function _p(e,t,n){let r=(0,C.useRef)(n);(0,C.useInsertionEffect)(()=>{r.current=n});let i=(0,C.useRef)(null);return(0,C.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var vp=(0,C.createContext)({});function yp(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function bp(e,t,n,r,i,a){let{visualElement:o}=(0,C.useContext)(qf),s=(0,C.useContext)(Vf),c=(0,C.useContext)(ii),l=(0,C.useContext)(zf),u=l.reducedMotion,d=l.skipAnimations,f=(0,C.useRef)(null),p=(0,C.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,C.useContext)(vp);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&xp(f.current,n,i,h);let g=(0,C.useRef)(!1);(0,C.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[Lc],v=(0,C.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return ri(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),ri(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,C.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function xp(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Sp(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&yp(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Sp(e){if(e)return e.options.allowProjection===!1?Sp(e.parent):e.projection}function Cp(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Kf(r);let a=n?n===`svg`:lp(e),o=a?hp:mp;function s(n,s){let c,l={...(0,C.useContext)(zf),...n,layoutId:wp(n)},{isStatic:u,isValidProp:d}=l,f=Yf(n),p=o(n,u);if(!u&&typeof window<`u`){Tp(l,r);let t=Ep(l);c=t.MeasureLayout,f.visualElement=bp(e,p,l,i,t.ProjectionNode,a)}return(0,w.jsxs)(qf.Provider,{value:f,children:[c&&f.visualElement?(0,w.jsx)(c,{visualElement:f.visualElement,...l}):null,up(e,n,_p(p,f.visualElement,s),p,u,t,a,d)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,C.forwardRef)(s);return c[gp]=e,c}function wp({layoutId:e}){let t=(0,C.useContext)(ti).id;return t&&e!==void 0?t+`-`+e:e}function Tp(e,t){(0,C.useContext)(Vf).strict}function Ep(e){let{drag:t,layout:n}=Gf();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Dp(e,t){if(typeof Proxy>`u`)return Cp;let n=new Map,r=(n,r)=>Cp(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Cp(a,void 0,e,t)),n.get(a))})}var Op=(e,t)=>t.isSVG??lp(e)?new Qu(t):new qu(t,{allowProjection:e!==C.Fragment}),kp=class extends Ru{constructor(e){super(e),e.animationState||=ad(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();xu(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Ap=0,jp={animation:{Feature:kp},exit:{Feature:class extends Ru{constructor(){super(...arguments),this.id=Ap++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Oc(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.blockInitialAnimation=!1,this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1,this.exitAnimation=void 0;return}let r=this.exitAnimation=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.exitAnimation===r&&(this.isExitComplete=!0,t(this.id))})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Mp(e){return{point:{x:e.pageX,y:e.pageY}}}var Np=e=>t=>Ul(t)&&e(t,Mp(t));function Pp(e,t,n,r){return Jd(e,t,Np(n),r)}var Fp=({current:e})=>e?e.ownerDocument.defaultView:null,Ip=(e,t)=>Math.abs(e-t);function Lp(e,t){let n=Ip(e.x,t.x),r=Ip(e.y,t.y);return Math.sqrt(n**2+r**2)}var Rp=new Set([`auto`,`scroll`]),zp=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Bp(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Hp(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Lp(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:U.now()});let{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Bp(t,this.transformPagePoint),this.hasPendingMove=!0,V.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Hp(e.type===`pointercancel`?this.lastMoveEventInfo:Bp(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Ul(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Bp(Mp(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=H;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Hp(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=mi(Pp(this.contextWindow,`pointermove`,this.handlePointerMove,d),Pp(this.contextWindow,`pointerup`,this.handlePointerUp,d),Pp(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Rp.has(e.overflowX)||Rp.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),V.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ki(this.updatePoint)}};function Bp(e,t){return t?{point:t(e.point)}:e}function Vp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Hp({point:e},t){return{point:e,delta:Vp(e,Wp(t)),offset:Vp(e,Up(t)),velocity:Gp(t,.1)}}function Up(e){return e[0]}function Wp(e){return e[e.length-1]}function Gp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Wp(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>_i(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>_i(t)*2&&(r=e[1]);let a=vi(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Kp(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?K(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?K(n,e,r.max):Math.min(e,n)),e}function qp(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Jp(e,{top:t,left:n,bottom:r,right:i}){return{x:qp(e.x,n,i),y:qp(e.y,t,r)}}function Yp(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Xp(e,t){return{x:Yp(e.x,t.x),y:Yp(e.y,t.y)}}function Zp(e,t){let n=.5,r=X(e),i=X(t);return i>r?n=hi(t.min,t.max-r,e.min):r>i&&(n=hi(e.min,e.max-i,t.min)),si(0,1,n)}function Qp(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var $p=.35;function em(e=$p){return e===!1?e=0:e===!0&&(e=$p),{x:tm(e,`left`,`right`),y:tm(e,`top`,`bottom`)}}function tm(e,t,n){return{min:nm(e,t),max:nm(e,n)}}function nm(e,t){return typeof e==`number`?e:e[t]||0}var rm=new WeakMap,im=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Y(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(e),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Rl(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ld(e=>{let t=this.getAxisMotionValue(e).get()||0;if(va.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=X(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&V.update(()=>i(e,t),!1,!0),Fc(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=cm(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&V.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new zp(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Fp(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&V.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!sm(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Kp(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&yp(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?Jp(n.layoutBox,e):!1,this.elastic=em(t),r!==this.constraints&&!yp(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Ld(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Qp(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!yp(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Nl(n,r.root,this.visualElement.getTransformPagePoint()),a=Xp(r.layout.layoutBox,i);if(t){let e=t(ml(a));this.hasMutatedConstraints=!!e,e&&(a=pl(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Ld(o=>{if(!sm(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Fc(this.visualElement,e),n.start(Sc(e,n,0,t,this.visualElement,!1))}stopAnimation(){Ld(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();Ld(e=>{if(!sm(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-K(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!yp(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};Ld(e=>{let t=this.getAxisMotionValue(e).get();i[e]=Zp({min:t,max:t},r[e])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Ld(t=>{let n=this.getAxisMotionValue(t);if(!sm(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(K(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;rm.set(this.visualElement,this);let e=this.visualElement.current,t=Pp(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&ql(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();yp(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=om(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),V.read(r);let o=Jd(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Ld(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=$p,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function am(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function om(e,t,n){let r=mu(e,am(n)),i=mu(t,am(n));return()=>{r(),i()}}function sm(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function cm(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var lm=class extends Ru{constructor(e){super(e),this.removeGroupControls=pi,this.removeListeners=pi,this.controls=new im(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||pi}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},um=e=>(t,n)=>{e&&V.update(()=>e(t,n),!1,!0)},dm=class extends Ru{constructor(){super(...arguments),this.removePointerDownListener=pi}onPointerDown(e){this.session=new zp(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Fp(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:um(e),onStart:um(t),onMove:um(n),onEnd:(e,t)=>{delete this.session,r&&V.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Pp(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},fm=!1,pm=class extends C.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),fm&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ef.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),fm=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||V.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Pl.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;fm=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function mm(e){let[t,n]=Bf(),r=(0,C.useContext)(ti);return(0,w.jsx)(pm,{...e,layoutGroup:r,switchLayoutGroup:(0,C.useContext)(vp),isPresent:t,safeToRemove:n})}var hm={pan:{Feature:dm},drag:{Feature:lm,ProjectionNode:Rf,MeasureLayout:mm}};function gm(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&V.postRender(()=>i(t,Mp(t)))}var _m=class extends Ru{mount(){let{current:e}=this.node;e&&(this.unmount=Vl(e,(e,t)=>(gm(this.node,t,`Start`),e=>gm(this.node,e,`End`))))}unmount(){}},vm=class extends Ru{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=mi(Jd(this.node.current,`focus`,()=>this.onFocus()),Jd(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function ym(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&V.postRender(()=>i(t,Mp(t)))}var bm=class extends Ru{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=eu(e,(e,t)=>(ym(this.node,t,`Start`),(e,{success:t})=>ym(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},xm=new WeakMap,Sm=new WeakMap,Cm=e=>{let t=xm.get(e.target);t&&t(e)},wm=e=>{e.forEach(Cm)};function Tm({root:e,...t}){let n=e||document;Sm.has(n)||Sm.set(n,{});let r=Sm.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(wm,{root:e,...t})),r[i]}function Em(e,t,n){let r=Tm(t);return xm.set(e,n),r.observe(e),()=>{xm.delete(e),r.unobserve(e)}}var Dm={some:0,all:1},Om=class extends Ru{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Dm[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Em(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(km(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function km({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Am={inView:{Feature:Om},tap:{Feature:bm},focus:{Feature:vm},hover:{Feature:_m}},jm={layout:{ProjectionNode:Rf,MeasureLayout:mm}},Mm=Dp({...jp,...Am,...hm,...jm},Op),Nm=({className:e,strokeWidth:t=4})=>(0,w.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`44`,height:`44`,viewBox:`0 0 44 44`,stroke:`currentColor`,role:`img`,"aria-label":`Spinner`,className:i(`size-full`,e),children:(0,w.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,strokeWidth:t,children:[(0,w.jsxs)(`circle`,{cx:`22`,cy:`22`,r:`1`,children:[(0,w.jsx)(`animate`,{attributeName:`r`,begin:`0s`,dur:`1.8s`,values:`1; 20`,calcMode:`spline`,keyTimes:`0; 1`,keySplines:`0.165, 0.84, 0.44, 1`,repeatCount:`indefinite`}),(0,w.jsx)(`animate`,{attributeName:`stroke-opacity`,begin:`0s`,dur:`1.8s`,values:`1; 0`,calcMode:`spline`,keyTimes:`0; 1`,keySplines:`0.3, 0.61, 0.355, 1`,repeatCount:`indefinite`})]}),(0,w.jsxs)(`circle`,{cx:`22`,cy:`22`,r:`1`,children:[(0,w.jsx)(`animate`,{attributeName:`r`,begin:`-0.9s`,dur:`1.8s`,values:`1; 20`,calcMode:`spline`,keyTimes:`0; 1`,keySplines:`0.165, 0.84, 0.44, 1`,repeatCount:`indefinite`}),(0,w.jsx)(`animate`,{attributeName:`stroke-opacity`,begin:`-0.9s`,dur:`1.8s`,values:`1; 0`,calcMode:`spline`,keyTimes:`0; 1`,keySplines:`0.3, 0.61, 0.355, 1`,repeatCount:`indefinite`})]})]})}),Pm=({children:e,isLoading:t=!0,keepChildren:n=!1,className:r,...a})=>(0,w.jsx)(w.Fragment,{children:t&&n?(0,w.jsxs)(`div`,{className:`relative size-full`,children:[(0,w.jsx)(`div`,{className:i(`absolute inset-s-0 top-0 flex size-full max-h-screen max-w-[100vw] flex-1 items-center justify-center`,r),role:`status`,"aria-label":`Animated icon, meaning that the website is processing`,...a,children:(0,w.jsx)(Nm,{className:`size-10 max-h-full max-w-full`})}),e]}):t?(0,w.jsx)(`div`,{className:i(`flex size-full max-h-screen max-w-[100vw] flex-1 items-center justify-center`,r),role:`status`,"aria-label":`Animated icon, meaning that the website is processing`,...a,children:(0,w.jsx)(Nm,{className:`size-10 max-h-full max-w-full`})}):e??(0,w.jsx)(w.Fragment,{})}),Fm=mn(`flex-none shrink-0`,{variants:{size:{xs:`size-2`,sm:`size-3`,md:`size-4`,lg:`size-5`,xl:`size-6`,"icon-sm":`size-3`,"icon-md":`size-4`,"icon-lg":`size-5`,"icon-xl":`size-6`,custom:``}},defaultVariants:{size:`md`}}),Im=mn(`rtl-mirror-icons relative inline-flex cursor-pointer items-center justify-center font-medium ring-0 transition-all duration-300 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50`,{variants:{size:{xs:`min-h-7 px-3 text-xs max-md:py-1`,sm:`min-h-7 px-3 text-xs max-md:py-1`,md:`min-h-8 px-6 text-sm max-md:py-2`,lg:`min-h-10 px-8 text-lg max-md:py-3`,xl:`min-h-11 px-10 text-xl max-md:py-4`,"icon-sm":`p-1.5`,"icon-md":`p-1.5`,"icon-lg":`p-1.5`,"icon-xl":`p-3`,custom:``},color:{neutral:`text-neutral ring-neutral-500/5 *:text-text-light`,card:`hover-card-500/20 text-card ring-card-500/20 *:text-text-light`,text:`text-text ring-text/20 *:text-text-opposite`,foreground:`text-foreground ring-foreground/20 *:text-foreground-opposite`,"text-inverse":`text-text-opposite ring-text-opposite/20 *:text-text`,error:`hover-error-500/20 text-error ring-error/20 *:text-text-light`,success:`hover-success-500/20 text-success ring-success/20 *:text-text-light`,custom:``},roundedSize:{none:`rounded-none`,sm:`rounded-lg [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-xl`,md:`rounded-xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-2xl`,lg:`rounded-2xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-3xl`,xl:`rounded-3xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-4xl`,"2xl":`rounded-4xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[2.5rem]`,"3xl":`rounded-[2.5rem] [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[3rem]`,"4xl":`rounded-[3rem] [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[4rem]`,"5xl":`rounded-[4rem] [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[5rem]`,full:`rounded-full`},variant:{default:[`bg-current`,`hover:bg-current/90`,`hover:ring-5`,`aria-selected:ring-5`],outline:[`rounded-2xl border-[1.3px] border-current! bg-current/0 *:text-current!`,`hover:border-transparent hover:bg-current/30! focus-visible:bg-current/20`,`hover:ring-5 focus-visible:ring-5`,`aria-selected:ring-5`],none:`border-none bg-current/0 text-inherit hover:bg-current/0`,link:`h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 *:text-current! hover:bg-transparent hover:underline`,"invisible-link":`h-auto justify-start border-inherit bg-transparent underline-offset-4 *:text-current! hover:bg-transparent`,hoverable:`rounded-lg border-none bg-current/0 transition *:text-current! hover:bg-current/5 aria-[current]:bg-current/3`,fade:[`rounded-lg border-none bg-current/10 ring-current/5 transition *:text-current! hover:bg-current/10 aria-[current]:bg-current/3`,`hover:ring-5 focus-visible:ring-5`,`aria-selected:ring-5`],input:[`text-text`,`w-full select-text resize-none rounded-2xl text-base shadow-none outline-none supports-[corner-shape:squircle]:rounded-4xl`,`transition-shadow duration-100 md:text-sm`,`ring-0`,`disabled:opacity-50`,`text-text`,`bg-neutral-50 dark:bg-neutral-950`,`ring-neutral-100 dark:ring-neutral-700`,`hover:ring-3`,`aria-selected:ring-4`,`focus-visible:ring-3`,`disabled:ring-0`,`focus-visible:outline-none`,`[box-shadow:none] focus:[box-shadow:none]`,`aria-invalid:border-error`]},textAlign:{left:`justify-start text-start`,center:`justify-center text-center`,right:`justify-end text-end`},isFullWidth:{true:`w-full`,false:``}},defaultVariants:{variant:`default`,size:`md`,color:`text`,roundedSize:`md`,textAlign:`center`,isFullWidth:!1}}),Lm=({variant:e,size:t,color:n,children:r,Icon:a,IconRight:o,iconClassName:s,isLoading:c=!1,isActive:l,isSelected:u,isFullWidth:d,roundedSize:f,textAlign:p,disabled:m,label:h,className:g,type:_=`button`,"aria-describedby":v,"aria-expanded":y,"aria-haspopup":b,"aria-pressed":x,...S})=>{let C=e===`link`||e===`invisible-link`,T=!r&&(a||o),E={"aria-label":T?h??void 0:void 0,"aria-labelledby":void 0,"aria-describedby":v,"aria-expanded":y,"aria-haspopup":b,"aria-pressed":l===void 0?x:l,"aria-busy":c,"aria-current":l?`page`:void 0,"aria-disabled":m||c,"aria-selected":u},D=t===`icon-sm`||t===`icon-md`||t===`icon-lg`||t===`icon-xl`;return(0,w.jsxs)(`button`,{disabled:c||m,role:C?`link`:`button`,type:_,className:Im({variant:e,size:t,color:n,isFullWidth:d,roundedSize:f,textAlign:p??(o?`left`:`center`),className:g}),...E,...S,children:[a&&!c&&(0,w.jsx)(a,{className:Fm({size:t,className:i(!D&&`me-3`,s)}),"aria-hidden":`true`}),(0,w.jsx)(`div`,{className:i(`flex items-center justify-center transition-[width] duration-300`,c&&t===`sm`&&`w-3`,c&&t===`md`&&`w-4`,c&&t===`lg`&&`w-6`,c&&t===`xl`&&`w-8`),children:(0,w.jsx)(Pm,{className:Fm({size:t,className:i(!D&&`me-3`,s)}),isLoading:c,"aria-hidden":`true`,"data-testid":`loader`})}),r&&(0,w.jsx)(`span`,{className:`flex-1 truncate whitespace-nowrap`,children:r}),!r&&T&&(0,w.jsx)(`span`,{className:`sr-only`,children:h}),o&&(0,w.jsx)(o,{className:Fm({size:t,className:i(!D&&`ms-3`,s)}),"aria-hidden":`true`})]})},Rm=({children:e,isHidden:t,className:n=``,isOverable:r=!1,isFocusable:a=!1,minHeight:o=0,...s})=>(0,w.jsx)(`div`,{"aria-hidden":a?t:void 0,tabIndex:a?0:void 0,role:a?`button`:`none`,className:i(`group/height-smoother relative grid w-full grid-rows-[0fr] overflow-hidden transition-[grid-template-rows] duration-700 ease-in-out`,t!==void 0&&!t&&`grid-rows-[1fr] overflow-x-auto`,r&&`hover:grid-rows-[1fr] hover:overflow-x-auto`,a&&`focus-within:grid-rows-[1fr] focus-within:overflow-x-auto focus:grid-rows-[1fr] focus:overflow-x-auto`,n),...s,children:(0,w.jsx)(`div`,{style:{minHeight:`${o}px`},className:i(r&&`group-hover/height-smoother:visible`,a&&`group-focus/height-smoother:visible`,n),children:e})}),zm=new Set,Bm=null,Vm=()=>{Bm=null;let e=[...zm];zm.clear();for(let t of e)t()},Hm=e=>typeof requestAnimationFrame>`u`?()=>{}:(zm.add(e),Bm??=requestAnimationFrame(Vm),()=>{zm.delete(e),zm.size===0&&Bm!==null&&(cancelAnimationFrame(Bm),Bm=null)}),Um=e=>e?.getAttribute(`aria-selected`)===`true`,Wm=[`aria-selected`,`data-active`,`data-indicator`],Gm=150,Km=(e,{selector:t=Um,isHoverable:n=!1,orientation:r=`horizontal`}={selector:Um,isHoverable:!1,orientation:`horizontal`})=>{let[i,a]=(0,C.useState)(null),o=(0,C.useRef)(null),s=(0,C.useRef)(null),c=(0,C.useRef)(null),l=(0,C.useRef)(null),u=(0,C.useRef)(t);u.current=t;let d=(0,C.useRef)(r);d.current=r;let f=e.current.length,p=(0,C.useCallback)(()=>{let t=o.current??e.current.find(u.current)??null;o.current&&s.current&&(clearTimeout(s.current),s.current=null);let n=d.current===`vertical`;if(!t){if(c.current?.opacity===0)return;let e=n?{top:c.current?.top??0,height:c.current?.height??0,opacity:0}:{left:c.current?.left??0,width:c.current?.width??0,opacity:0};a(e),c.current=e;return}if(n){let e=t.offsetTop,n=t.offsetHeight,r=c.current;if(r?.top===e&&r.height===n&&r.opacity===1)return;let i={top:e,height:n,opacity:1};a(i),c.current=i;return}let r=t.offsetLeft,i=t.offsetWidth,l=c.current;if(l?.left===r&&l.width===i&&l.opacity===1)return;let f={left:r,width:i,opacity:1};a(f),c.current=f},[e]),m=(0,C.useCallback)(()=>{l.current===null&&(l.current=Hm(()=>{l.current=null,p()}))},[p]);return(0,C.useEffect)(()=>{m(),window.addEventListener(`resize`,m,{passive:!0}),window.addEventListener(`DOMContentLoaded`,m);let t=e.current.filter(Boolean),r=new MutationObserver(m),i=new ResizeObserver(m),a=e=>{s.current&&=(clearTimeout(s.current),null),o.current=e.currentTarget,m()},c=()=>{s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{o.current=null,m()},Gm)};for(let e of t)r.observe(e,{attributes:!0,attributeFilter:Wm}),i.observe(e),n&&(e.addEventListener(`mouseenter`,a,{passive:!0}),e.addEventListener(`mouseleave`,c,{passive:!0}));return()=>{if(l.current?.(),l.current=null,s.current&&=(clearTimeout(s.current),null),window.removeEventListener(`resize`,m),window.removeEventListener(`DOMContentLoaded`,m),r.disconnect(),i.disconnect(),n)for(let e of t)e.removeEventListener(`mouseenter`,a),e.removeEventListener(`mouseleave`,c)}},[e,f,n,r,m]),{choiceIndicatorPosition:i,calculatePosition:p,scheduleMeasurement:m,orientation:r}},qm=mn(`flex flex-col text-foreground backdrop-blur`,{variants:{roundedSize:{none:`rounded-none`,sm:`rounded-sm [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-md`,md:`rounded-md [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-lg`,lg:`rounded-lg [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-xl`,xl:`rounded-xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-2xl`,"2xl":`rounded-2xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-3xl`,"3xl":`rounded-3xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-4xl`,"4xl":`rounded-4xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[2.5rem]`,full:`rounded-full`},transparency:{none:`bg-card`,xs:`bg-card/95`,sm:`bg-card/90`,md:`bg-card/70`,lg:`bg-card/40`,xl:`bg-card/20`,full:``},padding:{none:`p-0`,sm:`px-3 py-2`,md:`px-4 py-3`,lg:`px-6 py-4`,xl:`px-8 py-6`,"2xl":`px-10 py-8`},separator:{without:``,x:`divide-x divide-dashed divide-text/20`,y:`divide-y divide-dashed divide-text/20`,both:`divide-x divide-y divide-dashed divide-text/20`},border:{none:``,with:`border-[1.3px]`},borderColor:{neutral:``,card:`border-card`,text:`border-text`,error:`border-error`,warning:`border-warning`,success:`border-success`},background:{none:`backdrop-blur-none`,hoverable:`bg-opacity-5! backdrop-blur-0 hover:bg-opacity-10! hover:backdrop-blur focus:bg-opacity-10! focus:backdrop-blur aria-selected:bg-opacity-15! aria-selected:backdrop-blur`,with:``},gap:{none:`gap-0`,sm:`gap-1`,md:`gap-3`,lg:`gap-5`,xl:`gap-8`,"2xl":`gap-10`}},defaultVariants:{roundedSize:`lg`,border:`none`,borderColor:`text`,transparency:`md`,padding:`none`,separator:`without`,gap:`none`},compoundVariants:[{background:`none`,class:`bg-transparent`}]}),Jm=({children:e,roundedSize:t,padding:n,transparency:r,separator:a,className:o,border:s,borderColor:c,background:l,gap:u,...d})=>(0,w.jsx)(`div`,{className:i(qm({roundedSize:t,transparency:r,padding:n,separator:a,border:typeof s==`boolean`?s?`with`:`none`:void 0,background:l,borderColor:c,gap:u}),o),...d,children:e}),Ym=new Map,Xm=new Map,Zm=e=>{try{return localStorage.getItem(e)}catch{return null}},Qm=(e,t)=>{try{t===null?localStorage.removeItem(e):localStorage.setItem(e,t)}catch{}},$m=e=>{let t=Ym.has(e)?Ym.get(e):Zm(e);return t===`undefined`?null:t},eh=e=>{for(let t of Xm.get(e)??[])t()},th=(e,t)=>{Ym.set(e,t),Qm(e,t),eh(e)},nh=e=>{let t=e.key===null?[...Xm.keys()]:[e.key];for(let e of t)Ym.delete(e),eh(e)},rh=(e,t)=>{Xm.size===0&&window.addEventListener(`storage`,nh);let n=Xm.get(e)??new Set;return n.add(t),Xm.set(e,n),()=>{n.delete(t),n.size===0&&Xm.delete(e),Xm.size===0&&window.removeEventListener(`storage`,nh)}},ih=(e,t)=>{if(e===null)return t;try{return JSON.parse(e)}catch(e){return console.error(e),t}},ah=(e,t)=>{let[n]=(0,C.useState)(t),r=(0,C.useCallback)(t=>rh(e,t),[e]),i=(0,C.useSyncExternalStore)(r,()=>$m(e),()=>null),a=(0,C.useMemo)(()=>ih(i,n),[i,n]),o=(0,C.useCallback)(t=>{let r=typeof t==`function`?t(ih($m(e),n)):t;r!==void 0&&th(e,JSON.stringify(r))},[e,n]),s=(0,C.useCallback)(()=>{Ym.delete(e),eh(e)},[e]),c=(0,C.useCallback)(()=>th(e,null),[e]);return(0,C.useMemo)(()=>[a,o,s,c],[a,o,s,c])},oh=Object.defineProperty,sh=(e,t)=>oh(e,`name`,{value:t,configurable:!0});function ch(e,[t,n]){return Math.min(n,Math.max(t,e))}sh(ch,`clamp`);var lh=Object.defineProperty,uh=(e,t)=>lh(e,`name`,{value:t,configurable:!0}),dh=C.createContext(void 0);function fh(e){let t=C.useContext(dh);return e||t||`ltr`}uh(fh,`useDirection`);var ph=Object.defineProperty,mh=(e,t)=>ph(e,`name`,{value:t,configurable:!0}),hh=0,gh=null;function _h(e){return vh(),e.children}mh(_h,`FocusGuards`);function vh(){C.useEffect(()=>{gh||={start:yh(),end:yh()};let{start:e,end:t}=gh;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),hh++,()=>{hh===1&&(gh?.start.remove(),gh?.end.remove(),gh=null),hh=Math.max(0,hh-1)}},[])}mh(vh,`useFocusGuards`);function yh(){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}mh(yh,`createFocusGuard`);var bh=Object.defineProperty,Z=(e,t)=>bh(e,`name`,{value:t,configurable:!0}),xh=`focusScope.autoFocusOnMount`,Sh=`focusScope.autoFocusOnUnmount`,Ch={bubbles:!1,cancelable:!0},wh=C.forwardRef(Z(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=C.useState(null),l=ur(i),u=ur(a),d=C.useRef(null),f=I(t,c),p=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:jh(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||jh(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&jh(s)};Z(e,`handleFocusIn`),Z(t,`handleFocusOut`),Z(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),C.useEffect(()=>{if(s){Mh.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(xh,Ch);s.addEventListener(xh,l),s.dispatchEvent(t),t.defaultPrevented||(Th(Fh(Dh(s)),{select:!0}),document.activeElement===e&&jh(s))}return()=>{s.removeEventListener(xh,l),setTimeout(()=>{let t=new CustomEvent(Sh,Ch);s.addEventListener(Sh,u),s.dispatchEvent(t),t.defaultPrevented||jh(e??document.body,{select:!0}),s.removeEventListener(Sh,u),Mh.remove(p)},0)}}},[s,l,u,p]);let m=C.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Eh(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&jh(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&jh(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,w.jsx)(R.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function Th(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(jh(r,{select:t}),document.activeElement!==n)return}Z(Th,`focusFirst`);function Eh(e){let t=Dh(e);return[Oh(t,e),Oh(t.reverse(),e)]}Z(Eh,`getTabbableEdges`);function Dh(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Z(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}Z(Dh,`getTabbableCandidates`);function Oh(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):kh(r,{upTo:t})))return r}Z(Oh,`findVisible`);function kh(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}Z(kh,`isHidden`);function Ah(e){return e instanceof HTMLInputElement&&`select`in e}Z(Ah,`isSelectableInput`);function jh(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ah(e)&&t&&e.select()}}Z(jh,`focus`);var Mh=Nh();function Nh(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Ph(e,t),e.unshift(t)},remove(t){e=Ph(e,t),e[0]?.resume()}}}Z(Nh,`createFocusScopesStack`);function Ph(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}Z(Ph,`arrayRemove`);function Fh(e){return e.filter(e=>e.tagName!==`A`)}Z(Fh,`removeLinks`);var Ih=Object.defineProperty,Lh=(e,t)=>Ih(e,`name`,{value:t,configurable:!0}),Rh=C.useId||(()=>void 0),zh=0;function Bh(e){let[t,n]=C.useState(Rh());return B(()=>{e||n(e=>e??String(zh++))},[e]),e||(t?`radix-${t}`:``)}Lh(Bh,`useId`);var Vh=[`top`,`right`,`bottom`,`left`],Hh=[`start`,`end`],Uh=Vh.reduce((e,t)=>e.concat(t,t+`-`+Hh[0],t+`-`+Hh[1]),[]),Wh=Math.min,Gh=Math.max,Kh=Math.round,qh=Math.floor,Jh=e=>({x:e,y:e}),Yh={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Xh(e,t,n){return Gh(e,Wh(t,n))}function Zh(e,t){return typeof e==`function`?e(t):e}function Qh(e){return e.split(`-`)[0]}function $h(e){return e.split(`-`)[1]}function eg(e){return e===`x`?`y`:`x`}function tg(e){return e===`y`?`height`:`width`}function ng(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function rg(e){return eg(ng(e))}function ig(e,t,n){n===void 0&&(n=!1);let r=$h(e),i=rg(e),a=tg(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=pg(o)),[o,pg(o)]}function ag(e){let t=pg(e);return[og(e),t,og(t)]}function og(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var sg=[`left`,`right`],cg=[`right`,`left`],lg=[`top`,`bottom`],ug=[`bottom`,`top`];function dg(e,t,n){switch(e){case`top`:case`bottom`:return n?t?cg:sg:t?sg:cg;case`left`:case`right`:return t?lg:ug;default:return[]}}function fg(e,t,n,r){let i=$h(e),a=dg(Qh(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(og)))),a}function pg(e){let t=Qh(e);return Yh[t]+e.slice(t.length)}function mg(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function hg(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:mg(e)}function gg(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function _g(e,t,n){let{reference:r,floating:i}=e,a=ng(t),o=rg(t),s=tg(o),c=Qh(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=$h(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function vg(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Zh(t,e),p=hg(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=gg(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=gg(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var yg=50,bg=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:vg},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=_g(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<yg&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=_g(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},xg=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Zh(e,t)||{};if(l==null)return{};let d=hg(u),f={x:n,y:r},p=rg(i),m=tg(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Wh(d[_],T),D=Wh(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Xh(E,k,O),j=!c.arrow&&$h(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,ee=j?k<E?k-E:k-O:0;return{[p]:f[p]+ee,data:{[p]:A,centerOffset:k-A-ee,...j&&{alignmentOffset:ee}},reset:j}}});function Sg(e,t,n){return(e?[...n.filter(t=>$h(t)===e),...n.filter(t=>$h(t)!==e)]:n.filter(e=>Qh(e)===e)).filter(n=>!e||$h(n)===e||(t?og(n)!==n:!1))}var Cg=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=Uh,autoAlignment:u=!0,...d}=Zh(e,t),f=c!==void 0||l===Uh?Sg(c||null,u,l):l,p=r.autoPlacement?.index||0,m=f[p];if(m==null)return{};if(i!==m)return{reset:{placement:f[0]}};let h=await a.detectOverflow(t,d),g=ig(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[Qh(m)],h[g[0]],h[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:m,overflows:_}],y=f[p+1];if(y)return{data:{index:p+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=$h(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,$h(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:p+1,overflows:v},reset:{placement:x}}}}},wg=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Zh(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Qh(r),_=ng(o),v=Qh(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[pg(o)]:ag(o)),x=p!==`none`;!d&&x&&b.push(...fg(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=ig(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===ng(t)||T.every(e=>ng(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=ng(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Tg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Eg(e){return Vh.some(t=>e[t]>=0)}var Dg=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Zh(e,t);switch(i){case`referenceHidden`:{let e=Tg(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Eg(e)}}}case`escaped`:{let e=Tg(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Eg(e)}}}default:return{}}}}};function Og(e){let t=Wh(...e.map(e=>e.left)),n=Wh(...e.map(e=>e.top)),r=Gh(...e.map(e=>e.right)),i=Gh(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function kg(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>gg(Og(e)))}var Ag=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=Zh(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=kg(u),f=gg(Og(u)),p=hg(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(ng(n)===`y`){let e=d[0],t=d[d.length-1],r=Qh(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return gg({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=Qh(n)===`left`,t=Gh(...d.map(e=>e.right)),r=Wh(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return gg({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},jg=new Set([`left`,`top`]);async function Mg(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Qh(n),s=$h(n),c=ng(n)===`y`,l=jg.has(o)?-1:1,u=a&&c?-1:1,d=Zh(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Ng=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Mg(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Pg=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Zh(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=ng(i),p=eg(f),m=u[p],h=u[f],g=(e,t)=>Xh(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Fg=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Zh(e,t),u={x:n,y:r},d=ng(i),f=eg(d),p=u[f],m=u[d],h=Zh(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=jg.has(Qh(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Ig=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Zh(e,t),c=await i.detectOverflow(t,s),l=Qh(n),u=$h(n),d=ng(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Wh(p-c[m],g),y=Wh(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Gh(c.left,c.right):S=p-2*Gh(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Lg(){return typeof window<`u`}function Rg(e){return Bg(e)?(e.nodeName||``).toLowerCase():`#document`}function Q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function zg(e){return((Bg(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Bg(e){return Lg()?e instanceof Node||e instanceof Q(e).Node:!1}function Vg(e){return Lg()?e instanceof Element||e instanceof Q(e).Element:!1}function Hg(e){return Lg()?e instanceof HTMLElement||e instanceof Q(e).HTMLElement:!1}function Ug(e){return!Lg()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Q(e).ShadowRoot}function Wg(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=t_(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Gg(e){return/^(table|td|th)$/.test(Rg(e))}function Kg(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var qg=/transform|translate|scale|rotate|perspective|filter/,Jg=/paint|layout|strict|content/,Yg=e=>!!e&&e!==`none`,Xg;function Zg(e){let t=Vg(e)?t_(e):e;return Yg(t.transform)||Yg(t.translate)||Yg(t.scale)||Yg(t.rotate)||Yg(t.perspective)||!$g()&&(Yg(t.backdropFilter)||Yg(t.filter))||qg.test(t.willChange||``)||Jg.test(t.contain||``)}function Qg(e){let t=r_(e);for(;Hg(t)&&!e_(t);){if(Zg(t))return t;if(Kg(t))return null;t=r_(t)}return null}function $g(){return Xg??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Xg}function e_(e){return/^(html|body|#document)$/.test(Rg(e))}function t_(e){return Q(e).getComputedStyle(e)}function n_(e){return Vg(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function r_(e){if(Rg(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ug(e)&&e.host||zg(e);return Ug(t)?t.host:t}function i_(e){let t=r_(e);return e_(t)?(e.ownerDocument||e).body:Hg(t)&&Wg(t)?t:i_(t)}function a_(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=i_(e),i=r===e.ownerDocument?.body,a=Q(r);if(i){let e=o_(a);return t.concat(a,a.visualViewport||[],Wg(r)?r:[],e&&n?a_(e):[])}return t.concat(r,a_(r,[],n))}function o_(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function s_(e){let t=t_(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Hg(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Kh(n)!==a||Kh(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function c_(e){return Vg(e)?e:e.contextElement}function l_(e){let t=c_(e);if(!Hg(t))return Jh(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=s_(t),o=(a?Kh(n.width):n.width)/r,s=(a?Kh(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var u_=Jh(0);function d_(e){let t=Q(e);return!$g()||!t.visualViewport?u_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function f_(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Q(e)}function p_(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=c_(e),o=Jh(1);t&&(r?Vg(r)&&(o=l_(r)):o=l_(e));let s=f_(a,n,r)?d_(a):Jh(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Q(a),t=Vg(r)?Q(r):r,n=e,i=o_(n);for(;i&&t!==n;){let e=l_(i),t=i.getBoundingClientRect(),r=t_(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Q(i),i=o_(n)}}return gg({width:u,height:d,x:c,y:l})}function m_(e,t){let n=n_(e).scrollLeft;return t?t.left+n:p_(zg(e)).left+n}function h_(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-m_(e,n),y:n.top+t.scrollTop}}function g_(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=zg(r),s=t?Kg(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Jh(1),u=Jh(0),d=Hg(r);if((d||!a)&&((Rg(r)!==`body`||Wg(o))&&(c=n_(r)),d)){let e=p_(r);l=l_(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?h_(o,c):Jh(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function __(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function v_(e){let t=n_(e),n=e.ownerDocument.body,r=Gh(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Gh(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+m_(e),o=-t.scrollTop;return t_(n).direction===`rtl`&&(a+=Gh(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var y_=25;function b_(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Q(e),a=zg(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!$g()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(m_(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=y_&&(s-=o)}return{width:s,height:c,x:l,y:u}}function x_(e,t){let n=p_(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=l_(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function S_(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=b_(e,n,t);else if(t===`document`)r=v_(zg(e));else if(Vg(t))r=x_(t,n);else{let n=d_(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return gg(r)}function C_(e,t){let n=t.get(e);if(n)return n;let r=a_(e,[],!1).filter(e=>Vg(e)&&Rg(e)!==`body`),i=null,a=t_(e).position===`fixed`,o=a?r_(e):e;for(;Vg(o)&&!e_(o);){let e=t_(o),t=Zg(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=r_(o)}return t.set(e,r),r}function w_(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Kg(t)?[]:C_(t,this._c):[].concat(n),r],o=S_(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=S_(t,a[e],i);s=Gh(n.top,s),c=Wh(n.right,c),l=Wh(n.bottom,l),u=Gh(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function T_(e){let{width:t,height:n}=s_(e);return{width:t,height:n}}function E_(e,t,n){let r=Hg(t),i=zg(t),a=n===`fixed`,o=p_(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Jh(0);if((r||!a)&&((Rg(t)!==`body`||Wg(i))&&(s=n_(t)),r)){let e=p_(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=m_(i));let l=i&&!r&&!a?h_(i,s):Jh(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function D_(e){return t_(e).position===`static`}function O_(e,t){if(!Hg(e)||t_(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return zg(e)===n&&(n=n.ownerDocument.body),n}function k_(e,t){let n=Q(e);if(Kg(e))return n;if(!Hg(e)){let t=r_(e);for(;t&&!e_(t);){if(Vg(t)&&!D_(t))return t;t=r_(t)}return n}let r=O_(e,t);for(;r&&Gg(r)&&D_(r);)r=O_(r,t);return r&&e_(r)&&D_(r)&&!Zg(r)?n:r||Qg(e)||n}var A_=async function(e){let t=this.getOffsetParent||k_,n=this.getDimensions,r=await n(e.floating);return{reference:E_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function j_(e){return t_(e).direction===`rtl`}var M_={convertOffsetParentRelativeRectToViewportRelativeRect:g_,getDocumentElement:zg,getClippingRect:w_,getOffsetParent:k_,getElementRects:A_,getClientRects:__,getDimensions:T_,getScale:l_,isElement:Vg,isRTL:j_};function N_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function P_(e,t,n){let r=null,i,a=zg(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=qh(d),h=qh(a.clientWidth-(u+f)),g=qh(a.clientHeight-(d+p)),_=qh(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Gh(0,Wh(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!N_(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Q(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function F_(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=c_(e),u=i||a?[...l?a_(l):[],...t?a_(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?P_(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?p_(e):null;c&&g();function g(){let t=p_(e);h&&!N_(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var I_=Ng,L_=Cg,R_=Pg,z_=wg,B_=Ig,V_=Dg,H_=xg,U_=Ag,W_=Fg,G_=(e,t,n)=>{let r=new Map,i=n??{},a={...M_,...i.platform,_c:r};return bg(e,t,{...i,platform:a})},K_=typeof document<`u`?C.useLayoutEffect:function(){};function q_(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 n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!q_(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!q_(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function J_(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Y_(e,t){let n=J_(e);return Math.round(t*n)/n}function X_(e){let t=C.useRef(e);return K_(()=>{t.current=e}),t}function Z_(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=C.useState(r);q_(f,r)||p(r);let[m,h]=C.useState(null),[g,_]=C.useState(null),v=C.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=C.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),b=a||m,x=o||g,S=C.useRef(null),w=C.useRef(null),T=C.useRef(u),E=c!=null,D=X_(c),O=X_(i),k=X_(l),A=C.useCallback(()=>{if(!S.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),G_(S.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!q_(T.current,t)&&(T.current=t,ln.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);K_(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=C.useRef(!1);K_(()=>(j.current=!0,()=>{j.current=!1}),[]),K_(()=>{if(b&&(S.current=b),x&&(w.current=x),b&&x){if(D.current)return D.current(b,x,A);A()}},[b,x,A,D,E]);let ee=C.useMemo(()=>({reference:S,floating:w,setReference:v,setFloating:y}),[v,y]),M=C.useMemo(()=>({reference:b,floating:x}),[b,x]),te=C.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Y_(M.floating,u.x),r=Y_(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...J_(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return C.useMemo(()=>({...u,update:A,refs:ee,elements:M,floatingStyles:te}),[u,A,ee,M,te])}var Q_=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:H_({element:r.current,padding:i}).fn(n):r?H_({element:r,padding:i}).fn(n):{}}}},$_=(e,t)=>{let n=I_(e);return{name:n.name,fn:n.fn,options:[e,t]}},ev=(e,t)=>{let n=R_(e);return{name:n.name,fn:n.fn,options:[e,t]}},tv=(e,t)=>({fn:W_(e).fn,options:[e,t]}),nv=(e,t)=>{let n=z_(e);return{name:n.name,fn:n.fn,options:[e,t]}},rv=(e,t)=>{let n=B_(e);return{name:n.name,fn:n.fn,options:[e,t]}},iv=(e,t)=>{let n=V_(e);return{name:n.name,fn:n.fn,options:[e,t]}},av=(e,t)=>{let n=Q_(e);return{name:n.name,fn:n.fn,options:[e,t]}},ov=Object.defineProperty,sv=(e,t)=>ov(e,`name`,{value:t,configurable:!0});function cv(e){let[t,n]=C.useState(void 0);return B(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}n(void 0)},[e]),t}sv(cv,`useSize`);var lv=Object.defineProperty,uv=(e,t)=>lv(e,`name`,{value:t,configurable:!0}),dv=`Popper`,[fv,pv]=kn(dv),[mv,hv]=fv(dv),gv=uv(e=>{let{__scopePopper:t,children:n}=e,[r,i]=C.useState(null),[a,o]=C.useState(void 0);return(0,w.jsx)(mv,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),_v=`PopperAnchor`,vv=C.forwardRef(uv(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=hv(_v,n),o=C.useRef(null),s=a.onAnchorChange,c=I(t,C.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=C.useRef(null);C.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&Tv(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,w.jsx)(R.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),yv=`PopperContent`,[bv,xv]=fv(yv),Sv=C.forwardRef(uv(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=hv(yv,n),[_,v]=C.useState(null),y=I(t,v),[b,x]=C.useState(null),S=cv(b),T=S?.width??0,E=S?.height??0,D=r+(a===`center`?``:`-`+a),O=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},k=Array.isArray(l)?l:[l],A=k.length>0,j={padding:O,boundary:k.filter(Cv),altBoundary:A},{refs:ee,floatingStyles:M,placement:te,isPositioned:ne,middlewareData:N}=Z_({strategy:`fixed`,placement:D,whileElementsMounted:uv((...e)=>F_(...e,{animationFrame:p===`always`}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[$_({mainAxis:i+E,alignmentAxis:o}),c&&ev({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?tv():void 0,...j}),c&&nv({...j}),rv({...j,apply:uv(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),b&&av({element:b,padding:s}),wv({arrowWidth:T,arrowHeight:E}),f&&iv({strategy:`referenceHidden`,...j,boundary:A?j.boundary:void 0})]}),re=g.setPlacementState;B(()=>(re(te),()=>{re(void 0)}),[te,re]);let[ie,ae]=Tv(te),oe=ur(m);B(()=>{ne&&oe?.()},[ne,oe]);let se=N.arrow?.x,ce=N.arrow?.y,le=N.arrow?.centerOffset!==0,[ue,de]=C.useState();return B(()=>{_&&de(window.getComputedStyle(_).zIndex)},[_]),(0,w.jsx)(`div`,{ref:ee.setFloating,"data-radix-popper-content-wrapper":``,style:{...M,transform:ne?M.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ue,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(` `),...N.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,w.jsx)(bv,{scope:n,placedSide:ie,placedAlign:ae,onArrowChange:x,arrowX:se,arrowY:ce,shouldHideArrow:le,children:(0,w.jsx)(R.div,{"data-side":ie,"data-align":ae,...h,ref:y,style:{...h.style,animation:ne?h.style?.animation:`none`}})})})},`PopperContent`));function Cv(e){return e!==null}uv(Cv,`isNotNull`);var wv=uv(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Tv(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function Tv(e){let[t,n=`center`]=e.split(`-`);return[t,n]}uv(Tv,`getSideAndAlignFromPlacement`);var Ev=gv,Dv=vv,Ov=Sv,kv=Object.defineProperty,Av=(e,t)=>kv(e,`name`,{value:t,configurable:!0});function jv(e){let t=C.useRef({value:e,previous:e});return C.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}Av(jv,`usePrevious`);var Mv=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Nv=new WeakMap,Pv=new WeakMap,Fv={},Iv=0,Lv=function(e){return e&&(e.host||Lv(e.parentNode))},Rv=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Lv(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},zv=function(e,t,n,r){var i=Rv(t,Array.isArray(e)?e:[e]);Fv[n]||(Fv[n]=new WeakMap);var a=Fv[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Nv.get(e)||0)+1,l=(a.get(e)||0)+1;Nv.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Pv.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Iv++,function(){o.forEach(function(e){var t=Nv.get(e)-1,i=a.get(e)-1;Nv.set(e,t),a.set(e,i),t||(Pv.has(e)||e.removeAttribute(r),Pv.delete(e)),i||e.removeAttribute(n)}),Iv--,Iv||(Nv=new WeakMap,Nv=new WeakMap,Pv=new WeakMap,Fv={})}},Bv=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Mv(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),zv(r,i,n,`aria-hidden`)):function(){return null}},Vv=function(){return Vv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Vv.apply(this,arguments)};function Hv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Uv(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Wv=`right-scroll-bar-position`,Gv=`width-before-scroll-bar`,Kv=`with-scroll-bars-hidden`,qv=`--removed-body-scroll-bar-size`;function Jv(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Yv(e,t){var n=(0,C.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Xv=typeof window<`u`?C.useLayoutEffect:C.useEffect,Zv=new WeakMap;function Qv(e,t){var n=Yv(t||null,function(t){return e.forEach(function(e){return Jv(e,t)})});return Xv(function(){var t=Zv.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Jv(e,null)}),i.forEach(function(e){r.has(e)||Jv(e,a)})}Zv.set(n,e)},[e]),n}function $v(e){return e}function ey(e,t){t===void 0&&(t=$v);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function ty(e){e===void 0&&(e={});var t=ey(null);return t.options=Vv({async:!0,ssr:!1},e),t}var ny=function(e){var t=e.sideCar,n=Hv(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return C.createElement(r,Vv({},n))};ny.isSideCarExport=!0;function ry(e,t){return e.useMedium(t),ny}var iy=ty(),ay=function(){},oy=C.forwardRef(function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:ay,onWheelCapture:ay,onTouchMoveCapture:ay}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=Hv(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=Qv([n,t]),w=Vv(Vv({},b),i);return C.createElement(C.Fragment,null,u&&C.createElement(x,{sideCar:iy,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?C.cloneElement(C.Children.only(s),Vv(Vv({},w),{ref:S})):C.createElement(v,Vv({},w,{className:c,ref:S}),s))});oy.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},oy.classNames={fullWidth:Gv,zeroRight:Wv};var sy=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function cy(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=sy();return t&&e.setAttribute(`nonce`,t),e}function ly(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function uy(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var dy=function(){var e=0,t=null;return{add:function(n){e==0&&(t=cy())&&(ly(t,n),uy(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fy=function(){var e=dy();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},py=function(){var e=fy();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},my={left:0,top:0,right:0,gap:0},hy=function(e){return parseInt(e||``,10)||0},gy=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[hy(n),hy(r),hy(i)]},_y=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return my;var t=gy(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},vy=py(),yy=`data-scroll-locked`,by=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2
+ .${Kv} {
3
+ overflow: hidden ${r};
4
+ padding-right: ${s}px ${r};
5
+ }
6
+ body[${yy}] {
7
+ overflow: hidden ${r};
8
+ overscroll-behavior: contain;
9
+ ${[t&&`position: relative ${r};`,n===`margin`&&`
10
+ padding-left: ${i}px;
11
+ padding-top: ${a}px;
12
+ padding-right: ${o}px;
13
+ margin-left:0;
14
+ margin-top:0;
15
+ margin-right: ${s}px ${r};
16
+ `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
17
+ }
18
+
19
+ .${Wv} {
20
+ right: ${s}px ${r};
21
+ }
22
+
23
+ .${Gv} {
24
+ margin-right: ${s}px ${r};
25
+ }
26
+
27
+ .${Wv} .${Wv} {
28
+ right: 0 ${r};
29
+ }
30
+
31
+ .${Gv} .${Gv} {
32
+ margin-right: 0 ${r};
33
+ }
34
+
35
+ body[${yy}] {
36
+ ${qv}: ${s}px;
37
+ }
38
+ `},xy=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Sy=function(){C.useEffect(function(){return document.body.setAttribute(yy,(xy()+1).toString()),function(){var e=xy()-1;e<=0?document.body.removeAttribute(yy):document.body.setAttribute(yy,e.toString())}},[])},Cy=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Sy();var a=C.useMemo(function(){return _y(i)},[i]);return C.createElement(vy,{styles:by(a,!t,i,n?``:`!important`)})},wy=!1;if(typeof window<`u`)try{var Ty=Object.defineProperty({},"passive",{get:function(){return wy=!0,!0}});window.addEventListener(`test`,Ty,Ty),window.removeEventListener(`test`,Ty,Ty)}catch{wy=!1}var Ey=wy?{passive:!1}:!1,Dy=function(e){return e.tagName===`TEXTAREA`},Oy=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Dy(e)&&n[t]===`visible`)},ky=function(e){return Oy(e,`overflowY`)},Ay=function(e){return Oy(e,`overflowX`)},jy=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Py(e,r)){var i=Fy(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},My=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Ny=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Py=function(e,t){return e===`v`?ky(t):Ay(t)},Fy=function(e,t){return e===`v`?My(t):Ny(t)},Iy=function(e,t){return e===`h`&&t===`rtl`?-1:1},Ly=function(e,t,n,r,i){var a=Iy(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Fy(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Py(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Ry=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},zy=function(e){return[e.deltaX,e.deltaY]},By=function(e){return e&&`current`in e?e.current:e},Vy=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Hy=function(e){return`
39
+ .block-interactivity-${e} {pointer-events: none;}
40
+ .allow-interactivity-${e} {pointer-events: all;}
41
+ `},Uy=0,Wy=[];function Gy(e){var t=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),i=C.useState(Uy++)[0],a=C.useState(py)[0],o=C.useRef(e);C.useEffect(function(){o.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Uv([e.lockRef.current],(e.shards||[]).map(By),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=C.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Ry(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=jy(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=jy(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Ly(h,t,e,h===`h`?s:c,!0)},[]),c=C.useCallback(function(e){var n=e;if(Wy.length&&Wy[Wy.length-1]===a){var r=`deltaY`in n?zy(n):Ry(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Vy(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(By).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=C.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ky(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=C.useCallback(function(e){n.current=Ry(e),r.current=void 0},[]),d=C.useCallback(function(t){l(t.type,zy(t),t.target,s(t,e.lockRef.current))},[]),f=C.useCallback(function(t){l(t.type,Ry(t),t.target,s(t,e.lockRef.current))},[]);C.useEffect(function(){return Wy.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Ey),document.addEventListener(`touchmove`,c,Ey),document.addEventListener(`touchstart`,u,Ey),function(){Wy=Wy.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Ey),document.removeEventListener(`touchmove`,c,Ey),document.removeEventListener(`touchstart`,u,Ey)}},[]);var p=e.removeScrollBar,m=e.inert;return C.createElement(C.Fragment,null,m?C.createElement(a,{styles:Hy(i)}):null,p?C.createElement(Cy,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ky(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var qy=ry(iy,Gy),Jy=C.forwardRef(function(e,t){return C.createElement(oy,Vv({},e,{ref:t,sideCar:qy}))});Jy.classNames=oy.classNames;var Yy=Object.defineProperty,$=(e,t)=>Yy(e,`name`,{value:t,configurable:!0}),Xy=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Zy=[` `,`Enter`],Qy=`Select`,[$y,eb,tb]=Jn(Qy),[nb,rb]=kn(Qy,[tb,pv]),ib=pv(),[ab,ob]=nb(Qy),[sb,cb]=nb(Qy);function lb(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m,internal_do_not_use_render:h}=e,g=ib(t),[_,v]=C.useState(null),[y,b]=C.useState(null),[x,S]=C.useState(!1),T=fh(l),[E,D]=Kr({prop:r,defaultProp:i??!1,onChange:a,caller:Qy}),[O,k]=Kr({prop:o,defaultProp:s,onChange:c,caller:Qy}),A=C.useRef(null),j=C.useRef(O);C.useEffect(()=>{let e=m?_?.ownerDocument.getElementById(m):_?.form;if(e instanceof HTMLFormElement){let t=$(()=>k(j.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,_,k]);let ee=!_||!!m||!!_.closest(`form`),[M,te]=C.useState(new Set),ne=Bh(),N=Array.from(M).map(e=>e.props.value).join(`;`),re=C.useCallback(e=>{te(t=>new Set(t).add(e))},[]),ie=C.useCallback(e=>{te(t=>{let n=new Set(t);return n.delete(e),n})},[]),ae={required:p,trigger:_,onTriggerChange:v,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:x,onValueNodeHasChildrenChange:S,contentId:ne,value:O,onValueChange:k,open:E,onOpenChange:D,dir:T,triggerPointerDownPosRef:A,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:M,nativeSelectKey:N,isFormControl:ee};return(0,w.jsx)(Ev,{...g,children:(0,w.jsx)(ab,{scope:t,...ae,children:(0,w.jsx)($y.Provider,{scope:t,children:(0,w.jsx)(sb,{scope:t,onNativeOptionAdd:re,onNativeOptionRemove:ie,children:ex(h)?h(ae):n})})})})}$(lb,`SelectProvider`);var ub=$(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,w.jsx)(lb,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,w.jsxs)(w.Fragment,{children:[n,e?(0,w.jsx)($b,{__scopeSelect:t}):null]})})},`Select`),db=`SelectTrigger`,fb=C.forwardRef($(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=ib(n),o=ob(db,n),s=o.disabled||r,c=I(t,o.onTriggerChange),l=eb(n),u=C.useRef(`touch`),[d,f,p]=nx(e=>{let t=l().filter(e=>!e.disabled),n=rx(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=$(e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,w.jsx)(Dv,{asChild:!0,...a,children:(0,w.jsx)(R.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":tx(o.value)?``:void 0,...i,ref:c,onClick:F(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:F(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:F(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&Xy.includes(e.key)&&(m(),e.preventDefault())})})})},`SelectTrigger`)),pb=`SelectValue`,mb=C.forwardRef($(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=ob(pb,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=I(t,c.onValueNodeChange);B(()=>{l(u)},[l,u]);let f=tx(c.value);return(0,w.jsx)(R.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,w.jsx)(C.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),hb=C.forwardRef($(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,w.jsx)(R.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[gb,_b]=nb(`SelectPortal`,{forceMount:void 0}),vb=$(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,w.jsx)(gb,{scope:e.__scopeSelect,forceMount:n,children:(0,w.jsx)(Or,{asChild:!0,...r})})},`SelectPortal`),yb=`SelectContent`,bb=C.forwardRef($(function(e,t){let n=_b(yb,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=ob(yb,e.__scopeSelect),[o,s]=C.useState();return B(()=>{s(new DocumentFragment)},[]),(0,w.jsx)(Mr,{present:r||a.open,children:({present:e})=>e?(0,w.jsx)(Eb,{...i,ref:t}):(0,w.jsx)(xb,{...i,fragment:o})})},`SelectContent`)),xb=C.forwardRef($(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?ln.createPortal((0,w.jsx)(Cb,{scope:n,children:(0,w.jsx)($y.Slot,{scope:n,children:(0,w.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),Sb=10,[Cb,wb]=nb(yb),Tb=Nn(`SelectContent.RemoveScroll`),Eb=C.forwardRef($(function(e,t){let{__scopeSelect:n}=e,{position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,..._}=e,v=ob(yb,n),[y,b]=C.useState(null),[x,S]=C.useState(null),T=I(t,b),[E,D]=C.useState(null),[O,k]=C.useState(null),A=eb(n),[j,ee]=C.useState(!1),M=C.useRef(!1);C.useEffect(()=>{if(y)return Bv(y)},[y]),vh();let te=C.useCallback(e=>{let[t,...n]=A().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&x&&(x.scrollTop=0),n===r&&x&&(x.scrollTop=x.scrollHeight),n?.focus(),document.activeElement!==i))return},[A,x]),ne=C.useCallback(()=>te([E,y]),[te,E,y]);C.useEffect(()=>{j&&ne()},[j,ne]);let{onOpenChange:N,triggerPointerDownPosRef:re}=v;C.useEffect(()=>{if(y){let e={x:0,y:0},t=$(t=>{e={x:Math.abs(Math.round(t.pageX)-(re.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(re.current?.y??0))}},`handlePointerMove`),n=$(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(y)||N(!1),document.removeEventListener(`pointermove`,t),re.current=null},`handlePointerUp`);return re.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[y,N,re]),C.useEffect(()=>{let e=$(()=>N(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[N]);let[ie,ae]=nx(e=>{let t=A().filter(e=>!e.disabled),n=rx(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),oe=C.useCallback((e,t,n)=>{let r=!M.current&&!n;(v.value!==void 0&&v.value===t||r)&&(D(e),r&&(M.current=!0))},[v.value]),se=C.useCallback(()=>y?.focus(),[y]),ce=C.useCallback((e,t,n)=>{let r=!M.current&&!n;(v.value!==void 0&&v.value===t||r)&&k(e)},[v.value]),le=r===`popper`?Ob:Db,ue=le===Ob?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,w.jsx)(Cb,{scope:n,content:y,viewport:x,onViewportChange:S,itemRefCallback:oe,selectedItem:E,onItemLeave:se,itemTextRefCallback:ce,focusSelectedItem:ne,selectedItemText:O,position:r,isPositioned:j,searchRef:ie,children:(0,w.jsx)(Jy,{as:Tb,allowPinchZoom:!0,children:(0,w.jsx)(wh,{asChild:!0,trapped:v.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:F(i,e=>{v.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,w.jsx)(_r,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,w.jsx)(le,{role:`listbox`,id:v.contentId,"data-state":v.open?`open`:`closed`,dir:v.dir,onContextMenu:e=>e.preventDefault(),..._,...ue,onPlaced:()=>ee(!0),ref:T,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:F(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ae(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=A().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>te(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),Db=C.forwardRef($(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=ob(yb,n),o=wb(yb,n),[s,c]=C.useState(null),[l,u]=C.useState(null),d=I(t,u),f=eb(n),p=C.useRef(!1),m=C.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:v}=o,y=C.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&_){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=_.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-Sb,d=ch(a,[Sb,Math.max(Sb,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-Sb,d=ch(a,[Sb,Math.max(Sb,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-Sb*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+v+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-Sb,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+v+k,j=x-A;if(A<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${Sb}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,_,a.dir,r]);B(()=>y(),[y]);let[b,x]=C.useState();B(()=>{l&&x(window.getComputedStyle(l).zIndex)},[l]);let S=C.useCallback(e=>{e&&m.current===!0&&(y(),v?.(),m.current=!1)},[y,v]);return(0,w.jsx)(kb,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:S,children:(0,w.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:b},children:(0,w.jsx)(R.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),Ob=C.forwardRef($(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=Sb,...a}=e,o=ib(n);return(0,w.jsx)(Ov,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[kb,Ab]=nb(yb,{}),jb=`SelectViewport`,Mb=C.forwardRef($(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=wb(jb,n),o=Ab(jb,n),s=I(t,a.onViewportChange),c=C.useRef(0);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,w.jsx)($y.Slot,{scope:n,children:(0,w.jsx)(R.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:F(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-Sb*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})},`SelectViewport`)),[Nb,Pb]=nb(`SelectGroup`),Fb=C.forwardRef($(function(e,t){let{__scopeSelect:n,...r}=e,i=Bh();return(0,w.jsx)(Nb,{scope:n,id:i,children:(0,w.jsx)(R.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})},`SelectGroup`)),Ib=`SelectLabel`,Lb=C.forwardRef($(function(e,t){let{__scopeSelect:n,...r}=e,i=Pb(Ib,n);return(0,w.jsx)(R.div,{id:i.id,...r,ref:t})},`SelectLabel`)),Rb=`SelectItem`,[zb,Bb]=nb(Rb),Vb=C.forwardRef($(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=ob(Rb,n),c=wb(Rb,n),l=s.value===r,[u,d]=C.useState(a??``),[f,p]=C.useState(!1),m=I(t,ur(e=>c.itemRefCallback?.(e,r,i))),h=Bh(),g=C.useRef(`touch`),_=$(()=>{i||(s.onValueChange(r),s.onOpenChange(!1))},`handleSelect`);return(0,w.jsx)(zb,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:C.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,w.jsx)($y.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,w.jsx)(R.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:F(o.onFocus,()=>p(!0)),onBlur:F(o.onBlur,()=>p(!1)),onClick:F(o.onClick,()=>{g.current!==`mouse`&&_()}),onPointerUp:F(o.onPointerUp,()=>{g.current===`mouse`&&_()}),onPointerDown:F(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:F(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:F(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:F(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&(Zy.includes(e.key)&&_(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),Hb=`SelectItemText`,Ub=C.forwardRef($(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=ob(Hb,n),s=wb(Hb,n),c=Bb(Hb,n),l=cb(Hb,n),[u,d]=C.useState(null),f=ur(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=I(t,d,c.onItemTextChange,f),m=u?.textContent,h=C.useMemo(()=>(0,w.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:_}=l;return B(()=>(g(h),()=>_(h)),[g,_,h]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(R.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!tx(o.value)?ln.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),Wb=`SelectItemIndicator`,Gb=C.forwardRef($(function(e,t){let{__scopeSelect:n,...r}=e;return Bb(Wb,n).isSelected?(0,w.jsx)(R.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),Kb=`SelectScrollUpButton`,qb=C.forwardRef($(function(e,t){let n=wb(Kb,e.__scopeSelect),r=Ab(Kb,e.__scopeSelect),[i,a]=C.useState(!1),o=I(t,r.onScrollButtonChange);return B(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};$(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,w.jsx)(Xb,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),Jb=`SelectScrollDownButton`,Yb=C.forwardRef($(function(e,t){let n=wb(Jb,e.__scopeSelect),r=Ab(Jb,e.__scopeSelect),[i,a]=C.useState(!1),o=I(t,r.onScrollButtonChange);return B(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};$(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,w.jsx)(Xb,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),Xb=C.forwardRef($(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=wb(`SelectScrollButton`,n),o=C.useRef(null),s=eb(n),c=C.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return C.useEffect(()=>()=>c(),[c]),B(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,w.jsx)(R.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:F(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:F(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:F(i.onPointerLeave,()=>{c()})})},`SelectScrollButtonImpl`)),Zb=C.forwardRef($(function(e,t){let{__scopeSelect:n,...r}=e;return(0,w.jsx)(R.div,{"aria-hidden":!0,...r,ref:t})},`SelectSeparator`)),Qb=`SelectBubbleInput`,$b=C.forwardRef($(function({__scopeSelect:e,...t},n){let r=ob(Qb,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u}=r,{nativeOptions:d,nativeSelectKey:f}=r,p=C.useRef(null),m=I(n,p),h=i??``,g=jv(h),_=Array.from(d).some(e=>(e.props.value??``)===``);return C.useEffect(()=>{let e=p.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(g!==h&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,h),e.dispatchEvent(t)}},[g,h]),(0,w.jsxs)(R.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>a(e.target.value),...t,style:{...$r,...t.style},ref:m,defaultValue:h,children:[tx(i)&&!_?(0,w.jsx)(`option`,{value:``}):null,Array.from(d)]},f)},`SelectBubbleInput`));function ex(e){return typeof e==`function`}$(ex,`isFunction`);function tx(e){return e===``||e===void 0}$(tx,`shouldShowPlaceholder`);function nx(e){let t=ur(e),n=C.useRef(``),r=C.useRef(0),i=C.useCallback(e=>{let i=n.current+e;t(i),$((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=C.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return C.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}$(nx,`useTypeaheadSearch`);function rx(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=ix(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}$(rx,`findNextItem`);function ix(e,t){return e.map((n,r)=>e[(t+r)%e.length])}$(ix,`wrapArray`);var ax=ub,ox=Fb,sx=mb,cx=({validationStyleEnabled:e=!1,className:t,children:n,...r})=>(0,w.jsxs)(fb,{suppressHydrationWarning:!0,className:i(`flex w-full cursor-pointer items-center justify-between whitespace-nowrap`,`select-text text-base shadow-none outline-none md:text-sm`,`rounded-xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-2xl`,`px-2 py-3 md:py-2`,`bg-neutral-50 dark:bg-neutral-950`,`text-foreground`,`ring-0`,`focus-visible:outline-none`,`focus-visible:ring-3`,`focus-visible:ring-neutral-200`,`dark:focus-visible:ring-neutral-500`,`focus-visible:ring-offset-white`,`dark:focus-visible:ring-offset-neutral-500`,`[box-shadow:none] focus:[box-shadow:none]`,`disabled:cursor-not-allowed disabled:opacity-50`,`aria-invalid:border-error`,`[&>span]:line-clamp-1`,e&&`valid:border-success invalid:border-error`,t),...r,children:[n,(0,w.jsx)(hb,{asChild:!0,children:(0,w.jsx)(Zt,{className:`size-4 opacity-50`})})]}),lx=({className:e,...t})=>(0,w.jsx)(qb,{className:i(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,w.jsx)(Yt,{})}),ux=({className:e,...t})=>(0,w.jsx)(Yb,{className:i(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,w.jsx)(qt,{})}),dx=({className:e,children:t,position:n=`popper`,...r})=>(0,w.jsx)(vb,{children:(0,w.jsxs)(bb,{className:i(`relative z-50 max-h-96 min-w-32 overflow-hidden`,`rounded-xl shadow-md`,`bg-white dark:bg-neutral-950`,`text-foreground`,`border border-neutral-200 dark:border-neutral-800`,`data-[state=closed]:animate-out data-[state=open]:animate-in`,`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,`data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95`,`data-[side=bottom]:slide-in-from-top-2`,`data-[side=left]:slide-in-from-right-2`,`data-[side=right]:slide-in-from-left-2`,`data-[side=top]:slide-in-from-bottom-2`,n===`popper`&&`data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1`,e),position:n,...r,children:[(0,w.jsx)(lx,{}),(0,w.jsx)(Mb,{className:i(`p-1`,n===`popper`&&`h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)`),children:t}),(0,w.jsx)(ux,{})]})}),fx=({className:e,...t})=>(0,w.jsx)(Lb,{className:i(`px-1 py-0.5 font-semibold text-sm`,e),...t}),px=({className:e,children:t,...n})=>(0,w.jsxs)(Vb,{className:i(`relative flex w-full cursor-pointer select-none items-center rounded-lg py-1.5 ps-2 pe-8 text-sm outline-hidden focus:bg-neutral/10 data-disabled:pointer-events-none data-disabled:opacity-50`,e),...n,children:[(0,w.jsx)(`span`,{className:`absolute inset-e-2 flex size-3.5 items-center justify-center`,children:(0,w.jsx)(Gb,{children:(0,w.jsx)(Gt,{className:`size-4`})})}),(0,w.jsx)(Ub,{children:t})]}),mx=({className:e,...t})=>(0,w.jsx)(Zb,{className:i(`-mx-1 my-1 h-px`,`bg-neutral-200 dark:bg-neutral-800`,e),...t}),hx=ax;hx.Group=ox,hx.Value=sx,hx.Trigger=cx,hx.ScrollUpButton=lx,hx.ScrollDownButton=ux,hx.Content=dx,hx.Label=fx,hx.Item=px,hx.Separator=mx;var gx=mn(`rtl-mirror-icons gap-3 transition-all duration-300 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50`,{variants:{variant:{default:`h-auto justify-start border-inherit bg-current/0 px-1 font-medium decoration-[1.5] underline-offset-5 hover:bg-current/0 hover:underline hover:underline-offset-6 hover:opacity-80`,"invisible-link":`h-auto justify-start border-inherit bg-current/0`,button:`relative inline-flex min-h-8 cursor-pointer flex-row items-center justify-center gap-2 rounded-full bg-current px-6 text-center font-medium text-sm text-text ring-0 *:text-text-opposite hover:bg-current/90 hover:ring-5 aria-selected:ring-5 aria-[current]:ring-5 max-md:py-2`,"button-outlined":`relative inline-flex min-h-8 cursor-pointer flex-row items-center justify-center gap-2 rounded-full border-[1.3px] border-current! px-6 text-center font-medium text-sm text-text ring-0 *:text-text hover:bg-current/30! hover:ring-5 aria-selected:ring-5 aria-[current]:ring-5 max-md:py-2`,hoverable:`block rounded-lg border-none bg-current/0 transition *:text-current! hover:bg-current/5 aria-[current]:bg-current/3`},roundedSize:{none:`rounded-none`,sm:`rounded-lg [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-xl`,md:`rounded-xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-2xl`,lg:`rounded-2xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-3xl`,xl:`rounded-3xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-4xl`,"2xl":`rounded-4xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[2.5rem]`,"3xl":`rounded-[2.5rem] [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[3rem]`,full:`rounded-full`},color:{neutral:`text-neutral`,text:`text-text`,error:`text-error`,success:`text-success`,"text-inverse":`text-text-opposite`,custom:``},size:{sm:`text-sm`,md:`text-base`,lg:`text-lg`,xl:`text-xl`,custom:``},underlined:{default:``,true:`underline`,false:`no-underline`}},compoundVariants:[{variant:`button`,color:`text-inverse`,class:`*:text-text`},{variant:`button-outlined`,color:`text-inverse`,class:`text-text-opposite *:text-text-opposite`},{variant:[`button`,`button-outlined`],size:`sm`,class:`min-h-7 px-3 text-xs max-md:py-1`},{variant:[`button`,`button-outlined`],size:`md`,class:`min-h-8 px-6 text-sm max-md:py-2`},{variant:[`button`,`button-outlined`],size:`lg`,class:`min-h-10 px-8 text-lg max-md:py-3`},{variant:[`button`,`button-outlined`],size:`xl`,class:`min-h-11 px-10 text-xl max-md:py-4`},{variant:[`button`,`button-outlined`],color:`neutral`,class:`ring-neutral/20`},{variant:[`button`,`button-outlined`],color:`text`,class:`ring-text/20`},{variant:[`button`,`button-outlined`],color:`text-inverse`,class:`ring-text-opposite/20`},{variant:[`button`,`button-outlined`],color:`error`,class:`ring-error/20`},{variant:[`button`,`button-outlined`],color:`success`,class:`ring-success/20`}],defaultVariants:{variant:`default`,roundedSize:`md`,underlined:`default`,size:`custom`}}),_x=({href:e,isExternalLink:t},n)=>{if(typeof t==`boolean`)return t;if(typeof e!=`string`||e.trim()===``||!/^https?:\/\//.test(e))return!1;if(n)try{let t=new URL(e).hostname,r=new URL(n.startsWith(`http`)?n:`https://${n}`).hostname,i=e=>e.split(`.`).slice(-2).join(`.`);return i(t)!==i(r)}catch{return!0}return!0},vx=e=>typeof e==`string`||typeof e==`number`?!0:Array.isArray(e)?e.every(vx):(0,C.isValidElement)(e)?vx(e.props.children):!1,yx=e=>{let{variant:t=`default`,color:n=`custom`,roundedSize:r,children:a,label:o,className:s,isActive:c,underlined:l,locale:u,size:d,isExternalLink:f,isPageSection:p,href:m,rel:h,target:g,..._}=e,v=t===`button`||t===`button-outlined`,y=d??(v?`md`:`custom`),b=f??_x(e),x=p??m?.startsWith(`#`)??!1,S=vx(a),C=b?`noopener noreferrer nofollow`:h,T=b?`_blank`:g??`_self`,E=u&&m&&!b&&!x?Tt(m,u):m,D=E===``?void 0:E;return(0,w.jsxs)(`a`,{..._,href:D,"aria-label":o,rel:C,target:T,"aria-current":c?`page`:void 0,suppressHydrationWarning:!0,className:i(gx({variant:t,color:n,roundedSize:r,underlined:l,size:y,className:s})),children:[v&&S?(0,w.jsx)(`span`,{children:a}):a,b&&S&&(0,w.jsx)(rn,{className:`ms-2 inline-block size-4`}),x&&(0,w.jsx)(on,{className:`ms-2 inline-block size-4`})]})},bx=e=>{let[t,n]=(0,C.useState)(e);return(0,C.useEffect)(()=>{n(e??window.document.body)},[e]),t},xx=new class{listeners=new Set;scrollBlockers=[];subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.scrollBlockers;addBlockage=(e,t)=>{let n=this.scrollBlockers.find(e=>e.element===t);if(n){if(n.blockers.includes(e))return;this.scrollBlockers=this.scrollBlockers.map(n=>n.element===t?{...n,blockers:[...n.blockers,e]}:n)}else t.style.overflowY=`hidden`,t.style.overflowX=`hidden`,this.scrollBlockers=[...this.scrollBlockers,{element:t,blockers:[e]}];this.emit()};removeBlockage=(e,t)=>{let n=this.scrollBlockers.find(e=>e.element===t);n&&(n.blockers.length>1?this.scrollBlockers=this.scrollBlockers.map(n=>n.element===t?{...n,blockers:n.blockers.filter(t=>t!==e)}:n):(t.style.overflowY=``,t.style.overflowX=``,this.scrollBlockers=this.scrollBlockers.filter(e=>e.element!==t)),this.emit())};isElementScrollBlocked=e=>this.scrollBlockers.some(t=>t.element===e);emit=()=>{this.listeners.forEach(e=>{e()})}},Sx=()=>!1,Cx=e=>{let{disableScroll:t=!1,element:n,key:r=`unnamed_blocker`}=e??{},i=bx(n);(0,C.useEffect)(()=>{let e=n??window.document.body;return t?xx.addBlockage(r,e):xx.removeBlockage(r,e),()=>{xx.removeBlockage(r,e)}},[t,n,r]);let a=(0,C.useCallback)(()=>i?xx.isElementScrollBlocked(i):!1,[i]);return{isScrollBlocked:(0,C.useSyncExternalStore)(xx.subscribe,a,Sx)}},wx=`relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8`,Tx=`after:content-['#'] after:scale-75 after:px-6 after:text-neutral after:absolute after:top-0 after:h-full after:-inset-s-12 after:absolute after:to-neutral after:md:opacity-0 after:transition-opacity hover:after:opacity-80 after:duration-200 after:delay-100`,Ex=({className:e,...t})=>(0,w.jsx)(`h1`,{className:i(`text-3xl`,e),...t}),Dx=({className:e,...t})=>(0,w.jsx)(`h2`,{className:i(`mb-2 text-2xl`,wx,e),...t}),Ox=({className:e,...t})=>(0,w.jsx)(`h3`,{className:i(`mb-2 text-xl`,wx,e),...t}),kx=({className:e,...t})=>(0,w.jsx)(`h4`,{className:i(`text-lg`,wx,e),...t}),Ax=({className:e,...t})=>(0,w.jsx)(`h5`,{className:i(`text-base`,wx,e),...t}),jx=({className:e,...t})=>(0,w.jsx)(`h6`,{className:i(`ms-3 text-base`,wx,e),...t}),Mx=e=>String(e).normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).replace(/\s+/g,`-`).toLowerCase(),Nx=e=>{let t=(document.getElementById(e)?.getBoundingClientRect()?.top??0)+window.scrollY-150;window.scrollTo({top:t,behavior:`smooth`})},Px=(e,t)=>{let n=e.getBoundingClientRect().left,r=e.getBoundingClientRect().top,i=window.getComputedStyle(e,`:after`),a=n+parseInt(i.getPropertyValue(`left`),10),o=a+parseInt(i.width,10),s=r+parseInt(i.getPropertyValue(`top`),10),c=s+parseInt(i.height,10),l=t.clientX,u=t.clientY;return l>=a&&l<=o&&u>=s&&u<=c},Fx=({H:e,children:t,className:n,isClickable:r,...a})=>{let o=typeof t==`string`?Mx(t):void 0;return(0,w.jsx)(e,{id:o,onClick:r?e=>{let{id:t}=e.currentTarget;if(Px(e.currentTarget,e)&&typeof t==`string`){let e=`${window.location.href.split(`#`)[0]}#${t}`;navigator.clipboard.writeText(e),Nx(t)}}:void 0,"aria-label":r?`Click to scroll to section ${o} and copy the link to the clipboard`:void 0,className:i(r&&Tx,n),...a,children:t})},Ix=({isClickable:e,...t})=>(0,w.jsx)(Ex,{...t}),Lx=({isClickable:e=!1,...t})=>(0,w.jsx)(Fx,{H:Dx,isClickable:e,...t}),Rx=({isClickable:e=!1,...t})=>(0,w.jsx)(Fx,{H:Ox,isClickable:e,...t}),zx=({isClickable:e=!1,...t})=>(0,w.jsx)(Fx,{H:kx,isClickable:e,...t}),Bx=({isClickable:e=!1,...t})=>(0,w.jsx)(Fx,{H:Ax,isClickable:e,...t}),Vx=({isClickable:e=!1,...t})=>(0,w.jsx)(Fx,{H:jx,isClickable:e,...t}),Hx=mn(`flex cursor-default flex-col overflow-hidden shadow-sm`,{variants:{size:{sm:`h-auto max-h-[30vh] w-[95vw] max-w-xl`,md:`h-auto max-h-[50vh] w-[95vw] max-w-xl`,lg:`h-auto max-h-[70vh] w-[95vw] max-w-4xl`,xl:`h-auto max-h-[95vh] w-[95vw] max-w-6xl`,unset:`h-auto max-h-[95vh] w-[95vw]`}},defaultVariants:{size:`unset`}}),Ux={none:`p-0`,sm:`px-2 py-4`,md:`px-4 py-6`,lg:`px-6 py-8`,xl:`px-8 py-10`,"2xl":`px-10 py-12`},Wx=Mm.create(Jm),Gx=({children:e,isOpen:t,container:n,onClose:r,hasCloseButton:a=!1,closeButtonColor:o=`text`,title:s,size:c=`md`,className:l,isScrollable:u=!1,disableScroll:d=!0,padding:f=`none`,...p})=>{let m=bx(n);if(Cx({key:`modal`,disableScroll:t&&d}),(0,C.useEffect)(()=>{let e=e=>{e.key===`Escape`&&t&&r&&r()};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[t,r]),!m)return(0,w.jsx)(w.Fragment,{});let h=!!s,g=Ux[f||`none`];return(0,ln.createPortal)((0,w.jsx)(Mm.div,{className:`invisible fixed inset-s-0 top-0 z-50 flex size-full cursor-pointer items-center justify-center overflow-hidden bg-background/40 backdrop-blur`,animate:t?`visible`:`invisible`,variants:{visible:{opacity:1,visibility:`visible`,transition:{duration:.1,when:`beforeChildren`}},invisible:{opacity:0,visibility:`hidden`,transition:{duration:.1,when:`afterChildren`}}},onClick:e=>{e.stopPropagation(),r?.()},"aria-hidden":!t,children:(0,w.jsxs)(Wx,{onClick:e=>e.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:Hx({size:c,className:l}),role:`dialog`,"aria-modal":!0,padding:`none`,...p,children:[(0,w.jsxs)(`div`,{className:i(`relative flex-none px-4 pt-4`,a&&h?`flex items-start`:a?`flex justify-end`:h?`items-center`:`hidden`),children:[h&&(0,w.jsx)(Rx,{className:`ms-1 mb-2 flex items-center justify-center font-bold text-lg`,children:s}),a&&(0,w.jsx)(Lm,{variant:`hoverable`,color:o,label:`Close modal`,className:`ms-auto`,onClick:e=>{e.stopPropagation(),r?.()},Icon:cn,size:`icon-md`})]}),(0,w.jsx)(`div`,{className:i(`flex min-h-0 w-full flex-1 flex-col`,u===!0&&`overflow-auto`,u===`y`&&`overflow-y-auto overflow-x-hidden`,u===`x`&&`overflow-x-auto overflow-y-hidden`,!u&&`overflow-visible`),children:(0,w.jsx)(`div`,{className:i(`flex size-full flex-1 flex-col`,g),children:e})})]})}),m)},Kx=mn(`relative z-0 flex size-full flex-row items-center gap-2`,{variants:{color:{error:`border-error bg-error text-error`,neutral:`border-neutral text-neutral`,light:`border-white text-white`,dark:`border-neutral-800 text-neutral-800`,text:`border-text text-foreground`}},defaultVariants:{color:`text`}}),qx=mn(`absolute -z-1 rounded-lg duration-300 ease-in-out motion-reduce:transition-none`,{variants:{color:{error:`bg-error/10 aria-selected:text-foreground`,neutral:`bg-neutral/10 aria-selected:text-white/10`,light:`bg-white/10 aria-selected:text-black`,dark:`bg-neutral-800/10 aria-selected:text-white`,text:`bg-text/10 aria-selected:text-foreground-opposite`},orientation:{horizontal:`top-0 h-full w-auto transition-[left,width]`,vertical:`inset-s-0 h-auto w-full transition-[top,height]`}},defaultVariants:{orientation:`horizontal`}}),Jx=({tabs:e,selectedChoice:t,onTabClick:n,color:r=`text`,hoverable:a=!1,orientation:o=`horizontal`,className:s})=>{let c=(0,C.useRef)([]),l=(0,C.useRef)(null),{choiceIndicatorPosition:u,scheduleMeasurement:d}=Km(c,{isHoverable:a,orientation:o});return(0,C.useEffect)(()=>{d()},[t]),(0,w.jsxs)(`div`,{className:i(Kx({color:r}),s),"aria-orientation":o,"aria-multiselectable":`false`,role:`tablist`,children:[e.map((e,r)=>{let i=e.key,a=t===i;return(0,C.cloneElement)(e,{key:i??r,role:`tab`,onClick:t=>{e.props?.onClick?.(t),n?.(i)},"aria-selected":a,"data-active":a,tabIndex:a?0:-1,ref:e=>{c.current[r]=e}})}),u&&(0,w.jsx)(`div`,{className:i(qx({color:r,orientation:o})),style:u,ref:l},`${t}${JSON.stringify(e.map(e=>e.key))}`)]})},Yx=({content:e,onClick:t,...n})=>{let[r,i]=(0,C.useState)(!1),[a,o]=(0,C.useState)(!1),{label:s}=kt(`copy-button`),c=async n=>{t?.(n);try{o(!1);let t=typeof e==`function`?await e():e;await navigator.clipboard.writeText(t),i(!0)}catch(e){console.error(`Failed to copy text: `,e),o(!0)}};(0,C.useEffect)(()=>{if(r||a){let e=setTimeout(()=>{i(!1),o(!1)},1e3);return()=>clearTimeout(e)}},[r,a]);let l=()=>r?`Content copied to clipboard`:a?`Failed to copy content`:n.label??s.value;return(0,w.jsx)(Lm,{Icon:r?$t:tn,onClick:c,variant:`hoverable`,color:`text`,size:`icon-sm`,tabIndex:0,title:l(),...n,label:l(),"aria-describedby":r?`copy-success`:a?`copy-error`:void 0})},Xx=(0,C.createContext)(null),Zx=e=>{let t=(0,C.useContext)(Xx)??e;return{triggerId:`unrollable-panel-button-${t}`,panelId:`unrollable-panel-${t}`}},Qx=({children:e,className:t,identifier:n,...r})=>{let a=`${n}${(0,C.useId)()}`,{triggerId:o}=Zx(a);return(0,w.jsx)(Xx,{value:a,children:(0,w.jsx)(`div`,{className:i(`group/popover relative flex cursor-pointer`,t),id:o,"aria-haspopup":!0,...r,children:e})})},$x=({children:e,isHidden:t=void 0,isOverable:n=!0,isFocusable:r=!1,xAlign:a=`start`,yAlign:o=`below`,identifier:s,className:c,displayArrow:l=!0,...u})=>{let{triggerId:d,panelId:f}=Zx(s);return(0,w.jsx)(Jm,{transparency:`xs`,role:`group`,"aria-hidden":t,"aria-labelledby":d,id:f,className:i(`absolute z-60 min-w-full rounded-md ring-1 ring-neutral`,a===`start`&&`inset-s-0`,a===`center`&&`left-1/2 -translate-x-1/2`,a===`end`&&`inset-e-0`,o===`below`&&`top-[calc(100%+1rem)]`,o===`above`&&`bottom-[calc(100%+1rem)]`,l&&`before:absolute before:z-[999] before:h-0 before:w-0 before:content-[""]`,l&&a===`start`&&`before:inset-s-2`,l&&a===`center`&&`before:left-1/2 before:-translate-x-1/2`,l&&a===`end`&&`before:inset-e-2`,l&&o===`below`&&`before:-top-2.5 before:border-s-[10px] before:border-s-transparent before:border-e-[10px] before:border-e-transparent before:border-b-[10px] before:border-b-neutral`,l&&o===`above`&&`before:-bottom-2.5 before:border-s-[10px] before:border-s-transparent before:border-e-[10px] before:border-e-transparent before:border-t-[10px] before:border-t-neutral`,`overflow-x-visible opacity-0 transition-all duration-400 ease-in-out`,t===!1?`visible opacity-100 delay-800`:`invisible`,n&&`group-hover/popover:visible group-hover/popover:opacity-100 group-hover/popover:delay-800`,r&&`group-focus-within/popover:visible group-focus-within/popover:opacity-100 group-focus-within/popover:delay-800`,c),...u,children:e})};Qx.Detail=$x;var eS=16,tS=16,nS=e=>(0,w.jsx)(Qx,{...e}),rS=({xAlign:e=`start`,yAlign:t=`below`,...n})=>{let r=(0,C.useRef)(null),{triggerId:i}=Zx(n.identifier),[a,o]=(0,C.useState)(e),[s,c]=(0,C.useState)(t),[l,u]=(0,C.useState)(void 0);return(0,C.useLayoutEffect)(()=>{let n=null,a=null,s=!1,l=()=>{let n=r.current,s=document.getElementById(i);if(!n||!s)return;let l=s.getBoundingClientRect(),d=window.innerWidth,f=window.innerHeight,p=d-l.left-tS,m=l.right-tS;u(Math.max(p,m));let h=n.classList.contains(`invisible`);h&&(n.style.visibility=`hidden`,n.classList.remove(`invisible`)),a=Hm(()=>{a=null;let r=n.getBoundingClientRect();h&&(n.style.visibility=``,n.classList.add(`invisible`));let i=t,u=f-l.bottom-eS,p=l.top-eS;t===`below`&&u<r.height?p>=r.height&&(i=`above`):t===`above`&&p<r.height&&u>=r.height&&(i=`below`);let m=e,g=d-l.left-tS,_=l.right-tS,v=getComputedStyle(s).direction===`rtl`,y=v?_:g,b=v?g:_;e===`start`&&y<r.width?b>=r.width&&(m=`end`):e===`end`&&b<r.width&&y>=r.width&&(m=`start`),c(i),o(m)})},d=()=>{n||=Hm(()=>{n=null,l()})},f=()=>{s||(s=!0,window.addEventListener(`scroll`,d,{passive:!0,capture:!0})),d()},p=()=>{s&&(s=!1,window.removeEventListener(`scroll`,d,!0))},m=document.getElementById(i);m&&(m.addEventListener(`mouseenter`,f,{passive:!0}),m.addEventListener(`focusin`,f,{passive:!0}),m.addEventListener(`mouseleave`,p,{passive:!0}),m.addEventListener(`focusout`,p,{passive:!0}));let h=new ResizeObserver(()=>{s&&d()});return r.current&&h.observe(r.current),window.addEventListener(`resize`,d,{passive:!0}),()=>{n?.(),a?.(),m&&(m.removeEventListener(`mouseenter`,f),m.removeEventListener(`focusin`,f),m.removeEventListener(`mouseleave`,p),m.removeEventListener(`focusout`,p)),h.disconnect(),window.removeEventListener(`resize`,d),window.removeEventListener(`scroll`,d,!0)}},[i,e,t]),(0,w.jsx)($x,{...n,xAlign:a,yAlign:s,ref:r,style:{...n.style,maxWidth:l?`${l}px`:void 0}})},iS=nS;iS.Detail=rS;export{B as $,ah as A,ae as At,Kf as B,ce as Bt,U_ as C,Dt as Ct,Bh as D,tt as Dt,B_ as E,pt as Et,Pm as F,oe as Ft,ii as G,pe as Gt,Bf as H,fe as Ht,Am as I,me as It,ti as J,Se as Jt,ri as K,ge as Kt,jp as L,ue as Lt,Km as M,se as Mt,Rm as N,ye as Nt,wh as O,le as Ot,Lm as P,he as Pt,Or as Q,Op as R,xe as Rt,V_ as S,kt as St,R_ as T,gt as Tt,zf as U,de as Ut,Vf as V,ie as Vt,el as W,be as Wt,Kr as X,s as Xt,ei as Y,l as Yt,Mr as Z,o as Zt,H_ as _,tn as _t,Ix as a,R as at,G_ as b,Gt as bt,zx as c,Pn as ct,Cx as d,Tn as dt,Er as et,bx as f,I as ft,Bv as g,cn as gt,Jy as h,pn as ht,Gx as i,ur as it,Jm as j,re as jt,vh as k,ve as kt,Bx as l,Nn as lt,hx as m,mn as mt,Yx as n,Tr as nt,Lx as o,sr as ot,yx as p,F as pt,ni as q,N as qt,Jx as r,yr as rt,Rx as s,Jn as st,iS as t,_r as tt,Vx as u,kn as ut,L_ as v,$t as vt,I_ as w,Ot as wt,z_ as x,Ut as xt,F_ as y,qt as yt,Dp as z,_e as zt};