https://www.deta.studio/_next/static/chunks/ccde774c6fb0e1ad.js?dpl=dpl_24V9Vw9kM12FuJtVbqdtQn2KgNhJ
1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,767507,t=>{"use strict";var e=t.i(391610),i=t.i(138415),n=t.i(633129);let s=[{question:"What does the $89 permanent license include?",answer:"The permanent license is a one-time purchase per license. It runs locally on your computer with every markup and dimension tool included, works fully offline, and is yours forever â you only pay again if you choose to upgrade to a future major version. It also includes 5 free cloud files (whiteboards or collaboration PDFs) so you can try cloud collaboration."},{question:"Do I need a subscription to use Deta?",answer:"No. With the permanent license, Deta runs entirely on your computer with no subscription and no internet connection required. A cloud subscription is only needed if you want real-time collaboration, shared whiteboards, and files synced across devices â and the cloud has a free plan to start."},{question:"Is Deta free for students and educators?",answer:"Yes. Educators and students get the license for free. Email us at [email protected] from your school email address and we will send you a free license."},{question:"Can Deta sync with Google Drive and Dropbox?",answer:"Yes. Deta connects directly to your Google Drive and Dropbox accounts. Open, mark up, and save files without re-uploading, and changes sync back automatically."},{question:"What markup tools does Deta have?",answer:"Deta includes a full AEC markup toolset: redlines, highlights, comments, callouts, and freehand drawing. You also get a whiteboard canvas for collaborative sketching."},{question:"How does version control work?",answer:"Our built-in version system tracks every file update automatically. When you or your team overwrites a file in Dropbox or Google Drive, Deta captures the new version and preserves all markup notes from the previous revision."},{question:"Does Deta work on iPad and mobile?",answer:"Yes. Deta runs in any modern browser on Mac, Windows, iPad, and mobile devices. No app download required."},{question:"Can I measure directly on drawings?",answer:"Yes. Deta includes calibrated measurement tools for length, area, perimeter, and count, with full metric and imperial scale support."},{question:"Is there a file size limit? Can Deta handle large construction drawing sets?",answer:"No file size limits. Deta uses a cloud rendering engine that processes PDFs server-side, so even 200â300 page construction document sets open instantly on any device, with no slowdowns, no crashes, and no need to split files."},{question:"How is Deta different from Bluebeam or Adobe Acrobat?",answer:"Deta is built specifically for AEC team collaboration. Unlike Bluebeam or Acrobat, it syncs live with Dropbox and Google Drive, and works in any browser without a desktop install."},{question:"Is Deta a Bluebeam alternative that works on Mac?",answer:"Yes. Bluebeam has no native Mac app, but Deta runs in any browser on Mac, Windows, and iPad. It covers the core workflows Bluebeam is used for â PDF markup, redlines, measurements, slip sheets, version tracking, and team collaboration â with no desktop install or per-seat licence, and syncs directly with Dropbox and Google Drive."},{question:"Is Deta a PlanGrid alternative?",answer:"Yes. Like PlanGrid, Deta gives construction teams a shared, always-current drawing set with field markup and version sync. Deta adds direct Dropbox and Google Drive integration, and works in any browser with no app download required."},{question:"Is Deta an Adobe Acrobat alternative for AEC teams?",answer:"Yes. Deta replaces Acrobat for AEC drawing review, with purpose-built markup tools, real-time team collaboration, and live cloud storage sync. No desktop software, no per-user Acrobat licence needed."},{question:"Is there a free plan?",answer:"Yes. The free plan includes 1 workspace, up to 3 members, and 5 documents, no credit card required."},{question:"Can I upgrade or downgrade my plan?",answer:"Yes. You can upgrade or downgrade your plan at any time from your account settings. Changes take effect immediately."},{question:"Can I cancel my subscription?",answer:"Yes. You can cancel at any time from your account settings. You will retain access until the end of your current billing period."},{question:"What payment methods do you accept?",answer:"We accept all major credit and debit cards. Invoiced billing is available on enterprise plans. Contact us to learn more."},{question:"Where can I find my invoices?",answer:"Your invoices are available under Billing in y
1our account settings. You can download them at any time."}];function r({item:t,index:i,openIndex:s,toggle:r}){let a=s===i;return(0,e.jsxs)("div",{className:"border-b border-neutral-200 dark:border-neutral-700",children:[(0,e.jsxs)("button",{type:"button",onClick:()=>r(i),className:"flex w-full items-center justify-between gap-4 py-5 text-left",children:[(0,e.jsx)("span",{className:"text-foreground leading-snug font-medium",children:t.question}),(0,e.jsx)(n.ChevronDown,{className:"text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200",style:{transform:a?"rotate(180deg)":"rotate(0deg)"}})]}),(0,e.jsx)("div",{className:"overflow-hidden transition-all duration-200",style:{maxHeight:a?"400px":"0px"},children:(0,e.jsx)("p",{className:"text-foreground pb-5 text-sm leading-relaxed",children:t.answer})})]})}function a(){let[t,n]=(0,i.useState)(null),a=t=>{n(e=>e===t?null:t)},o=Math.ceil(s.length/2),l=s.slice(0,o),h=s.slice(o);return(0,e.jsx)("section",{className:"w-full",children:(0,e.jsxs)("div",{className:"container mx-auto max-w-5xl px-6",children:[(0,e.jsxs)("div",{className:"mx-auto mb-14 flex max-w-3xl flex-col items-center gap-3 text-center",children:[(0,e.jsx)("p",{className:"text-xs font-medium tracking-[0.14em] text-neutral-400 uppercase dark:text-neutral-500",children:"FAQ"}),(0,e.jsx)("h2",{className:"text-3xl leading-tight font-normal tracking-[-0.02em] text-neutral-900 sm:text-4xl dark:text-white",children:"Frequently asked questions"})]}),(0,e.jsxs)("div",{className:"grid grid-cols-1 gap-x-16 lg:grid-cols-2",children:[(0,e.jsx)("div",{children:l.map((i,n)=>(0,e.jsx)(r,{item:i,index:n,openIndex:t,toggle:a},n))}),(0,e.jsx)("div",{children:h.map((i,n)=>(0,e.jsx)(r,{item:i,index:n+o,openIndex:t,toggle:a},n+o))})]})]})})}t.s(["FaqSection",()=>a],767507)},420577,t=>{"use strict";var e=t.i(391610),i=t.i(217861),n=t.i(607655);let s=(0,n.default)("cloud-off",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]]);var r=t.i(245344);let a=(0,n.default)("folder-sync",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v.5",key:"1dkoa9"}],["path",{d:"M12 10v4h4",key:"1czhmt"}],["path",{d:"m12 14 1.535-1.605a5 5 0 0 1 8 1.5",key:"lvuxfi"}],["path",{d:"M22 22v-4h-4",key:"1ewp4q"}],["path",{d:"m22 18-1.535 1.605a5 5 0 0 1-8-1.5",key:"14ync0"}]]),o=(0,n.default)("hand-grab",[["path",{d:"M18 11.5V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4",key:"edstyy"}],["path",{d:"M14 10V8a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"19wdwo"}],["path",{d:"M10 9.9V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v5",key:"1lugqo"}],["path",{d:"M6 14a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1hbeus"}],["path",{d:"M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-4a8 8 0 0 1-8-8 2 2 0 1 1 4 0",key:"1etffm"}]]),l=(0,n.default)("hexagon",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]]);var h=t.i(19346),u=t.i(202369),d=t.i(414809),d=d;let c=(0,n.default)("monitor-smartphone",[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]]),p=(0,n.default)("pencil-ruler",[["path",{d:"M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13",key:"orapub"}],["path",{d:"m8 6 2-2",key:"115y1s"}],["path",{d:"m18 16 2-2",key:"ee94s4"}],["path",{d:"m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17",key:"cfq27r"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);var m=t.i(43140);let f=(0,n.default)("sigma",[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",key:"wuwx1p"}]]);var g=t.i(459021);let y=(0,n.default)("sticky-note",[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]]);var v=t.i(138415),x=t.i(677624);let w=["a","b"];function b({src:t,label:i}
1){let[n,s]=(0,v.useState)(!1),[r,a]=(0,v.useState)(16/9),[o,l]=(0,v.useState)(!1),[h,u]=(0,v.useState)({slot:"a",sources:{a:t,b:null}}),d=(0,v.useRef)(null),c=(0,v.useRef)({a:null,b:null}),p=(0,v.useRef)({a:null,b:null}),m=(0,v.useRef)(null),f=h.slot,g="a"===f?"b":"a",y=h.sources[f],b=t===y?null:t,T=b??h.sources[g],k="a"===f?{a:y,b:T}:{a:T,b:y};return(0,v.useEffect)(()=>{let t=d.current;if(!t)return;let e=new IntersectionObserver(([t])=>s(t?.isIntersecting??!1),{rootMargin:"200px"});return e.observe(t),()=>e.disconnect()},[]),(0,v.useEffect)(()=>{if(!n)return;let t=c.current[f];if(t&&p.current[f]!==y&&(p.current[f]=y,t.load()),!b)return;let e=`${g}:${b}`;m.current!==e&&(m.current=e,p.current[g]=b,c.current[g]?.load())},[f,y,g,b,n]),(0,v.useEffect)(()=>{for(let t of w){let e=c.current[t];e&&(t===f&&n?e.play().catch(()=>{}):e.pause())}},[f,n,y]),(0,v.useEffect)(()=>{function t(){l(document.fullscreenElement===c.current[f]&&null!==document.fullscreenElement)}return document.addEventListener("fullscreenchange",t),()=>document.removeEventListener("fullscreenchange",t)},[f]),(0,e.jsxs)("div",{ref:d,className:"relative mx-auto w-full max-w-3xl overflow-hidden rounded-3xl bg-neutral-950 lg:h-[27rem] lg:w-fit lg:max-w-full",style:{aspectRatio:r},children:[w.map(s=>{let r=k[s];if(!r)return null;let l=s===f;return(0,e.jsx)("video",{ref:t=>{c.current[s]=t},src:n?r:void 0,muted:!0,loop:!0,playsInline:!0,preload:n?"auto":"none",controls:o&&l,onLoadedData:()=>{let e;(e=c.current[s])&&k[s]===t&&(a(e.videoWidth/e.videoHeight),s!==h.slot&&u({slot:s,sources:k}))},"aria-hidden":!l,"aria-label":l?`${i} demo video`:void 0,className:"absolute inset-0 h-full w-full object-contain transition-opacity duration-300",style:{opacity:+!!l}},s)}),(0,e.jsx)("button",{type:"button",onClick:function(){let t=c.current[f];t&&(t.requestFullscreen?t.requestFullscreen().catch(()=>{}):t.webkitEnterFullscreen?.())},"aria-label":`Watch the ${i} demo full screen`,className:"absolute right-3 bottom-3 rounded-full bg-black/50 p-2.5 text-white opacity-70 ring-1 ring-white/15 backdrop-blur-sm transition hover:bg-black/75 hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",children:(0,e.jsx)(x.Maximize2,{className:"h-4 w-4",strokeWidth:2})})]})}function T({points:t,video:i,label:n}){return(0,e.jsxs)("div",{className:"flex flex-col gap-6 lg:gap-9",children:[(0,e.jsx)("ul",{className:"grid grid-cols-1 gap-x-8 gap-y-6 sm:grid-cols-2 lg:gap-x-14 lg:gap-y-8",children:t.map(t=>{let i=t.icon;return(0,e.jsxs)("li",{className:"flex gap-3.5",children:[(0,e.jsx)(i,{className:"mt-0.5 h-5 w-5 shrink-0 text-neutral-400 dark:text-neutral-500",strokeWidth:1.5}),(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:t.title}),(0,e.jsx)("p",{className:"mt-1.5 text-sm leading-relaxed text-neutral-500 dark:text-neutral-400",children:t.description})]})]},t.title)})}),(0,e.jsx)(b,{src:i,label:n})]})}function k({tabs:t}){let[i,n]=(0,v.useState)(0),s=t[i];return(0,e.jsxs)("div",{className:"flex flex-col gap-4 lg:gap-8",children:[(0,e.jsx)("div",{className:"grid grid-cols-1 gap-2.5 lg:grid-cols-4 lg:gap-3",children:t.map((t,s)=>{let r=t.icon,a=s===i;return(0,e.jsxs)("button",{type:"button",onClick:()=>n(s),"aria-pressed":a,className:`flex items-center gap-3 rounded-2xl p-4 text-left transition-all lg:flex-col lg:items-start lg:rounded-3xl lg:p-6 ${a?"bg-neutral-900 shadow-[0_2px_4px_rgba(0,0,0,0.08),0_12px_32px_rgba(0,0,0,0.12)] dark:bg-white":"bg-white shadow-[0_1px_2px_rgba(0,0,0,0.05),0_4px_16px_rgba(0,0,0,0.04)] hover:shadow-[0_2px_4px_rgba(0,0,0,0.05),0_12px_32px_rgba(0,0,0,0.08)] lg:hover:-translate-y-0.5 dark:bg-neutral-800"}`,children:[(0,e.jsx)(r,{className:"h-5 w-5 shrink-0 text-neutral-400 dark:text-neutral-500",strokeWidth:1.5}),(0,e.jsx)("div",{className:`text-sm font-medium ${a?"text-white dark:text-neutral-900":"text-neutral-900 dark:text-white"}`,children:t.title}),(0,e.jsx)("p",{className:`hidden text-sm leading-relaxed lg:block ${a?"text-neutral-300 dark:text-neutral-600":"text-neutral-500 dark:text-neutral-400"}`,children:t.description})]},t.title)})}),(0,e.jsx)(b,{src:s.video,label:s.title}),(0,e.jsx)("p",{className:"px-1 text-sm leading-relaxed text-neutral-500 lg:hidden dark:text-neutral-400",children:s.description})]})}let S="https://auth.deta.studio/storage/v1/object/public/marketing-videos",P={platforms:`${S}/Platforms.mp4`,compare:`${S}/Compare%20Document.mp4`,dimensionScale:`${S}/dimension%20&%20scale%20.mp4`,generateReport:`${S}/generate%20report.mp4`,area:`${S}/area.mp4`,commentsManagement:`${S}/comments%20managerment.mp4`,counts:`${S}/counts.mp4`,sketchDimensions:`${S}/Sketch%20dimensions.mp4`,revisionCloud:`${S}/revision%20cloud.mp4`,whiteboardDimension:`${S}/white%20board%20-dimension.mp4`,whiteboardExport:`${S}/whiteboard%20export%204k.mp4`,endlessWhiteboard:`${S}
1/Endless%20whiteboard.mp4`,storeIdeas:`${S}/Whiteboard-1.mp4`},A=[{layout:"tabs",eyebrow:"Markup",heading:"Mark up as fast as you think.",subheading:"Every tool feels light and immediate, so reviewing a sheet stays effortless â and nothing you flag ever gets lost.",cards:[{icon:u.Layers,title:"Document compare",description:"Overlay two revisions and every change lights up. Nothing moves on a sheet without you seeing it.",video:P.compare},{icon:l,title:"Revision bubbles",description:"Cloud a change in one drag. Clean, consistent bubbles that read clearly on every print.",video:P.revisionCloud},{icon:y,title:"Notes to report",description:"Pin a note exactly where it matters. Print the PDF and the notes return as a dated report at the back â made for site reports and consultant feedback.",video:P.generateReport},{icon:d.default,title:"Comments as a to-do list",description:"Every comment lands in one simple list. Check items off as they resolve â nothing slips through.",video:P.commentsManagement}]},{layout:"tabs",eyebrow:"Dimension",heading:"Measure once, trust it everywhere.",subheading:"Calibrated, accurate takeoffs without leaving the drawing â numbers you can hand straight to the next person.",cards:[{icon:m.Ruler,title:"Measure",description:"Calibrate the sheet once, then measure anything â metric or imperial, always to scale.",video:P.dimensionScale},{icon:p,title:"Sketch to dimension",description:"Draw a rough line and get a real dimension. Ideas become measurable in seconds.",video:P.sketchDimensions},{icon:g.Square,title:"Area & perimeter",description:"Trace a space once and read its area and boundary length together â rooms, finishes, and edges in one pass.",video:P.area},{icon:f,title:"Counts",description:"Tap to count doors, fixtures, or symbols. Every tally stays linked to its marks.",video:P.counts}]},{layout:"tabs",eyebrow:"Whiteboard",heading:"An open canvas with real dimensions.",subheading:"Collect ideas, images, and sketches side by side with your drawings â on a board that understands scale and grows with your project.",cards:[{icon:o,title:"Drag and drop to store ideas",description:"Drag images, screenshots, and references straight onto the board. No import step â it lands exactly where you drop it.",video:P.storeIdeas},{icon:p,title:"Scale sketch whiteboard",description:"Sketch ideas at real dimensions. The canvas stays true to scale, from a napkin idea to a full floor layout.",video:P.whiteboardDimension},{icon:r.Crop,title:"Export any crop as an image",description:"Frame any part of the board and export it as an image â drop it straight into a deck, an email, or a drawing set.",video:P.whiteboardExport},{icon:h.Images,title:"Store images endlessly",description:"Collect as many reference images as you like. The board never runs out of room, and nothing gets lost.",video:P.endlessWhiteboard}]},{layout:"list",eyebrow:"Collaboration",heading:"Connected everywhere you work.",subheading:"Robust on a job site with no signal, effortless with a team across time zones â the same easy review either way.",video:P.platforms,points:[{icon:c,title:"Mac, Windows & mobile",description:"The same smooth review on your desktop, your laptop, and the phone in your pocket."},{icon:s,title:"Local, no internet needed",description:"The local version runs entirely on your computer. Your files stay yours â no connection required."},{icon:i.Cloud,title:"Real-time cloud collaboration",description:"Open a cloud file and review together, live. Everyone sees every markup as it happens."},{icon:a,title:"Linked to Drive & Dropbox",description:"Open files straight from Google Drive or Dropbox. Markups sync back â no re-uploading, no copies."}]}];function M({pillar:t}){return(0,e.jsxs)("div",{className:"rounded-[2.5rem] bg-neutral-100 px-5 py-10 sm:px-10 sm:py-14 lg:px-14 dark:bg-neutral-900",children:[(0,e.jsxs)("div",{className:"mb-8 max-w-2xl lg:mb-10",children:[(0,e.jsx)("p",{className:"mb-3 text-xs font-medium tracking-[0.14em] text-neutral-400 uppercase dark:text-neutral-500",children:t.eyebrow}),(0,e.jsx)("h3",{className:"text-3xl leading-tight font-normal tracking-[-0.02em] text-neutral-900 sm:text-4xl dark:text-white",children:t.heading}),(0,e.jsx)("p",{className:"mt-4 text-base leading-relaxed text-neutral-500 dark:text-neutral-400",children:t.subheading})]}),"tabs"===t.layout?(0,e.jsx)(k,{tabs:t.cards}):(0,e.jsx)(T,{points:t.points,video:t.video,label:t.eyebrow})]})}function E(){return(0,e.jsx)("section",{className:"w-full",children:(0,e.jsxs)("div",{className:"container mx-auto px-6",children:[(0,e.jsx)("div",{className:"mx-auto mb-14 max-w-3xl text-center",children:(0,e.jsxs)("h2",{className:"text-4xl leading-[1.12] font-normal tracking-[-0.02em] text-neutral-900 sm:text-5xl dark:text-white",children:["Everything a review needs.",(0,e.jsx)("br",{}),(0,e.jsx)("span",{className:"text-neutral-400 dark:text-neutral-500",children:"Nothing it doesn't."})]})}),(0,e.jsx)("div",{className:"flex flex-col gap-6",children:A.map(t=>(0,e.jsx)(M,{pillar:t},t.eyebrow))})]})})}t.s(["FeaturePillarsSection",()=>E],420577)},170244,t=>{"use strict";let e,i,n;var s,r=t.i(391610),a=t.i(80586),o=t.i(666482);let l=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],h=new Set([...l,"pathRotation"]),u=(t,e,i)=>i>e?e:i<t?t:i,d={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},c={...d,transform:t=>u(0,1,t)},p={...d,default:1},m=t=>Math.round(1e5*t)/1e5,f=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,g=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,y=(t,e)=>i=>!!("string"==typeof i&&g.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),v=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,a,o]=n.match(f);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},x={...d,transform:t=>Math.round(u(0,255,t))},w={test:y("rgb","red"),parse:v("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+x.transform(t)+", "+x.transform(e)+", "+x.transform(i)+", "+m(c.transform(n))+")"},b={test:y("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alph
1a:s?parseInt(s,16)/255:1}},transform:w.transform},T=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),k=T("deg"),S=T("%"),P=T("px"),A=T("vh"),M=T("vw"),E={...S,parse:t=>S.parse(t)/100,transform:t=>S.transform(100*t)},C={test:y("hsl","hue"),parse:v("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+S.transform(m(e))+", "+S.transform(m(i))+", "+m(c.transform(n))+")"},D={test:t=>w.test(t)||b.test(t)||C.test(t),parse:t=>w.test(t)?w.parse(t):C.test(t)?C.parse(t):b.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?w.transform(t):C.transform(t),getAnimatableNone:t=>{let e=D.parse(t);return e.alpha=0,D.transform(e)}},V=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,j="number",R="color",L=/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 B(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,a=e.replace(L,t=>(D.test(t)?(n.color.push(r),s.push(R),i.push(D.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(j),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:a,indexes:n,types:s}}function F({split:t,types:e}){let i=t.length;return n=>{let s="";for(let r=0;r<i;r++)if(s+=t[r],void 0!==n[r]){let t=e[r];t===j?s+=m(n[r]):t===R?s+=D.transform(n[r]):s+=n[r]}return s}}let I={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(f)?.length||0)+(t.match(V)?.length||0)>0},parse:function(t){return B(t).values},createTransformer:function(t){return F(B(t))},getAnimatableNone:function(t){let e=B(t);return F(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:D.test(t)?D.getAnimatableNone(t):t)(t,e.split[i])))}},N=new Set(["brightness","contrast","saturate","opacity"]);function O(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(f)||[];if(!n)return t;let s=i.replace(n,""),r=+!!N.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let W=/\b([a-z-]*)\(.*?\)/gu,U={...I,getAnimatableNone:t=>{let e=t.match(W);return e?e.map(O).join(" "):t}},$={...I,getAnimatableNone:t=>{let e=I.parse(t);return I.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},z={...d,transform:Math.round},Y={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,inset:P,insetBlock:P,insetBlockStart:P,insetBlockEnd:P,insetInline:P,insetInlineStart:P,insetInlineEnd:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,paddingBlock:P,paddingBlockStart:P,paddingBlockEnd:P,paddingInline:P,paddingInlineStart:P,paddingInlineEnd:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,marginBlock:P,marginBlockStart:P,marginBlockEnd:P,marginInline:P,marginInlineStart:P,marginInlineEnd:P,fontSize:P,backgroundPositionX:P,backgroundPositionY:P,rotate:k,pathRotation:k,rotateX:k,rotateY:k,rotateZ:k,scale:p,scaleX:p,scaleY:p,scaleZ:p,skew:k,skewX:k,skewY:k,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:c,originX:E,originY:E,originZ:P,zIndex:z,fillOpacity:c,strokeOpacity:c,numOctaves:z},q={...Y,color:D,backgroundColor:D,outlineColor:D,fill:D,stroke:D,borderColor:D,borderTopColor:D,borderRightColor:D,borderBottomColor:D,borderLeftColor:D,filter:U,WebkitFilter:U,mask:$,WebkitMask:$},H=t=>q[t],_=()=>({translate:0,scale:1,origin:0,originPoint:0}),X=()=>({x:_(),y:_()}),G=()=>({min:0,max:0}),K=()=>({x:G(),y:G()}),Z=t=>!!(t&&t.getVelocity),J=new Set(["width","height","top","left","right","bottom",...l]),Q=t=>e=>e.test(t),tt=[d,P,S,k,M,A,{test:t=>"auto"===t,parse:t=>t}],te=t=>tt.find(Q(t));var ti=t.i(925916);let tn=()=>{},ts=()=>{};
1ti.default;let tr=t=>e=>"string"==typeof e&&e.startsWith(t),ta=tr("--"),to=tr("var(--"),tl=t=>!!to(t)&&th.test(t.split("/*")[0].trim()),th=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tu(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let td=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tc=t=>180*t/Math.PI,tp=t=>tf(tc(Math.atan2(t[1],t[0]))),tm={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tp,rotateZ:tp,skewX:t=>tc(Math.atan(t[1])),skewY:t=>tc(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tf=t=>((t%=360)<0&&(t+=360),t),tg=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),ty=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tv={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tg,scaleY:ty,scale:t=>(tg(t)+ty(t))/2,rotateX:t=>tf(tc(Math.atan2(t[6],t[5]))),rotateY:t=>tf(tc(Math.atan2(-t[2],t[0]))),rotateZ:tp,rotate:tp,skewX:t=>tc(Math.atan(t[4])),skewY:t=>tc(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tx(t){return+!!t.includes("scale")}function tw(t,e){let i,n;if(!t||"none"===t)return tx(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=tv,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tm,n=e}if(!n)return tx(e);let r=i[e],a=n[1].split(",").map(tb);return"function"==typeof r?r(a):a[r]}function tb(t){return parseFloat(t.trim())}let tT=t=>t===d||t===P,tk=new Set(["x","y","z"]),tS=l.filter(t=>!tk.has(t)),tP={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tw(e,"x"),y:(t,{transform:e})=>tw(e,"y")};tP.translateX=tP.x,tP.translateY=tP.y;let tA=t=>t,tM={},tE=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tC(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=tE.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,r=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function h(e){a.has(e)&&(u.schedule(e),t()),l++,e(o)}let u={schedule:(t,e=!1,r=!1)=>{let o=r&&s?i:n;return e&&a.add(t),o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(o=t,s){r=!0;return}s=!0;let a=i;i=n,n=a,i.forEach(h),e,l=0,i.clear(),s=!1,r&&(r=!1,u.process(t))}};return u}(r,e?i:void 0),t),{}),{setup:o,read:l,resolveKeyframes:h,preUpdate:u,update:d,preRender:c,render:p,postRender:m}=a,f=()=>{let r=tM.useManualTiming,a=r?s.timestamp:performance.now();i=!1,r||(s.delta=n?1e3/60:Math.max(Math.min(a-s.timestamp,40),1)),s.timestamp=a,s.isProcessing=!0,o.process(s),l.process(s),h.process(s),u.process(s),d.process(s),c.process(s),p.process(s),m.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:tE.reduce((e,r)=>{let o=a[r];return e[r]=(e,r=!1,a=!1)=>(!i&&(i=!0,n=!0,s.isProcessing||t(f)),o.schedule(e,r,a)),e},{}),cancel:t=>{for(let e=0;e<tE.length;e++)a[tE[e]].cancel(t)},state:s,steps:a}}let{schedule:tD,cancel:tV,state:tj,steps:tR}=tC("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tA,!0),tL=new Set,tB=!1,tF=!1,tI=!1;function tN(){if(tF){let t=Array.from(tL).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],tS.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tF=!1,tB=!1,tL.forEach(t=>t.complete(tI)),tL.clear()}function tO(){tL.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tF=!0)})}class tW{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tL.add(this),tB||(tB=!0,tD.read(tO),tD.resolveKeyframes(tN))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;
1if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tL.delete(this)}cancel(){"scheduled"===this.state&&(tL.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tU=new Set([U,$]);function t$(t,e){let i=H(t);return tU.has(i)||(i=I),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tz=new Set(["auto","none","0"]);class tY extends tW{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&tl(n=n.trim())){let s=function t(e,i,n=1){ts(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[s,r]=function(t){let e=td.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let a=window.getComputedStyle(i).getPropertyValue(s);if(a){let t=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return tl(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!J.has(i)||2!==t.length)return;let[n,s]=t,r=te(n),a=te(s);if(tu(n)!==tu(s)&&tP[i]){this.needsMeasurement=!0;return}if(r!==a)if(tT(r)&&tT(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tP[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!tz.has(e)&&B(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=t$(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tP[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=tP[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tq=t=>1e3*t;function tH(t,e){-1===t.indexOf(e)&&t.push(e)}function t_(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tX{constructor(){this.subscriptions=[]}add(t){return tH(this.subscriptions,t),()=>t_(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tG(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function tK(t){let e;return()=>(void 0===e&&(e=t()),e)}let tZ={};function tJ(t,e){let i=tK(t);return()=>tZ[e]??i()}let tQ=tJ(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),t0=t=>null!==t;function t1(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(t0),a=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return a&&void 0!==n?n:r[a]}class t2{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let t4={layout:0,mainThread:0,waapi:0},t5=t=>Array.isArray(t)&&"number"==typeof t[0],t3=tJ(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t6=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},t9=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,t8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t9([0,.65,.55,1]),circOut:t9([.55,0,1,.45]),backIn:t9([.31,.01,.66,-.59]),backOut:t9([.33,1.53,.69,.99])};function t7(t){return"function"==typeof t&&"applyToOptions"in t}class et extends t2{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,ts("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return t7(t)&&t3()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?t3()?t6(e,i):"ease-out":t5(e)?t9(e):Array.isArray(e)?e.map(e=>t(e,i)||t8.easeOut):t8[e]}(o,s);Array.isArray(d)&&(u.easing=d);let c={delay:n,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};h&&(c.pseudoElement=h);let p=t.animate(u,c);return p}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=t1(n,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tG(e,i,t),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tq(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tQ())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tA):n(this)}}let ee=new Set(["opacity","clipPath","filter","transform"]),{schedule:ei}=tC(queueMicrotask,!1);function en(){e=void 0}let es={now:()=>(void 0===e&&es.set(tj.isProcessing||tM.useManualTiming?tj.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(en)}},er=(t,e)=>e?1e3/e*t:0,ea;class eo{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=es.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=es.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tX);let i=this.events[t].add(e);return"change"===t?()=>{i(),tD.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return ea&&ea.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=es.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return er(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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 el(t,e){return new eo(t,e)}let eh=[...tt,D,I],eu=new WeakMap;function ed(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function ec(t){return"string"==typeof t||Array.isArray(t)}let ep=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],em=["initial",...ep];function ef(t){return ed(t.animate)||em.some(e=>ec(t[e]))}function eg(t){return!!(ef(t)||t.variants)}let ey={current:null},ev={current:!1},ex="undefined"!=typeof window;function ew(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eb(t,e,i,n){if("function"==typeof e){let[s,r]=ew(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=ew(n);e=e(void 0!==i?i:t.custom,s,r)}return e}let eT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ek={};class eS{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:s,blockInitialAnimation:r,visualState:a},o={}){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=tW,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 t=es.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tD.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=s,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=ef(e),this.isVariantNode=eg(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==l[t]&&Z(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,eu.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ev.current||function(){if(ev.current=!0,ex)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ey.current=t.matches;t.addEventListener("change",e),e()}else ey.current=!1}(),this.shouldReduceMotion=ey.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tV(this.notifyUpdate),tV(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&ee.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:s,ease:r,duration:a}=e.accelerate,o=new et({element:this.current,name:t,keyframes:n,times:s,ease:r,duration:tq(a)}),l=i(o);this.valueSubscriptions.set(t,()=>{l(),o.cancel()});return}let n=h.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tD.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ek){let e=ek[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):K()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<eT.length;e++){let i=eT[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if(Z(s))t.addValue(n,s);else if(Z(r))t.addValue(n,el(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,el(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=el(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let n,s;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(s=i,/^0[^.\s]+$/u.test(s))))i=parseFloat(i);else{let n;n=i,!eh.find(Q(n))&&I.test(e)&&(i=t$(t,e))}this.setBaseTarget(t,Z(i)?i.get():i)}return Z(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=eb(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||Z(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new tX),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){ei.render(this.render)}}class eP extends eS{constructor(){super(...arguments),this.KeyframeResolver=tY}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;Z(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eA(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eM=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eE={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eC=l.length;function eD(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,a=!1,o=!1;for(let t in e){let i=e[t];if(h.has(t)){a=!0;continue}if(ta(t)){s[t]=i;continue}{let e=eM(i,Y[t]);t.startsWith("origin")?(o=!0,r[t]=e):n[t]=e}}
1if(!e.transform&&(a||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r<eC;r++){let a=l[r],o=t[a];if(void 0===o)continue;let h=!0;if("number"==typeof o)h=o===+!!a.startsWith("scale");else{let t=parseFloat(o);h=a.startsWith("scale")?1===t:0===t}if(!h||i){let t=eM(o,Y[a]);if(!h){s=!1;let e=eE[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}let r=t.pathRotation;return r&&(s=!1,n+=`rotate(${eM(r,Y.pathRotation)}) `),n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),o){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin=`${t} ${e} ${i}`}}let eV={offset:"stroke-dashoffset",array:"stroke-dasharray"},ej={offset:"strokeDashoffset",array:"strokeDasharray"},eR=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eL(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...o},l,h,u){if(eD(t,o,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t of(d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=u?.transformBox??"fill-box",delete d.transformBox),eR))void 0!==d[t]&&(c[t]=d[t],delete d[t]);void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?eV:ej;t[r.offset]=`${-n}`,t[r.array]=`${e} ${i}`}(d,s,r,a,!1)}let eB=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"]),eF=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eI(t,{style:e,vars:i},n,s){let r,a=t.style;for(r in e)a[r]=e[r];for(r in s?.applyProjectionStyles(a,n),i)a.setProperty(r,i[r])}function eN(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eO={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!P.test(t))return t;else t=parseFloat(t);let i=eN(t,e.target.x),n=eN(t,e.target.y);return`${i}% ${n}%`}},eW=(t,e,i)=>t+(e-t)*i,eU={borderRadius:{...eO,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eO,borderTopRightRadius:eO,borderBottomLeftRadius:eO,borderBottomRightRadius:eO,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=I.parse(t);if(n.length>5)return t;let s=I.createTransformer(t),r=+("number"!=typeof n[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+r]/=a,n[1+r]/=o;let l=eW(a,o,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};function e$(t,{layout:e,layoutId:i}){return h.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eU[t]||"opacity"===t)}function ez(t,e,i){let n=t.style,s=e?.style,r={};if(!n)return r;for(let e in n)(Z(n[e])||s&&Z(s[e])||e$(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=n[e]);return r}function eY(t,e,i){let n=ez(t,e,i);for(let i in t)(Z(t[i])||Z(e[i]))&&(n[-1!==l.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class eq extends eP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=K}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(h.has(e)){let t=H(e);return t&&t.default||0}return e=eB.has(e)?e:eA(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eY(t,e,i)}build(t,e,i){eL(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in eI(t,e,void 0,n),e.attrs)t.setAttribute(eB.has(i)?i:eA(i),e.attrs[i])}mount(t){this.isSVGTag=eF(t.tagName),super.mount(t)}}function eH({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function e_(t){return void 0===t||1===t}function eX({scale:t,scaleX:e,scaleY:i}){return!e_(t)||!e_(e)||!e_(i)}function eG(t){return eX(t)||eK(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eK(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eZ(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function eJ(t,e=0,i=1,n,s){t.min=eZ(t.min,e,i,n,s),t.max=eZ(t.max,e,i,n,s)}function eQ(t,{x:e,y:i}){eJ(t.x,e.translate,e.scale,e.originPoint),eJ(t.y,i.translate,i.scale,i.originPoint)}function e0(t,e){t.min+=e,t.max+=e}function e1(t,e,i,n,s=.5){let r=eW(t.min,t.max,s);eJ(t,e,i,r,n)}function e2(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function e4(t,e,i){let n=i??t;e1(t.x,e2(e.x,n.x),e.scaleX,e.scale,e.originX),e1(t.y,e2(e.y,n.y),e.scaleY,e.scale,e.originY)}function e5(t,e){return eH(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class e3 extends eP{constructor(){super(...arguments),this.type="html",this.renderInstance=eI}readValueFromInstance(t,e){if(h.has(e))return this.projection?.isProjecting?tx(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tw(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(ta(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e5(t,e)}build(t,e,i){eD(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return ez(t,e,i)}}var e6=t.i(138415);let e9=["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 e8(t){if("string"!=typeof t||t.includes("-"));else if(e9.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let e7=(0,e6.createContext)({}),it=(0,e6.createContext)({strict:!1}),ie=(0,e6.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),ii=(0,e6.createContext)({});function is(t){return Array.isArray(t)?t.join(" "):t}let ir=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ia(t,e,i){for(let n in e)Z(e[n])||e$(n,i)||(t[n]=e[n])}let io=()=>({...ir(),attrs:{}}),il=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"]);function ih(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||il.has(t)}let iu=t=>!ih(t);try{s=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof s&&(iu=t=>t.startsWith("on")?!ih(t):s(t))}catch{}function id(t){return Z(t)?t.get():t}let ic=(0,e6.createContext)(null),ip=t=>(e,i)=>{let n,s=(0,e6.useContext)(ii),r=(0,e6.useContext)(ic),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=id(r[t]);let{initial:a,animate:o}=t,l=ef(t),h=eg(t);e&&h&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===a)?o:a;if(d&&"boolean"!=typeof d&&!ed(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=eb(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()}})(t,e,s,r);return i?a():(null===(n=(0,e6.useRef)(null)).current&&(n.current=a()),n.current)},im=ip({scrapeMotionValuesFromProps:ez,createRenderState:ir}),ig=ip({scrapeMotionValuesFromProps:eY,createRenderState:io}),iy={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"]},iv=!1;function ix(){return!function(){if(iv)return;let t={};for(let e in iy)t[e]={isEnabled:t=>iy[e].some(e=>!!t[e])};ek=t,iv=!0}(),ek}let iw=Symbol.for("motionComponentSymbol"),ib="data-"+eA("framerAppearId"),iT=(0,e6.createContext)({});function ik(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let iS="undefined"!=typeof window?e6.useLayoutEffect:e6.useEffect;function iP(t,{forwardMotionProps:e=!1,type:i}={},n,s){n&&function(t){let e=ix();for(let i in t)e[i]={...e[i],...t[i]};ek=e}(n);let a=i?"svg"===i:e8(t),o=a?ig:im;function l(i,n){var l;let h,u,d,c={...(0,e6.useContext)(ie),...i,layoutId:function({layoutId:t}){let e=(0,e6.useContext)(e7).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:p}=c,m=function(t){let{initial:e,animate:i}=function(t,e){if(ef(t)){let{initial:e,animate:i}=t;return{initial:!1===e||ec(e)?e:void 0,animate:ec(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e6.useContext)(ii));return(0,e6.useMemo)(()=>({initial:e,animate:i}),[is(e),is(i)])}(i),f=o(i,p);if(!p&&"undefined"!=typeof window){(0,e6.useContext)(it).strict;let e=function(t){let{drag:e,layout:i}=ix();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(c);h=e.MeasureLayout,m.visualElement=function(t,e,i,n,s,r){let{visualElement:a}=(0,e6.useContext)(ii),o=(0,e6.useContext)(it),l=(0,e6.useContext)(ic),h=(0,e6.useContext)(ie),u=h.reducedMotion,d=h.skipAnimations,c=(0,e6.useRef)(null),p=(0,e6.useRef)(!1);n=n||o.renderer,!c.current&&n&&(c.current=n(t,{visualState:e,parent:a,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u,skipAnimations:d,isSVG:r}),p.current&&c.current&&(c.current.manuallyAnimateOnMount=!0));let m=c.current,f=(0,e6.useContext)(iT);m&&!m.projection&&s&&("html"===m.type||"svg"===m.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:h,layoutAnchor:u,layoutCrossfade:d}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!a||o&&ik(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:h,layoutAnchor:u})}(c.current,i,s,f);let g=(0,e6.useRef)(!1);(0,e6.useInsertionEffect)(()=>{m&&g.current&&m.update(i,l)});let y=i[ib],v=(0,e6.useRef)(!!y&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return iS(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,e6.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),m.enteringChildren=void 0)}),m}(t,f,c,s,e.ProjectionNode,a)}return(0,r.jsxs)(ii.Provider,{value:m,children:[h&&m.visualElement?(0,r.jsx)(h,{visualElement:m.visualElement,...c}):null,function(t,e,i,{latestValues:n},s,r=!1,a){let o=(a??e8(t)?function(t,e,i,n){let s=(0,e6.useMemo)(()=>{let i=io();return eL(i,e,eF(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ia(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i,n,s={},r=(i=t.style||{},ia(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,e6.useMemo)(()=>{let i=ir();return eD(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=r,s})(e,n,s,t),l=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&!Z(t[s])&&(iu(s)||!0===i&&ih(s)||!e&&!ih(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,r),h=t!==e6.Fragment?{...l,...o,ref:i}:{},{children:u}=e,d=(0,e6.useMemo)(()=>Z(u)?u.get():u,[u]);return(0,e6.createElement)(t,{...h,children:d})}(t,i,(l=m.visualElement,u=(0,e6.useRef)(n),(0,e6.useInsertionEffect)(()=>{u.current=n}),d=(0,e6.useRef)(null),(0,e6.useCallback)(t=>{t&&f.onMount?.(t),l&&(t?l.mount(t):l.unmount());let e=u.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(d.current=i)}else d.current?(d.current(),d.current=null):e(t);else e&&(e.current=t)},[l])),f,p,e,a)]})}l.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let h=(0,e6.forwardRef)(l);return h[iw]=t,h}class iA{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iM(t,e,i){let n=t.getProps();return eb(n,e,void 0!==i?i:n.custom,t)}function iE(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function iC(t,e){let i=t?.[e]??t?.default??t;return i!==t?iE(i,t):i}let iD=t=>Array.isArray(t);function iV(t,e){let i=t.getValue("willChange");if(Z(i)&&i.add)return i.add(e);if(!i&&tM.WillChange){let i=new tM.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let ij=(...t)=>t.reduce((t,e)=>i=>e(t(i)));function iR(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iL(t,e){return i=>i>0?e:t}
1let iB=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},iF=[b,w,C];function iI(t){let e=iF.find(e=>e.test(t));if(tn(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===C&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;s=iR(o,n,t+1/3),r=iR(o,n,t),a=iR(o,n,t-1/3)}else s=r=a=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*a),alpha:n}}(i)),i}let iN=(t,e)=>{let i=iI(t),n=iI(e);if(!i||!n)return iL(t,e);let s={...i};return t=>(s.red=iB(i.red,n.red,t),s.green=iB(i.green,n.green,t),s.blue=iB(i.blue,n.blue,t),s.alpha=eW(i.alpha,n.alpha,t),w.transform(s))},iO=new Set(["none","hidden"]);function iW(t,e){return i=>eW(t,e,i)}function iU(t){return"number"==typeof t?iW:"string"==typeof t?tl(t)?iL:D.test(t)?iN:iY:Array.isArray(t)?i$:"object"==typeof t?D.test(t)?iN:iz:iL}function i$(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>iU(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function iz(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=iU(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let iY=(t,e)=>{let i=I.createTransformer(e),n=B(t),s=B(e);if(!(n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length))return tn(!0,`Complex values '${t}' and '${e}' 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"),iL(t,e);if(iO.has(t)&&!s.values.length||iO.has(e)&&!n.values.length)return iO.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return ij(i$(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],a=t.indexes[r][n[r]],o=t.values[a]??0;i[s]=o,n[r]++}return i}(n,s),s.values),i)};function iq(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eW(t,e,i):iU(t)(t,e)}let iH=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tD.update(e,t),stop:()=>tV(e),now:()=>tj.isProcessing?tj.timestamp:es.now()}};function i_(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let iX=.01,iG=2,iK=.005,iZ=.5;function iJ(t,e){return t*Math.sqrt(1-e*e)}let iQ=["duration","bounce"],i0=["stiffness","damping","mass"];function i1(t,e){return e.some(e=>void 0!==t[e])}function i2(t=.3,e=.3){let i,n,s,r,a,o,l="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:h,restDelta:d}=l,c=l.keyframes[0],p=l.keyframes[l.keyframes.length-1],m={done:!1,value:c},{stiffness:f,damping:g,mass:y,duration:v,velocity:x,isResolvedFromDuration:w}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!i1(t,i0)&&i1(t,iQ))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*u(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:s}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let s,r;tn(t<=tq(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=u(.05,1,a),t=u(.01,10,t/1e3),a<1?(s=e=>{let n=e*a,s=n*t;return .001-(n-i)/iJ(e,a)*Math.exp(-s)},r=e=>{let n=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-n),l=iJ(Math.pow(e,2),a);return(n*i+i-r)*o*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let o=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=tq(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(o,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...l,velocity:-((l.velocity||0)/1e3)}),b=x||0,T=g/(2*Math.sqrt(f*y)),k=p-c,S=Math.sqrt(f/y)/1e3,P=5>Math.abs(k);if(h||(h=P?iX:iG),d||(d=P?iK:iZ),T<1)s=iJ(S,T),r=(b+T*S*k)/s,i=t=>p-Math.exp(-T*S*t)*(r*Math.sin(s*t)+k*Math.cos(s*t)),a=T*S*r+k*s,o=T*S*k-r*s,n=t=>Math.exp(-T*S*t)*(a*Math.sin(s*t)+o*Math.cos(s*t));else if(1===T){i=t=>p-Math.exp(-S*t)*(k+(b+S*k)*t);let t=b+S*k;n=e=>Math.exp(-S*e)*(S*t*e-b)}else{let t=S*Math.sqrt(T*T-1);i=e=>{let i=Math.exp(-T*S*e),n=Math.min(t*e,300);return p-i*((b+T*S*k)*Math.sinh(n)+t*k*Math.cosh(n))/t};let e=(b+T*S*k)/t,s=T*S*e-k*t,r=T*S*k-e*t;n=e=>{let i=Math.exp(-T*S*e),n=Math.min(t*e,300);return i*(s*Math.sinh(n)+r*Math.cosh(n))}}let A={calculatedDuration:w&&v||null,velocity:t=>tq(n(t)),next:t=>{if(!w&&T<1){let e=Math.exp(-T*S*t),i=Math.sin(s*t),n=Math.cos(s*t),l=p-e*(r*i+k*n);
1return m.done=Math.abs(tq(e*(a*i+o*n)))<=h&&Math.abs(p-l)<=d,m.value=m.done?p:l,m}let e=i(t);return w?m.done=t>=v:m.done=Math.abs(tq(n(t)))<=h&&Math.abs(p-e)<=d,m.value=m.done?p:e,m},toString:()=>{let t=Math.min(i_(A),2e4),e=t6(e=>A.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return A}function i4(t,e,i){let n=Math.max(e-5,0);return er(i-t(n),e-n)}function i5({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:h=.5,restSpeed:u}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===a?g:a(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/n),x=t=>y+v(t),w=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=h,m.value=m.done?y:i},b=t=>{let e;if(e=m.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;d=t,c=i2({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:i4(x,t,m.value),damping:s,stiffness:r,restDelta:h,restSpeed:u})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,w(t),b(t)),void 0!==d&&t>=d)?c.next(t-d):(e||w(t),m)}}}i2.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(i_(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:s/1e3}}(t,100,i2);return t.ease=e.ease,t.duration=tq(e.duration),t.type="keyframes",t};let i3=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function i6(t,e,i,n){return t===e&&i===n?tA:s=>0===s||1===s?s:i3(function(t,e,i,n,s){let r,a,o=0;do(r=i3(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++o<12)return a}(s,0,1,t,i),e,n)}let i9=i6(.42,0,1,1),i8=i6(0,0,.58,1),i7=i6(.42,0,.58,1),nt=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ne=t=>e=>1-t(1-e),ni=i6(.33,1.53,.69,.99),nn=ne(ni),ns=nt(nn),nr=t=>t>=1?1:(t*=2)<1?.5*nn(t):.5*(2-Math.pow(2,-10*(t-1))),na=t=>1-Math.sin(Math.acos(t)),no=ne(na),nl=nt(na),nh={linear:tA,easeIn:i9,easeInOut:i7,easeOut:i8,circIn:na,circInOut:nl,cir
1cOut:no,backIn:nn,backInOut:ns,backOut:ni,anticipate:nr},nu=t=>{if(t5(t)){ts(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,s]=t;return i6(e,i,n,s)}return"string"==typeof t?(ts(void 0!==nh[t],`Invalid easing type '${t}'`,"invalid-easing-type"),nh[t]):t},nd=(t,e,i)=>{let n=e-t;return n?(i-t)/n:1};function nc({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r,a=Array.isArray(n)&&"number"!=typeof n[0]?n.map(nu):nu(n),o={done:!1,value:e[0]},l=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(ts(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],s=i||tM.mix||iq,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);e&&(r=ij(Array.isArray(e)?e[i]||tA:e,r)),n.push(r)}return n}(e,n,s),l=o.length,h=i=>{if(a&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=nd(t[n],t[n+1],i);return o[n](s)};return i?e=>h(u(t[0],t[r-1],e)):h}((s=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=nd(0,e,n);t.push(eW(i,1,s))}}(r=[0],e.length-1),r),s.map(e=>e*t)),e,{ease:Array.isArray(a)?a:e.map(()=>a||i7).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=l(e),o.done=e>=t,o)}}let np={decay:i5,inertia:i5,tween:nc,keyframes:nc,spring:i2};function nm(t){"string"==typeof t.type&&(t.type=np[t.type])}let nf=t=>t/100;class ng extends t2{constructor(t){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:t}=this.options;t&&t.updatedAt!==es.now()&&this.tick(es.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},t4.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;nm(t);let{type:e=nc,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:a}=t,o=e||nc;o!==nc&&"number"!=typeof a[0]&&(this.mixKeyframes=ij(nf,iq(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===s&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=i_(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:n,totalDuration:s,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:h=0,keyframes:d,repeat:c,repeatType:p,repeatDelay:m,type:f,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-h*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let w=this.currentTime,b=n;if(c){let t=Math.min(this.currentTime,s)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/o)):"mirror"===p&&(b=a)),w=u(0,1,i)*o}x?(this.delayState.value=d[0],i=this.delayState):i=b.next(w),r&&!x&&(i.value=r(i.value));let{done:T}=i;x||null===l||(T=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return k&&f!==i5&&(i.value=t1(d,this.options,y,this.speed)),g&&g(i.value),k&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=tq(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;
1if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return i4(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(es.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iH,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(es.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&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,t4.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let ny={anticipate:nr,backInOut:ns,circInOut:nl};class nv extends et{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in ny&&(t.ease=ny[t.ease])}(t),nm(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new ng({...r,autoplay:!1}),o=Math.max(10,es.now()-this.startTime),l=u(0,10,o-10),h=a.sample(o).value,{name:d}=this.options;s&&d&&tG(s,d,h),e.setWithVelocity(a.sample(Math.max(0,o-l)).value,h,l),a.stop()}}let nx=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(I.test(t)||"0"===t)&&!t.startsWith("url("));function nw(t){t.duration=0,t.type="keyframes"}let nb=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nT=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nk=tK(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nS extends t2{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=es.now();const d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:o,motionValue:l,element:h,...u},c=h?.KeyframeResolver||tW;this.keyframeResolver=new c(a,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),o,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let s;this.keyframeResolver=void 0;let{name:r,type:a,velocity:o,delay:l,isHandoff:h,onUpdate:u}=i;this.resolvedAt=es.now();let d=!0;!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=nx(s,e),o=nx(r,e);return tn(a===o,`You are trying to animate ${e} from "${s}" to "${r}". "${a?r:s}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||t7(i))&&n)}(t,r,a,o)&&(d=!1,(tM.instantAnimations||!l)&&u?.(t1(t,i,e)),t[0]=t[t.length-1],nw(i),i.repeat=0);let c={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=d&&!h&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:a,keyframes:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;
1let{onUpdate:l,transformTemplate:h}=e.owner.getProps();return nk()&&i&&(ee.has(i)||nT.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&nb.test(t[e]))return!0;return!1}(o))&&("transform"!==i||!h)&&!l&&!n&&"mirror"!==s&&0!==r&&"inertia"!==a}(c),m=c.motionValue?.owner?.current;if(p)try{s=new nv({...c,element:m})}catch{s=new ng(c)}else s=new ng(c);s.finished.then(()=>{this.notifyFinished()}).catch(tA),this.pendingTimeline&&(this.stopTimeline=s.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=s}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tI=!0,tO(),tN(),tI=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nP={type:"spring",stiffness:500,damping:25,restSpeed:10},nA={type:"keyframes",duration:.8},nM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nE=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nC=(t,e,i,n={},s,r)=>a=>{let o=iC(n,t)||{},l=o.delay||n.delay||0,{elapsed:u=0}=n;u-=tq(l);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-u,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function(t){for(let e in t)if(!nE.has(e))return!0;return!1}(o)&&Object.assign(d,((t,{keyframes:e})=>e.length>2?nA:h.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nP:nM)(t,d)),d.duration&&(d.duration=tq(d.duration)),d.repeatDelay&&(d.repeatDelay=tq(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(nw(d),0===d.delay&&(c=!0)),(tM.instantAnimations||tM.skipAnimations||s?.shouldSkipAnimations||o.skipAnimations)&&(c=!0,nw(d),d.delay=0),d.allowFlatten=!o.type&&!o.ease,c&&!r&&void 0!==e.get()){let t=t1(d.keyframes,o);if(void 0!==t)return void tD.update(()=>{d.onUpdate(t),d.onComplete()})}return o.isSync?new ng(d):new nS(d)};function nD(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r,transitionEnd:a,...o}=e,l=t.getDefaultTransition();r=r?iE(r,l):l;let h=r?.reduceMotion,u=r?.skipAnimations;n&&(r=n);let d=[],c=s&&t.animationState&&t.animationState.getState()[s],p=r?.path;for(let e in p&&p.animateVisualElement(t,o,r,i,d),o){let n=t.getValue(e,t.latestValues[e]??null),s=o[e];if(void 0===s||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let a={delay:i,...iC(r||{},e)};u&&(a.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(s)&&s===l&&!a.velocity){tD.update(()=>n.set(s));continue}let p=!1;if(window.MotionHandoffAnimation){let i=t.props[ib];if(i){let t=window.MotionHandoffAnimation(i,e,tD);null!==t&&(a.startTime=t,p=!0)}}iV(t,e);let m=h??t.shouldReduceMotion;n.start(nC(e,n,s,m&&J.has(e)?{type:!1}:a,t,p));let f=n.animation;f&&d.push(f)}if(a){let e=()=>tD.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=iM(t,e)||{};for(let e in s={...s,...i}){var r;let i=iD(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,el(i))}}(t,a)});d.length?Promise.all(d).then(e):e()}return d}function nV(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*n;return"function"==typeof i?i(r,a):1===s?r*n:o-r*n}
1function nj(t,e,i={}){let n=iM(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(nD(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=s;return function(t,e,i=0,n=0,s=0,r=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(nj(l,e,{...a,delay:i+("function"==typeof n?0:n)+nV(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,n,r,a,o,i)}:()=>Promise.resolve(),{when:o}=s;if(!o)return Promise.all([r(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[r,a]:[a,r];return t().then(()=>e())}}let nR=em.length;function nL(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let nB=[...ep].reverse(),nF=ep.length;function nI(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nN(){return{animate:nI(!0),whileInView:nI(),whileHover:nI(),whileTap:nI(),whileDrag:nI(),whileFocus:nI(),exit:nI()}}let nO=0;function nW(t){return[t("x"),t("y")]}function nU(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let n$={x:!1,y:!1};function nz(t){return t.max-t.min}function nY(t,e,i,n=.5){t.origin=n,t.originPoint=eW(e.min,e.max,t.origin),t.scale=nz(i)/nz(e),t.translate=eW(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function nq(t,e,i,n){nY(t.x,e.x,i.x,n?n.originX:void 0),nY(t.y,e.y,i.y,n?n.originY:void 0)}function nH(t,e,i,n=0){t.min=(n?eW(i.min,i.max,n):i.min)+e.min,t.max=t.min+nz(e)}function n_(t,e,i,n=0){let s=n?eW(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+nz(e)}function nX(t,e,i,n){n_(t.x,e.x,i.x,n?.x),n_(t.y,e.y,i.y,n?.y)}let nG=t=>"object"==typeof t&&null!==t;function nK(t){return nG(t)&&"ownerSVGElement"in t}function nZ(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}let nJ=new WeakMap,nQ=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:nK(n)&&"getBBox"in n?n.getBBox()[e]:n[i],n0=nQ("inline","width","offsetWidth"),n1=nQ("block","height","offsetHeight");function n2({target:t,borderBoxSize:e}){nJ.get(t)?.forEach(i=>{i(t,{get width(){return n0(t,e)},get height(){return n1(t,e)}})})}function n4(t){t.forEach(n2)}let n5=new Set;function n3(t,e){let s;return"function"==typeof t?(n5.add(t),n||(n=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};
1n5.forEach(e=>e(t))},window.addEventListener("resize",n)),()=>{n5.delete(t),n5.size||"function"!=typeof n||(window.removeEventListener("resize",n),n=void 0)}):(i||"undefined"!=typeof ResizeObserver&&(i=new ResizeObserver(n4)),(s=nZ(t)).forEach(t=>{let n=nJ.get(t);n||(n=new Set,nJ.set(t,n)),n.add(e),i?.observe(t)}),()=>{s.forEach(t=>{let n=nJ.get(t);n?.delete(e),n?.size||i?.unobserve(t)})})}let n6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),n9=new Set(["INPUT","SELECT","TEXTAREA"]),n8=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function n7(t){return{point:{x:t.pageX,y:t.pageY}}}function st(t,e,i,n){return nU(t,e,t=>n8(t)&&i(t,n7(t)),n)}let se=({current:t})=>t?t.ownerDocument.defaultView:null,si=(t,e)=>Math.abs(t-e),sn=new Set(["auto","scroll"]);class ss{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3,element:a}={}){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=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=sr(this.lastRawMoveEventInfo,this.transformPagePoint));let i=so(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(si(t.x,e.x)**2+si(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i,{timestamp:a}=tj;this.history.push({...r,timestamp:a});let{onStart:o,onMove:l}=this.handlers;n||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=sr(e,this.transformPagePoint),tD.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=so("pointercancel"===t.type?this.lastMoveEventInfo:sr(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!n8(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;const o=sr(n7(t),this.transformPagePoint),{point:l}=o,{timestamp:h}=tj;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,so(o,this.history)),this.removeListeners=ij(st(this.contextWindow,"pointermove",this.handlePointerMove),st(this.contextWindow,"pointerup",this.handlePointerUp),st(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(sn.has(t.overflowX)||sn.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.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(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),tD.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tV(this.updatePoint)}}function sr(t,e){return e?{point:e(t.point)}:t}function sa(t,e){return{x:t.x-e.x,y:t.y-e.y}}function so({point:t},e){return{point:t,delta:sa(t,sl(e)),offset:sa(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=sl(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>tq(.1)));)i--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&s.timestamp-n.timestamp>
12*tq(.1)&&(n=t[1]);let r=(s.timestamp-n.timestamp)/1e3;if(0===r)return{x:0,y:0};let a={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,.1)}}function sl(t){return t[t.length-1]}function sh(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function su(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function sd(t,e,i){return{min:sc(t,e),max:sc(t,i)}}function sc(t,e){return"number"==typeof t?t:t[e]||0}let sp=new WeakMap;class sm{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=K(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let s=t=>{e&&this.snapToCursor(n7(t).point),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(n$[t])return null;else return n$[t]=!0,()=>{n$[t]=!1};return n$.x||n$.y?null:(n$.x=n$.y=!0,()=>{n$.x=n$.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nW(t=>{let e=this.getAxisMotionValue(t).get()||0;if(S.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=nz(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&tD.update(()=>s(t,e),!1,!0),iV(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&tD.update(()=>r(t,e),!1,!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new ss(t,{onSessionStart:s,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:se(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&tD.postRender(()=>a(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!sg(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?eW(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?eW(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&ik(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:sh(t.x,i,s),y:sh(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:sd(t,"left","right"),y:sd(t,"top","bottom")}}(e),n!==this.constraints&&!ik(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&nW(t=>{var e,n;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],s={},void 0!==n.min&&(s.min=n.min-e.min),void 0!==n.max&&(s.max=n.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!ik(e))return!1;let n=e.current;ts(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());
1let r=function(t,e,i){let n=e5(t,i),{scroll:s}=e;return s&&(e0(n.x,s.offset.x),e0(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),a=(t=s.layout.layoutBox,{x:su(t.x,r.x),y:su(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=eH(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(nW(a=>{if(!sg(a,e,this.currentDirection))return;let l=o&&o[a]||{};(!0===r||r===a)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iV(this.visualElement,t),i.start(nC(t,i,0,e,this.visualElement,!1))}stopAnimation(){nW(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){nW(e=>{let{drag:i}=this.getProps();if(!sg(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e],a=s.get()||0;s.set(t[e]-eW(i,r,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!ik(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nW(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let r,a,o,l=e.get();n[t]=(i={min:l,max:l},s=this.constraints[t],r=.5,a=nz(i),(o=nz(s))>a?r=nd(s.min,s.max-a,i.min):a>o&&(r=nd(i.min,i.max-o,s.min)),u(0,1,r))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),nW(e=>{if(!sg(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set(eW(s,r,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;sp.set(this.visualElement,this);let e=this.visualElement.current,i=st(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),s=t.target,r=s!==e&&(n9.has(s.tagName)||!0===s.isContentEditable);i&&n&&!r&&this.start(t)}),n=()=>{var i,n,s;let r,a,{dragConstraints:o}=this.getProps();ik(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=o.current,r=n3(i,sf(s=()=>this.scalePositionWithinConstraints())),a=n3(n,sf(s)),t=()=>{r(),a()}))},{projection:s}=this.visualElement,r=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),tD.read(n);let a=nU(window,"resize",()=>this.scalePositionWithinConstraints()),o=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nW(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{a(),i(),r(),o&&o(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:a}}}function sf(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function sg(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let sy=t=>(e,i)=>{t&&tD.update(()=>t(e,i),!1,!0)},sv={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var sx=e6;let sw=!1;class sb extends sx.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),sw&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),sv.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),sw=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||tD.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),ei.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;sw=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sT(t){let[e,i]=function(t=!0){let e=(0,e6.useContext)(ic);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,r=(0,e6.useId)();(0,e6.useEffect)(()=>
1{if(t)return s(r)},[t]);let a=(0,e6.useCallback)(()=>t&&n&&n(r),[r,n,t]);return!i&&n?[!1,a]:[!0]}(),n=(0,sx.useContext)(e7);return(0,r.jsx)(sb,{...t,layoutGroup:n,switchLayoutGroup:(0,sx.useContext)(iT),isPresent:e,safeToRemove:i})}let sk=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],sS=sk.length,sP=t=>"string"==typeof t?parseFloat(t):t,sA=t=>"number"==typeof t||P.test(t);function sM(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sE=sD(0,.5,no),sC=sD(.5,.95,tA);function sD(t,e,i){return n=>n<t?0:n>e?1:i(nd(t,e,n))}function sV(t,e){t.min=e.min,t.max=e.max}function sj(t,e){sV(t.x,e.x),sV(t.y,e.y)}function sR(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sL(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function sB(t,e,[i,n,s],r,a){!function(t,e=0,i=1,n=.5,s,r=t,a=t){if(S.test(e)&&(e=parseFloat(e),e=eW(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=eW(r.min,r.max,n);t===r&&(o-=e),t.min=sL(t.min,e,i,o,s),t.max=sL(t.max,e,i,o,s)}(t,e[i],e[n],e[s],e.scale,r,a)}let sF=["x","scaleX","originX"],sI=["y","scaleY","originY"];function sN(t,e,i,n){sB(t.x,e,sF,i?i.x:void 0,n?n.x:void 0),sB(t.y,e,sI,i?i.y:void 0,n?n.y:void 0)}function sO(t){return 0===t.translate&&1===t.scale}function sW(t){return sO(t.x)&&sO(t.y)}function sU(t,e){return t.min===e.min&&t.max===e.max}function s$(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sz(t,e){return s$(t.x,e.x)&&s$(t.y,e.y)}function sY(t){return nz(t.x)/nz(t.y)}function sq(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sH{constructor(){this.members=[]}add(t){tH(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(t_(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(t_(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:s}=t.options;(void 0===n||n!==s)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let s_=(t,e)=>t.depth-e.depth;class sX{constructor(){this.children=[],this.isDirty=!1}add(t){tH(this.children,t),this.isDirty=!0}remove(t){t_(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(s_),this.isDirty=!1,this.children.forEach(t)}}let sG=["","X","Y","Z"],sK=0;function sZ(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function sJ({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=sK++,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=()=>
1{this.projectionUpdateScheduled=!1,this.nodes.forEach(s1),this.nodes.forEach(rt),this.nodes.forEach(re),this.nodes.forEach(s2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new sX)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tX),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=nK(e)&&!(nK(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;tD.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,r;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=es.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&(tV(r),s(i-250))},tD.setup(r,!0),i=()=>tV(r),sv.hasAnimatedSinceResize&&(sv.hasAnimatedSinceResize=!1,this.nodes.forEach(s7))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||ro,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!sz(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iC(r,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h,e.path)}else e||s7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tV(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(ri),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[ib];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tD,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEac
1h(s3),this.nodes.forEach(s5);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(s6);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(s9),this.nodes.forEach(s8),this.nodes.forEach(sQ),this.nodes.forEach(s0)):this.nodes.forEach(s6),this.clearAllSnapshots();let t=es.now();tj.delta=u(0,1e3/60,t-tj.timestamp),tj.timestamp=t,tj.isProcessing=!0,tR.update.process(tj),tR.preRender.process(tj),tR.render.process(tj),tj.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ei.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(s4),this.sharedNodes.forEach(rn)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tD.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tD.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nz(this.snapshot.measuredBox.x)||nz(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 t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=K()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!sW(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||eG(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),ru((e=n).x),ru(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return K();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rc))){let{scroll:t}=this.root;t&&(e0(e.x,t.offset.x),e0(e.y,t.offset.y))}return e}removeElementScroll(t){let e=K();if(sj(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&sj(e,t),e0(e.x,s.offset.x),e0(e.y,s.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||K();sj(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(e0(n.x,-i.scroll.offset.x),e0(n.y,-i.scroll.offset.y)),eG(i.latestValues)&&e4(n,i.latestValues,i.layout?.layoutBox)}return eG(this.latestValues)&&e4(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=K();sj(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];eG(n.latestValues)&&(n.instance&&(eX(n.latestValues)&&n.updateSnapshot(),sj(i=K(),n.measurePageBox())),sN(e,n.latestValues,n.snapshot?.layoutBox,i))}return eG(this.latestValues)&&sN(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.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!==tj.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=tj.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=K(),this.targetWithTransforms=K()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l,h;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,h=this.options.layoutAnchor||void 0,nH(a.x,o.x,l.x,h?.x),nH(a.y,o.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):sj(this.target,this.layout.layoutBox),eQ(this.target,this.targetDelta)):sj(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||eX(this.parent.latestValues)||eK(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=K(),this.relativeTargetOrigin=K(),nX(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),sj(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tj.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;sj(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let s,r,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){r=(s=i[o]).projectionDelta;let{visualElement:a}=s.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(e0(t.x,-s.scroll.offset.x),e0(t.y,-s.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,eQ(t,r)),n&&eG(s.latestValues)&&e4(t,s.latestValues,s.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=K());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sR(this.prevProjectionDelta.x,this.projectionDelta.x),sR(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nq(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&sq(this.projectionDelta.x,this.prevProjectionDelta.x)&&sq(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=X(),this.projectionDelta=X(),this.projectionDeltaWithTransform=X()}setAnimationOrigin(t,e=!1,i){let n,s=this.snapshot,r=s?s.latestValues:{},a={...this.latestValues},o=X();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=K(),h=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,c=!!(h&&!d&&!0===this.options.crossfade&&!this.path.some(ra));this.animationProgress=0;let p=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,s=p?.(i);if(s?(o.x.translate=s.x,o.x.scale=eW(t.x.scale,1,i),o.x.origin=t.x.origin,o.x.originPoint=t.x.originPoint,o.y.translate=s.y,o.y.scale=eW(t.y.scale,1,i),o.y.origin=t.y.origin,o.y.originPoint=t.y.originPoint):(rs(o.x,t.x,i),rs(o.y,t.y,i)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,m,f,g,y,v;nX(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,g=this.relativeTargetOrigin,y=l,v=i,rr(f.x,g.x,y.x,v),rr(f.y,g.y,y.y,v),n&&(u=this.relativeTarget,m=n,sU(u.x,m.x)&&sU(u.y,m.y))&&(this.isProjectionDirty=!1),n||(n=K()),sj(n,this.relativeTarget)}h&&(this.animationValues=a,function(t,e,i,n,s,r){s?(t.opacity=eW(0,i.opacity??1,sE(n)),t.opacityExit=eW(e.opacity??1,0,sC(n))):r&&(t.opacity=eW(e.opacity??1,i.opacity??1,n));for(let s=0;s<sS;s++){let r=sk[s],a=sM(e,r),o=sM(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||sA(a)===sA(o)?(t[r]=Math.max(eW(sP(a),sP(o),n),0),(S.test(o)||S.test(a))&&(t[r]+="%")):t[r]=o)}(e.rotate||i.rotate)&&(t.rotate=eW(e.rotate||0,i.rotate||0,n))}(a,r,this.latestValues,i,c,d)),s&&void 0!==s.rotate&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=s.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tV(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tD.update(()=>{var e,i,n;let s;sv.hasAnimatedSinceResize=!0,t4.layout++,this.motionValue||(this.motionValue=el(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{t4.layout--},onComplete:()=>{t4.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(s=Z(e)?e:el(e)).start(nC("",s,i,n)),s.animation),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 t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rd(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||K();let e=nz(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nz(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}sj(e,i),e4(e,s),nq(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sH),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&sZ("z",t,n,this.animationValues);for(let e=0;e<sG.length;e++)sZ(`rotate${sG[e]}`,t,n,this.animationValues),sZ(`skew${sG[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=id(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=id(e?.pointerEvents)||""),this.hasProjected&&!eG(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,a=i?.z||0;if((s||r||a)&&(n=`translate3d(${s}px, ${r}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:s,rotateX:r,rotateY:a,skewX:o,skewY:l}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotate(${s}deg) `),r&&(n+=`rotateX(${r}deg) `),a&&(n+=`rotateY(${a}deg) `),o&&(n+=`skewX(${o}deg) `),l&&(n+=`skewY(${l}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(r=i(s,r)),t.transform=r;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,eU){if(void 0===s[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=eU[e],l="none"===r?s[e]:i(s[e],n);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?id(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(s5),this.root.sharedNodes.clear()}}}function sQ(t){t.updateLayout()}function s0(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;if("size"===s)nW(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=nz(n);n.min=i[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";sV(r?e.measuredBox[t]:e.layoutBox[t],i[t])}else rd(s,e.layoutBox,i)&&nW(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],a=nz(i[n]);s.max=s.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=X();nq(a,i,e.layoutBox);let o=X();r?nq(o,t.applyTransform(n,!0),e.measuredBox):nq(o,i,e.layoutBox);let l=!sW(a),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=t.options.layoutAnchor||void 0,o=K();nX(o,e.layoutBox,s.layoutBox,a);let l=K();nX(l,i,r.layoutBox,a),sz(o,l)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function s1(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function s2(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function s4(t){t.clearSnapshot()}function s5(t){t.clearMeasurements()}function s3(t){t.isLayoutDirty=!0,t.updateLayout()}function s6(t){t.isLayoutDirty=!1}function s9(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function s8(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function s7(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rt(t){t.resolveTargetDelta()}function re(t){t.calcProjection()}function ri(t){t.resetSkewAndRotation()}function rn(t){t.removeLeadSnapshot()}function rs(t,e,i){t.translate=eW(e.translate,0,i),t.scale=eW(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rr(t,e,i,n){t.min=eW(e.min,i.min,n),t.max=eW(e.max,i.max,n)}function ra(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ro={duration:.45,ease:[.4,0,.1,1]},rl=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rh=rl("applewebkit/")&&!rl("chrome/")?Math.round:tA;function ru(t){t.min=rh(t.min),t.max=rh(t.max)}function rd(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(sY(e)-sY(i)))}function rc(t){return t!==t.root&&t.scroll?.wasRoot}let rp=sJ({attachResizeListener:(t,e)=>nU(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rm={current:void 0},rf=sJ({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rm.current){let t=new rp({});t.mount(window),t.setOptions({layoutScroll:!0}),rm.current=t}return rm.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rg(t,e){let i=nZ(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function ry(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&tD.postRender(()=>s(e,n7(e)))}let rv=(t,e)=>!!e&&(t===e||rv(t,e.parentElement)),rx=new WeakSet;function rw(t){return e=>{"Enter"===e.key&&t(e)}}function rb(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function rT(t){return n8(t)&&!(n$.x||n$.y)}let rk=new WeakSet;function rS(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&tD.postRender(()=>s(e,n7(e)))}let rP=new WeakMap,rA=new WeakMap,rM=t=>{let e=rP.get(t.target);e&&e(t)},rE=t=>{t.forEach(rM)},rC={some:0,all:1},rD=function(t,e){if("undefined"==typeof Proxy)return iP;let i=new Map,n=(i,n)=>iP(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,iP(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends iA{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nj(t,e,i)));else if("string"==typeof e)n=nj(t,e,i);else{let s="function"==typeof e?iM(t,e,i.custom):e;n=Promise.all(nD(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nN(),n=!0,s=!1,r=e=>(i,n)=>{let s=iM(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function a(a){let{props:o}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<nR;t++){let n=em[t],s=e.props[n];(ec(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},h=[],u=new Set,d={},c=1/0;for(let e=0;e<nF;e++){var p,m;let f=nB[e],g=i[f],y=void 0!==o[f]?o[f]:l[f],v=ec(y),x=f===a?g.isActive:null;!1===x&&(c=e);let w=y===l[f]&&y!==o[f]&&v;if(w&&(n||s)&&t.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...d},!g.isActive&&null===x||!y&&!g.prevProp||ed(y)||"boolean"==typeof y)continue;if("exit"===f&&g.isActive&&!0!==x){g.prevResolvedValues&&(d={...d,...g.prevResolvedValues});continue}let b=(p=g.prevProp,"string"==typeof(m=y)?m!==p:!!Array.isArray(m)&&!nL(m,p)),T=b||f===a&&g.isActive&&!w&&v||e>c&&v,k=!1,S=Array.isArray(y)?y:[y],P=S.reduce(r(f),{});!1===x&&(P={});let{prevResolvedValues:A={}}=g,M={...A,...P},E=e=>{T=!0,u.has(e)&&(k=!0,u.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in M){let e=P[t],i=A[t];if(!d.hasOwnProperty(t))(iD(e)&&iD(i)?!nL(e,i)||b:e!==i)?null!=e?E(t):u.add(t):void 0!==e&&u.has(t)?E(t):g.protectedKeys[t]=!0}g.prevProp=y,g.prevResolvedValues=P,g.isActive&&(d={...d,...P}),(n||s)&&t.blockInitialAnimation&&(T=!1);let C=w&&b,D=!C||k;T&&D&&h.push(...S.map(e=>{let i={type:f};if("string"==typeof e&&(n||s)&&!C&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=iM(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=nV(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof o.initial){let i=iM(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),h.push({animation:e})}let f=!!h.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,s=!1,f?e(h):Promise.resolve()}return{animateChanges:a,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=a(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nN(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();ed(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iA{constructor(){super(...arguments),this.id=nO++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=iM(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends iA{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:a}=i,o={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof r?r:rC[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;rA.has(i)||rA.set(i,{});let n=rA.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(rE,{root:t,...e})),n[s]}(o),rP.set(t,l),e.observe(t),()=>{rP.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iA{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,s,r]=rg(t,i),a=t=>{let n=t.currentTarget;if(!rT(t)||rk.has(t))return;rx.add(n),i.stopPropagation&&rk.add(t);let r=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),rx.has(n)&&rx.delete(n),rT(t)&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||rv(n,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",a,s),nG(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=rw(()=>{if(rx.has(i))return;rb(i,"down");let t=rw(()=>{rb(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rb(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),n6.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(rS(this.node,e,"Start"),(t,{success:e})=>rS(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iA{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ij(nU(this.node.current,"focus",()=>this.onFocus()),nU(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iA{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=rg(t,i);return n.forEach(t=>{let i,n=!1,r=!1,a=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},o=t=>{n=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),r&&(r=!1,a(t))},l=t=>{if("touch"!==t.pointerType){if(n){r=!0;return}a(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||n$.x||n$.y)return;r=!1;let a=e(t,n);"function"==typeof a&&(i=a,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",o,s)},s)}),r}(t,(t,e)=>(ry(this.node,e,"Start"),t=>ry(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iA{constructor(){super(...arguments),this.removePointerDownListener=tA}onPointerDown(t){this.session=new ss(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:se(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:sy(t),onStart:sy(e),onMove:sy(i),onEnd:(t,e)=>{delete this.session,n&&tD.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=st(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iA{constructor(t){super(t),this.removeGroupControls=tA,this.removeListeners=tA,this.controls=new sm(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tA}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:rf,MeasureLayout:sT},layout:{ProjectionNode:rf,MeasureLayout:sT}},(t,e)=>e.isSVG??e8(t)?new eq(e):new e3(e,{allowProjection:t!==e6.Fragment}));function rV(t){return(0,r.jsx)("svg",{viewBox:"0 0 384 512",fill:"
1currentColor","aria-hidden":!0,...t,children:(0,r.jsx)("path",{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})})}function rj(t){return(0,r.jsx)("svg",{viewBox:"0 0 448 512",fill:"currentColor","aria-hidden":!0,...t,children:(0,r.jsx)("path",{d:"M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z"})})}let rR={initial:{opacity:0,y:16},animate:{opacity:1,y:0}};function rL(){return(0,r.jsx)("section",{children:(0,r.jsxs)("div",{className:"container mx-auto px-6",children:[(0,r.jsxs)("div",{className:"mx-auto flex max-w-4xl flex-col items-center pt-16 text-center lg:pt-24",children:[(0,r.jsxs)(rD.h1,{...rR,transition:{duration:.7,ease:[.22,1,.36,1]},className:"text-[2.25rem] leading-[1.15] font-normal tracking-[-0.02em] text-neutral-900 sm:text-5xl sm:leading-[1.12] dark:text-white",children:["Drawing review:",(0,r.jsx)("br",{}),"simple to pick up, smooth to use.",(0,r.jsx)("br",{}),(0,r.jsx)("span",{className:"text-neutral-400 dark:text-neutral-500",children:"Mark up, measure, review â done."})]}),(0,r.jsx)(rD.p,{...rR,transition:{duration:.7,delay:.1,ease:[.22,1,.36,1]},className:"mt-6 max-w-xl text-base leading-relaxed text-neutral-500 sm:text-lg dark:text-neutral-400",children:"Deta Studio is the easy way to review drawings. Redline, dimension, and keep every comment tracked â on your computer, with your team, on any device."}),(0,r.jsxs)(rD.div,{...rR,transition:{duration:.7,delay:.2,ease:[.22,1,.36,1]},className:"mt-9 flex flex-col items-center gap-3 sm:flex-row",children:[(0,r.jsx)(o.default,{href:"/auth/sign-up",className:"inline-flex h-12 items-center justify-center rounded-full bg-neutral-900 px-8 text-sm font-medium text-white transition-colors hover:bg-neutral-700 dark:bg-white dark:text-neutral-900 dark:hover:bg-neutral-200",children:"Start for free"}),(0,r.jsxs)("a",{href:"https://www.deta.studio/download",target:"_blank",rel:"noopener noreferrer",className:"inline-flex h-12 items-center justify-center gap-2.5 rounded-full border border-neutral-200 bg-white px-8 text-sm font-medium text-neutral-900 transition-colors hover:bg-neutral-50 dark:border-neutral-700 dark:bg-neutral-900 dark:text-white dark:hover:bg-neutral-800",children:[(0,r.jsx)(rV,{className:"h-4 w-4"}),(0,r.jsx)(rj,{className:"h-4 w-4"}),"Download the app"]})]}),(0,r.jsx)(rD.p,{...rR,transition:{duration:.7,delay:.28,ease:[.22,1,.36,1]},className:"mt-5 text-xs text-neutral-400 dark:text-neutral-500",children:"Mac, Windows, iPad & mobile · Works offline · No credit card required"})]}),(0,r.jsx)(rD.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.9,delay:.3,ease:[.22,1,.36,1]},className:"mx-auto mt-14 max-w-6xl lg:mt-20",children:(0,r.jsx)("div",{className:"rounded-[2.5rem] bg-neutral-100 p-3 sm:p-5 dark:bg-neutral-900",children:(0,r.jsx)("div",{className:"overflow-hidden rounded-[1.75rem] bg-white shadow-[0_1px_2px_rgba(0,0,0,0.06),0_8px_24px_rgba(0,0,0,0.06)] dark:bg-neutral-800",children:(0,r.jsx)(a.default,{src:"/images/hero-macbook.webp",alt:"Deta Studio reviewing a construction drawing with markups, dimensions, and comments",width:2880,height:1650,priority:!0,className:"h-auto w-full object-contain"})})})})]})})}t.s(["HeroSection",()=>rL],170244)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.