your-ai-workflow-firebase-os 1.2.7 → 1.2.9

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.
Files changed (50) hide show
  1. package/dist/ContactPopup-BcjnOBWb.js +7544 -0
  2. package/dist/ContactPopup-gaUJCR67.cjs +9 -0
  3. package/dist/FirebaseOS.d.ts +5 -0
  4. package/dist/PhoneInputField-Bwos3cqE.js +2042 -0
  5. package/dist/PhoneInputField-CSoNnJ2Y.cjs +1 -0
  6. package/dist/chunk-DYteiM-1.cjs +1 -0
  7. package/dist/contactForm.config-CXyq-EbM.cjs +1 -0
  8. package/dist/contactForm.config-DfZU9Fr1.js +2 -0
  9. package/dist/lib/ConfigContext.d.ts +5 -0
  10. package/dist/lib/ThemeContext.d.ts +2 -2
  11. package/dist/renderer.cjs.js +1 -0
  12. package/dist/renderer.d.ts +1 -0
  13. package/dist/renderer.es.js +2 -0
  14. package/dist/supportForm.config-M9zQs6qp.js +2 -0
  15. package/dist/supportForm.config-haLod4rv.cjs +1 -0
  16. package/dist/theme.config-0Lvwt5Bo.cjs +1 -0
  17. package/dist/theme.config-B2y1axZf.js +2 -0
  18. package/dist/your-ai-workflow-firebase-os.cjs.js +76 -84
  19. package/dist/your-ai-workflow-firebase-os.css +2 -1
  20. package/dist/your-ai-workflow-firebase-os.es.js +23988 -33460
  21. package/package.json +6 -1
  22. package/scripts/postinstall.js +10 -0
  23. package/src/FirebaseOS.tsx +7 -1
  24. package/src/components/ContactPopup.tsx +63 -49
  25. package/src/components/DashboardNav.tsx +14 -4
  26. package/src/components/PhoneInputField.tsx +30 -0
  27. package/src/configs/forms/index.ts +0 -2
  28. package/src/lib/ConfigContext.tsx +5 -0
  29. package/src/lib/ThemeContext.tsx +14 -6
  30. package/src/main.tsx +13 -1
  31. package/src/pages/DynamicPage.tsx +106 -54
  32. package/src/pages/FormsAdmin.tsx +37 -6
  33. package/src/pages/Home.tsx +14 -5
  34. package/src/pages/PagesAdmin.tsx +37 -6
  35. package/src/pages/ThemeAdmin.tsx +16 -3
  36. package/src/renderer.ts +1 -0
  37. package/dist/contactForm.config-DLeI_ZEj.js +0 -2
  38. package/dist/contactForm.config-Y2AYSH9s.cjs +0 -1
  39. package/dist/contactForm.config-ki9OzidM.cjs +0 -1
  40. package/dist/supportForm.config-74T-eSSH.js +0 -2
  41. package/dist/supportForm.config-BwZqJ5CZ.cjs +0 -1
  42. package/dist/supportForm.config-NfLDtLTB.cjs +0 -1
  43. package/dist/theme.config-BbEzcEDR.js +0 -2
  44. package/dist/theme.config-DJqqr_kx.cjs +0 -1
  45. package/dist/theme.config-DKqbHSSM.cjs +0 -1
  46. package/src/configs/forms/pubForm.config.ts +0 -11
  47. package/src/configs/forms/userForm.config.ts +0 -11
  48. /package/dist/{contactForm.config-BHvMbfxM.js → contactForm.config-D9No8cBy.js} +0 -0
  49. /package/dist/{supportForm.config-D5ZRFZtU.js → supportForm.config-Dgl58gss.js} +0 -0
  50. /package/dist/{theme.config-q93xMCw6.js → theme.config-D05RQKVy.js} +0 -0
@@ -0,0 +1,9 @@
1
+ const e=require(`./chunk-DYteiM-1.cjs`),t=require(`./theme.config-0Lvwt5Bo.cjs`),n=require(`./contactForm.config-CXyq-EbM.cjs`),r=require(`./supportForm.config-haLod4rv.cjs`);let i=require(`react`);i=e.i(i,1);let a=require(`firebase/firestore`),o=require(`firebase/app`),s=require(`firebase/auth`),c=require(`firebase/storage`),l=require(`react/jsx-runtime`),u=require(`react-router-dom`),d=require(`react-dom`);var f=null,p=null,m=null,h=null;function g(e){f=(0,o.getApps)().length?(0,o.getApp)():(0,o.initializeApp)(e),p=(0,s.getAuth)(f),m=(0,a.getFirestore)(f),h=(0,c.getStorage)(f)}function _(e){try{return{BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_ADMIN_EMAILS:void 0,VITE_FIREBASE_API_KEY:void 0,VITE_FIREBASE_APP_ID:void 0,VITE_FIREBASE_AUTH_DOMAIN:void 0,VITE_FIREBASE_MESSAGING_SENDER_ID:void 0,VITE_FIREBASE_PROJECT_ID:void 0,VITE_FIREBASE_STORAGE_BUCKET:void 0}?.[e]||``}catch{return``}}var v=[`VITE_FIREBASE_API_KEY`,`VITE_FIREBASE_AUTH_DOMAIN`,`VITE_FIREBASE_PROJECT_ID`,`VITE_FIREBASE_STORAGE_BUCKET`,`VITE_FIREBASE_MESSAGING_SENDER_ID`,`VITE_FIREBASE_APP_ID`],y={VITE_FIREBASE_API_KEY:`apiKey`,VITE_FIREBASE_AUTH_DOMAIN:`authDomain`,VITE_FIREBASE_PROJECT_ID:`projectId`,VITE_FIREBASE_STORAGE_BUCKET:`storageBucket`,VITE_FIREBASE_MESSAGING_SENDER_ID:`messagingSenderId`,VITE_FIREBASE_APP_ID:`appId`};function b(){let e={};for(let t of v){let n=_(t);if(!n)return null;e[y[t]]=n}return e}function x(){try{let e=localStorage.getItem(`firebase_config`);if(e){let t=JSON.parse(e);if(t.apiKey)return t}}catch{}return null}var S=b();if(S&&!(0,o.getApps)().length)g(S);else{let e=x();e&&!(0,o.getApps)().length&&g(e)}var C=(0,i.createContext)({});function w({config:e,children:t}){return(0,l.jsx)(C.Provider,{value:e,children:t})}var T=()=>(0,i.useContext)(C);function ee(e,t){if(typeof t!=`object`||!t)return t;let n={...e};for(let r of Object.keys(t))t[r]instanceof Object&&r in e&&e[r]instanceof Object&&!Array.isArray(t[r])?n[r]=ee(e[r],t[r]):n[r]=t[r];return n}var te=(0,i.createContext)(void 0);function ne({children:e,scopeSelector:n}){let r=T()?.themeConfig||t.t,[o,s]=(0,i.useState)(()=>localStorage.getItem(`theme-mode`)||r.defaultTheme),[c,u]=(0,i.useState)(`dark`),[d,f]=(0,i.useState)(()=>{try{let e=localStorage.getItem(`theme_config_cache`);if(e)return JSON.parse(e)}catch{}return r}),[p,h]=(0,i.useState)(!0);return(0,i.useEffect)(()=>{if(!m){f(r);return}let e=(0,a.onSnapshot)((0,a.doc)(m,`sys_configs`,`theme`),e=>{if(e.exists()){let t=e.data();delete t.fontStyles,delete t.fontCustomization;let n=ee(r,t);f(n),localStorage.setItem(`theme_config_cache`,JSON.stringify(n));let i=localStorage.getItem(`last-seen-default-theme`);n.defaultTheme&&n.defaultTheme!==i&&(localStorage.setItem(`last-seen-default-theme`,n.defaultTheme),s(n.defaultTheme))}else f(r),localStorage.removeItem(`theme_config_cache`)});return()=>e()},[]),(0,i.useEffect)(()=>{let e=e=>{o===`system`&&u(e.matches?`light`:`dark`)},t=window.matchMedia(`(prefers-color-scheme: light)`);return o===`system`?(u(t.matches?`light`:`dark`),t.addEventListener(`change`,e)):u(o),()=>t.removeEventListener(`change`,e)},[o]),(0,i.useEffect)(()=>{let e=(n?document.querySelector(n):document.documentElement)||document.documentElement,t=c===`dark`?d.colors.dark:d.colors.light;e.style.setProperty(`--bg-color`,t.background),e.style.setProperty(`--bg-secondary-color`,t.backgroundSecondary||t.background),e.style.setProperty(`--fg-color`,t.foreground),e.style.setProperty(`--accent-color`,t.accent),e.style.setProperty(`--panel-bg`,t.panelBg),e.style.setProperty(`--panel-border`,t.panelBorder);let r=(e,t)=>!e||e.length===0?t||`transparent`:e.length===1?e[0]:`linear-gradient(135deg, ${e.map((t,n)=>`${t} ${Math.round(n/(e.length-1)*100)}%`).join(`, `)})`,i=c===`dark`?`linear-gradient(135deg, #6d28d9 0%, #a78bfa 100%)`:`linear-gradient(135deg, #5b21b6 0%, #a78bfa 100%)`;e.style.setProperty(`--button-bg`,r(t.buttonGradient,i)),e.style.setProperty(`--button-fg`,t.buttonText||`#ffffff`),e.style.setProperty(`--button-hover-bg`,r(t.buttonHoverGradient||t.buttonGradient,i)),e.style.setProperty(`--text-gradient`,r(t.textGradient,`linear-gradient(135deg, ${t.foreground} 0%, ${t.accent} 100%)`)),e.style.setProperty(`--glow-color`,t.glowColor||`rgba(124, 58, 237, 0.3)`),e.style.setProperty(`--notification-icon-color`,t.notificationIconColor||t.accent);let a=t.secondaryButton?.bg||(c===`dark`?`rgba(255, 255, 255, 0.05)`:`rgba(0, 0, 0, 0.03)`),s=t.secondaryButton?.border||(c===`dark`?`rgba(255, 255, 255, 0.1)`:`rgba(0, 0, 0, 0.06)`),l=t.secondaryButton?.text||t.foreground;e.style.setProperty(`--btn-sec-bg`,a),e.style.setProperty(`--btn-sec-border`,s),e.style.setProperty(`--btn-sec-text`,l),e.style.setProperty(`--selection-bg`,t.selectionBg||`color-mix(in srgb, var(--accent-color) 40%, transparent)`),e.style.setProperty(`--selection-text`,t.selectionText||`#ffffff`),e.setAttribute(`data-theme`,c),localStorage.setItem(`theme-mode`,o),d.cornerRounding===`custom`&&d.cornerRadii?(e.style.setProperty(`--btn-radius`,`${parseFloat(String(d.cornerRadii.buttonRadius))||0}rem`),e.style.setProperty(`--card-radius`,`${parseFloat(String(d.cornerRadii.cardRadius))||0}rem`),e.style.setProperty(`--input-radius`,`${parseFloat(String(d.cornerRadii.inputRadius))||0}rem`),e.style.setProperty(`--modal-radius`,`${parseFloat(String(d.cornerRadii.modalRadius))||0}rem`)):(e.style.setProperty(`--btn-radius`,`0.75rem`),e.style.setProperty(`--card-radius`,`1.5rem`),e.style.setProperty(`--input-radius`,`0.75rem`),e.style.setProperty(`--modal-radius`,`1.5rem`)),(t=>{let n={Inter:`"Inter", sans-serif`,Outfit:`"Outfit", sans-serif`,Roboto:`"Roboto", sans-serif`,"Space Grotesk":`"Space Grotesk", sans-serif`,"Plus Jakarta Sans":`"Plus Jakarta Sans", sans-serif`,"System UI":`system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif`};e.style.setProperty(`--font-family`,n[t]||n.Inter);let r=document.getElementById(`dynamic-google-font`);t===`System UI`?r&&r.remove():(r||(r=document.createElement(`link`),r.id=`dynamic-google-font`,r.rel=`stylesheet`,document.head.appendChild(r)),r.href=`https://fonts.googleapis.com/css2?family=${t.replace(/ /g,`+`)}:wght@400;500;600;700;800;900&display=swap`),e.style.fontSize=`16px`,e.style.setProperty(`--weight-h1`,`800`),e.style.setProperty(`--weight-h2`,`700`),e.style.setProperty(`--weight-h3`,`700`),e.style.setProperty(`--leading-normal`,`1.5`)})(d.fontFamily||`Inter`);let u=document.querySelector(`link[rel*='icon']`);u||(u=document.createElement(`link`),u.rel=`icon`,document.head.appendChild(u)),d.faviconUrl&&(u.href=d.faviconUrl)},[c,o,d]),(0,l.jsx)(te.Provider,{value:{theme:c,setTheme:e=>s(e),toggleTheme:()=>{s(e=>e===`light`?`dark`:`light`)},isSystem:o===`system`,setIsSystem:e=>s(e?`system`:c),config:d,activeConfig:d},children:p?e:null})}var re=()=>{let e=(0,i.useContext)(te);if(!e)throw Error(`useTheme must be used within ThemeProvider`);return e},ie=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ae=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),E=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),oe=e=>{let t=E(e);return t.charAt(0).toUpperCase()+t.slice(1)},se={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},ce=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},D=(0,i.createContext)({}),le=()=>(0,i.useContext)(D),ue=(0,i.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:a=``,children:o,iconNode:s,...c},l)=>{let{size:u=24,strokeWidth:d=2,absoluteStrokeWidth:f=!1,color:p=`currentColor`,className:m=``}=le()??{},h=r??f?Number(n??d)*24/Number(t??u):n??d;return(0,i.createElement)(`svg`,{ref:l,...se,width:t??u??se.width,height:t??u??se.height,stroke:e??p,strokeWidth:h,className:ie(`lucide`,m,a),...!o&&!ce(c)&&{"aria-hidden":`true`},...c},[...s.map(([e,t])=>(0,i.createElement)(e,t)),...Array.isArray(o)?o:[o]])}),de=(e,t)=>{let n=(0,i.forwardRef)(({className:n,...r},a)=>(0,i.createElement)(ue,{ref:a,iconNode:t,className:ie(`lucide-${ae(oe(e))}`,`lucide-${e}`,n),...r}));return n.displayName=oe(e),n},fe=de(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),O=de(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),k=de(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),pe=de(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),me=de(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),A=de(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),he=(0,i.createContext)({});function ge(e){let t=(0,i.useRef)(null);return t.current===null&&(t.current=e()),t.current}var _e=typeof window<`u`?i.useLayoutEffect:i.useEffect,ve=(0,i.createContext)(null);function ye(e,t){e.indexOf(t)===-1&&e.push(t)}function be(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var xe=(e,t,n)=>n>t?t:n<e?e:n;function Se(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var Ce=()=>{},we=()=>{};typeof process<`u`&&process.env.NODE_ENV!==`production`&&(Ce=(e,t,n)=>{!e&&typeof console<`u`&&console.warn(Se(t,n))},we=(e,t,n)=>{if(!e)throw Error(Se(t,n))});var Te={},Ee=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function De(e){return typeof e==`object`&&!!e}var Oe=e=>/^0[^.\s]+$/u.test(e);function ke(e){let t;return()=>(t===void 0&&(t=e()),t)}var j=e=>e,Ae=(e,t)=>n=>t(e(n)),je=(...e)=>e.reduce(Ae),Me=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},Ne=class{constructor(){this.subscriptions=[]}add(e){return ye(this.subscriptions,e),()=>be(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}},M=e=>e*1e3,N=e=>e/1e3;function Pe(e,t){return t?1e3/t*e:0}var Fe=new Set;function Ie(e,t,n){e||Fe.has(t)||(console.warn(Se(t,n)),Fe.add(t))}var Le=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Re=1e-7,ze=12;function Be(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Le(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Re&&++s<ze);return o}function Ve(e,t,n,r){if(e===t&&n===r)return j;let i=t=>Be(t,0,1,e,n);return e=>e===0||e===1?e:Le(i(e),t,r)}var He=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ue=e=>t=>1-e(1-t),We=Ve(.33,1.53,.69,.99),Ge=Ue(We),Ke=He(Ge),qe=e=>e>=1?1:(e*=2)<1?.5*Ge(e):.5*(2-2**(-10*(e-1))),Je=e=>1-Math.sin(Math.acos(e)),Ye=Ue(Je),Xe=He(Je),Ze=Ve(.42,0,1,1),Qe=Ve(0,0,.58,1),$e=Ve(.42,0,.58,1),et=e=>Array.isArray(e)&&typeof e[0]!=`number`,tt=e=>Array.isArray(e)&&typeof e[0]==`number`,nt={linear:j,easeIn:Ze,easeInOut:$e,easeOut:Qe,circIn:Je,circInOut:Xe,circOut:Ye,backIn:Ge,backInOut:Ke,backOut:We,anticipate:qe},rt=e=>typeof e==`string`,it=e=>{if(tt(e)){we(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return Ve(t,n,r,i)}else if(rt(e))return we(nt[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),nt[e];return e},at=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],ot={value:null,addProjectionMetrics:null};function st(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&ot.value&&ot.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var ct=40;function lt(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=at.reduce((e,n)=>(e[n]=st(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Te.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,ct),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:at.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<at.length;t++)o[at[t]].cancel(e)},state:i,steps:o}}var{schedule:P,cancel:ut,state:F,steps:dt}=lt(typeof requestAnimationFrame<`u`?requestAnimationFrame:j,!0),ft;function pt(){ft=void 0}var I={now:()=>(ft===void 0&&I.set(F.isProcessing||Te.useManualTiming?F.timestamp:performance.now()),ft),set:e=>{ft=e,queueMicrotask(pt)}},mt={layout:0,mainThread:0,waapi:0},ht=e=>t=>typeof t==`string`&&t.startsWith(e),gt=ht(`--`),_t=ht(`var(--`),vt=e=>_t(e)?yt.test(e.split(`/*`)[0].trim()):!1,yt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function bt(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var xt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},St={...xt,transform:e=>xe(0,1,e)},Ct={...xt,default:1},wt=e=>Math.round(e*1e5)/1e5,Tt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Et(e){return e==null}var Dt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ot=(e,t)=>n=>!!(typeof n==`string`&&Dt.test(n)&&n.startsWith(e)||t&&!Et(n)&&Object.prototype.hasOwnProperty.call(n,t)),kt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Tt);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},At=e=>xe(0,255,e),jt={...xt,transform:e=>Math.round(At(e))},Mt={test:Ot(`rgb`,`red`),parse:kt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+jt.transform(e)+`, `+jt.transform(t)+`, `+jt.transform(n)+`, `+wt(St.transform(r))+`)`};function Nt(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 Pt={test:Ot(`#`),parse:Nt,transform:Mt.transform},Ft=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),It=Ft(`deg`),L=Ft(`%`),R=Ft(`px`),Lt=Ft(`vh`),Rt=Ft(`vw`),zt={...L,parse:e=>L.parse(e)/100,transform:e=>L.transform(e*100)},Bt={test:Ot(`hsl`,`hue`),parse:kt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+L.transform(wt(t))+`, `+L.transform(wt(n))+`, `+wt(St.transform(r))+`)`},z={test:e=>Mt.test(e)||Pt.test(e)||Bt.test(e),parse:e=>Mt.test(e)?Mt.parse(e):Bt.test(e)?Bt.parse(e):Pt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Mt.transform(e):Bt.transform(e),getAnimatableNone:e=>{let t=z.parse(e);return t.alpha=0,z.transform(t)}},Vt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ht(e){return isNaN(e)&&typeof e==`string`&&(e.match(Tt)?.length||0)+(e.match(Vt)?.length||0)>0}var Ut=`number`,Wt=`color`,Gt=`var`,Kt=`var(`,qt="${}",Jt=/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 Yt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Jt,e=>(z.test(e)?(r.color.push(a),i.push(Wt),n.push(z.parse(e))):e.startsWith(Kt)?(r.var.push(a),i.push(Gt),n.push(e)):(r.number.push(a),i.push(Ut),n.push(parseFloat(e))),++a,qt)).split(qt),indexes:r,types:i}}function Xt(e){return Yt(e).values}function Zt({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];e===Ut?i+=wt(r[a]):e===Wt?i+=z.transform(r[a]):i+=r[a]}return i}}function Qt(e){return Zt(Yt(e))}var $t=e=>typeof e==`number`?0:z.test(e)?z.getAnimatableNone(e):e,en=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:$t(e);function tn(e){let t=Yt(e);return Zt(t)(t.values.map((e,n)=>en(e,t.split[n])))}var B={test:Ht,parse:Xt,createTransformer:Qt,getAnimatableNone:tn};function nn(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 rn({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=nn(s,r,e+1/3),a=nn(s,r,e),o=nn(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function an(e,t){return n=>n>0?t:e}var V=(e,t,n)=>e+(t-e)*n,on=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},sn=[Pt,Mt,Bt],cn=e=>sn.find(t=>t.test(e));function ln(e){let t=cn(e);if(Ce(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!t)return!1;let n=t.parse(e);return t===Bt&&(n=rn(n)),n}var un=(e,t)=>{let n=ln(e),r=ln(t);if(!n||!r)return an(e,t);let i={...n};return e=>(i.red=on(n.red,r.red,e),i.green=on(n.green,r.green,e),i.blue=on(n.blue,r.blue,e),i.alpha=V(n.alpha,r.alpha,e),Mt.transform(i))},dn=new Set([`none`,`hidden`]);function fn(e,t){return dn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function pn(e,t){return n=>V(e,t,n)}function mn(e){return typeof e==`number`?pn:typeof e==`string`?vt(e)?an:z.test(e)?un:vn:Array.isArray(e)?hn:typeof e==`object`?z.test(e)?un:gn:an}function hn(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>mn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function gn(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=mn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function _n(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]];n[i]=e.values[o]??0,r[a]++}return n}var vn=(e,t)=>{let n=B.createTransformer(t),r=Yt(e),i=Yt(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?dn.has(e)&&!i.values.length||dn.has(t)&&!r.values.length?fn(e,t):je(hn(_n(r,i),i.values),n):(Ce(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,`complex-values-different`),an(e,t))};function yn(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?V(e,t,n):mn(e)(e,t)}var bn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>P.update(t,e),stop:()=>ut(t),now:()=>F.isProcessing?F.timestamp:I.now()}},xn=(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)})`},Sn=2e4;function Cn(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function wn(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Cn(r),Sn);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:N(i)}}var H={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Tn(e,t){return e*Math.sqrt(1-t*t)}var En=12;function Dn(e,t,n){let r=n;for(let n=1;n<En;n++)r-=e(r)/t(r);return r}var On=.001;function kn({duration:e=H.duration,bounce:t=H.bounce,velocity:n=H.velocity,mass:r=H.mass}){let i,a;Ce(e<=M(H.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=xe(H.minDamping,H.maxDamping,o),e=xe(H.minDuration,H.maxDuration,N(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Tn(t,o),c=Math.exp(-i);return On-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Tn(t**2,o);return(-i(t)+On>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-On+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Dn(i,a,s);if(e=M(e),isNaN(c))return{stiffness:H.stiffness,damping:H.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var An=[`duration`,`bounce`],jn=[`stiffness`,`damping`,`mass`];function Mn(e,t){return t.some(t=>e[t]!==void 0)}function Nn(e){let t={velocity:H.velocity,stiffness:H.stiffness,damping:H.damping,mass:H.mass,isResolvedFromDuration:!1,...e};if(!Mn(e,jn)&&Mn(e,An))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*xe(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:H.mass,stiffness:i,damping:a}}else{let n=kn({...e,velocity:0});t={...t,...n,mass:H.mass},t.isResolvedFromDuration=!0}return t}function Pn(e=H.visualDuration,t=H.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Nn({...n,velocity:-N(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=N(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?H.restSpeed.granular:H.restSpeed.default,i||=v?H.restDelta.granular:H.restDelta.default;let y,b,x,S,C,w;if(h<1)x=Tn(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>M(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=M(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=M(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Cn(T),Sn),t=xn(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}Pn.applyToOptions=e=>{let t=wn(e,100,Pn);return e.ease=t.ease,e.duration=M(t.duration),e.type=`keyframes`,e};var Fn=5;function In(e,t,n){let r=Math.max(t-Fn,0);return Pe(n-e(r),t-r)}function Ln({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=>s!==void 0&&e<s||c!==void 0&&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=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Pn({keyframes:[f.value,m(f.value)],velocity:In(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Rn(e,t,n){let r=[],i=n||Te.mix||yn,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=je(Array.isArray(t)?t[n]||j:t,a)),r.push(a)}return r}function zn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(we(a===t.length,`Both input and output ranges must be the same length`,`range-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=Rn(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=Me(e[r],e[r+1],n);return s[r](i)};return n?t=>l(xe(e[0],e[a-1],t)):l}function Bn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Me(0,t,r);e.push(V(n,1,i))}}function Vn(e){let t=[0];return Bn(t,e.length-1),t}function Hn(e,t){return e.map(e=>e*t)}function Un(e,t){return e.map(()=>t||$e).splice(0,e.length-1)}function Wn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=et(r)?r.map(it):it(r),a={done:!1,value:t[0]},o=zn(Hn(n&&n.length===t.length?n:Vn(t),e),t,{ease:Array.isArray(i)?i:Un(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Gn=e=>e!==null;function Kn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Gn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var qn={decay:Ln,inertia:Ln,tween:Wn,keyframes:Wn,spring:Pn};function Jn(e){typeof e.type==`string`&&(e.type=qn[e.type])}var Yn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Xn=e=>e/100,Zn=class extends Yn{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!==I.now()&&this.tick(I.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},mt.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Jn(e);let{type:t=Wn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Wn;process.env.NODE_ENV!==`production`&&s!==Wn&&we(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,`spring-two-frames`),s!==Wn&&typeof o[0]!=`number`&&(this.mixKeyframes=je(Xn,yn(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Cn(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.holdTime===null?this.currentTime=t:this.currentTime=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=xe(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!==Ln&&(b.value=Kn(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 N(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+N(e)}get time(){return N(this.currentTime)}set time(e){e=M(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(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return In(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(I.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=N(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=bn,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(I.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,mt.mainThread--}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)}};function Qn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var $n=e=>e*180/Math.PI,er=e=>nr($n(Math.atan2(e[1],e[0]))),tr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:er,rotateZ:er,skewX:e=>$n(Math.atan(e[1])),skewY:e=>$n(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},nr=e=>(e%=360,e<0&&(e+=360),e),rr=er,ir=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ar=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),or={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ir,scaleY:ar,scale:e=>(ir(e)+ar(e))/2,rotateX:e=>nr($n(Math.atan2(e[6],e[5]))),rotateY:e=>nr($n(Math.atan2(-e[2],e[0]))),rotateZ:rr,rotate:rr,skewX:e=>$n(Math.atan(e[4])),skewY:e=>$n(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function sr(e){return+!!e.includes(`scale`)}function cr(e,t){if(!e||e===`none`)return sr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=or,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=tr,i=t}if(!i)return sr(t);let a=r[t],o=i[1].split(`,`).map(ur);return typeof a==`function`?a(o):o[a]}var lr=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return cr(n,t)};function ur(e){return parseFloat(e.trim())}var dr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],fr=new Set(dr),pr=e=>e===xt||e===R,mr=new Set([`x`,`y`,`z`]),hr=dr.filter(e=>!mr.has(e));function gr(e){let t=[];return hr.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var _r={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>cr(t,`x`),y:(e,{transform:t})=>cr(t,`y`)};_r.translateX=_r.x,_r.translateY=_r.y;var vr=new Set,yr=!1,br=!1,xr=!1;function Sr(){if(br){let e=Array.from(vr).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=gr(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.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)})}br=!1,yr=!1,vr.forEach(e=>e.complete(xr)),vr.clear()}function Cr(){vr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(br=!0)})}function wr(){xr=!0,Cr(),Sr(),xr=!1}var Tr=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?(vr.add(this),yr||(yr=!0,P.read(Cr),P.resolveKeyframes(Sr))):(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=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Qn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),vr.delete(this)}cancel(){this.state===`scheduled`&&(vr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Er=e=>e.startsWith(`--`);function Dr(e,t,n){Er(t)?e.style.setProperty(t,n):e.style[t]=n}var Or={};function kr(e,t){let n=ke(e);return()=>Or[t]??n()}var Ar=kr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),jr=kr(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Mr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Nr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Mr([0,.65,.55,1]),circOut:Mr([.55,0,1,.45]),backIn:Mr([.31,.01,.66,-.59]),backOut:Mr([.33,1.53,.69,.99])};function Pr(e,t){if(e)return typeof e==`function`?jr()?xn(e,t):`ease-out`:tt(e)?Mr(e):Array.isArray(e)?e.map(e=>Pr(e,t)||Nr.easeOut):Nr[e]}function Fr(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=Pr(s,i);Array.isArray(d)&&(u.easing=d),ot.value&&mt.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return ot.value&&p.finished.finally(()=>{mt.waapi--}),p}function Ir(e){return typeof e==`function`&&`applyToOptions`in e}function Lr({type:e,...t}){return Ir(e)&&jr()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Rr=class extends Yn{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,we(typeof e.type!=`string`,`Mini animate() doesn't support "type" as a string.`,`mini-spring`);let c=Lr(e);this.animation=Fr(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Kn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Dr(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}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 N(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+N(e)}get time(){return N(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=M(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&&Ar()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),j):r(this)}},zr={anticipate:qe,backInOut:Ke,circInOut:Xe};function Br(e){return e in zr}function Vr(e){typeof e.ease==`string`&&Br(e.ease)&&(e.ease=zr[e.ease])}var Hr=10,Ur=class extends Rr{constructor(e){Vr(e),Jn(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 Zn({...a,autoplay:!1}),s=Math.max(Hr,I.now()-this.startTime),c=xe(0,Hr,s-Hr),l=o.sample(s).value,{name:u}=this.options;i&&u&&Dr(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Wr=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(B.test(e)||e===`0`)&&!e.startsWith(`url(`));function Gr(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 Kr(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=Wr(i,t),s=Wr(a,t);return Ce(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,`value-not-animatable`),!o||!s?!1:Gr(e)||(n===`spring`||Ir(n))&&r}function qr(e){e.duration=0,e.type=`keyframes`}var Jr=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Yr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Xr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Yr.test(e[t]))return!0;return!1}var Zr=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Qr=ke(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function $r(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Qr()&&n&&(Jr.has(n)||Zr.has(n)&&Xr(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var ei=40,ti=class extends Yn{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=I.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||Tr)(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),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=I.now();let u=!0;Kr(e,i,a,o)||(u=!1,(Te.instantAnimations||!s)&&l?.(Kn(e,n,t)),e[0]=e[e.length-1],qr(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>ei?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&$r(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Ur({...d,element:p})}catch{m=new Zn(d)}else m=new Zn(d);m.finished.then(()=>{this.notifyFinished()}).catch(j),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),wr()),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 ni(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 ri=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ii(e){let t=ri.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var ai=4;function oi(e,t,n=1){we(n<=ai,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=ii(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Ee(e)?parseFloat(e):e}return vt(i)?oi(i,t,n+1):i}var si={type:`spring`,stiffness:500,damping:25,restSpeed:10},ci=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),li={type:`keyframes`,duration:.8},ui={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},di=(e,{keyframes:t})=>t.length>2?li:fr.has(e)?e.startsWith(`scale`)?ci(t[1]):si:ui;function fi(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function pi(e,t){let n=e?.[t]??e?.default??e;return n===e?n:fi(n,e)}var mi=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function hi(e){for(let t in e)if(!mi.has(t))return!0;return!1}var gi=(e,t,n,r={},i,a)=>o=>{let s=pi(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=M(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};hi(s)||Object.assign(u,di(e,u)),u.duration&&=M(u.duration),u.repeatDelay&&=M(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(qr(u),u.delay===0&&(d=!0)),(Te.instantAnimations||Te.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,qr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Kn(u.keyframes,s);if(e!==void 0){P.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Zn(u):new ti(u)};function _i(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function vi(e,t,n,r){if(typeof t==`function`){let[i,a]=_i(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]=_i(r);t=t(n===void 0?e.custom:n,i,a)}return t}function yi(e,t,n){let r=e.getProps();return vi(r,t,n===void 0?r.custom:n,e)}var bi=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...dr]),xi=30,Si=e=>!isNaN(parseFloat(e)),Ci={current:void 0},wi=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=I.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),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=I.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Si(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!==`production`&&Ie(!1,`value.onChange(callback) is deprecated. Switch to value.on("change", callback).`),this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new Ne);let n=this.events[e].add(t);return e===`change`?()=>{n(),P.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){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.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Ci.current&&Ci.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=I.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>xi)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,xi);return Pe(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ti(e,t){return new wi(e,t)}var Ei=e=>Array.isArray(e);function Di(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ti(n))}function Oi(e){return Ei(e)?e[e.length-1]||0:e}function ki(e,t){let{transitionEnd:n={},transition:r={},...i}=yi(e,t)||{};i={...i,...n};for(let t in i)Di(e,t,Oi(i[t]))}var U=e=>!!(e&&e.getVelocity);function Ai(e){return!!(U(e)&&e.add)}function ji(e,t){let n=e.getValue(`willChange`);if(Ai(n))return n.add(t);if(!n&&Te.WillChange){let n=new Te.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Mi(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Ni=`data-`+Mi(`framerAppearId`);function Pi(e){return e.props[Ni]}function Fi({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ii(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?fi(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&Fi(d,t))continue;let o={delay:n,...pi(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){P.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=Pi(e);if(n){let e=window.MotionHandoffAnimation(n,t,P);e!==null&&(o.startTime=e,f=!0)}}ji(e,t);let p=l??e.shouldReduceMotion;r.start(gi(t,r,i,p&&bi.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>P.update(()=>{o&&ki(e,o)});u.length?Promise.all(u).then(t):t()}return u}function Li(e,t,n={}){let r=yi(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(Ii(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Ri(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())}else return Promise.all([a(),o(n.delay)])}function Ri(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(Li(c,t,{...o,delay:n+(typeof r==`function`?0:r)+ni(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function zi(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Li(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Li(e,t,n);else{let i=typeof t==`function`?yi(e,t,n.custom):t;r=Promise.all(Ii(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Bi={test:e=>e===`auto`,parse:e=>e},Vi=e=>t=>t.test(e),Hi=[xt,R,L,It,Rt,Lt,Bi],Ui=e=>Hi.find(Vi(e));function Wi(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||Oe(e)}var Gi=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ki(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Tt)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Gi.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var qi=/\b([a-z-]*)\(.*?\)/gu,Ji={...B,getAnimatableNone:e=>{let t=e.match(qi);return t?t.map(Ki).join(` `):e}},Yi={...B,getAnimatableNone:e=>{let t=B.parse(e);return B.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Xi={...xt,transform:Math.round},Zi={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left:R,inset:R,insetBlock:R,insetBlockStart:R,insetBlockEnd:R,insetInline:R,insetInlineStart:R,insetInlineEnd:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,paddingBlock:R,paddingBlockStart:R,paddingBlockEnd:R,paddingInline:R,paddingInlineStart:R,paddingInlineEnd:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,marginBlock:R,marginBlockStart:R,marginBlockEnd:R,marginInline:R,marginInlineStart:R,marginInlineEnd:R,fontSize:R,backgroundPositionX:R,backgroundPositionY:R,rotate:It,rotateX:It,rotateY:It,rotateZ:It,scale:Ct,scaleX:Ct,scaleY:Ct,scaleZ:Ct,skew:It,skewX:It,skewY:It,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:St,originX:zt,originY:zt,originZ:R,zIndex:Xi,fillOpacity:St,strokeOpacity:St,numOctaves:Xi},Qi={...Zi,color:z,backgroundColor:z,outlineColor:z,fill:z,stroke:z,borderColor:z,borderTopColor:z,borderRightColor:z,borderBottomColor:z,borderLeftColor:z,filter:Ji,WebkitFilter:Ji,mask:Yi,WebkitMask:Yi},$i=e=>Qi[e],ea=new Set([Ji,Yi]);function ta(e,t){let n=$i(e);return ea.has(n)||(n=B),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var na=new Set([`auto`,`none`,`0`]);function ra(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!na.has(t)&&Yt(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=ta(n,i)}var ia=class extends Tr{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(),vt(r))){let i=oi(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!bi.has(n)||e.length!==2)return;let[r,i]=e,a=Ui(r),o=Ui(i);if(bt(r)!==bt(i)&&_r[n]){this.needsMeasurement=!0;return}if(a!==o)if(pr(a)&&pr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else _r[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Wi(e[t]))&&n.push(t);n.length&&ra(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=_r[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=_r[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function aa(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 oa=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function sa(e){return De(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:ca,cancel:la}=lt(queueMicrotask,!1),W={x:!1,y:!1};function ua(){return W.x||W.y}function da(e){return e===`x`||e===`y`?W[e]?null:(W[e]=!0,()=>{W[e]=!1}):W.x||W.y?null:(W.x=W.y=!0,()=>{W.x=W.y=!1})}function fa(e,t){let n=aa(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function pa(e){return!(e.pointerType===`touch`||ua())}function ma(e,t,n={}){let[r,i,a]=fa(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(!pa(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 ha=(e,t)=>t?e===t?!0:ha(e,t.parentElement):!1,ga=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,_a=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function va(e){return _a.has(e.tagName)||e.isContentEditable===!0}var ya=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function ba(e){return ya.has(e.tagName)||e.isContentEditable===!0}var xa=new WeakSet;function Sa(e){return t=>{t.key===`Enter`&&e(t)}}function Ca(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var wa=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Sa(()=>{if(xa.has(n))return;Ca(n,`down`);let e=Sa(()=>{Ca(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Ca(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Ta(e){return ga(e)&&!ua()}var Ea=new WeakSet;function Da(e,t,n={}){let[r,i,a]=fa(e,n),o=e=>{let r=e.currentTarget;if(!Ta(e)||Ea.has(e))return;xa.add(r),n.stopPropagation&&Ea.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),xa.has(r)&&xa.delete(r),Ta(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||ha(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),sa(e)&&(e.addEventListener(`focus`,e=>wa(e,i)),!va(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Oa(e){return De(e)&&`ownerSVGElement`in e}var ka=new WeakMap,Aa,ja=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Oa(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Ma=ja(`inline`,`width`,`offsetWidth`),Na=ja(`block`,`height`,`offsetHeight`);function Pa({target:e,borderBoxSize:t}){ka.get(e)?.forEach(n=>{n(e,{get width(){return Ma(e,t)},get height(){return Na(e,t)}})})}function Fa(e){e.forEach(Pa)}function Ia(){typeof ResizeObserver>`u`||(Aa=new ResizeObserver(Fa))}function La(e,t){Aa||Ia();let n=aa(e);return n.forEach(e=>{let n=ka.get(e);n||(n=new Set,ka.set(e,n)),n.add(t),Aa?.observe(e)}),()=>{n.forEach(e=>{let n=ka.get(e);n?.delete(t),n?.size||Aa?.unobserve(e)})}}var Ra=new Set,za;function Ba(){za=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ra.forEach(t=>t(e))},window.addEventListener(`resize`,za)}function Va(e){return Ra.add(e),za||Ba(),()=>{Ra.delete(e),!Ra.size&&typeof za==`function`&&(window.removeEventListener(`resize`,za),za=void 0)}}function Ha(e,t){return typeof e==`function`?Va(e):La(e,t)}function Ua(e){return Oa(e)&&e.tagName===`svg`}var Wa=[...Hi,z,B],Ga=e=>Wa.find(Vi(e)),Ka=()=>({translate:0,scale:1,origin:0,originPoint:0}),qa=()=>({x:Ka(),y:Ka()}),Ja=()=>({min:0,max:0}),G=()=>({x:Ja(),y:Ja()}),Ya=new WeakMap;function Xa(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Za(e){return typeof e==`string`||Array.isArray(e)}var Qa=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],$a=[`initial`,...Qa];function eo(e){return Xa(e.animate)||$a.some(t=>Za(e[t]))}function to(e){return!!(eo(e)||e.variants)}function no(e,t,n){for(let r in t){let i=t[r],a=n[r];if(U(i))e.addValue(r,i);else if(U(a))e.addValue(r,Ti(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,Ti(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var ro={current:null},io={current:!1},ao=typeof window<`u`;function oo(){if(io.current=!0,ao)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>ro.current=e.matches;e.addEventListener(`change`,t),t()}else ro.current=!1}var so=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],co={};function lo(e){co=e}function uo(){return co}var fo=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=Tr,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=I.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,P.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=eo(t),this.isVariantNode=to(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&&U(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,Ya.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:(io.current||oo(),this.shouldReduceMotion=ro.current),process.env.NODE_ENV!==`production`&&Ie(this.shouldReduceMotion!==!0,`You have Reduced Motion enabled on your device. Animations may not appear as expected.`,`reduced-motion-disabled`),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ut(this.notifyUpdate),ut(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&&Jr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Rr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:M(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=fr.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&P.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(),t.owner&&t.stop()})}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 co){let t=co[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):G()}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<so.length;t++){let n=so[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=no(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=Ti(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`&&(Ee(n)||Oe(n))?n=parseFloat(n):!Ga(n)&&B.test(t)&&(n=ta(e,t)),this.setBaseTarget(e,U(n)?n.get():n)),U(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=vi(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&&!U(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 Ne),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){ca.render(this.render)}},po=class extends fo{constructor(){super(...arguments),this.KeyframeResolver=ia}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;U(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},mo=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function ho({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function go({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function _o(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 vo(e){return e===void 0||e===1}function yo({scale:e,scaleX:t,scaleY:n}){return!vo(e)||!vo(t)||!vo(n)}function bo(e){return yo(e)||xo(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function xo(e){return So(e.x)||So(e.y)}function So(e){return e&&e!==`0%`}function Co(e,t,n){return n+t*(e-n)}function wo(e,t,n,r,i){return i!==void 0&&(e=Co(e,i,r)),Co(e,n,r)+t}function To(e,t=0,n=1,r,i){e.min=wo(e.min,t,n,r,i),e.max=wo(e.max,t,n,r,i)}function Eo(e,{x:t,y:n}){To(e.x,t.translate,t.scale,t.originPoint),To(e.y,n.translate,n.scale,n.originPoint)}var Do=.999999999999,Oo=1.0000000000001;function ko(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&&(K(e.x,-a.scroll.offset.x),K(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Eo(e,o)),r&&bo(a.latestValues)&&Mo(e,a.latestValues,a.layout?.layoutBox))}t.x<Oo&&t.x>Do&&(t.x=1),t.y<Oo&&t.y>Do&&(t.y=1)}function K(e,t){e.min+=t,e.max+=t}function Ao(e,t,n,r,i=.5){To(e,t,n,V(e.min,e.max,i),r)}function jo(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Mo(e,t,n){let r=n??e;Ao(e.x,jo(t.x,r.x),t.scaleX,t.scale,t.originX),Ao(e.y,jo(t.y,r.y),t.scaleY,t.scale,t.originY)}function No(e,t){return ho(_o(e.getBoundingClientRect(),t))}function Po(e,t,n){let r=No(e,n),{scroll:i}=t;return i&&(K(r.x,i.offset.x),K(r.y,i.offset.y)),r}var Fo={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Io=dr.length;function Lo(e,t,n){let r=``,i=!0;for(let a=0;a<Io;a++){let o=dr[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=oa(s,Zi[o]);if(!c){i=!1;let t=Fo[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Ro(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(fr.has(e)){o=!0;continue}else if(gt(e)){i[e]=n;continue}else{let t=oa(n,Zi[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Lo(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function zo(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 Bo(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Vo={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(R.test(e))e=parseFloat(e);else return e;return`${Bo(e,t.target.x)}% ${Bo(e,t.target.y)}%`}},Ho={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=B.parse(e);if(i.length>5)return r;let a=B.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=V(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Uo={borderRadius:{...Vo,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Vo,borderTopRightRadius:Vo,borderBottomLeftRadius:Vo,borderBottomRightRadius:Vo,boxShadow:Ho};function Wo(e,{layout:t,layoutId:n}){return fr.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Uo[e]||e===`opacity`)}function Go(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(U(r[t])||i&&U(i[t])||Wo(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Ko(e){return window.getComputedStyle(e)}var qo=class extends po{constructor(){super(...arguments),this.type=`html`,this.renderInstance=zo}readValueFromInstance(e,t){if(fr.has(t))return this.projection?.isProjecting?sr(t):lr(e,t);{let n=Ko(e),r=(gt(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return No(e,t)}build(e,t,n){Ro(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Go(e,t,n)}},Jo={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Yo={offset:`strokeDashoffset`,array:`strokeDasharray`};function Xo(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Jo:Yo;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Zo=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Qo(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Ro(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;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Zo)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Xo(d,i,a,o,!1)}var $o=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`]),es=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function ts(e,t,n,r){zo(e,t,void 0,r);for(let n in t.attrs)e.setAttribute($o.has(n)?n:Mi(n),t.attrs[n])}function ns(e,t,n){let r=Go(e,t,n);for(let n in e)if(U(e[n])||U(t[n])){let t=dr.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var rs=class extends po{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=G}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(fr.has(t)){let e=$i(t);return e&&e.default||0}return t=$o.has(t)?t:Mi(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return ns(e,t,n)}build(e,t,n){Qo(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){ts(e,t,n,r)}mount(e){this.isSVGTag=es(e.tagName),super.mount(e)}},is=$a.length;function as(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&as(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<is;n++){let r=$a[n],i=e.props[r];(Za(i)||i===!1)&&(t[r]=i)}return t}function os(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 ss=[...Qa].reverse(),cs=Qa.length;function ls(e){return t=>Promise.all(t.map(({animation:t,options:n})=>zi(e,t,n)))}function us(e){let t=ls(e),n=ps(),r=!0,i=!1,a=t=>(n,r)=>{let i=yi(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=as(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<cs;t++){let p=ss[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Za(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||Xa(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=ds(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},ee=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=Ei(t)&&Ei(n)?!os(t,n):t!==n,r?t==null?u.add(e):ee(e):t!==void 0&&u.has(e)?ee(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let te=v&&y;b&&(!te||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!te&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=yi(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=ni(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=yi(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=ps(),i=!0}}}function ds(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!os(t,e):!1}function fs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ps(){return{animate:fs(!0),whileInView:fs(),whileHover:fs(),whileTap:fs(),whileDrag:fs(),whileFocus:fs(),exit:fs()}}function ms(e,t){e.min=t.min,e.max=t.max}function q(e,t){ms(e.x,t.x),ms(e.y,t.y)}function hs(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var gs=1e-4,_s=1-gs,vs=1+gs,ys=.01,bs=0-ys,xs=0+ys;function J(e){return e.max-e.min}function Ss(e,t,n){return Math.abs(e-t)<=n}function Cs(e,t,n,r=.5){e.origin=r,e.originPoint=V(t.min,t.max,e.origin),e.scale=J(n)/J(t),e.translate=V(n.min,n.max,e.origin)-e.originPoint,(e.scale>=_s&&e.scale<=vs||isNaN(e.scale))&&(e.scale=1),(e.translate>=bs&&e.translate<=xs||isNaN(e.translate))&&(e.translate=0)}function ws(e,t,n,r){Cs(e.x,t.x,n.x,r?r.originX:void 0),Cs(e.y,t.y,n.y,r?r.originY:void 0)}function Ts(e,t,n,r=0){e.min=(r?V(n.min,n.max,r):n.min)+t.min,e.max=e.min+J(t)}function Es(e,t,n,r){Ts(e.x,t.x,n.x,r?.x),Ts(e.y,t.y,n.y,r?.y)}function Ds(e,t,n,r=0){let i=r?V(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+J(t)}function Os(e,t,n,r){Ds(e.x,t.x,n.x,r?.x),Ds(e.y,t.y,n.y,r?.y)}function ks(e,t,n,r,i){return e-=t,e=Co(e,1/n,r),i!==void 0&&(e=Co(e,1/i,r)),e}function As(e,t=0,n=1,r=.5,i,a=e,o=e){if(L.test(t)&&(t=parseFloat(t),t=V(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=V(a.min,a.max,r);e===a&&(s-=t),e.min=ks(e.min,t,n,s,i),e.max=ks(e.max,t,n,s,i)}function js(e,t,[n,r,i],a,o){As(e,t[n],t[r],t[i],t.scale,a,o)}var Ms=[`x`,`scaleX`,`originX`],Ns=[`y`,`scaleY`,`originY`];function Ps(e,t,n,r){js(e.x,t,Ms,n?n.x:void 0,r?r.x:void 0),js(e.y,t,Ns,n?n.y:void 0,r?r.y:void 0)}function Fs(e){return e.translate===0&&e.scale===1}function Is(e){return Fs(e.x)&&Fs(e.y)}function Ls(e,t){return e.min===t.min&&e.max===t.max}function Rs(e,t){return Ls(e.x,t.x)&&Ls(e.y,t.y)}function zs(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Bs(e,t){return zs(e.x,t.x)&&zs(e.y,t.y)}function Vs(e){return J(e.x)/J(e.y)}function Hs(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Y(e){return[e(`x`),e(`y`)]}function Us(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,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}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 Ws=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],Gs=Ws.length,Ks=e=>typeof e==`string`?parseFloat(e):e,qs=e=>typeof e==`number`||R.test(e);function Js(e,t,n,r,i,a){i?(e.opacity=V(0,n.opacity??1,Xs(r)),e.opacityExit=V(t.opacity??1,0,Zs(r))):a&&(e.opacity=V(t.opacity??1,n.opacity??1,r));for(let i=0;i<Gs;i++){let a=Ws[i],o=Ys(t,a),s=Ys(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||qs(o)===qs(s)?(e[a]=Math.max(V(Ks(o),Ks(s),r),0),(L.test(s)||L.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=V(t.rotate||0,n.rotate||0,r))}function Ys(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Xs=Qs(0,.5,Ye),Zs=Qs(.5,.95,j);function Qs(e,t,n){return r=>r<e?0:r>t?1:n(Me(e,t,r))}function $s(e,t,n){let r=U(e)?e:Ti(e);return r.start(gi(``,r,t,n)),r.animation}function ec(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var tc=(e,t)=>e.depth-t.depth,nc=class{constructor(){this.children=[],this.isDirty=!1}add(e){ye(this.children,e),this.isDirty=!0}remove(e){be(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(tc),this.isDirty=!1,this.children.forEach(e)}};function rc(e,t){let n=I.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(ut(r),e(a-t))};return P.setup(r,!0),()=>ut(r)}function ic(e){return U(e)?e.get():e}var ac=class{constructor(){this.members=[]}add(e){ye(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&&(be(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(be(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)}},oc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},sc={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},cc=[``,`X`,`Y`,`Z`],lc=1e3,uc=0;function dc(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function fc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Pi(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,P,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&fc(r)}function pc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=uc++,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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ot.value&&(sc.nodes=sc.calculatedTargetDeltas=sc.calculatedProjections=0),this.nodes.forEach(gc),this.nodes.forEach(Tc),this.nodes.forEach(Ec),this.nodes.forEach(_c),ot.addProjectionMetrics&&ot.addProjectionMetrics(sc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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 nc)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ne),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=Oa(t)&&!Ua(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;P.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=rc(i,250),oc.hasAnimatedSinceResize&&(oc.hasAnimatedSinceResize=!1,this.nodes.forEach(wc)))})}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()||Nc,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Bs(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={...pi(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||wc(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(),ut(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(Dc),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&&fc(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(bc),this.nodes.forEach(yc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(xc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Sc),this.nodes.forEach(Cc),this.nodes.forEach(mc),this.nodes.forEach(hc)):this.nodes.forEach(xc),this.clearAllSnapshots();let e=I.now();F.delta=xe(0,1e3/60,e-F.timestamp),F.timestamp=e,F.isProcessing=!0,dt.update.process(F),dt.preRender.process(F),dt.render.process(F),F.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ca.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(vc),this.sharedNodes.forEach(Oc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,P.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){P.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!J(this.snapshot.measuredBox.x)&&!J(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.layoutVersion++,this.layoutCorrected||=G(),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&&!Is(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||bo(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)),Lc(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return G();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(zc))){let{scroll:e}=this.root;e&&(K(t.x,e.offset.x),K(t.y,e.offset.y))}return t}removeElementScroll(e){let t=G();if(q(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&&q(t,e),K(t.x,i.offset.x),K(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||G();q(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&&(K(r.x,-n.scroll.offset.x),K(r.y,-n.scroll.offset.y)),bo(n.latestValues)&&Mo(r,n.latestValues,n.layout?.layoutBox)}return bo(this.latestValues)&&Mo(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=G();q(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!bo(n.latestValues))continue;let r;n.instance&&(yo(n.latestValues)&&n.updateSnapshot(),r=G(),q(r,n.measurePageBox())),Ps(t,n.latestValues,n.snapshot?.layoutBox,r)}return bo(this.latestValues)&&Ps(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?!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!==F.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=F.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!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=G(),this.targetWithTransforms=G()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Es(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):q(this.target,this.layout.layoutBox),Eo(this.target,this.targetDelta)):q(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),ot.value&&sc.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||yo(this.parent.latestValues)||xo(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.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=G(),this.relativeTargetOrigin=G(),Os(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),q(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===F.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;q(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;ko(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=G());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(hs(this.prevProjectionDelta.x,this.projectionDelta.x),hs(this.prevProjectionDelta.y,this.projectionDelta.y)),ws(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Hs(this.projectionDelta.x,this.prevProjectionDelta.x)||!Hs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),ot.value&&sc.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=qa(),this.projectionDelta=qa(),this.projectionDeltaWithTransform=qa()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=qa();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=G(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(Mc));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;kc(a.x,e.x,n),kc(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Os(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),jc(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&Rs(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=G(),q(d,this.relativeTarget)),s&&(this.animationValues=i,Js(i,r,this.latestValues,n,u,l)),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&&=(ut(this.pendingAnimation),void 0),this.pendingAnimation=P.update(()=>{oc.hasAnimatedSinceResize=!0,mt.layout++,this.motionValue||=Ti(0),this.motionValue.jump(0,!1),this.currentAnimation=$s(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{mt.layout--},onComplete:()=>{mt.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(lc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Rc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||G();let t=J(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=J(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}q(t,n),Mo(t,i),ws(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ac),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:!0}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&&dc(`z`,e,r,this.animationValues);for(let t=0;t<cc.length;t++)dc(`rotate${cc[t]}`,e,r,this.animationValues),dc(`skew${cc[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=ic(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=ic(t?.pointerEvents)||``),this.hasProjected&&!bo(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Us(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`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Uo){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Uo[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?ic(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(yc),this.root.sharedNodes.clear()}}}function mc(e){e.updateLayout()}function hc(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`)Y(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=J(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;ms(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Rc(i,t.layoutBox,n)&&Y(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=J(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=qa();ws(o,n,t.layoutBox);let s=qa();a?ws(s,e.applyTransform(r,!0),t.measuredBox):ws(s,n,t.layoutBox);let c=!Is(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=G();Os(s,t.layoutBox,i.layoutBox,o);let c=G();Os(c,n,a.layoutBox,o),Bs(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 gc(e){ot.value&&sc.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 _c(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function vc(e){e.clearSnapshot()}function yc(e){e.clearMeasurements()}function bc(e){e.isLayoutDirty=!0,e.updateLayout()}function xc(e){e.isLayoutDirty=!1}function Sc(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Cc(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function wc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Tc(e){e.resolveTargetDelta()}function Ec(e){e.calcProjection()}function Dc(e){e.resetSkewAndRotation()}function Oc(e){e.removeLeadSnapshot()}function kc(e,t,n){e.translate=V(t.translate,0,n),e.scale=V(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ac(e,t,n,r){e.min=V(t.min,n.min,r),e.max=V(t.max,n.max,r)}function jc(e,t,n,r){Ac(e.x,t.x,n.x,r),Ac(e.y,t.y,n.y,r)}function Mc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Nc={duration:.45,ease:[.4,0,.1,1]},Pc=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Fc=Pc(`applewebkit/`)&&!Pc(`chrome/`)?Math.round:j;function Ic(e){e.min=Fc(e.min),e.max=Fc(e.max)}function Lc(e){Ic(e.x),Ic(e.y)}function Rc(e,t,n){return e===`position`||e===`preserve-aspect`&&!Ss(Vs(t),Vs(n),.2)}function zc(e){return e!==e.root&&e.scroll?.wasRoot}var Bc=pc({attachResizeListener:(e,t)=>ec(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Vc={current:void 0},Hc=pc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Vc.current){let e=new Bc({});e.mount(window),e.setOptions({layoutScroll:!0}),Vc.current=e}return Vc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Uc=(0,i.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Wc(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Gc(...e){return t=>{let n=!1,r=e.map(e=>{let r=Wc(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():Wc(e[t],null)}}}}function Kc(...e){return i.useCallback(Gc(...e),e)}var qc=class extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(sa(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=sa(e)&&e.offsetWidth||0,r=sa(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}};function Jc({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:o}){let s=(0,i.useId)(),c=(0,i.useRef)(null),u=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:d}=(0,i.useContext)(Uc),f=Kc(c,e.props?.ref??e?.ref);return(0,i.useInsertionEffect)(()=>{let{width:e,height:i,top:l,left:f,right:p,bottom:m}=u.current;if(t||o===!1||!c.current||!e||!i)return;let h=n===`left`?`left: ${f}`:`right: ${p}`,g=r===`bottom`?`bottom: ${m}`:`top: ${l}`;c.current.dataset.motionPopId=s;let _=document.createElement(`style`);d&&(_.nonce=d);let v=a??document.head;return v.appendChild(_),_.sheet&&_.sheet.insertRule(`
2
+ [data-motion-pop-id="${s}"] {
3
+ position: absolute !important;
4
+ width: ${e}px !important;
5
+ height: ${i}px !important;
6
+ ${h}px !important;
7
+ ${g}px !important;
8
+ }
9
+ `),()=>{c.current?.removeAttribute(`data-motion-pop-id`),v.contains(_)&&v.removeChild(_)}},[t]),(0,l.jsx)(qc,{isPresent:t,childRef:c,sizeRef:u,pop:o,children:o===!1?e:i.cloneElement(e,{ref:f})})}var Yc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,anchorY:u,root:d})=>{let f=ge(Xc),p=(0,i.useId)(),m=!0,h=(0,i.useMemo)(()=>(m=!1,{id:p,initial:t,isPresent:n,custom:a,onExitComplete:e=>{f.set(e,!0);for(let e of f.values())if(!e)return;r&&r()},register:e=>(f.set(e,!1),()=>f.delete(e))}),[n,f,r]);return o&&m&&(h={...h}),(0,i.useMemo)(()=>{f.forEach((e,t)=>f.set(t,!1))},[n]),i.useEffect(()=>{!n&&!f.size&&r&&r()},[n]),e=(0,l.jsx)(Jc,{pop:s===`popLayout`,isPresent:n,anchorX:c,anchorY:u,root:d,children:e}),(0,l.jsx)(ve.Provider,{value:h,children:e})};function Xc(){return new Map}function Zc(e=!0){let t=(0,i.useContext)(ve);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:a}=t,o=(0,i.useId)();(0,i.useEffect)(()=>{if(e)return a(o)},[e]);let s=(0,i.useCallback)(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}var Qc=e=>e.key||``;function $c(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}var el=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:o=`sync`,propagate:s=!1,anchorX:c=`left`,anchorY:u=`top`,root:d})=>{let[f,p]=Zc(s),m=(0,i.useMemo)(()=>$c(e),[e]),h=s&&!f?[]:m.map(Qc),g=(0,i.useRef)(!0),_=(0,i.useRef)(m),v=ge(()=>new Map),y=(0,i.useRef)(new Set),[b,x]=(0,i.useState)(m),[S,C]=(0,i.useState)(m);_e(()=>{g.current=!1,_.current=m;for(let e=0;e<S.length;e++){let t=Qc(S[e]);h.includes(t)?(v.delete(t),y.current.delete(t)):v.get(t)!==!0&&v.set(t,!1)}},[S,h.length,h.join(`-`)]);let w=[];if(m!==b){let e=[...m];for(let t=0;t<S.length;t++){let n=S[t],r=Qc(n);h.includes(r)||(e.splice(t,0,n),w.push(n))}return o===`wait`&&w.length&&(e=w),C($c(e)),x(m),null}process.env.NODE_ENV!==`production`&&o===`wait`&&S.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);let{forceRender:T}=(0,i.useContext)(he);return(0,l.jsx)(l.Fragment,{children:S.map(e=>{let i=Qc(e),b=s&&!f?!1:m===S||h.includes(i);return(0,l.jsx)(Yc,{isPresent:b,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:o,root:d,onExitComplete:b?void 0:()=>{if(y.current.has(i))return;if(v.has(i))y.current.add(i),v.set(i,!0);else return;let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(T?.(),C(_.current),s&&p?.(),r&&r())},anchorX:c,anchorY:u,children:e},i)})})},tl=(0,i.createContext)({strict:!1}),nl={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`]},rl=!1;function il(){if(rl)return;let e={};for(let t in nl)e[t]={isEnabled:e=>nl[t].some(t=>!!e[t])};lo(e),rl=!0}function al(){return il(),uo()}function ol(e){let t=al();for(let n in e)t[n]={...t[n],...e[n]};lo(t)}var sl=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 cl(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||sl.has(e)}var ll=e.n({default:()=>ul}),ul,dl=e.t((()=>{throw ul={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),fl=e=>!cl(e);function pl(e){typeof e==`function`&&(fl=t=>t.startsWith(`on`)?!cl(t):e(t))}try{pl((dl(),e.r(ll)).default)}catch{}function ml(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||U(e[i])||(fl(i)||n===!0&&cl(i)||!t&&!cl(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var hl=(0,i.createContext)({});function gl(e,t){if(eo(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Za(t)?t:void 0,animate:Za(n)?n:void 0}}return e.inherit===!1?{}:t}function _l(e){let{initial:t,animate:n}=gl(e,(0,i.useContext)(hl));return(0,i.useMemo)(()=>({initial:t,animate:n}),[vl(t),vl(n)])}function vl(e){return Array.isArray(e)?e.join(` `):e}var yl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function bl(e,t,n){for(let r in t)!U(t[r])&&!Wo(r,n)&&(e[r]=t[r])}function xl({transformTemplate:e},t){return(0,i.useMemo)(()=>{let n=yl();return Ro(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Sl(e,t){let n=e.style||{},r={};return bl(r,n,e),Object.assign(r,xl(e,t)),r}function Cl(e,t){let n={},r=Sl(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 wl=()=>({...yl(),attrs:{}});function Tl(e,t,n,r){let a=(0,i.useMemo)(()=>{let n=wl();return Qo(n,t,es(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};bl(t,e.style,e),a.style={...t,...a.style}}return a}var El=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Dl(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(El.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ol(e,t,n,{latestValues:r},a,o=!1,s){let c=(s??Dl(e)?Tl:Cl)(t,r,a,e),l=ml(t,typeof e==`string`,o),u=e===i.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,i.useMemo)(()=>U(d)?d.get():d,[d]);return(0,i.createElement)(e,{...u,children:f})}function kl({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Al(n,r,i,e),renderState:t()}}function Al(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=ic(a[e]);let{initial:o,animate:s}=e,c=eo(e),l=to(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`&&!Xa(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=vi(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 jl=e=>(t,n)=>{let r=(0,i.useContext)(hl),a=(0,i.useContext)(ve),o=()=>kl(e,t,r,a);return n?o():ge(o)},Ml=jl({scrapeMotionValuesFromProps:Go,createRenderState:yl}),Nl=jl({scrapeMotionValuesFromProps:ns,createRenderState:wl}),Pl=Symbol.for(`motionComponentSymbol`);function Fl(e,t,n){let r=(0,i.useRef)(n);(0,i.useInsertionEffect)(()=>{r.current=n});let a=(0,i.useRef)(null);return(0,i.useCallback)(n=>{n&&e.onMount?.(n);let i=r.current;if(typeof i==`function`)if(n){let e=i(n);typeof e==`function`&&(a.current=e)}else a.current?(a.current(),a.current=null):i(n);else i&&(i.current=n);t&&(n?t.mount(n):t.unmount())},[t])}var Il=(0,i.createContext)({});function Ll(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Rl(e,t,n,r,a,o){let{visualElement:s}=(0,i.useContext)(hl),c=(0,i.useContext)(tl),l=(0,i.useContext)(ve),u=(0,i.useContext)(Uc),d=u.reducedMotion,f=u.skipAnimations,p=(0,i.useRef)(null),m=(0,i.useRef)(!1);r||=c.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:o}),m.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let h=p.current,g=(0,i.useContext)(Il);h&&!h.projection&&a&&(h.type===`html`||h.type===`svg`)&&zl(p.current,n,a,g);let _=(0,i.useRef)(!1);(0,i.useInsertionEffect)(()=>{h&&_.current&&h.update(n,l)});let v=n[Ni],y=(0,i.useRef)(!!v&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return _e(()=>{m.current=!0,h&&(_.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),y.current&&h.animationState&&h.animationState.animateChanges())}),(0,i.useEffect)(()=>{h&&(!y.current&&h.animationState&&h.animationState.animateChanges(),y.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),!1),h.enteringChildren=void 0)}),h}function zl(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:Bl(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Ll(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Bl(e){if(e)return e.options.allowProjection===!1?Bl(e.parent):e.projection}function Vl(e,{forwardMotionProps:t=!1,type:n}={},r,a){r&&ol(r);let o=n?n===`svg`:Dl(e),s=o?Nl:Ml;function c(n,c){let u,d={...(0,i.useContext)(Uc),...n,layoutId:Hl(n)},{isStatic:f}=d,p=_l(n),m=s(n,f);if(!f&&typeof window<`u`){Ul(d,r);let t=Wl(d);u=t.MeasureLayout,p.visualElement=Rl(e,m,d,a,t.ProjectionNode,o)}return(0,l.jsxs)(hl.Provider,{value:p,children:[u&&p.visualElement?(0,l.jsx)(u,{visualElement:p.visualElement,...d}):null,Ol(e,n,Fl(m,p.visualElement,c),m,f,t,o)]})}c.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let u=(0,i.forwardRef)(c);return u[Pl]=e,u}function Hl({layoutId:e}){let t=(0,i.useContext)(he).id;return t&&e!==void 0?t+`-`+e:e}function Ul(e,t){let n=(0,i.useContext)(tl).strict;if(process.env.NODE_ENV!==`production`&&t&&n){let t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Ce(!1,t,`lazy-strict-mode`):we(!1,t,`lazy-strict-mode`)}}function Wl(e){let{drag:t,layout:n}=al();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Gl(e,t){if(typeof Proxy>`u`)return Vl;let n=new Map,r=(n,r)=>Vl(n,r,e,t);return new Proxy((e,t)=>(process.env.NODE_ENV!==`production`&&Ie(!1,`motion() is deprecated. Use motion.create() instead.`),r(e,t)),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Vl(a,void 0,e,t)),n.get(a))})}var Kl=(e,t)=>t.isSVG??Dl(e)?new rs(t):new qo(t,{allowProjection:e!==i.Fragment}),ql=class extends mo{constructor(e){super(e),e.animationState||=us(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Xa(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?.()}},Jl=0,Yl={animation:{Feature:ql},exit:{Feature:class extends mo{constructor(){super(...arguments),this.id=Jl++,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`){let n=yi(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.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{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 Xl(e){return{point:{x:e.pageX,y:e.pageY}}}var Zl=e=>t=>ga(t)&&e(t,Xl(t));function Ql(e,t,n,r){return ec(e,t,Zl(n),r)}var $l=({current:e})=>e?e.ownerDocument.defaultView:null,eu=(e,t)=>Math.abs(e-t);function tu(e,t){let n=eu(e.x,t.x),r=eu(e.y,t.y);return Math.sqrt(n**2+r**2)}var nu=new Set([`auto`,`scroll`]),ru=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.lastRawMoveEventInfo&&(this.lastMoveEventInfo=iu(this.lastRawMoveEventInfo,this.transformPagePoint));let e=ou(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=tu(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=F;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=iu(t,this.transformPagePoint),P.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{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=ou(e.type===`pointercancel`?this.lastMoveEventInfo:iu(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!ga(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=iu(Xl(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=F;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,ou(s,this.history)),this.removeListeners=je(Ql(this.contextWindow,`pointermove`,this.handlePointerMove),Ql(this.contextWindow,`pointerup`,this.handlePointerUp),Ql(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(nu.has(e.overflowX)||nu.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),P.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ut(this.updatePoint)}};function iu(e,t){return t?{point:t(e.point)}:e}function au(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ou({point:e},t){return{point:e,delta:au(e,cu(t)),offset:au(e,su(t)),velocity:lu(t,.1)}}function su(e){return e[0]}function cu(e){return e[e.length-1]}function lu(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=cu(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>M(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>M(t)*2&&(r=e[1]);let a=N(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 uu(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?V(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?V(n,e,r.max):Math.min(e,n)),e}function du(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 fu(e,{top:t,left:n,bottom:r,right:i}){return{x:du(e.x,n,i),y:du(e.y,t,r)}}function pu(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 mu(e,t){return{x:pu(e.x,t.x),y:pu(e.y,t.y)}}function hu(e,t){let n=.5,r=J(e),i=J(t);return i>r?n=Me(t.min,t.max-r,e.min):r>i&&(n=Me(e.min,e.max-i,t.min)),xe(0,1,n)}function gu(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 _u=.35;function vu(e=_u){return e===!1?e=0:e===!0&&(e=_u),{x:yu(e,`left`,`right`),y:yu(e,`top`,`bottom`)}}function yu(e,t,n){return{min:bu(e,t),max:bu(e,n)}}function bu(e,t){return typeof e==`number`?e:e[t]||0}var xu=new WeakMap,Su=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=G(),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(Xl(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=da(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),Y(e=>{let t=this.getAxisMotionValue(e).get()||0;if(L.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=J(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&P.update(()=>i(e,t),!1,!0),ji(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=Eu(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&&P.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 ru(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:$l(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&&P.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||!Tu(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=uu(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&&Ll(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=fu(n.layoutBox,e):this.constraints=!1,this.elastic=vu(t),r!==this.constraints&&!Ll(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Y(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=gu(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ll(e))return!1;let n=e.current;we(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.",`drag-constraints-ref`);let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=Po(n,r.root,this.visualElement.getTransformPagePoint()),a=mu(r.layout.layoutBox,i);if(t){let e=t(go(a));this.hasMutatedConstraints=!!e,e&&(a=ho(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Y(o=>{if(!Tu(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 ji(this.visualElement,e),n.start(gi(e,n,0,t,this.visualElement,!1))}stopAnimation(){Y(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Y(t=>{let{drag:n}=this.getProps();if(!Tu(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-V(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Ll(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Y(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=hu({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Y(t=>{if(!Tu(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(V(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;xu.set(this.visualElement,this);let e=this.visualElement.current,t=Ql(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&ba(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Ll(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=wu(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),P.read(r);let o=ec(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Y(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=_u,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Cu(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function wu(e,t,n){let r=Ha(e,Cu(n)),i=Ha(t,Cu(n));return()=>{r(),i()}}function Tu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Eu(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Du=class extends mo{constructor(e){super(e),this.removeGroupControls=j,this.removeListeners=j,this.controls=new Su(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||j}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()}},Ou=e=>(t,n)=>{e&&P.update(()=>e(t,n),!1,!0)},ku=class extends mo{constructor(){super(...arguments),this.removePointerDownListener=j}onPointerDown(e){this.session=new ru(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:$l(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ou(e),onStart:Ou(t),onMove:Ou(n),onEnd:(e,t)=>{delete this.session,r&&P.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Ql(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Au=!1,ju=class extends i.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),Au&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),oc.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}),Au=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||P.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(),ca.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Au=!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 Mu(e){let[t,n]=Zc(),r=(0,i.useContext)(he);return(0,l.jsx)(ju,{...e,layoutGroup:r,switchLayoutGroup:(0,i.useContext)(Il),isPresent:t,safeToRemove:n})}var Nu={pan:{Feature:ku},drag:{Feature:Du,ProjectionNode:Hc,MeasureLayout:Mu}};function Pu(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&P.postRender(()=>i(t,Xl(t)))}var Fu=class extends mo{mount(){let{current:e}=this.node;e&&(this.unmount=ma(e,(e,t)=>(Pu(this.node,t,`Start`),e=>Pu(this.node,e,`End`))))}unmount(){}},Iu=class extends mo{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=je(ec(this.node.current,`focus`,()=>this.onFocus()),ec(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Lu(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&&P.postRender(()=>i(t,Xl(t)))}var Ru=class extends mo{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Da(e,(e,t)=>(Lu(this.node,t,`Start`),(e,{success:t})=>Lu(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},zu=new WeakMap,Bu=new WeakMap,Vu=e=>{let t=zu.get(e.target);t&&t(e)},Hu=e=>{e.forEach(Vu)};function Uu({root:e,...t}){let n=e||document;Bu.has(n)||Bu.set(n,{});let r=Bu.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Hu,{root:e,...t})),r[i]}function Wu(e,t,n){let r=Uu(t);return zu.set(e,n),r.observe(e),()=>{zu.delete(e),r.unobserve(e)}}var Gu={some:0,all:1},Ku=class extends mo{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:Gu[r]};this.stopObserver=Wu(this.node.current,a,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)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(qu(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function qu({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Ju={inView:{Feature:Ku},tap:{Feature:Ru},focus:{Feature:Iu},hover:{Feature:Fu}},Yu={layout:{ProjectionNode:Hc,MeasureLayout:Mu}},Xu=Gl({...Yl,...Ju,...Nu,...Yu},Kl);function Zu(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=Zu(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Qu(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Zu(e))&&(r&&(r+=` `),r+=t);return r}var $u=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},ed=(e,t)=>({classGroupId:e,validator:t}),td=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),nd=`-`,rd=[],id=`arbitrary..`,ad=e=>{let t=cd(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return sd(e);let n=e.split(nd);return od(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?$u(i,t):t:i||rd}return n[e]||rd}}},od=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=od(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(nd):e.slice(t).join(nd),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},sd=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?id+r:void 0})(),cd=e=>{let{theme:t,classGroups:n}=e;return ld(n,t)},ld=(e,t)=>{let n=td();for(let r in e){let i=e[r];ud(i,n,r,t)}return n},ud=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];dd(i,t,n,r)}},dd=(e,t,n,r)=>{if(typeof e==`string`){fd(e,t,n);return}if(typeof e==`function`){pd(e,t,n,r);return}md(e,t,n,r)},fd=(e,t,n)=>{let r=e===``?t:hd(t,e);r.classGroupId=n},pd=(e,t,n,r)=>{if(gd(e)){ud(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(ed(n,e))},md=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];ud(o,hd(t,a),n,r)}},hd=(e,t)=>{let n=e,r=t.split(nd),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=td(),n.nextPart.set(t,i)),n=i}return n},gd=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,_d=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},vd=`!`,yd=`:`,bd=[],xd=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Sd=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===yd){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(vd)?(c=s.slice(0,-1),l=!0):s.startsWith(vd)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return xd(t,l,c,u)};if(t){let e=t+yd,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):xd(bd,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Cd=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},wd=e=>({cache:_d(e.cacheSize),parseClassName:Sd(e),sortModifiers:Cd(e),...ad(e)}),Td=/\s+/,Ed=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(Td),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+vd:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},Dd=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Od(n))&&(i&&(i+=` `),i+=r);return i},Od=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Od(e[r]))&&(n&&(n+=` `),n+=t);return n},kd=(e,...t)=>{let n,r,i,a,o=o=>(n=wd(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Ed(e,n);return i(e,a),a};return a=o,(...e)=>a(Dd(...e))},Ad=[],X=e=>{let t=t=>t[e]||Ad;return t.isThemeGetter=!0,t},jd=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Md=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Nd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Pd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Fd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Id=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ld=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Rd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zd=e=>Nd.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),Bd=e=>!!e&&Number.isInteger(Number(e)),Vd=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),Hd=e=>Pd.test(e),Ud=()=>!0,Wd=e=>Fd.test(e)&&!Id.test(e),Gd=()=>!1,Kd=e=>Ld.test(e),qd=e=>Rd.test(e),Jd=e=>!Q(e)&&!$(e),Yd=e=>df(e,hf,Gd),Q=e=>jd.test(e),Xd=e=>df(e,gf,Wd),Zd=e=>df(e,_f,Z),Qd=e=>df(e,yf,Ud),$d=e=>df(e,vf,Gd),ef=e=>df(e,pf,Gd),tf=e=>df(e,mf,qd),nf=e=>df(e,bf,Kd),$=e=>Md.test(e),rf=e=>ff(e,gf),af=e=>ff(e,vf),of=e=>ff(e,pf),sf=e=>ff(e,hf),cf=e=>ff(e,mf),lf=e=>ff(e,bf,!0),uf=e=>ff(e,yf,!0),df=(e,t,n)=>{let r=jd.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ff=(e,t,n=!1)=>{let r=Md.exec(e);return r?r[1]?t(r[1]):n:!1},pf=e=>e===`position`||e===`percentage`,mf=e=>e===`image`||e===`url`,hf=e=>e===`length`||e===`size`||e===`bg-size`,gf=e=>e===`length`,_f=e=>e===`number`,vf=e=>e===`family-name`,yf=e=>e===`number`||e===`weight`,bf=e=>e===`shadow`,xf=kd(()=>{let e=X(`color`),t=X(`font`),n=X(`text`),r=X(`font-weight`),i=X(`tracking`),a=X(`leading`),o=X(`breakpoint`),s=X(`container`),c=X(`spacing`),l=X(`radius`),u=X(`shadow`),d=X(`inset-shadow`),f=X(`text-shadow`),p=X(`drop-shadow`),m=X(`blur`),h=X(`perspective`),g=X(`aspect`),_=X(`ease`),v=X(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],T=()=>[zd,`full`,`auto`,...w()],ee=()=>[Bd,`none`,`subgrid`,$,Q],te=()=>[`auto`,{span:[`full`,Bd,$,Q]},Bd,$,Q],ne=()=>[Bd,`auto`,$,Q],re=()=>[`auto`,`min`,`max`,`fr`,$,Q],ie=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ae=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],E=()=>[`auto`,...w()],oe=()=>[zd,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],se=()=>[zd,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ce=()=>[zd,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],D=()=>[e,$,Q],le=()=>[...b(),of,ef,{position:[$,Q]}],ue=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],de=()=>[`auto`,`cover`,`contain`,sf,Yd,{size:[$,Q]}],fe=()=>[Vd,rf,Xd],O=()=>[``,`none`,`full`,l,$,Q],k=()=>[``,Z,rf,Xd],pe=()=>[`solid`,`dashed`,`dotted`,`double`],me=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],A=()=>[Z,Vd,of,ef],he=()=>[``,`none`,m,$,Q],ge=()=>[`none`,Z,$,Q],_e=()=>[`none`,Z,$,Q],ve=()=>[Z,$,Q],ye=()=>[zd,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Hd],breakpoint:[Hd],color:[Ud],container:[Hd],"drop-shadow":[Hd],ease:[`in`,`out`,`in-out`],font:[Jd],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Hd],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Hd],shadow:[Hd],spacing:[`px`,Z],text:[Hd],"text-shadow":[Hd],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,zd,Q,$,g]}],container:[`container`],columns:[{columns:[Z,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Bd,`auto`,$,Q]}],basis:[{basis:[zd,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,zd,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[Bd,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ie(),`normal`]}],"justify-items":[{"justify-items":[...ae(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ae()]}],"align-content":[{content:[`normal`,...ie()]}],"align-items":[{items:[...ae(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ae(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...ae(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ae()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:oe()}],"inline-size":[{inline:[`auto`,...se()]}],"min-inline-size":[{"min-inline":[`auto`,...se()]}],"max-inline-size":[{"max-inline":[`none`,...se()]}],"block-size":[{block:[`auto`,...ce()]}],"min-block-size":[{"min-block":[`auto`,...ce()]}],"max-block-size":[{"max-block":[`none`,...ce()]}],w:[{w:[s,`screen`,...oe()]}],"min-w":[{"min-w":[s,`screen`,`none`,...oe()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...oe()]}],h:[{h:[`screen`,`lh`,...oe()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...oe()]}],"max-h":[{"max-h":[`screen`,`lh`,...oe()]}],"font-size":[{text:[`base`,n,rf,Xd]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,uf,Qd]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Vd,Q]}],"font-family":[{font:[af,$d,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,Zd]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...pe(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,Xd]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:le()}],"bg-repeat":[{bg:ue()}],"bg-size":[{bg:de()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Bd,$,Q],radial:[``,$,Q],conic:[Bd,$,Q]},cf,tf]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:k()}],"border-w-x":[{"border-x":k()}],"border-w-y":[{"border-y":k()}],"border-w-s":[{"border-s":k()}],"border-w-e":[{"border-e":k()}],"border-w-bs":[{"border-bs":k()}],"border-w-be":[{"border-be":k()}],"border-w-t":[{"border-t":k()}],"border-w-r":[{"border-r":k()}],"border-w-b":[{"border-b":k()}],"border-w-l":[{"border-l":k()}],"divide-x":[{"divide-x":k()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":k()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...pe(),`hidden`,`none`]}],"divide-style":[{divide:[...pe(),`hidden`,`none`]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-bs":[{"border-bs":D()}],"border-color-be":[{"border-be":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...pe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,rf,Xd]}],"outline-color":[{outline:D()}],shadow:[{shadow:[``,`none`,u,lf,nf]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":[`none`,d,lf,nf]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:k()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[Z,Xd]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":k()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":[`none`,f,lf,nf]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...me(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":me()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:le()}],"mask-repeat":[{mask:ue()}],"mask-size":[{mask:de()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:he()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,lf,nf]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:_e()}],"scale-x":[{"scale-x":_e()}],"scale-y":[{"scale-y":_e()}],"scale-z":[{"scale-z":_e()}],"scale-3d":[`scale-3d`],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":[`translate-none`],accent:[{accent:D()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$,Q]}],fill:[{fill:[`none`,...D()]}],"stroke-w":[{stroke:[Z,rf,Xd,Zd]}],stroke:[{stroke:[`none`,...D()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Sf(...e){return xf(Qu(e))}var Cf=i.default.forwardRef(({className:e,label:t,error:n,currencySymbol:r,type:i,...a},o)=>{let s=i===`currency`;return(0,l.jsxs)(`div`,{className:`flex flex-col w-full relative`,children:[t&&(0,l.jsx)(`label`,{className:`text-[13px] font-medium text-foreground/50 select-none mb-1.5 ml-1`,children:t}),(0,l.jsxs)(`div`,{className:`relative flex items-center`,children:[s&&r&&(0,l.jsx)(`span`,{className:`absolute left-4 font-extrabold text-foreground z-10 pointer-events-none text-[15px]`,children:r}),(0,l.jsx)(`input`,{ref:o,type:s?`number`:i,className:Sf(`block h-12 w-full text-[15px] text-foreground py-2`,s&&r?`pl-8 pr-4`:`px-4`,`transition-all duration-300 placeholder:text-foreground/40`,`focus:outline-none focus:border-accent glow-focus`,`disabled:cursor-not-allowed disabled:opacity-50 glass-panel`,n&&`border-red-500/50 focus:border-red-500/50`,e),style:{borderRadius:`var(--input-radius, 0.75rem)`},...a})]}),n&&(0,l.jsx)(Xu.p,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},className:`text-xs text-red-500 font-medium`,children:n})]})});Cf.displayName=`Input`;function wf(...e){return xf(Qu(e))}var Tf=i.default.forwardRef(({className:e,variant:t=`primary`,isLoading:n,children:r,...i},a)=>(0,l.jsxs)(Xu.button,{ref:a,whileHover:{scale:1.02,y:-2},whileTap:{scale:.98},className:wf(`relative inline-flex items-center justify-center px-5 py-2 text-sm font-medium transition-all duration-300 overflow-hidden group`,{primary:`btn-primary !border-none`,secondary:`btn-secondary !border-none`,ghost:`bg-transparent hover:bg-black/5 dark:hover:bg-white/5 text-foreground/60 hover:text-foreground transition-all duration-300 !border-none`}[t],e),style:{borderRadius:`var(--btn-radius, 0.75rem)`},disabled:n||i.disabled,...i,children:[n?(0,l.jsx)(`span`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,l.jsxs)(`svg`,{className:`w-5 h-5 animate-spin text-current`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,children:[(0,l.jsx)(`circle`,{className:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`4`}),(0,l.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`})]})}):null,(0,l.jsx)(`span`,{className:wf(`inline-flex items-center justify-center gap-2`,n&&`opacity-0`),children:r})]}));Tf.displayName=`Button`;function Ef({value:e,options:t,onChange:n,label:r,disabled:a,variant:o=`default`}){let[s,c]=(0,i.useState)(!1),u=(0,i.useRef)(null);(0,i.useEffect)(()=>{function e(e){u.current&&!u.current.contains(e.target)&&c(!1)}return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]);let d=t.find(t=>t.value===e)||t[0];return(0,l.jsxs)(`div`,{className:`flex flex-col gap-2 relative ${a?`opacity-50 pointer-events-none`:``}`,ref:u,children:[r&&(0,l.jsx)(`label`,{className:`text-[14px] font-medium text-foreground/80`,children:r}),(0,l.jsxs)(`div`,{onClick:()=>{t.length>1&&c(!s)},className:`w-full rounded-xl text-[14px] font-medium text-foreground px-4 transition-all flex items-center justify-between ${t.length<=1?`cursor-default opacity-80`:`cursor-pointer`} ${o===`ghost`?`h-10 hover:bg-foreground/5 bg-transparent`:`h-12 bg-foreground/[0.02] border border-[var(--panel-border)] hover:border-foreground/30 glass-panel shadow-sm`}`,children:[(0,l.jsx)(`span`,{className:`truncate`,children:d?.label}),t.length>1&&(0,l.jsx)(k,{className:`w-4 h-4 text-foreground/50 transition-transform duration-300 ${s?`rotate-180`:``}`})]}),(0,l.jsx)(el,{children:s&&(0,l.jsx)(Xu.div,{initial:{opacity:0,y:5,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:5,scale:.98},transition:{duration:.15},className:`absolute z-[99999] top-[calc(100%+8px)] left-0 w-full border border-[var(--panel-border)] bg-[var(--bg-color)] rounded-xl shadow-[0_15px_40px_rgba(0,0,0,0.5)] overflow-hidden ring-1 ring-[var(--panel-border)]`,children:(0,l.jsx)(`div`,{className:`max-h-60 overflow-y-auto no-scrollbar p-1`,children:t.map(t=>(0,l.jsxs)(`div`,{onClick:()=>{n(t.value),c(!1)},className:`flex items-center justify-between px-3 py-2.5 rounded-lg cursor-pointer transition-colors text-[13px] font-medium ${e===t.value?`bg-accent/10 text-accent`:`text-foreground/80 hover:bg-foreground/5 hover:text-foreground`}`,children:[(0,l.jsx)(`span`,{className:`truncate`,children:t.label}),e===t.value&&(0,l.jsx)(O,{className:`w-3.5 h-3.5 shrink-0`})]},t.value))})})})]})}var Df=i.default.lazy(()=>Promise.resolve().then(()=>require(`./PhoneInputField-CSoNnJ2Y.cjs`)));function Of({onClose:e,formId:t,formConfig:o,isInline:s}){let[c,f]=(0,i.useState)({}),[h,g]=(0,i.useState)(`idle`),[_,v]=(0,i.useState)(``),y=(0,i.useRef)(null),[b,x]=(0,i.useState)(o||null),[S,C]=(0,i.useState)(!o),w=(0,u.useNavigate)(),ee=T(),te=e=>e===`contact`?ee?.defaultConfigs?.contactForm||n.t:e===`support`?ee?.defaultConfigs?.supportForm||r.t:n.t;(0,i.useEffect)(()=>{if(o){x(o),C(!1);return}if(!t){x(te(`contact`)),C(!1);return}if((t===`contact`||t===`support`)&&!localStorage.getItem(`fbos_custom_form_${t}`)){x(te(t)),C(!1);return}try{let e=localStorage.getItem(`fbos_form_${t}`);e&&(x(JSON.parse(e)),C(!1))}catch{}(async()=>{try{let e=await(0,a.getDoc)((0,a.doc)(m,`sys_forms`,t));if(e.exists()){let n={...e.data(),id:e.id};x(n),localStorage.setItem(`fbos_form_${t}`,JSON.stringify(n))}else (t===`contact`||t===`support`)&&(x(te(t)),localStorage.removeItem(`fbos_custom_form_${t}`))}catch(e){console.error(`Failed to load form config:`,e),(t===`contact`||t===`support`)&&x(te(t))}finally{C(!1)}})()},[t,o]),(0,i.useEffect)(()=>{b&&b.fields&&f(e=>{let t={...e},n=!1;return b.fields.forEach(e=>{(e.name===`contactEmail`||e.type===`email`)&&!t[e.name]&&p.currentUser?.email&&(t[e.name]=p.currentUser.email,n=!0)}),n?t:e})},[b]),(0,i.useEffect)(()=>{function t(t){y.current&&!y.current.contains(t.target)&&e?.()}return document.addEventListener(`mousedown`,t),()=>document.removeEventListener(`mousedown`,t)},[e]),(0,i.useEffect)(()=>{if(s)return;let t=t=>{t.key===`Escape`&&e?.()};return document.addEventListener(`keydown`,t),()=>document.removeEventListener(`keydown`,t)},[e,s]),(0,i.useEffect)(()=>{if(!s)return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=`unset`}},[s]);let ne=async n=>{n.preventDefault(),g(`loading`),v(``);try{let n=b?.submitPage===`requests`?`user_requests`:`user_submissions`,r=p.currentUser?{uid:p.currentUser.uid,submitterName:p.currentUser.displayName||``,submitterEmail:p.currentUser.email||``,submitterAvatar:p.currentUser.photoURL||``}:{uid:`guest`};await(0,a.addDoc)((0,a.collection)(m,n),{...c,...r,formId:t||b?.systemName||b?.title||`unknown`,submittedAt:(0,a.serverTimestamp)()}),g(`success`),setTimeout(()=>{b?.redirectTo&&!o&&(b.redirectTo.startsWith(`/`)?w(b.redirectTo):window.location.href=b.redirectTo),e?.(),g(`idle`),f({})},3e3)}catch(e){console.error(`Submission error:`,e),g(`error`),v(`We could not send your message right now. Please try again.`)}},[re,ie]=(0,i.useState)(!1);if((0,i.useEffect)(()=>{let e;return S||!b&&!o?e=setTimeout(()=>ie(!0),150):ie(!1),()=>clearTimeout(e)},[S,b,o]),S||!b)return re?s?(0,l.jsx)(`div`,{className:`w-full flex justify-center py-[10vh]`,children:(0,l.jsx)(A,{className:`w-8 h-8 animate-spin text-accent`})}):(0,d.createPortal)((0,l.jsx)(`div`,{className:`fixed inset-0 z-[100] flex items-center justify-center bg-background/60 backdrop-blur-xl`,children:(0,l.jsx)(A,{className:`w-8 h-8 animate-spin text-accent`})}),document.body):null;let ae=(0,l.jsx)(`div`,{className:`relative z-10 w-full`,children:h===`success`?(0,l.jsxs)(Xu.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:`flex flex-col items-center justify-center py-8 text-center`,children:[(0,l.jsx)(`div`,{className:`w-16 h-16 rounded-full bg-green-500/10 border border-green-500/20 flex items-center justify-center text-green-500 mb-4`,children:(0,l.jsx)(me,{className:`w-8 h-8`})}),(0,l.jsx)(`h4`,{className:`text-lg font-bold text-foreground mb-2`,children:`Message Sent!`}),(0,l.jsx)(`p`,{className:`text-[14px] text-foreground/60 leading-relaxed`,children:`Thank you for your interest. We'll get back to you shortly.`})]}):h===`loading`?(0,l.jsxs)(Xu.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:`flex flex-col items-center justify-center py-16 text-center`,children:[(0,l.jsx)(A,{className:`w-10 h-10 animate-spin text-accent mb-4`}),(0,l.jsx)(`h4`,{className:`text-lg font-bold text-foreground tracking-tight`,children:`Processing`}),(0,l.jsx)(`p`,{className:`text-[13px] text-foreground/50 mt-1`,children:`Please wait a moment...`})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(`div`,{className:`mb-6 text-center`,children:[(0,l.jsx)(`h3`,{className:`text-2xl sm:text-3xl font-extrabold mb-2 text-foreground tracking-tight break-words`,children:b.title}),b.description&&(0,l.jsx)(`p`,{className:`text-[14px] md:text-[15px] font-medium text-foreground/60 tracking-wide leading-relaxed`,children:b.description})]}),h===`error`&&(0,l.jsxs)(Xu.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:`mb-4 p-3 sm:p-4 rounded-xl bg-red-500/10 border border-red-500/20 flex items-start gap-3`,children:[(0,l.jsx)(pe,{className:`w-5 h-5 text-red-500 shrink-0 mt-0.5`}),(0,l.jsx)(`p`,{className:`text-[14px] font-medium text-red-500/90`,children:_})]}),(0,l.jsxs)(`form`,{onSubmit:ne,className:`flex flex-col gap-4 sm:gap-5 w-full`,children:[[...b.fields||[]].sort((e,t)=>{let n=e.type===`checkbox`,r=t.type===`checkbox`;return n&&!r?1:!n&&r?-1:0}).map((e,t)=>e.type===`tel`?(0,l.jsx)(i.Suspense,{fallback:(0,l.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl`}),children:(0,l.jsx)(Df,{field:e,value:c[e.name]||``,onChange:t=>f({...c,[e.name]:t})})},t):e.type===`textarea`?(0,l.jsxs)(`div`,{className:`flex flex-col w-full relative`,children:[(0,l.jsx)(`label`,{className:`text-[13px] font-medium text-foreground/50 select-none mb-1.5 ml-1`,children:e.label}),(0,l.jsx)(`textarea`,{required:e.required,rows:3,placeholder:e.placeholder,value:c[e.name]||``,onChange:t=>f({...c,[e.name]:t.target.value}),className:`flex w-full rounded-xl text-[15px] text-foreground px-4 py-3 transition-all duration-300 placeholder:text-foreground/40 focus:outline-none focus:border-accent glow-focus disabled:cursor-not-allowed disabled:opacity-50 glass-panel min-h-[100px] resize-none`})]},t):e.type===`select`?(0,l.jsx)(`div`,{className:`w-full`,children:(0,l.jsx)(Ef,{label:e.label,value:c[e.name]||``,options:[{value:``,label:(0,l.jsx)(`span`,{className:`text-foreground/40`,children:`Select an option...`})},...(e.options||[]).map(e=>({value:e,label:e}))],onChange:t=>f({...c,[e.name]:t})})},t):e.type===`checkbox`?(0,l.jsxs)(`label`,{className:`flex items-center gap-3 w-full cursor-pointer group py-2`,children:[(0,l.jsxs)(`div`,{className:`relative flex items-center justify-center w-5 h-5 rounded border border-foreground/20 bg-background/50 group-hover:border-accent transition-colors`,children:[(0,l.jsx)(`input`,{type:`checkbox`,required:e.required,checked:!!c[e.name],onChange:t=>f({...c,[e.name]:t.target.checked}),className:`absolute opacity-0 w-full h-full cursor-pointer`}),c[e.name]&&(0,l.jsx)(`span`,{className:`w-2.5 h-2.5 bg-accent rounded-sm shrink-0`})]}),(0,l.jsx)(`span`,{className:`text-[14px] font-medium text-foreground/80 leading-snug group-hover:text-foreground transition-colors`,children:e.label})]},t):e.type===`age`?(0,l.jsx)(Cf,{label:e.label,required:e.required,type:`number`,min:0,max:120,placeholder:e.placeholder||`Age (Max 120)`,value:c[e.name]||``,onChange:t=>{let n=t.target.value;if(n===``)f({...c,[e.name]:``});else{let t=Math.max(0,Math.min(120,parseInt(n,10)));f({...c,[e.name]:isNaN(t)?``:String(t)})}}},t):e.type===`currency`||e.type===`number`&&e.name===`budget`?(0,l.jsxs)(`div`,{className:`flex flex-col w-full relative`,children:[(0,l.jsx)(`label`,{className:`text-[13px] font-medium text-foreground/50 select-none mb-1.5 ml-1`,children:e.label}),(0,l.jsxs)(`div`,{className:`relative flex items-center justify-center`,children:[(0,l.jsx)(`span`,{className:`absolute left-4 text-foreground/50 font-bold flex items-center h-full`,children:e.currencySymbol||`$`}),(0,l.jsx)(`input`,{required:e.required,type:`number`,placeholder:e.placeholder,value:c[e.name]||``,onChange:t=>f({...c,[e.name]:t.target.value}),className:`block h-12 w-full text-[15px] text-foreground pl-8 pr-4 py-2 transition-all duration-300 placeholder:text-foreground/40 focus:outline-none focus:border-accent glow-focus disabled:cursor-not-allowed disabled:opacity-50 glass-panel`,style:{borderRadius:`var(--input-radius, 0.75rem)`}})]})]},t):(0,l.jsx)(Cf,{label:e.label,required:e.required,type:e.type,placeholder:e.placeholder,currencySymbol:e.currencySymbol,value:c[e.name]||``,onChange:t=>f({...c,[e.name]:t.target.value})},t)),(0,l.jsx)(`div`,{className:`pt-2`,children:(0,l.jsx)(Tf,{type:`submit`,className:`w-full px-6 md:px-8 py-3 md:py-3.5 rounded-xl font-semibold tracking-wide btn-primary text-[15px] shadow-xl transition-all duration-300 hover:-translate-y-1 active:scale-95 flex items-center justify-center`,isLoading:!1,children:b.submitText||b.buttonName||`Submit`})})]})]})});return s?(0,l.jsxs)(`div`,{className:`w-full flex justify-center flex-col items-center`,children:[(0,l.jsx)(`div`,{className:`w-full max-w-[500px] mb-6 px-2`,children:(0,l.jsxs)(`button`,{onClick:()=>window.history.back(),className:`flex items-center gap-2 text-foreground/40 hover:text-foreground font-medium transition-colors w-fit group`,children:[(0,l.jsx)(fe,{className:`w-4 h-4 group-hover:-translate-x-1 transition-transform`}),`Go Back`]})}),(0,l.jsxs)(Xu.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:`w-full max-w-[500px] p-6 sm:p-8 lg:p-10 rounded-3xl md:rounded-3xl glass-panel relative glow-hover shadow-[0_8px_32px_rgba(0,0,0,0.08)] z-10 mx-auto`,children:[(0,l.jsx)(`div`,{className:`absolute -inset-[1px] bg-gradient-to-br from-[var(--primary-glow)] to-transparent opacity-30 blur-[20px] rounded-3xl md:rounded-3xl -z-10`}),ae]})]}):(0,d.createPortal)((0,l.jsxs)(`div`,{className:`fixed inset-0 z-[100] flex items-start justify-center p-4 py-20 md:py-10 h-[-webkit-fill-available] md:h-screen w-screen overflow-y-auto no-scrollbar`,children:[(0,l.jsx)(Xu.div,{onClick:e,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`fixed inset-0 bg-background/60 backdrop-blur-xl cursor-pointer`}),(0,l.jsxs)(Xu.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},ref:y,className:`w-full max-w-[500px] p-6 sm:p-8 lg:p-10 rounded-3xl md:rounded-3xl glass-panel relative glow-hover shadow-[0_8px_32px_rgba(0,0,0,0.08)] z-10 mx-auto my-auto border border-[var(--panel-border)] shrink-0`,children:[(0,l.jsx)(`div`,{className:`absolute -inset-[1px] bg-gradient-to-br from-[var(--primary-glow)] to-transparent opacity-30 blur-[20px] rounded-3xl md:rounded-3xl -z-10`}),ae]})]}),document.body)}Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return el}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return pe}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return fe}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return de}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Xu}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Tf}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return ne}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Cf}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return me}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Of}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return g}});
@@ -29,5 +29,10 @@ export interface FirebaseOSProps {
29
29
  TemplateStorage?: React.ComponentType<any>;
30
30
  TemplateNone?: React.ComponentType<any>;
31
31
  };
32
+ defaultConfigs?: {
33
+ home?: any;
34
+ contactForm?: any;
35
+ supportForm?: any;
36
+ };
32
37
  }
33
38
  export declare function FirebaseOS(props: FirebaseOSProps): import("react/jsx-runtime").JSX.Element;