@plyaz/ui 0.6.4 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var pa=Object.defineProperty;var ga=(t,e,n)=>e in t?pa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var be=(t,e,n)=>ga(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react/jsx-runtime"),nr=require("clsx"),ya=require("@radix-ui/react-slot"),k=require("react"),xa=require("@radix-ui/react-select"),Oe=require("lucide-react"),sr=require("next-intl");function va(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const X=va(xa),Ut=({children:t,element:e="div",className:n="",...s})=>{const i=e;return P.jsx(i,{className:n,...s,"data-testid":"box",children:t})},Wn="-",ba=t=>{const e=Ta(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=t;return{getClassGroupId:r=>{const a=r.split(Wn);return a[0]===""&&a.length!==1&&a.shift(),ir(a,e)||wa(r)},getConflictingClassGroupIds:(r,a)=>{const l=n[r]||[];return a&&s[r]?[...l,...s[r]]:l}}},ir=(t,e)=>{var r;if(t.length===0)return e.classGroupId;const n=t[0],s=e.nextPart.get(n),i=s?ir(t.slice(1),s):void 0;if(i)return i;if(e.validators.length===0)return;const o=t.join(Wn);return(r=e.validators.find(({validator:a})=>a(o)))==null?void 0:r.classGroupId},Cs=/^\[(.+)\]$/,wa=t=>{if(Cs.test(t)){const e=Cs.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},Ta=t=>{const{theme:e,classGroups:n}=t,s={nextPart:new Map,validators:[]};for(const i in n)mn(n[i],s,i,e);return s},mn=(t,e,n,s)=>{t.forEach(i=>{if(typeof i=="string"){const o=i===""?e:Es(e,i);o.classGroupId=n;return}if(typeof i=="function"){if(Sa(i)){mn(i(s),e,n,s);return}e.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,r])=>{mn(r,Es(e,o),n,s)})})},Es=(t,e)=>{let n=t;return e.split(Wn).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},Sa=t=>t.isThemeGetter,Pa=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,s=new Map;const i=(o,r)=>{n.set(o,r),e++,e>t&&(e=0,s=n,n=new Map)};return{get(o){let r=n.get(o);if(r!==void 0)return r;if((r=s.get(o))!==void 0)return i(o,r),r},set(o,r){n.has(o)?n.set(o,r):i(o,r)}}},pn="!",gn=":",Aa=gn.length,ka=t=>{const{prefix:e,experimentalParseClassName:n}=t;let s=i=>{const o=[];let r=0,a=0,l=0,u;for(let m=0;m<i.length;m++){let g=i[m];if(r===0&&a===0){if(g===gn){o.push(i.slice(l,m)),l=m+Aa;continue}if(g==="/"){u=m;continue}}g==="["?r++:g==="]"?r--:g==="("?a++:g===")"&&a--}const c=o.length===0?i:i.substring(l),d=Va(c),f=d!==c,h=u&&u>l?u-l:void 0;return{modifiers:o,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}};if(e){const i=e+gn,o=s;s=r=>r.startsWith(i)?o(r.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:r,maybePostfixModifierPosition:void 0}}if(n){const i=s;s=o=>n({className:o,parseClassName:i})}return s},Va=t=>t.endsWith(pn)?t.substring(0,t.length-1):t.startsWith(pn)?t.substring(1):t,Ma=t=>{const e=Object.fromEntries(t.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const i=[];let o=[];return s.forEach(r=>{r[0]==="["||e[r]?(i.push(...o.sort(),r),o=[]):o.push(r)}),i.push(...o.sort()),i}},Ca=t=>({cache:Pa(t.cacheSize),parseClassName:ka(t),sortModifiers:Ma(t),...ba(t)}),Ea=/\s+/,Da=(t,e)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:i,sortModifiers:o}=e,r=[],a=t.trim().split(Ea);let l="";for(let u=a.length-1;u>=0;u-=1){const c=a[u],{isExternal:d,modifiers:f,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:g}=n(c);if(d){l=c+(l.length>0?" "+l:l);continue}let x=!!g,y=s(x?m.substring(0,g):m);if(!y){if(!x){l=c+(l.length>0?" "+l:l);continue}if(y=s(m),!y){l=c+(l.length>0?" "+l:l);continue}x=!1}const S=o(f).join(":"),v=h?S+pn:S,M=v+y;if(r.includes(M))continue;r.push(M);const A=i(y,x);for(let E=0;E<A.length;++E){const R=A[E];r.push(v+R)}l=c+(l.length>0?" "+l:l)}return l};function Ra(){let t=0,e,n,s="";for(;t<arguments.length;)(e=arguments[t++])&&(n=rr(e))&&(s&&(s+=" "),s+=n);return s}const rr=t=>{if(typeof t=="string")return t;let e,n="";for(let s=0;s<t.length;s++)t[s]&&(e=rr(t[s]))&&(n&&(n+=" "),n+=e);return n};function La(t,...e){let n,s,i,o=r;function r(l){const u=e.reduce((c,d)=>d(c),t());return n=Ca(u),s=n.cache.get,i=n.cache.set,o=a,a(l)}function a(l){const u=s(l);if(u)return u;const c=Da(l,n);return i(l,c),c}return function(){return o(Ra.apply(null,arguments))}}const O=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},or=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ar=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ia=/^\d+\/\d+$/,ja=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Fa=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Na=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ba=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Oa=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dt=t=>Ia.test(t),C=t=>!!t&&!Number.isNaN(Number(t)),ht=t=>!!t&&Number.isInteger(Number(t)),Xe=t=>t.endsWith("%")&&C(t.slice(0,-1)),dt=t=>ja.test(t),za=()=>!0,Wa=t=>Fa.test(t)&&!Na.test(t),lr=()=>!1,Ua=t=>Ba.test(t),_a=t=>Oa.test(t),$a=t=>!b(t)&&!w(t),Ga=t=>_t(t,dr,lr),b=t=>or.test(t),bt=t=>_t(t,fr,Wa),Ye=t=>_t(t,qa,C),Ds=t=>_t(t,cr,lr),Ka=t=>_t(t,ur,_a),we=t=>_t(t,hr,Ua),w=t=>ar.test(t),qt=t=>$t(t,fr),Ha=t=>$t(t,Za),Rs=t=>$t(t,cr),Xa=t=>$t(t,dr),Ya=t=>$t(t,ur),Te=t=>$t(t,hr,!0),_t=(t,e,n)=>{const s=or.exec(t);return s?s[1]?e(s[1]):n(s[2]):!1},$t=(t,e,n=!1)=>{const s=ar.exec(t);return s?s[1]?e(s[1]):n:!1},cr=t=>t==="position"||t==="percentage",ur=t=>t==="image"||t==="url",dr=t=>t==="length"||t==="size"||t==="bg-size",fr=t=>t==="length",qa=t=>t==="number",Za=t=>t==="family-name",hr=t=>t==="shadow",Ja=()=>{const t=O("color"),e=O("font"),n=O("text"),s=O("font-weight"),i=O("tracking"),o=O("leading"),r=O("breakpoint"),a=O("container"),l=O("spacing"),u=O("radius"),c=O("shadow"),d=O("inset-shadow"),f=O("text-shadow"),h=O("drop-shadow"),m=O("blur"),g=O("perspective"),x=O("aspect"),y=O("ease"),S=O("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...M(),w,b],E=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],p=()=>[w,b,l],L=()=>[Dt,"full","auto",...p()],G=()=>[ht,"none","subgrid",w,b],ut=()=>["auto",{span:["full",ht,w,b]},ht,w,b],xt=()=>[ht,"auto",w,b],pe=()=>["auto","min","max","fr",w,b],Mt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],vt=()=>["start","end","center","stretch","center-safe","end-safe"],ot=()=>["auto",...p()],I=()=>[Dt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...p()],T=()=>[t,w,b],Ct=()=>[...M(),Rs,Ds,{position:[w,b]}],Et=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ks=()=>["auto","cover","contain",Xa,Ga,{size:[w,b]}],Ke=()=>[Xe,qt,bt],K=()=>["","none","full",u,w,b],Z=()=>["",C,qt,bt],ge=()=>["solid","dashed","dotted","double"],Vs=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>[C,Xe,Rs,Ds],Ms=()=>["","none",m,w,b],ye=()=>["none",C,w,b],xe=()=>["none",C,w,b],He=()=>[C,w,b],ve=()=>[Dt,"full",...p()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[dt],breakpoint:[dt],color:[za],container:[dt],"drop-shadow":[dt],ease:["in","out","in-out"],font:[$a],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[dt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[dt],shadow:[dt],spacing:["px",C],text:[dt],"text-shadow":[dt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Dt,b,w,x]}],container:["container"],columns:[{columns:[C,b,w,a]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:A()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[ht,"auto",w,b]}],basis:[{basis:[Dt,"full","auto",a,...p()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[C,Dt,"auto","initial","none",b]}],grow:[{grow:["",C,w,b]}],shrink:[{shrink:["",C,w,b]}],order:[{order:[ht,"first","last","none",w,b]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:ut()}],"col-start":[{"col-start":xt()}],"col-end":[{"col-end":xt()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:ut()}],"row-start":[{"row-start":xt()}],"row-end":[{"row-end":xt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":pe()}],"auto-rows":[{"auto-rows":pe()}],gap:[{gap:p()}],"gap-x":[{"gap-x":p()}],"gap-y":[{"gap-y":p()}],"justify-content":[{justify:[...Mt(),"normal"]}],"justify-items":[{"justify-items":[...vt(),"normal"]}],"justify-self":[{"justify-self":["auto",...vt()]}],"align-content":[{content:["normal",...Mt()]}],"align-items":[{items:[...vt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...vt(),{baseline:["","last"]}]}],"place-content":[{"place-content":Mt()}],"place-items":[{"place-items":[...vt(),"baseline"]}],"place-self":[{"place-self":["auto",...vt()]}],p:[{p:p()}],px:[{px:p()}],py:[{py:p()}],ps:[{ps:p()}],pe:[{pe:p()}],pt:[{pt:p()}],pr:[{pr:p()}],pb:[{pb:p()}],pl:[{pl:p()}],m:[{m:ot()}],mx:[{mx:ot()}],my:[{my:ot()}],ms:[{ms:ot()}],me:[{me:ot()}],mt:[{mt:ot()}],mr:[{mr:ot()}],mb:[{mb:ot()}],ml:[{ml:ot()}],"space-x":[{"space-x":p()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":p()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],w:[{w:[a,"screen",...I()]}],"min-w":[{"min-w":[a,"screen","none",...I()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[r]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",n,qt,bt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,w,Ye]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Xe,b]}],"font-family":[{font:[Ha,b,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,w,b]}],"line-clamp":[{"line-clamp":[C,"none",w,Ye]}],leading:[{leading:[o,...p()]}],"list-image":[{"list-image":["none",w,b]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",w,b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[C,"from-font","auto",w,bt]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[C,"auto",w,b]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",w,b]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",w,b]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ct()}],"bg-repeat":[{bg:Et()}],"bg-size":[{bg:ks()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ht,w,b],radial:["",w,b],conic:[ht,w,b]},Ya,Ka]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:Ke()}],"gradient-via-pos":[{via:Ke()}],"gradient-to-pos":[{to:Ke()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[C,w,b]}],"outline-w":[{outline:["",C,qt,bt]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",c,Te,we]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",d,Te,we]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[C,bt]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",f,Te,we]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[C,w,b]}],"mix-blend":[{"mix-blend":[...Vs(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Vs()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[C]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[w,b]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[C]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ct()}],"mask-repeat":[{mask:Et()}],"mask-size":[{mask:ks()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",w,b]}],filter:[{filter:["","none",w,b]}],blur:[{blur:Ms()}],brightness:[{brightness:[C,w,b]}],contrast:[{contrast:[C,w,b]}],"drop-shadow":[{"drop-shadow":["","none",h,Te,we]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",C,w,b]}],"hue-rotate":[{"hue-rotate":[C,w,b]}],invert:[{invert:["",C,w,b]}],saturate:[{saturate:[C,w,b]}],sepia:[{sepia:["",C,w,b]}],"backdrop-filter":[{"backdrop-filter":["","none",w,b]}],"backdrop-blur":[{"backdrop-blur":Ms()}],"backdrop-brightness":[{"backdrop-brightness":[C,w,b]}],"backdrop-contrast":[{"backdrop-contrast":[C,w,b]}],"backdrop-grayscale":[{"backdrop-grayscale":["",C,w,b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C,w,b]}],"backdrop-invert":[{"backdrop-invert":["",C,w,b]}],"backdrop-opacity":[{"backdrop-opacity":[C,w,b]}],"backdrop-saturate":[{"backdrop-saturate":[C,w,b]}],"backdrop-sepia":[{"backdrop-sepia":["",C,w,b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":p()}],"border-spacing-x":[{"border-spacing-x":p()}],"border-spacing-y":[{"border-spacing-y":p()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",w,b]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[C,"initial",w,b]}],ease:[{ease:["linear","initial",y,w,b]}],delay:[{delay:[C,w,b]}],animate:[{animate:["none",S,w,b]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,w,b]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:xe()}],"scale-x":[{"scale-x":xe()}],"scale-y":[{"scale-y":xe()}],"scale-z":[{"scale-z":xe()}],"scale-3d":["scale-3d"],skew:[{skew:He()}],"skew-x":[{"skew-x":He()}],"skew-y":[{"skew-y":He()}],transform:[{transform:[w,b,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",w,b]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",w,b]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[C,qt,bt,Ye]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Qa=La(Ja);function _(...t){return Qa(nr.clsx(t))}const tl=({className:t="",children:e,element:n,...s})=>P.jsx(Ut,{element:n,className:_("mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",t),...s,children:e}),Ls=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Is=nr.clsx,el=(t,e)=>n=>{var s;if((e==null?void 0:e.variants)==null)return Is(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=e,r=Object.keys(i).map(u=>{const c=n==null?void 0:n[u],d=o==null?void 0:o[u];if(c===null)return null;const f=Ls(c)||Ls(d);return i[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=e==null||(s=e.compoundVariants)===null||s===void 0?void 0:s.reduce((u,c)=>{let{class:d,className:f,...h}=c;return Object.entries(h).every(m=>{let[g,x]=m;return Array.isArray(x)?x.includes({...o,...a}[g]):{...o,...a}[g]===x})?[...u,d,f]:u},[]);return Is(t,r,l,n==null?void 0:n.class,n==null?void 0:n.className)},mr={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},pr={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},nl={body:"font-sans",heading:"font-sans",caption:"font-sans"},sl={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl","5xl":"text-5xl","6xl":"text-6xl","7xl":"text-7xl","8xl":"text-8xl","9xl":"text-9xl"},il={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",light:"font-light"},rl={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9"},ol={1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",7:"grid-rows-7",8:"grid-rows-8",9:"grid-rows-9"},gr={1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",7:"gap-7",8:"gap-8",9:"gap-9"},al=el("inline-flex justify-center items-center gap-2 disabled:opacity-50 aria-invalid:border-destructive focus-visible:border-ring rounded-md outline-none aria-invalid:ring-destructive/20 focus-visible:ring-[3px] focus-visible:ring-ring/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 font-medium text-sm whitespace-nowrap transition-all [&_svg]:pointer-events-none disabled:pointer-events-none shrink-0 [&_svg]:shrink-0",{variants:{variant:{default:`
1
+ "use strict";var ft=Object.defineProperty;var bt=(e,t,r)=>t in e?ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var se=(e,t,r)=>bt(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),Fe=require("clsx"),xt=require("@radix-ui/react-slot"),Ve=require("react"),ht=require("@radix-ui/react-select"),le=require("lucide-react"),De=require("next-intl");function vt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const k=vt(ht),W=({children:e,element:t="div",className:r="",...o})=>{const s=t;return d.jsx(s,{className:r,...o,"data-testid":"box",children:e})},ye="-",wt=e=>{const t=kt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{const p=a.split(ye);return p[0]===""&&p.length!==1&&p.shift(),Oe(p,t)||yt(a)},getConflictingClassGroupIds:(a,p)=>{const u=r[a]||[];return p&&o[a]?[...u,...o[a]]:u}}},Oe=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),s=o?Oe(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;const n=e.join(ye);return(a=t.validators.find(({validator:p})=>p(n)))==null?void 0:a.classGroupId},Re=/^\[(.+)\]$/,yt=e=>{if(Re.test(e)){const t=Re.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},kt=e=>{const{theme:t,classGroups:r}=e,o={nextPart:new Map,validators:[]};for(const s in r)xe(r[s],o,s,t);return o},xe=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){const n=s===""?t:Le(t,s);n.classGroupId=r;return}if(typeof s=="function"){if(St(s)){xe(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([n,a])=>{xe(a,Le(t,n),r,o)})})},Le=(e,t)=>{let r=e;return t.split(ye).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},St=e=>e.isThemeGetter,zt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const s=(n,a)=>{r.set(n,a),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let a=r.get(n);if(a!==void 0)return a;if((a=o.get(n))!==void 0)return s(n,a),a},set(n,a){r.has(n)?r.set(n,a):s(n,a)}}},he="!",ve=":",jt=ve.length,Nt=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=s=>{const n=[];let a=0,p=0,u=0,f;for(let z=0;z<s.length;z++){let j=s[z];if(a===0&&p===0){if(j===ve){n.push(s.slice(u,z)),u=z+jt;continue}if(j==="/"){f=z;continue}}j==="["?a++:j==="]"?a--:j==="("?p++:j===")"&&p--}const b=n.length===0?s:s.substring(u),S=Pt(b),P=S!==b,T=f&&f>u?f-u:void 0;return{modifiers:n,hasImportantModifier:P,baseClassName:S,maybePostfixModifierPosition:T}};if(t){const s=t+ve,n=o;o=a=>a.startsWith(s)?n(a.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(r){const s=o;o=n=>r({className:n,parseClassName:s})}return o},Pt=e=>e.endsWith(he)?e.substring(0,e.length-1):e.startsWith(he)?e.substring(1):e,At=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const s=[];let n=[];return o.forEach(a=>{a[0]==="["||t[a]?(s.push(...n.sort(),a),n=[]):n.push(a)}),s.push(...n.sort()),s}},Ct=e=>({cache:zt(e.cacheSize),parseClassName:Nt(e),sortModifiers:At(e),...wt(e)}),It=/\s+/,Mt=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:n}=t,a=[],p=e.trim().split(It);let u="";for(let f=p.length-1;f>=0;f-=1){const b=p[f],{isExternal:S,modifiers:P,hasImportantModifier:T,baseClassName:z,maybePostfixModifierPosition:j}=r(b);if(S){u=b+(u.length>0?" "+u:u);continue}let C=!!j,E=o(C?z.substring(0,j):z);if(!E){if(!C){u=b+(u.length>0?" "+u:u);continue}if(E=o(z),!E){u=b+(u.length>0?" "+u:u);continue}C=!1}const Z=n(P).join(":"),J=T?Z+he:Z,D=J+E;if(a.includes(D))continue;a.push(D);const O=s(E,C);for(let _=0;_<O.length;++_){const Q=O[_];a.push(J+Q)}u=b+(u.length>0?" "+u:u)}return u};function Rt(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Be(t))&&(o&&(o+=" "),o+=r);return o}const Be=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Be(e[o]))&&(r&&(r+=" "),r+=t);return r};function Lt(e,...t){let r,o,s,n=a;function a(u){const f=t.reduce((b,S)=>S(b),e());return r=Ct(f),o=r.cache.get,s=r.cache.set,n=p,p(u)}function p(u){const f=o(u);if(f)return f;const b=Mt(u,r);return s(u,b),b}return function(){return n(Rt.apply(null,arguments))}}const x=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},$e=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ue=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Tt=/^\d+\/\d+$/,Et=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_t=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Gt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ft=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$=e=>Tt.test(e),g=e=>!!e&&!Number.isNaN(Number(e)),L=e=>!!e&&Number.isInteger(Number(e)),pe=e=>e.endsWith("%")&&g(e.slice(0,-1)),R=e=>Et.test(e),Dt=()=>!0,Ot=e=>_t.test(e)&&!Gt.test(e),We=()=>!1,Bt=e=>Ft.test(e),$t=e=>Vt.test(e),Ut=e=>!i(e)&&!l(e),Wt=e=>q(e,He,We),i=e=>$e.test(e),F=e=>q(e,Je,Ot),ge=e=>q(e,Qt,g),Te=e=>q(e,qe,We),qt=e=>q(e,Ke,$t),ne=e=>q(e,Qe,Bt),l=e=>Ue.test(e),X=e=>K(e,Je),Kt=e=>K(e,Xt),Ee=e=>K(e,qe),Ht=e=>K(e,He),Jt=e=>K(e,Ke),ae=e=>K(e,Qe,!0),q=(e,t,r)=>{const o=$e.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},K=(e,t,r=!1)=>{const o=Ue.exec(e);return o?o[1]?t(o[1]):r:!1},qe=e=>e==="position"||e==="percentage",Ke=e=>e==="image"||e==="url",He=e=>e==="length"||e==="size"||e==="bg-size",Je=e=>e==="length",Qt=e=>e==="number",Xt=e=>e==="family-name",Qe=e=>e==="shadow",Zt=()=>{const e=x("color"),t=x("font"),r=x("text"),o=x("font-weight"),s=x("tracking"),n=x("leading"),a=x("breakpoint"),p=x("container"),u=x("spacing"),f=x("radius"),b=x("shadow"),S=x("inset-shadow"),P=x("text-shadow"),T=x("drop-shadow"),z=x("blur"),j=x("perspective"),C=x("aspect"),E=x("ease"),Z=x("animate"),J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...D(),l,i],_=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto","contain","none"],m=()=>[l,i,u],I=()=>[$,"full","auto",...m()],ze=()=>[L,"none","subgrid",l,i],je=()=>["auto",{span:["full",L,l,i]},L,l,i],Y=()=>[L,"auto",l,i],Ne=()=>["auto","min","max","fr",l,i],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...m()],G=()=>[$,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...m()],c=()=>[e,l,i],Pe=()=>[...D(),Ee,Te,{position:[l,i]}],Ae=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ce=()=>["auto","cover","contain",Ht,Wt,{size:[l,i]}],ue=()=>[pe,X,F],y=()=>["","none","full",f,l,i],N=()=>["",g,X,F],ee=()=>["solid","dashed","dotted","double"],Ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],h=()=>[g,pe,Ee,Te],Me=()=>["","none",z,l,i],te=()=>["none",g,l,i],re=()=>["none",g,l,i],me=()=>[g,l,i],oe=()=>[$,"full",...m()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[R],breakpoint:[R],color:[Dt],container:[R],"drop-shadow":[R],ease:["in","out","in-out"],font:[Ut],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[R],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[R],shadow:[R],spacing:["px",g],text:[R],"text-shadow":[R],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$,i,l,C]}],container:["container"],columns:[{columns:[g,i,l,p]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[L,"auto",l,i]}],basis:[{basis:[$,"full","auto",p,...m()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[g,$,"auto","initial","none",i]}],grow:[{grow:["",g,l,i]}],shrink:[{shrink:["",g,l,i]}],order:[{order:[L,"first","last","none",l,i]}],"grid-cols":[{"grid-cols":ze()}],"col-start-end":[{col:je()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":ze()}],"row-start-end":[{row:je()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ne()}],"auto-rows":[{"auto-rows":Ne()}],gap:[{gap:m()}],"gap-x":[{"gap-x":m()}],"gap-y":[{"gap-y":m()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...B(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...B(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:m()}],px:[{px:m()}],py:[{py:m()}],ps:[{ps:m()}],pe:[{pe:m()}],pt:[{pt:m()}],pr:[{pr:m()}],pb:[{pb:m()}],pl:[{pl:m()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":m()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":m()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[p,"screen",...G()]}],"min-w":[{"min-w":[p,"screen","none",...G()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[a]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",r,X,F]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,l,ge]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pe,i]}],"font-family":[{font:[Kt,i,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,l,i]}],"line-clamp":[{"line-clamp":[g,"none",l,ge]}],leading:[{leading:[n,...m()]}],"list-image":[{"list-image":["none",l,i]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",l,i]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[g,"from-font","auto",l,F]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[g,"auto",l,i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l,i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l,i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Pe()}],"bg-repeat":[{bg:Ae()}],"bg-size":[{bg:Ce()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},L,l,i],radial:["",l,i],conic:[L,l,i]},Jt,qt]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:ue()}],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:y()}],"rounded-s":[{"rounded-s":y()}],"rounded-e":[{"rounded-e":y()}],"rounded-t":[{"rounded-t":y()}],"rounded-r":[{"rounded-r":y()}],"rounded-b":[{"rounded-b":y()}],"rounded-l":[{"rounded-l":y()}],"rounded-ss":[{"rounded-ss":y()}],"rounded-se":[{"rounded-se":y()}],"rounded-ee":[{"rounded-ee":y()}],"rounded-es":[{"rounded-es":y()}],"rounded-tl":[{"rounded-tl":y()}],"rounded-tr":[{"rounded-tr":y()}],"rounded-br":[{"rounded-br":y()}],"rounded-bl":[{"rounded-bl":y()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":N()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":c()}],"border-color-t":[{"border-t":c()}],"border-color-r":[{"border-r":c()}],"border-color-b":[{"border-b":c()}],"border-color-l":[{"border-l":c()}],"divide-color":[{divide:c()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[g,l,i]}],"outline-w":[{outline:["",g,X,F]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","none",b,ae,ne]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",S,ae,ne]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[g,F]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",P,ae,ne]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[g,l,i]}],"mix-blend":[{"mix-blend":[...Ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[g]}],"mask-image-linear-from-pos":[{"mask-linear-from":h()}],"mask-image-linear-to-pos":[{"mask-linear-to":h()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":h()}],"mask-image-t-to-pos":[{"mask-t-to":h()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":h()}],"mask-image-r-to-pos":[{"mask-r-to":h()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":h()}],"mask-image-b-to-pos":[{"mask-b-to":h()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":h()}],"mask-image-l-to-pos":[{"mask-l-to":h()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":h()}],"mask-image-x-to-pos":[{"mask-x-to":h()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":h()}],"mask-image-y-to-pos":[{"mask-y-to":h()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[l,i]}],"mask-image-radial-from-pos":[{"mask-radial-from":h()}],"mask-image-radial-to-pos":[{"mask-radial-to":h()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[g]}],"mask-image-conic-from-pos":[{"mask-conic-from":h()}],"mask-image-conic-to-pos":[{"mask-conic-to":h()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Pe()}],"mask-repeat":[{mask:Ae()}],"mask-size":[{mask:Ce()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",l,i]}],filter:[{filter:["","none",l,i]}],blur:[{blur:Me()}],brightness:[{brightness:[g,l,i]}],contrast:[{contrast:[g,l,i]}],"drop-shadow":[{"drop-shadow":["","none",T,ae,ne]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",g,l,i]}],"hue-rotate":[{"hue-rotate":[g,l,i]}],invert:[{invert:["",g,l,i]}],saturate:[{saturate:[g,l,i]}],sepia:[{sepia:["",g,l,i]}],"backdrop-filter":[{"backdrop-filter":["","none",l,i]}],"backdrop-blur":[{"backdrop-blur":Me()}],"backdrop-brightness":[{"backdrop-brightness":[g,l,i]}],"backdrop-contrast":[{"backdrop-contrast":[g,l,i]}],"backdrop-grayscale":[{"backdrop-grayscale":["",g,l,i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g,l,i]}],"backdrop-invert":[{"backdrop-invert":["",g,l,i]}],"backdrop-opacity":[{"backdrop-opacity":[g,l,i]}],"backdrop-saturate":[{"backdrop-saturate":[g,l,i]}],"backdrop-sepia":[{"backdrop-sepia":["",g,l,i]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":m()}],"border-spacing-x":[{"border-spacing-x":m()}],"border-spacing-y":[{"border-spacing-y":m()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",l,i]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[g,"initial",l,i]}],ease:[{ease:["linear","initial",E,l,i]}],delay:[{delay:[g,l,i]}],animate:[{animate:["none",Z,l,i]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,l,i]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[l,i,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l,i]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l,i]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[g,X,F,ge]}],stroke:[{stroke:["none",...c()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Yt=Lt(Zt);function w(...e){return Yt(Fe.clsx(e))}const er=({className:e="",children:t,element:r,...o})=>d.jsx(W,{element:r,className:w("mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",e),...o,children:t}),_e=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ge=Fe.clsx,tr=(e,t)=>r=>{var o;if((t==null?void 0:t.variants)==null)return Ge(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:n}=t,a=Object.keys(s).map(f=>{const b=r==null?void 0:r[f],S=n==null?void 0:n[f];if(b===null)return null;const P=_e(b)||_e(S);return s[f][P]}),p=r&&Object.entries(r).reduce((f,b)=>{let[S,P]=b;return P===void 0||(f[S]=P),f},{}),u=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((f,b)=>{let{class:S,className:P,...T}=b;return Object.entries(T).every(z=>{let[j,C]=z;return Array.isArray(C)?C.includes({...n,...p}[j]):{...n,...p}[j]===C})?[...f,S,P]:f},[]);return Ge(e,a,u,r==null?void 0:r.class,r==null?void 0:r.className)},Xe={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},Ze={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},rr={body:"font-sans",heading:"font-sans",caption:"font-sans"},or={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl","5xl":"text-5xl","6xl":"text-6xl","7xl":"text-7xl","8xl":"text-8xl","9xl":"text-9xl"},sr={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",light:"font-light"},nr={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9"},ar={1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",7:"grid-rows-7",8:"grid-rows-8",9:"grid-rows-9"},Ye={1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",7:"gap-7",8:"gap-8",9:"gap-9"},ir=tr("inline-flex justify-center items-center gap-2 disabled:opacity-50 aria-invalid:border-destructive focus-visible:border-ring rounded-md outline-none aria-invalid:ring-destructive/20 focus-visible:ring-[3px] focus-visible:ring-ring/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 font-medium text-sm whitespace-nowrap transition-all [&_svg]:pointer-events-none disabled:pointer-events-none shrink-0 [&_svg]:shrink-0",{variants:{variant:{default:`
2
2
  bg-primary text-primary-foreground shadow-xs
3
3
  hover:bg-primary/90
4
4
  `,destructive:`
@@ -28,7 +28,7 @@
28
28
  `,lg:`
29
29
  h-10 rounded-md px-6
30
30
  has-[>svg]:px-4
31
- `,icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),ll={row:"flex-row",col:"flex-col",row_reverse:"flex-row-reverse",col_reverse:"flex-col-reverse"},cl={wrap:"flex-wrap",nowrap:"flex-nowrap",wrap_reverse:"flex-wrap-reverse"},ul=({children:t,gap:e,direction:n,justify:s,align:i,wrap:o,className:r="",element:a,...l})=>P.jsx(Ut,{element:a,className:_("flex",n&&ll[n],s&&mr[s],i&&pr[i],o&&cl[o],e&&gr[e],r),...l,children:t}),dl=({children:t,className:e,cols:n,rows:s,gap:i,justify:o,align:r,element:a,...l})=>P.jsx(Ut,{element:a,className:_("grid",n&&rl[n],s&&ol[s],i&&gr[i],o&&mr[o],r&&pr[r],e),...l,children:t}),fl={xs:"xs",sm:"sm",base:"base",lg:"lg",xl:"xl","2xl":"2xl","3xl":"3xl","4xl":"4xl"},hl=({children:t,element:e,className:n,size:s,...i})=>P.jsx(Gt,{className:n,element:e,size:fl[s],variant:"heading",weight:"medium",...i,children:t}),ml=({children:t,className:e,href:n,...s})=>P.jsx("a",{"data-testid":"link",href:n,rel:"noopener noreferrer",target:"_blank",className:_("focus:outline-none text-blue-600 active:text-blue-900 visited:text-purple-600 hover:underline",e),...s,children:t}),pl={xs:"xs",sm:"sm",base:"base",lg:"lg"},gl=({children:t,className:e,size:n,...s})=>P.jsx(Gt,{className:e,element:"p",size:pl[n],variant:"body",weight:"normal",...s,children:t}),yl=({className:t="",children:e,...n})=>P.jsx(Ut,{element:"section",className:t,...n,children:e}),xl=({children:t,direction:e="horizontal",spacing:n="space-x-2",element:s,className:i,...o})=>{const r=e==="vertical"?"flex-col":"flex-row";return P.jsx(Ut,{className:_("flex",r,n,i),element:s,...o,children:t})},Gt=({className:t,children:e,element:n,weight:s,variant:i,size:o,...r})=>{const a=n;return P.jsx(a,{"data-testid":"text",className:_("font-normal text-base",o&&sl[o],s&&il[s],i&&nl[i],t),...r,children:e})};function vl({className:t,variant:e,size:n,asChild:s=!1,...i}){const o=s?ya.Slot:"button";return P.jsx(o,{"data-slot":"button",className:_(al({variant:e,size:n,className:t})),...i,"data-testid":"button"})}function bl({className:t,type:e,...n}){return P.jsx("input",{type:e,"data-slot":"input",className:_(`
31
+ `,icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),lr={row:"flex-row",col:"flex-col",row_reverse:"flex-row-reverse",col_reverse:"flex-col-reverse"},cr={wrap:"flex-wrap",nowrap:"flex-nowrap",wrap_reverse:"flex-wrap-reverse"},dr=({children:e,gap:t,direction:r,justify:o,align:s,wrap:n,className:a="",element:p,...u})=>d.jsx(W,{element:p,className:w("flex",r&&lr[r],o&&Xe[o],s&&Ze[s],n&&cr[n],t&&Ye[t],a),...u,children:e}),ur=({children:e,className:t,cols:r,rows:o,gap:s,justify:n,align:a,element:p,...u})=>d.jsx(W,{element:p,className:w("grid",r&&nr[r],o&&ar[o],s&&Ye[s],n&&Xe[n],a&&Ze[a],t),...u,children:e}),mr={xs:"xs",sm:"sm",base:"base",lg:"lg",xl:"xl","2xl":"2xl","3xl":"3xl","4xl":"4xl"},pr=({children:e,element:t,className:r,size:o,...s})=>d.jsx(H,{className:r,element:t,size:mr[o],variant:"heading",weight:"medium",...s,children:e}),gr=({children:e,className:t,href:r,...o})=>d.jsx("a",{"data-testid":"link",href:r,rel:"noopener noreferrer",target:"_blank",className:w("focus:outline-none text-blue-600 active:text-blue-900 visited:text-purple-600 hover:underline",t),...o,children:e}),fr={xs:"xs",sm:"sm",base:"base",lg:"lg"},br=({children:e,className:t,size:r,...o})=>d.jsx(H,{className:t,element:"p",size:fr[r],variant:"body",weight:"normal",...o,children:e}),xr=({className:e="",children:t,...r})=>d.jsx(W,{element:"section",className:e,...r,children:t}),hr=({children:e,direction:t="horizontal",spacing:r="space-x-2",element:o,className:s,...n})=>{const a=t==="vertical"?"flex-col":"flex-row";return d.jsx(W,{className:w("flex",a,r,s),element:o,...n,children:e})},H=({className:e,children:t,element:r,weight:o,variant:s,size:n,...a})=>{const p=r;return d.jsx(p,{"data-testid":"text",className:w("font-normal text-base",n&&or[n],o&&sr[o],s&&rr[s],e),...a,children:t})};function vr({className:e,variant:t,size:r,asChild:o=!1,...s}){const n=o?xt.Slot:"button";return d.jsx(n,{"data-slot":"button",className:w(ir({variant:t,size:r,className:e})),...s,"data-testid":"button"})}function wr({className:e,type:t,...r}){return d.jsx("input",{type:t,"data-slot":"input",className:w(`
32
32
  flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent
33
33
  px-3 py-1 text-base shadow-xs transition-[color,box-shadow]
34
34
  outline-none
@@ -46,13 +46,13 @@
46
46
  `,`
47
47
  aria-invalid:border-destructive aria-invalid:ring-destructive/20
48
48
  dark:aria-invalid:ring-destructive/40
49
- `,t),...n,"data-testid":"input"})}const yr=k.memo(({children:t,className:e="",colors:n=["#FF0080","#7928CA","#0070F3","#38bdf8"],speed:s=1})=>{const i={backgroundImage:`linear-gradient(135deg, ${n.join(", ")}, ${n[0]})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",animationDuration:`${10/s}s`};return P.jsxs("span",{className:`
49
+ `,e),...r,"data-testid":"input"})}const et=Ve.memo(({children:e,className:t="",colors:r=["#FF0080","#7928CA","#0070F3","#38bdf8"],speed:o=1})=>{const s={backgroundImage:`linear-gradient(135deg, ${r.join(", ")}, ${r[0]})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",animationDuration:`${10/o}s`};return d.jsxs("span",{className:`
50
50
  relative inline-block
51
- ${e}
52
- `,"data-testid":"auroraText",children:[P.jsx("span",{className:"sr-only",children:t}),P.jsx("span",{className:`
51
+ ${t}
52
+ `,"data-testid":"auroraText",children:[d.jsx("span",{className:"sr-only",children:e}),d.jsx("span",{className:`
53
53
  relative animate-aurora bg-clip-text text-transparent
54
54
  bg-[length:200%_auto]
55
- `,style:i,"aria-hidden":"true",children:t})]})});yr.displayName="AuroraText";function xr({...t}){return P.jsx(X.Root,{"data-slot":"select",...t})}function wl({...t}){return P.jsx(X.Group,{"data-slot":"select-group",...t})}function vr({...t}){return P.jsx(X.Value,{"data-slot":"select-value",...t})}function br({className:t,size:e="default",children:n,...s}){return P.jsxs(X.Trigger,{"data-slot":"select-trigger","data-size":e,className:_(`
55
+ `,style:s,"aria-hidden":"true",children:e})]})});et.displayName="AuroraText";function tt({...e}){return d.jsx(k.Root,{"data-slot":"select",...e})}function yr({...e}){return d.jsx(k.Group,{"data-slot":"select-group",...e})}function rt({...e}){return d.jsx(k.Value,{"data-slot":"select-value",...e})}function ot({className:e,size:t="default",children:r,...o}){return d.jsxs(k.Trigger,{"data-slot":"select-trigger","data-size":t,className:w(`
56
56
  flex w-fit items-center justify-between gap-2 rounded-md border
57
57
  border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap
58
58
  shadow-xs transition-[color,box-shadow] outline-none
@@ -72,7 +72,7 @@
72
72
  [&_svg]:pointer-events-none [&_svg]:shrink-0
73
73
  [&_svg:not([class*='size-'])]:size-4
74
74
  [&_svg:not([class*='text-'])]:text-muted-foreground
75
- `,t),...s,children:[n,P.jsx(X.Icon,{asChild:!0,children:P.jsx(Oe.ChevronDownIcon,{className:"size-4 opacity-50"})})]})}function wr({className:t,children:e,position:n="popper",...s}){return P.jsx(X.Portal,{"data-testid":"select",children:P.jsxs(X.Content,{"data-slot":"select-content",className:_(`
75
+ `,e),...o,children:[r,d.jsx(k.Icon,{asChild:!0,children:d.jsx(le.ChevronDownIcon,{className:"size-4 opacity-50"})})]})}function st({className:e,children:t,position:r="popper",...o}){return d.jsx(k.Portal,{"data-testid":"select",children:d.jsxs(k.Content,{"data-slot":"select-content",className:w(`
76
76
  relative z-50 max-h-(--radix-select-content-available-height)
77
77
  min-w-[8rem] origin-(--radix-select-content-transform-origin)
78
78
  overflow-x-hidden overflow-y-auto rounded-md border bg-popover
@@ -85,15 +85,15 @@
85
85
  data-[state=closed]:zoom-out-95
86
86
  data-[state=open]:animate-in data-[state=open]:fade-in-0
87
87
  data-[state=open]:zoom-in-95
88
- `,n==="popper"&&`
88
+ `,r==="popper"&&`
89
89
  data-[side=bottom]:translate-y-1
90
90
  data-[side=left]:-translate-x-1
91
91
  data-[side=right]:translate-x-1
92
92
  data-[side=top]:-translate-y-1
93
- `,t),position:n,...s,children:[P.jsx(Sr,{}),P.jsx(X.Viewport,{className:_("p-1",n==="popper"&&`
93
+ `,e),position:r,...o,children:[d.jsx(at,{}),d.jsx(k.Viewport,{className:w("p-1",r==="popper"&&`
94
94
  h-[var(--radix-select-trigger-height)] w-full
95
95
  min-w-[var(--radix-select-trigger-width)] scroll-my-1
96
- `),children:e}),P.jsx(Pr,{})]})})}function Tl({className:t,...e}){return P.jsx(X.Label,{"data-slot":"select-label",className:_("px-2 py-1.5 text-xs text-muted-foreground",t),...e})}function Tr({className:t,children:e,...n}){return P.jsxs(X.Item,{"data-slot":"select-item",className:_(`
96
+ `),children:t}),d.jsx(it,{})]})})}function kr({className:e,...t}){return d.jsx(k.Label,{"data-slot":"select-label",className:w("px-2 py-1.5 text-xs text-muted-foreground",e),...t})}function nt({className:e,children:t,...r}){return d.jsxs(k.Item,{"data-slot":"select-item",className:w(`
97
97
  relative flex w-full cursor-default items-center gap-2 rounded-sm
98
98
  py-1.5 pr-8 pl-2 text-sm outline-hidden select-none
99
99
  focus:bg-accent focus:text-accent-foreground
@@ -102,4 +102,4 @@
102
102
  [&_svg:not([class*='size-'])]:size-4
103
103
  [&_svg:not([class*='text-'])]:text-muted-foreground
104
104
  *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2
105
- `,t),...n,children:[P.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:P.jsx(X.ItemIndicator,{children:P.jsx(Oe.CheckIcon,{className:"size-4"})})}),P.jsx(X.ItemText,{children:e})]})}function Sl({className:t,...e}){return P.jsx(X.Separator,{"data-slot":"select-separator",className:_("pointer-events-none -mx-1 my-1 h-px bg-border",t),...e})}function Sr({className:t,...e}){return P.jsx(X.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:_("flex cursor-default items-center justify-center py-1",t),...e,children:P.jsx(Oe.ChevronUpIcon,{className:"size-4"})})}function Pr({className:t,...e}){return P.jsx(X.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:_("flex cursor-default items-center justify-center py-1",t),...e,children:P.jsx(Oe.ChevronDownIcon,{className:"size-4"})})}const Pl=({translationKey:t,translationOptions:e,namespace:n,...s})=>{const o=sr.useTranslations(n)(t,e==null?void 0:e.args);return P.jsx(Gt,{...s,children:o})},Al=({translationKey:t,translationOptions:e,namespace:n,className:s,tag:i="div"})=>{const r=sr.useTranslations(n)(t,e==null?void 0:e.args);return k.createElement(i,{className:s,"data-testid":"translated-html"},r)};var kl=Object.defineProperty,U=(t,e)=>kl(t,"name",{value:e,configurable:!0}),qe=new Map,Ze=new Map;function Un(t,e){return`${t}:${JSON.stringify(e??{})}`}U(Un,"getFormatterKey");function Ar(t){const e=typeof t=="string"||typeof t=="number"?new Date(t):t;return e instanceof Date&&!Number.isNaN(e.getTime())?e:null}U(Ar,"parseDate");function kr(t,e="en",n){var o;const s=Ar(t);if(!s)return"";const i=Un(e,n);return qe.has(i)||qe.set(i,new Intl.DateTimeFormat(e,n)),((o=qe.get(i))==null?void 0:o.format(s))??""}U(kr,"formatDate");function Vr(t,e="en",n){var i;if(typeof t!="number"||Number.isNaN(t))return"";const s=Un(e,n);return Ze.has(s)||Ze.set(s,new Intl.NumberFormat(e,n)),((i=Ze.get(s))==null?void 0:i.format(t))??""}U(Vr,"formatNumber");var ze={defaultLocale:"en",supportedLocales:["en","es","fr","it","pt-BR","pt-PT"],fallbackLocale:"en"};function Vl(){return ze.supportedLocales}U(Vl,"getSupportedLanguages");function Ml(){return ze.defaultLocale}U(Ml,"getDefaultLanguage");function Cl(){return ze.fallbackLocale}U(Cl,"getFallbackLanguage");function El(t){return ze.supportedLocales.includes(t)}U(El,"isSupportedLanguage");var St=new Map;function Dl({value:t,forms:e,lang:n,type:s="cardinal"}){if(!Cr(t,e))return"";if(t===0&&e.zero)return yn(e.zero,t);const o=Er(n,s).select(t),r=Mr(e,o)??e.other??Object.values(e)[0];return r?yn(r,t):""}U(Dl,"pluralize");function _n(t,e){return`${t}:${e}`}U(_n,"getPluralRulesKey");var Rl=/{count}|#/g;function Mr(t,e){switch(e){case"zero":return t.zero;case"one":return t.one;case"two":return t.two;case"few":return t.few;case"many":return t.many;case"other":return t.other;default:return}}U(Mr,"selectTemplate");function Cr(t,e){return typeof t=="number"&&e&&typeof e=="object"}U(Cr,"isValidInput");function yn(t,e){return t.replaceAll(Rl,e.toString())}U(yn,"replacePlaceholders");function Er(t,e){const n=_n(t,e);if(!St.has(n))try{St.set(n,new Intl.PluralRules(t,{type:e}))}catch{return Le(n,e)}return St.get(n)??Le(n,e)}U(Er,"getPluralRules");function Le(t,e){const n=_n("en",e);St.has(n)||St.set(n,new Intl.PluralRules("en",{type:e}));const s=St.get(n)??Le(n,e);return St.set(t,s),s}U(Le,"getFallbackPluralRules");var et;et=class{constructor(){be(this,"fallbackLocale");this.fallbackLocale="en"}static getInstance(){return et.instance||(et.instance=new et),et.instance}detectLocale(e){return e?this.detectFromRequest(e):this.fallbackLocale}detectFromRequest(e){var o,r,a;const n=(o=e.url.split("?")[1])==null?void 0:o.split("=")[1],s=e.headers.get("accept-language"),i=(a=(r=e.headers.get("cookie"))==null?void 0:r.split("; ").find(l=>l.startsWith("locale=")))==null?void 0:a.split("=")[1];return n??i??this.parseAcceptLanguage(s??"")??this.fallbackLocale}parseAcceptLanguage(e){if(!e)return null;let n=null,s=0;for(const i of e.split(",")){const{lang:o,q:r}=this.parseLangAndQ(i.trim());if(r>s&&(s=r,n=o,r===1))break}return n}parseLangAndQ(e){const n=e.indexOf(";"),s=n===-1?e:e.slice(0,Math.max(0,n));let i=1;if(n!==-1){const o=/q=(?<q>[\d.]+)/.exec(e.slice(n+1));i=o!=null&&o.groups?Number.parseFloat(o.groups.q)||0:1}return{lang:s,q:i}}setFallbackLocale(e){this.fallbackLocale=e}},U(et,"LocaleDetector"),be(et,"instance");var Ot;Ot=class{constructor(e){be(this,"namespaces");this.namespaces=e?new Map(e):new Map}addNamespace(e,n){if(!Dr(e))throw new Error("Invalid namespace name");this.namespaces.set(e,n)}getNamespace(e){return this.namespaces.get(e)}getAllNamespaces(){return[...this.namespaces.keys()]}mergeNamespaces(e,n){const s=this.namespaces.get(e)??{},i=this.namespaces.get(n)??{};this.namespaces.set(e,{...s,...i})}validateNamespace(e,n){const s=this.namespaces.get(e);return s?n?Object.entries(n).every(([i,o])=>{var a;const r=(a=Object.getOwnPropertyDescriptor(s,i))==null?void 0:a.value;return r!==void 0&&typeof r===o}):!0:!1}},U(Ot,"NamespaceManager");function Dr(t){return/^\w+$/.test(t)}U(Dr,"isSafeKey");const Ll=({date:t,formatOptions:e,locale:n,...s})=>{const i=kr(t,n,e);return P.jsx(Gt,{...s,children:i})},Il=({value:t,formatOptions:e,locale:n,...s})=>{const i=Vr(t,n,e);return P.jsx(Gt,{...s,children:i})};function jl({locale:t,locales:e,onChange:n,getLabel:s,disabled:i}){return P.jsxs(xr,{value:t,onValueChange:n,disabled:i,children:[P.jsx(br,{children:P.jsx(vr,{placeholder:s(t)})}),P.jsx(wr,{children:e.map(o=>P.jsx(Tr,{value:o,children:s(o)},o))})]})}const Rr=k.createContext({});function We(t){const e=k.useRef(null);return e.current===null&&(e.current=t()),e.current}const $n=typeof window<"u",Gn=$n?k.useLayoutEffect:k.useEffect,Kn=k.createContext(null);function Hn(t,e){t.indexOf(e)===-1&&t.push(e)}function Xn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ct=(t,e,n)=>n>e?e:n<t?t:n;function xn(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}let Kt=()=>{},it=()=>{};process.env.NODE_ENV!=="production"&&(Kt=(t,e,n)=>{!t&&typeof console<"u"&&console.warn(xn(e,n))},it=(t,e,n)=>{if(!t)throw new Error(xn(e,n))});const ft={},Lr=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Ir(t){return typeof t=="object"&&t!==null}const jr=t=>/^0[^.\s]+$/u.test(t);function Yn(t){let e;return()=>(e===void 0&&(e=t()),e)}const q=t=>t,Fl=(t,e)=>n=>e(t(n)),de=(...t)=>t.reduce(Fl),zt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class qn{constructor(){this.subscriptions=[]}add(e){return Hn(this.subscriptions,e),()=>Xn(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const st=t=>t*1e3,at=t=>t/1e3;function Zn(t,e){return e?t*(1e3/e):0}const js=new Set;function Ue(t,e,n){t||js.has(e)||(console.warn(xn(e,n)),js.add(e))}const Fr=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Nl=1e-7,Bl=12;function Ol(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=Fr(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>Nl&&++a<Bl);return r}function fe(t,e,n,s){if(t===e&&n===s)return q;const i=o=>Ol(o,0,1,t,n);return o=>o===0||o===1?o:Fr(i(o),e,s)}const Nr=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Br=t=>e=>1-t(1-e),Or=fe(.33,1.53,.69,.99),Jn=Br(Or),zr=Nr(Jn),Wr=t=>(t*=2)<1?.5*Jn(t):.5*(2-Math.pow(2,-10*(t-1))),Qn=t=>1-Math.sin(Math.acos(t)),Ur=Br(Qn),_r=Nr(Qn),zl=fe(.42,0,1,1),Wl=fe(0,0,.58,1),$r=fe(.42,0,.58,1),Ul=t=>Array.isArray(t)&&typeof t[0]!="number",Gr=t=>Array.isArray(t)&&typeof t[0]=="number",Fs={linear:q,easeIn:zl,easeInOut:$r,easeOut:Wl,circIn:Qn,circInOut:_r,circOut:Ur,backIn:Jn,backInOut:zr,backOut:Or,anticipate:Wr},_l=t=>typeof t=="string",Ns=t=>{if(Gr(t)){it(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,s,i]=t;return fe(e,n,s,i)}else if(_l(t))return it(Fs[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),Fs[t];return t},Se=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function $l(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){r.has(c)&&(u.schedule(c),t()),c(a)}const u={schedule:(c,d=!1,f=!1)=>{const m=f&&i?n:s;return d&&r.add(c),m.has(c)||m.add(c),c},cancel:c=>{s.delete(c),r.delete(c)},process:c=>{if(a=c,i){o=!0;return}i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,u.process(c))}};return u}const Gl=40;function Kr(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Se.reduce((v,M)=>(v[M]=$l(o),v),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:h,postRender:m}=r,g=()=>{const v=ft.useManualTiming?i.timestamp:performance.now();n=!1,ft.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(v-i.timestamp,Gl),1)),i.timestamp=v,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(g))},x=()=>{n=!0,s=!0,i.isProcessing||t(g)};return{schedule:Se.reduce((v,M)=>{const A=r[M];return v[M]=(E,R=!1,p=!1)=>(n||x(),A.schedule(E,R,p)),v},{}),cancel:v=>{for(let M=0;M<Se.length;M++)r[Se[M]].cancel(v)},state:i,steps:r}}const{schedule:D,cancel:rt,state:W,steps:Je}=Kr(typeof requestAnimationFrame<"u"?requestAnimationFrame:q,!0);let Ve;function Kl(){Ve=void 0}const Y={now:()=>(Ve===void 0&&Y.set(W.isProcessing||ft.useManualTiming?W.timestamp:performance.now()),Ve),set:t=>{Ve=t,queueMicrotask(Kl)}},Hr=t=>e=>typeof e=="string"&&e.startsWith(t),ts=Hr("--"),Hl=Hr("var(--"),es=t=>Hl(t)?Xl.test(t.split("/*")[0].trim()):!1,Xl=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ht={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},re={...Ht,transform:t=>ct(0,1,t)},Pe={...Ht,default:1},te=t=>Math.round(t*1e5)/1e5,ns=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Yl(t){return t==null}const ql=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ss=(t,e)=>n=>!!(typeof n=="string"&&ql.test(n)&&n.startsWith(t)||e&&!Yl(n)&&Object.prototype.hasOwnProperty.call(n,e)),Xr=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(ns);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Zl=t=>ct(0,255,t),Qe={...Ht,transform:t=>Math.round(Zl(t))},Pt={test:ss("rgb","red"),parse:Xr("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Qe.transform(t)+", "+Qe.transform(e)+", "+Qe.transform(n)+", "+te(re.transform(s))+")"};function Jl(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const vn={test:ss("#"),parse:Jl,transform:Pt.transform},he=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),mt=he("deg"),lt=he("%"),V=he("px"),Ql=he("vh"),tc=he("vw"),Bs={...lt,parse:t=>lt.parse(t)/100,transform:t=>lt.transform(t*100)},Rt={test:ss("hsl","hue"),parse:Xr("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+lt.transform(te(e))+", "+lt.transform(te(n))+", "+te(re.transform(s))+")"},B={test:t=>Pt.test(t)||vn.test(t)||Rt.test(t),parse:t=>Pt.test(t)?Pt.parse(t):Rt.test(t)?Rt.parse(t):vn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Pt.transform(t):Rt.transform(t),getAnimatableNone:t=>{const e=B.parse(t);return e.alpha=0,B.transform(e)}},ec=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function nc(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(ns))==null?void 0:e.length)||0)+(((n=t.match(ec))==null?void 0:n.length)||0)>0}const Yr="number",qr="color",sc="var",ic="var(",Os="${}",rc=/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 oe(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(rc,l=>(B.test(l)?(s.color.push(o),i.push(qr),n.push(B.parse(l))):l.startsWith(ic)?(s.var.push(o),i.push(sc),n.push(l)):(s.number.push(o),i.push(Yr),n.push(parseFloat(l))),++o,Os)).split(Os);return{values:n,split:a,indexes:s,types:i}}function Zr(t){return oe(t).values}function Jr(t){const{split:e,types:n}=oe(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===Yr?o+=te(i[r]):a===qr?o+=B.transform(i[r]):o+=i[r]}return o}}const oc=t=>typeof t=="number"?0:B.test(t)?B.getAnimatableNone(t):t;function ac(t){const e=Zr(t);return Jr(t)(e.map(oc))}const gt={test:nc,parse:Zr,createTransformer:Jr,getAnimatableNone:ac};function tn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function lc({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=tn(l,a,t+1/3),o=tn(l,a,t),r=tn(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Ie(t,e){return n=>n>0?e:t}const F=(t,e,n)=>t+(e-t)*n,en=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},cc=[vn,Pt,Rt],uc=t=>cc.find(e=>e.test(t));function zs(t){const e=uc(t);if(Kt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===Rt&&(n=lc(n)),n}const Ws=(t,e)=>{const n=zs(t),s=zs(e);if(!n||!s)return Ie(t,e);const i={...n};return o=>(i.red=en(n.red,s.red,o),i.green=en(n.green,s.green,o),i.blue=en(n.blue,s.blue,o),i.alpha=F(n.alpha,s.alpha,o),Pt.transform(i))},bn=new Set(["none","hidden"]);function dc(t,e){return bn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function fc(t,e){return n=>F(t,e,n)}function is(t){return typeof t=="number"?fc:typeof t=="string"?es(t)?Ie:B.test(t)?Ws:pc:Array.isArray(t)?Qr:typeof t=="object"?B.test(t)?Ws:hc:Ie}function Qr(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>is(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function hc(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=is(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function mc(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const pc=(t,e)=>{const n=gt.createTransformer(e),s=oe(t),i=oe(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?bn.has(t)&&!i.values.length||bn.has(e)&&!s.values.length?dc(t,e):de(Qr(mc(s,i),i.values),n):(Kt(!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"),Ie(t,e))};function to(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?F(t,e,n):is(t)(t,e)}const gc=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>D.update(e,n),stop:()=>rt(e),now:()=>W.isProcessing?W.timestamp:Y.now()}},eo=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},je=2e4;function rs(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<je;)e+=n,s=t.next(e);return e>=je?1/0:e}function yc(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(rs(s),je);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:at(i)}}const xc=5;function no(t,e,n){const s=Math.max(e-xc,0);return Zn(n-t(s),e-s)}const j={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},nn=.001;function vc({duration:t=j.duration,bounce:e=j.bounce,velocity:n=j.velocity,mass:s=j.mass}){let i,o;Kt(t<=st(j.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-e;r=ct(j.minDamping,j.maxDamping,r),t=ct(j.minDuration,j.maxDuration,at(t)),r<1?(i=u=>{const c=u*r,d=c*t,f=c-n,h=wn(u,r),m=Math.exp(-d);return nn-f/h*m},o=u=>{const d=u*r*t,f=d*n+n,h=Math.pow(r,2)*Math.pow(u,2)*t,m=Math.exp(-d),g=wn(Math.pow(u,2),r);return(-i(u)+nn>0?-1:1)*((f-h)*m)/g}):(i=u=>{const c=Math.exp(-u*t),d=(u-n)*t+1;return-nn+c*d},o=u=>{const c=Math.exp(-u*t),d=(n-u)*(t*t);return c*d});const a=5/t,l=wc(i,o,a);if(t=st(t),isNaN(l))return{stiffness:j.stiffness,damping:j.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const bc=12;function wc(t,e,n){let s=n;for(let i=1;i<bc;i++)s=s-t(s)/e(s);return s}function wn(t,e){return t*Math.sqrt(1-e*e)}const Tc=["duration","bounce"],Sc=["stiffness","damping","mass"];function Us(t,e){return e.some(n=>t[n]!==void 0)}function Pc(t){let e={velocity:j.velocity,stiffness:j.stiffness,damping:j.damping,mass:j.mass,isResolvedFromDuration:!1,...t};if(!Us(t,Sc)&&Us(t,Tc))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*ct(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:j.mass,stiffness:i,damping:o}}else{const n=vc(t);e={...e,...n,mass:j.mass},e.isResolvedFromDuration=!0}return e}function Fe(t=j.visualDuration,e=j.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=Pc({...n,velocity:-at(n.velocity||0)}),m=f||0,g=u/(2*Math.sqrt(l*c)),x=r-o,y=at(Math.sqrt(l/c)),S=Math.abs(x)<5;s||(s=S?j.restSpeed.granular:j.restSpeed.default),i||(i=S?j.restDelta.granular:j.restDelta.default);let v;if(g<1){const A=wn(y,g);v=E=>{const R=Math.exp(-g*y*E);return r-R*((m+g*y*x)/A*Math.sin(A*E)+x*Math.cos(A*E))}}else if(g===1)v=A=>r-Math.exp(-y*A)*(x+(m+y*x)*A);else{const A=y*Math.sqrt(g*g-1);v=E=>{const R=Math.exp(-g*y*E),p=Math.min(A*E,300);return r-R*((m+g*y*x)*Math.sinh(p)+A*x*Math.cosh(p))/A}}const M={calculatedDuration:h&&d||null,next:A=>{const E=v(A);if(h)a.done=A>=d;else{let R=A===0?m:0;g<1&&(R=A===0?st(m):no(v,A,E));const p=Math.abs(R)<=s,L=Math.abs(r-E)<=i;a.done=p&&L}return a.value=a.done?r:E,a},toString:()=>{const A=Math.min(rs(M),je),E=eo(R=>M.next(A*R).value,A,30);return A+"ms "+E},toTransition:()=>{}};return M}Fe.applyToOptions=t=>{const e=yc(t,100,Fe);return t.ease=e.ease,t.duration=st(e.duration),t.type="keyframes",t};function Tn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=t[0],f={done:!1,value:d},h=p=>a!==void 0&&p<a||l!==void 0&&p>l,m=p=>a===void 0?l:l===void 0||Math.abs(a-p)<Math.abs(l-p)?a:l;let g=n*e;const x=d+g,y=r===void 0?x:r(x);y!==x&&(g=y-d);const S=p=>-g*Math.exp(-p/s),v=p=>y+S(p),M=p=>{const L=S(p),G=v(p);f.done=Math.abs(L)<=u,f.value=f.done?y:G};let A,E;const R=p=>{h(f.value)&&(A=p,E=Fe({keyframes:[f.value,m(f.value)],velocity:no(v,p,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return R(0),{calculatedDuration:null,next:p=>{let L=!1;return!E&&A===void 0&&(L=!0,M(p),R(p)),A!==void 0&&p>=A?E.next(p-A):(!L&&M(p),f)}}}function Ac(t,e,n){const s=[],i=n||ft.mix||to,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||q:e;a=de(l,a)}s.push(a)}return s}function os(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(it(o===e.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ac(e,s,i),l=a.length,u=c=>{if(r&&c<t[0])return e[0];let d=0;if(l>1)for(;d<t.length-2&&!(c<t[d+1]);d++);const f=zt(t[d],t[d+1],c);return a[d](f)};return n?c=>u(ct(t[0],t[o-1],c)):u}function kc(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=zt(0,e,s);t.push(F(n,1,i))}}function so(t){const e=[0];return kc(e,t.length-1),e}function Vc(t,e){return t.map(n=>n*e)}function Mc(t,e){return t.map(()=>e||$r).splice(0,t.length-1)}function Lt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Ul(s)?s.map(Ns):Ns(s),o={done:!1,value:e[0]},r=Vc(n&&n.length===e.length?n:so(e),t),a=os(r,e,{ease:Array.isArray(i)?i:Mc(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Cc=t=>t!==null;function as(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(Cc),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const Ec={decay:Tn,inertia:Tn,tween:Lt,keyframes:Lt,spring:Fe};function io(t){typeof t.type=="string"&&(t.type=Ec[t.type])}class ls{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Dc=t=>t/100;class cs extends ls{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Y.now()&&this.tick(Y.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(s=this.options).onStop)==null||i.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;io(e);const{type:n=Lt,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const l=n||Lt;process.env.NODE_ENV!=="production"&&l!==Lt&&it(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Lt&&typeof a[0]!="number"&&(this.mixKeyframes=de(Dc,to(a[0],a[1])),a=[0,100]);const u=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=rs(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:h,type:m,onUpdate:g,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,M=s;if(d){const p=Math.min(this.currentTime,i)/a;let L=Math.floor(p),G=p%1;!G&&p>=1&&(G=1),G===1&&L--,L=Math.min(L,d+1),!!(L%2)&&(f==="reverse"?(G=1-G,h&&(G-=h/a)):f==="mirror"&&(M=r)),v=ct(0,1,G)*a}const A=S?{done:!1,value:c[0]}:M.next(v);o&&(A.value=o(A.value));let{done:E}=A;!S&&l!==null&&(E=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return R&&m!==Tn&&(A.value=as(c,this.options,x,this.speed)),g&&g(A.value),R&&this.finish(),A}then(e,n){return this.finished.then(e,n)}get duration(){return at(this.calculatedDuration)}get time(){return at(this.currentTime)}set time(e){var n;e=st(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Y.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=at(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:e=gc,startTime:n}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),(o=(i=this.options).onPlay)==null||o.call(i);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Y.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function Rc(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const At=t=>t*180/Math.PI,Sn=t=>{const e=At(Math.atan2(t[1],t[0]));return Pn(e)},Lc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Sn,rotateZ:Sn,skewX:t=>At(Math.atan(t[1])),skewY:t=>At(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Pn=t=>(t=t%360,t<0&&(t+=360),t),_s=Sn,$s=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Gs=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Ic={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:$s,scaleY:Gs,scale:t=>($s(t)+Gs(t))/2,rotateX:t=>Pn(At(Math.atan2(t[6],t[5]))),rotateY:t=>Pn(At(Math.atan2(-t[2],t[0]))),rotateZ:_s,rotate:_s,skewX:t=>At(Math.atan(t[4])),skewY:t=>At(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function An(t){return t.includes("scale")?1:0}function kn(t,e){if(!t||t==="none")return An(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Ic,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Lc,i=a}if(!i)return An(e);const o=s[e],r=i[1].split(",").map(Fc);return typeof o=="function"?o(r):r[o]}const jc=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return kn(n,e)};function Fc(t){return parseFloat(t.trim())}const Xt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Yt=new Set(Xt),Ks=t=>t===Ht||t===V,Nc=new Set(["x","y","z"]),Bc=Xt.filter(t=>!Nc.has(t));function Oc(t){const e=[];return Bc.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const kt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),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})=>kn(e,"x"),y:(t,{transform:e})=>kn(e,"y")};kt.translateX=kt.x;kt.translateY=kt.y;const Vt=new Set;let Vn=!1,Mn=!1,Cn=!1;function ro(){if(Mn){const t=Array.from(Vt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Oc(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{var a;(a=s.getValue(o))==null||a.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Mn=!1,Vn=!1,Vt.forEach(t=>t.complete(Cn)),Vt.clear()}function oo(){Vt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Mn=!0)})}function zc(){Cn=!0,oo(),ro(),Cn=!1}class us{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Vt.add(this),Vn||(Vn=!0,D.read(oo),D.resolveKeyframes(ro))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i==null?void 0:i.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}Rc(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Vt.delete(this)}cancel(){this.state==="scheduled"&&(Vt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Wc=t=>t.startsWith("--");function Uc(t,e,n){Wc(e)?t.style.setProperty(e,n):t.style[e]=n}const ao=Yn(()=>window.ScrollTimeline!==void 0),_c={};function $c(t,e){const n=Yn(t);return()=>_c[e]??n()}const lo=$c(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Qt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Hs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qt([0,.65,.55,1]),circOut:Qt([.55,0,1,.45]),backIn:Qt([.31,.01,.66,-.59]),backOut:Qt([.33,1.53,.69,.99])};function co(t,e){if(t)return typeof t=="function"?lo()?eo(t,e):"ease-out":Gr(t)?Qt(t):Array.isArray(t)?t.map(n=>co(n,e)||Hs.easeOut):Hs[t]}function Gc(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[e]:n};l&&(c.offset=l);const d=co(a,i);Array.isArray(d)&&(c.easing=d);const f={delay:s,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(c,f)}function uo(t){return typeof t=="function"&&"applyToOptions"in t}function Kc({type:t,...e}){return uo(t)&&lo()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Hc extends ls{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,it(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Kc(e);this.animation=Gc(n,s,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=as(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):Uc(n,s,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,s;const e=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return at(Number(e))}get time(){return at(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=st(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&ao()?(this.animation.timeline=e,q):n(this)}}const fo={anticipate:Wr,backInOut:zr,circInOut:_r};function Xc(t){return t in fo}function Yc(t){typeof t.ease=="string"&&Xc(t.ease)&&(t.ease=fo[t.ease])}const Xs=10;class qc extends Hc{constructor(e){Yc(e),io(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new cs({...r,autoplay:!1}),l=st(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Xs).value,a.sample(l).value,Xs),a.stop()}}const Ys=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(gt.test(t)||t==="0")&&!t.startsWith("url("));function Zc(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Jc(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Ys(i,e),a=Ys(o,e);return Kt(r===a,`You are trying to animate ${e} from "${i}" to "${o}". "${r?o:i}" is not an animatable value.`,"value-not-animatable"),!r||!a?!1:Zc(t)||(n==="spring"||uo(n))&&s}function En(t){t.duration=0,t.type}const Qc=new Set(["opacity","clipPath","filter","transform"]),tu=Yn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function eu(t){var c;const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!(((c=e==null?void 0:e.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=e.owner.getProps();return tu()&&n&&Qc.has(n)&&(n!=="transform"||!u)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const nu=40;class su extends ls{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){var m;super(),this.stop=()=>{var g,x;this._animation&&(this._animation.stop(),(g=this.stopTimeline)==null||g.call(this)),(x=this.keyframeResolver)==null||x.cancel()},this.createdAt=Y.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:l,motionValue:u,element:c,...d},h=(c==null?void 0:c.KeyframeResolver)||us;this.keyframeResolver=new h(a,(g,x,y)=>this.onKeyframesResolved(g,x,f,!y),l,u,c),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:l,isHandoff:u,onUpdate:c}=s;this.resolvedAt=Y.now(),Jc(e,o,r,a)||((ft.instantAnimations||!l)&&(c==null||c(as(e,s,n))),e[0]=e[e.length-1],En(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>nu?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},h=!u&&eu(f)?new qc({...f,element:f.motionValue.owner.current}):new cs(f);h.finished.then(()=>this.notifyFinished()).catch(q),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),zc()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const iu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ru(t){const e=iu.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}const ou=4;function ho(t,e,n=1){it(n<=ou,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[s,i]=ru(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Lr(r)?parseFloat(r):r}return es(i)?ho(i,e,n+1):i}function ds(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const mo=new Set(["width","height","top","left","right","bottom",...Xt]),au={test:t=>t==="auto",parse:t=>t},po=t=>e=>e.test(t),go=[Ht,V,lt,mt,tc,Ql,au],qs=t=>go.find(po(t));function lu(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||jr(t):!0}const cu=new Set(["brightness","contrast","saturate","opacity"]);function uu(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(ns)||[];if(!s)return t;const i=n.replace(s,"");let o=cu.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const du=/\b([a-z-]*)\(.*?\)/gu,Dn={...gt,getAnimatableNone:t=>{const e=t.match(du);return e?e.map(uu).join(" "):t}},Zs={...Ht,transform:Math.round},fu={rotate:mt,rotateX:mt,rotateY:mt,rotateZ:mt,scale:Pe,scaleX:Pe,scaleY:Pe,scaleZ:Pe,skew:mt,skewX:mt,skewY:mt,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:re,originX:Bs,originY:Bs,originZ:V},fs={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V,...fu,zIndex:Zs,fillOpacity:re,strokeOpacity:re,numOctaves:Zs},hu={...fs,color:B,backgroundColor:B,outlineColor:B,fill:B,stroke:B,borderColor:B,borderTopColor:B,borderRightColor:B,borderBottomColor:B,borderLeftColor:B,filter:Dn,WebkitFilter:Dn},yo=t=>hu[t];function xo(t,e){let n=yo(t);return n!==Dn&&(n=gt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const mu=new Set(["auto","none","0"]);function pu(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!mu.has(o)&&oe(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=xo(n,i)}class gu extends us{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),es(u))){const c=ho(u,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!mo.has(s)||e.length!==2)return;const[i,o]=e,r=qs(i),a=qs(o);if(r!==a)if(Ks(r)&&Ks(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else kt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||lu(e[i]))&&s.push(i);s.length&&pu(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=kt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=kt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{e.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function vo(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){const i=document.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const bo=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function wo(t){return Ir(t)&&"offsetHeight"in t}const Js=30,yu=t=>!isNaN(parseFloat(t)),ee={current:void 0};class xu{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var o;const i=Y.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Y.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=yu(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Ue(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new qn);const s=this.events[e].add(n);return e==="change"?()=>{s(),D.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return ee.current&&ee.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Y.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Js)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Js);return Zn(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nt(t,e){return new xu(t,e)}const{schedule:hs}=Kr(queueMicrotask,!1),tt={x:!1,y:!1};function To(){return tt.x||tt.y}function vu(t){return t==="x"||t==="y"?tt[t]?null:(tt[t]=!0,()=>{tt[t]=!1}):tt.x||tt.y?null:(tt.x=tt.y=!0,()=>{tt.x=tt.y=!1})}function So(t,e){const n=vo(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Qs(t){return!(t.pointerType==="touch"||To())}function bu(t,e,n={}){const[s,i,o]=So(t,n),r=a=>{if(!Qs(a))return;const{target:l}=a,u=e(l,a);if(typeof u!="function"||!l)return;const c=d=>{Qs(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const Po=(t,e)=>e?t===e?!0:Po(t,e.parentElement):!1,ms=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,wu=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Tu(t){return wu.has(t.tagName)||t.tabIndex!==-1}const Me=new WeakSet;function ti(t){return e=>{e.key==="Enter"&&t(e)}}function sn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Su=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=ti(()=>{if(Me.has(n))return;sn(n,"down");const i=ti(()=>{sn(n,"up")}),o=()=>sn(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function ei(t){return ms(t)&&!To()}function Pu(t,e,n={}){const[s,i,o]=So(t,n),r=a=>{const l=a.currentTarget;if(!ei(a))return;Me.add(l);const u=e(l,a),c=(h,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Me.has(l)&&Me.delete(l),ei(h)&&typeof u=="function"&&u(h,{success:m})},d=h=>{c(h,l===window||l===document||n.useGlobalTarget||Po(l,h.target))},f=h=>{c(h,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),wo(a)&&(a.addEventListener("focus",u=>Su(u,i)),!Tu(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function ps(t){return Ir(t)&&"ownerSVGElement"in t}const Ce=new WeakMap;let pt;const Ao=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:ps(s)&&"getBBox"in s?s.getBBox()[e]:s[n],Au=Ao("inline","width","offsetWidth"),ku=Ao("block","height","offsetHeight");function Vu({target:t,borderBoxSize:e}){var n;(n=Ce.get(t))==null||n.forEach(s=>{s(t,{get width(){return Au(t,e)},get height(){return ku(t,e)}})})}function Mu(t){t.forEach(Vu)}function Cu(){typeof ResizeObserver>"u"||(pt=new ResizeObserver(Mu))}function Eu(t,e){pt||Cu();const n=vo(t);return n.forEach(s=>{let i=Ce.get(s);i||(i=new Set,Ce.set(s,i)),i.add(e),pt==null||pt.observe(s)}),()=>{n.forEach(s=>{const i=Ce.get(s);i==null||i.delete(e),i!=null&&i.size||pt==null||pt.unobserve(s)})}}const Ee=new Set;let It;function Du(){It=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ee.forEach(e=>e(t))},window.addEventListener("resize",It)}function Ru(t){return Ee.add(t),It||Du(),()=>{Ee.delete(t),!Ee.size&&typeof It=="function"&&(window.removeEventListener("resize",It),It=void 0)}}function Lu(t,e){return typeof t=="function"?Ru(t):Eu(t,e)}function ko(t,e){let n;const s=()=>{const{currentTime:i}=e,r=(i===null?0:i.value)/100;n!==r&&t(r),n=r};return D.preUpdate(s,!0),()=>rt(s)}function Iu(t){return ps(t)&&t.tagName==="svg"}function ju(...t){const e=!Array.isArray(t[0]),n=e?0:-1,s=t[0+n],i=t[1+n],o=t[2+n],r=t[3+n],a=os(i,o,r);return e?a(s):a}const $=t=>!!(t&&t.getVelocity),Fu=[...go,B,gt],Nu=t=>Fu.find(po(t)),gs=k.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Bu(t=!0){const e=k.useContext(Kn);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=k.useId();k.useEffect(()=>{if(t)return i(o)},[t]);const r=k.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const Vo=k.createContext({strict:!1}),ni={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"]},Wt={};for(const t in ni)Wt[t]={isEnabled:e=>ni[t].some(n=>!!e[n])};function Ou(t){for(const e in t)Wt[e]={...Wt[e],...t[e]}}const zu=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ne(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||zu.has(t)}let Mo=t=>!Ne(t);function Wu(t){typeof t=="function"&&(Mo=e=>e.startsWith("on")?!Ne(e):t(e))}try{Wu(require("@emotion/is-prop-valid").default)}catch{}function Uu(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Mo(i)||n===!0&&Ne(i)||!e&&!Ne(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const _e=k.createContext({});function $e(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function ae(t){return typeof t=="string"||Array.isArray(t)}const ys=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xs=["initial",...ys];function Ge(t){return $e(t.animate)||xs.some(e=>ae(t[e]))}function Co(t){return!!(Ge(t)||t.variants)}function _u(t,e){if(Ge(t)){const{initial:n,animate:s}=t;return{initial:n===!1||ae(n)?n:void 0,animate:ae(s)?s:void 0}}return t.inherit!==!1?e:{}}function $u(t){const{initial:e,animate:n}=_u(t,k.useContext(_e));return k.useMemo(()=>({initial:e,animate:n}),[si(e),si(n)])}function si(t){return Array.isArray(t)?t.join(" "):t}const le={};function Gu(t){for(const e in t)le[e]=t[e],ts(e)&&(le[e].isCSSVariable=!0)}function Eo(t,{layout:e,layoutId:n}){return Yt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!le[t]||t==="opacity")}const Ku={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Hu=Xt.length;function Xu(t,e,n){let s="",i=!0;for(let o=0;o<Hu;o++){const r=Xt[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(r.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=bo(a,fs[r]);if(!l){i=!1;const c=Ku[r]||r;s+=`${c}(${u}) `}n&&(e[r]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function vs(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const u=e[l];if(Yt.has(l)){r=!0;continue}else if(ts(l)){i[l]=u;continue}else{const c=bo(u,fs[l]);l.startsWith("origin")?(a=!0,o[l]=c):s[l]=c}}if(e.transform||(r||n?s.transform=Xu(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;s.transformOrigin=`${l} ${u} ${c}`}}const bs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Do(t,e,n){for(const s in e)!$(e[s])&&!Eo(s,n)&&(t[s]=e[s])}function Yu({transformTemplate:t},e){return k.useMemo(()=>{const n=bs();return vs(n,e,t),Object.assign({},n.vars,n.style)},[e])}function qu(t,e){const n=t.style||{},s={};return Do(s,n,t),Object.assign(s,Yu(t,e)),s}function Zu(t,e){const n={},s=qu(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const Ju={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qu={offset:"strokeDashoffset",array:"strokeDasharray"};function td(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?Ju:Qu;t[o.offset]=V.transform(-s);const r=V.transform(e),a=V.transform(n);t[o.array]=`${r} ${a}`}function Ro(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},l,u,c){if(vs(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:f}=t;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete d.transformBox),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),i!==void 0&&td(d,i,o,r,!1)}const Lo=()=>({...bs(),attrs:{}}),Io=t=>typeof t=="string"&&t.toLowerCase()==="svg";function ed(t,e,n,s){const i=k.useMemo(()=>{const o=Lo();return Ro(o,e,Io(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Do(o,t.style,t),i.style={...o,...i.style}}return i}const nd=["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 ws(t){return typeof t!="string"||t.includes("-")?!1:!!(nd.indexOf(t)>-1||/[A-Z]/u.test(t))}function sd(t,e,n,{latestValues:s},i,o=!1){const a=(ws(t)?ed:Zu)(e,s,i,t),l=Uu(e,typeof t=="string",o),u=t!==k.Fragment?{...l,...a,ref:n}:{},{children:c}=e,d=k.useMemo(()=>$(c)?c.get():c,[c]);return k.createElement(t,{...u,children:d})}function ii(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Ts(t,e,n,s){if(typeof e=="function"){const[i,o]=ii(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=ii(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function De(t){return $(t)?t.get():t}function id({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:rd(n,s,i,t),renderState:e()}}function rd(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=De(o[f]);let{initial:r,animate:a}=t;const l=Ge(t),u=Co(t);e&&u&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||r===!1;const d=c?a:r;if(d&&typeof d!="boolean"&&!$e(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const m=Ts(t,f[h]);if(m){const{transitionEnd:g,transition:x,...y}=m;for(const S in y){let v=y[S];if(Array.isArray(v)){const M=c?v.length-1:0;v=v[M]}v!==null&&(i[S]=v)}for(const S in g)i[S]=g[S]}}}return i}const jo=t=>(e,n)=>{const s=k.useContext(_e),i=k.useContext(Kn),o=()=>id(t,e,s,i);return n?o():We(o)};function Ss(t,e,n){var o;const{style:s}=t,i={};for(const r in s)($(s[r])||e.style&&$(e.style[r])||Eo(r,t)||((o=n==null?void 0:n.getValue(r))==null?void 0:o.liveStyle)!==void 0)&&(i[r]=s[r]);return i}const od=jo({scrapeMotionValuesFromProps:Ss,createRenderState:bs});function Fo(t,e,n){const s=Ss(t,e,n);for(const i in t)if($(t[i])||$(e[i])){const o=Xt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}const ad=jo({scrapeMotionValuesFromProps:Fo,createRenderState:Lo}),ld=Symbol.for("motionComponentSymbol");function jt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function cd(t,e,n){return k.useCallback(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):jt(n)&&(n.current=s))},[e])}const Ps=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ud="framerAppearId",No="data-"+Ps(ud),Bo=k.createContext({});function dd(t,e,n,s,i){var g,x;const{visualElement:o}=k.useContext(_e),r=k.useContext(Vo),a=k.useContext(Kn),l=k.useContext(gs).reducedMotion,u=k.useRef(null);s=s||r.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,d=k.useContext(Bo);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&fd(u.current,n,i,d);const f=k.useRef(!1);k.useInsertionEffect(()=>{c&&f.current&&c.update(n,a)});const h=n[No],m=k.useRef(!!h&&!((g=window.MotionHandoffIsComplete)!=null&&g.call(window,h))&&((x=window.MotionHasOptimisedAnimation)==null?void 0:x.call(window,h)));return Gn(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),m.current&&c.animationState&&c.animationState.animateChanges())}),k.useEffect(()=>{c&&(!m.current&&c.animationState&&c.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)==null||y.call(window,h)}),m.current=!1))}),c}function fd(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Oo(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&jt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:c,layoutScroll:l,layoutRoot:u})}function Oo(t){if(t)return t.options.allowProjection!==!1?t.projection:Oo(t.parent)}function rn(t,{forwardMotionProps:e=!1}={},n,s){n&&Ou(n);const i=ws(t)?ad:od;function o(a,l){let u;const c={...k.useContext(gs),...a,layoutId:hd(a)},{isStatic:d}=c,f=$u(a),h=i(a,d);if(!d&&$n){md(c,n);const m=pd(c);u=m.MeasureLayout,f.visualElement=dd(t,h,c,s,m.ProjectionNode)}return P.jsxs(_e.Provider,{value:f,children:[u&&f.visualElement?P.jsx(u,{visualElement:f.visualElement,...c}):null,sd(t,a,cd(h,f.visualElement,l),h,d,e)]})}o.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const r=k.forwardRef(o);return r[ld]=t,r}function hd({layoutId:t}){const e=k.useContext(Rr).id;return e&&t!==void 0?e+"-"+t:t}function md(t,e){const n=k.useContext(Vo).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const s="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Kt(!1,s,"lazy-strict-mode"):it(!1,s,"lazy-strict-mode")}}function pd(t){const{drag:e,layout:n}=Wt;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function gd(t,e){if(typeof Proxy>"u")return rn;const n=new Map,s=(o,r)=>rn(o,r,t,e),i=(o,r)=>(process.env.NODE_ENV!=="production"&&Ue(!1,"motion() is deprecated. Use motion.create() instead."),s(o,r));return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,rn(r,void 0,t,e)),n.get(r))})}function zo({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function yd({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function xd(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function on(t){return t===void 0||t===1}function Rn({scale:t,scaleX:e,scaleY:n}){return!on(t)||!on(e)||!on(n)}function Tt(t){return Rn(t)||Wo(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Wo(t){return ri(t.x)||ri(t.y)}function ri(t){return t&&t!=="0%"}function Be(t,e,n){const s=t-n,i=e*s;return n+i}function oi(t,e,n,s,i){return i!==void 0&&(t=Be(t,i,s)),Be(t,n,s)+e}function Ln(t,e=0,n=1,s,i){t.min=oi(t.min,e,n,s,i),t.max=oi(t.max,e,n,s,i)}function Uo(t,{x:e,y:n}){Ln(t.x,e.translate,e.scale,e.originPoint),Ln(t.y,n.translate,n.scale,n.originPoint)}const ai=.999999999999,li=1.0000000000001;function vd(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Nt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Uo(t,r)),s&&Tt(o.latestValues)&&Nt(t,o.latestValues))}e.x<li&&e.x>ai&&(e.x=1),e.y<li&&e.y>ai&&(e.y=1)}function Ft(t,e){t.min=t.min+e,t.max=t.max+e}function ci(t,e,n,s,i=.5){const o=F(t.min,t.max,i);Ln(t,e,n,o,s)}function Nt(t,e){ci(t.x,e.x,e.scaleX,e.scale,e.originX),ci(t.y,e.y,e.scaleY,e.scale,e.originY)}function _o(t,e){return zo(xd(t.getBoundingClientRect(),e))}function bd(t,e,n){const s=_o(t,n),{scroll:i}=e;return i&&(Ft(s.x,i.offset.x),Ft(s.y,i.offset.y)),s}const ui=()=>({translate:0,scale:1,origin:0,originPoint:0}),Bt=()=>({x:ui(),y:ui()}),di=()=>({min:0,max:0}),N=()=>({x:di(),y:di()}),In={current:null},$o={current:!1};function wd(){if($o.current=!0,!!$n)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>In.current=t.matches;t.addEventListener("change",e),e()}else In.current=!1}const Td=new WeakMap;function Sd(t,e,n){for(const s in e){const i=e[s],o=n[s];if($(i))t.addValue(s,i);else if($(o))t.addValue(s,nt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,nt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const fi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Pd{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=us,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=Y.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,D.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Ge(n),this.isVariantNode=Co(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const h=d[f];l[f]!==void 0&&$(h)&&h.set(l[f])}}mount(e){this.current=e,Td.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),$o.current||wd(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:In.current,process.env.NODE_ENV!=="production"&&Ue(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),rt(this.notifyUpdate),rt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=Yt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&D.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Wt){const n=Wt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):N()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<fi.length;s++){const i=fi[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Sd(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=nt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Lr(s)||jr(s))?s=parseFloat(s):!Nu(s)&&gt.test(n)&&(s=xo(e,n)),this.setBaseTarget(e,$(s)?s.get():s)),$(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var o;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=Ts(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!$(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new qn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){hs.render(this.render)}}class Go extends Pd{constructor(){super(...arguments),this.KeyframeResolver=gu}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;$(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ko(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i==null||i.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function Ad(t){return window.getComputedStyle(t)}class kd extends Go{constructor(){super(...arguments),this.type="html",this.renderInstance=Ko}readValueFromInstance(e,n){var s;if(Yt.has(n))return(s=this.projection)!=null&&s.isProjecting?An(n):jc(e,n);{const i=Ad(e),o=(ts(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return _o(e,n)}build(e,n,s){vs(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Ss(e,n,s)}}const Ho=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"]);function Vd(t,e,n,s){Ko(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Ho.has(i)?i:Ps(i),e.attrs[i])}class Md extends Go{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=N}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Yt.has(n)){const s=yo(n);return s&&s.default||0}return n=Ho.has(n)?n:Ps(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Fo(e,n,s)}build(e,n,s){Ro(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Vd(e,n,s,i)}mount(e){this.isSVGTag=Io(e.tagName),super.mount(e)}}const Cd=(t,e)=>ws(t)?new Md(e):new kd(e,{allowProjection:t!==k.Fragment});function ce(t,e,n){const s=t.getProps();return Ts(s,e,n!==void 0?n:s.custom,t)}const jn=t=>Array.isArray(t);function Ed(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,nt(n))}function Dd(t){return jn(t)?t[t.length-1]||0:t}function Rd(t,e){const n=ce(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Dd(o[r]);Ed(t,r,a)}}function Ld(t){return!!($(t)&&t.add)}function Fn(t,e){const n=t.getValue("willChange");if(Ld(n))return n.add(e);if(!n&&ft.WillChange){const s=new ft.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Xo(t){return t.props[No]}const Id=t=>t!==null;function jd(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Id),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}const Fd={type:"spring",stiffness:500,damping:25,restSpeed:10},Nd=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Bd={type:"keyframes",duration:.8},Od={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zd=(t,{keyframes:e})=>e.length>2?Bd:Yt.has(t)?t.startsWith("scale")?Nd(e[1]):Fd:Od;function Wd({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const As=(t,e,n,s={},i,o)=>r=>{const a=ds(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-st(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};Wd(a)||Object.assign(c,zd(t,c)),c.duration&&(c.duration=st(c.duration)),c.repeatDelay&&(c.repeatDelay=st(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(En(c),c.delay===0&&(d=!0)),(ft.instantAnimations||ft.skipAnimations)&&(d=!0,En(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!o&&e.get()!==void 0){const f=jd(c.keyframes,a);if(f!==void 0){D.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new cs(c):new su(c)};function Ud({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Yo(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;s&&(o=s);const l=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const c in a){const d=t.getValue(c,t.latestValues[c]??null),f=a[c];if(f===void 0||u&&Ud(u,c))continue;const h={delay:n,...ds(o||{},c)},m=d.get();if(m!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===m&&!h.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const y=Xo(t);if(y){const S=window.MotionHandoffAnimation(y,c,D);S!==null&&(h.startTime=S,g=!0)}}Fn(t,c),d.start(As(c,d,f,t.shouldReduceMotion&&mo.has(c)?{type:!1}:h,t,g));const x=d.animation;x&&l.push(x)}return r&&Promise.all(l).then(()=>{D.update(()=>{r&&Rd(t,r)})}),l}function Nn(t,e,n={}){var l;const s=ce(t,e,n.type==="exit"?(l=t.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Yo(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return _d(t,e,u,c,d,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[o,r]:[r,o];return u().then(()=>c())}else return Promise.all([o(),r(n.delay)])}function _d(t,e,n=0,s=0,i=0,o=1,r){const a=[],l=t.variantChildren.size,u=(l-1)*i,c=typeof s=="function",d=c?f=>s(f,l):o===1?(f=0)=>f*i:(f=0)=>u-f*i;return Array.from(t.variantChildren).sort($d).forEach((f,h)=>{f.notify("AnimationStart",e),a.push(Nn(f,e,{...r,delay:n+(c?0:s)+d(h)}).then(()=>f.notify("AnimationComplete",e)))}),Promise.all(a)}function $d(t,e){return t.sortNodePosition(e)}function Gd(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Nn(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Nn(t,e,n);else{const i=typeof e=="function"?ce(t,e,n.custom):e;s=Promise.all(Yo(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}function qo(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const Kd=xs.length;function Zo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Zo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Kd;n++){const s=xs[n],i=t.props[s];(ae(i)||i===!1)&&(e[s]=i)}return e}const Hd=[...ys].reverse(),Xd=ys.length;function Yd(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Gd(t,n,s)))}function qd(t){let e=Yd(t),n=hi(),s=!0;const i=l=>(u,c)=>{var f;const d=ce(t,c,l==="exit"?(f=t.presenceContext)==null?void 0:f.custom:void 0);if(d){const{transition:h,transitionEnd:m,...g}=d;u={...u,...g,...m}}return u};function o(l){e=l(t)}function r(l){const{props:u}=t,c=Zo(t.parent)||{},d=[],f=new Set;let h={},m=1/0;for(let x=0;x<Xd;x++){const y=Hd[x],S=n[y],v=u[y]!==void 0?u[y]:c[y],M=ae(v),A=y===l?S.isActive:null;A===!1&&(m=x);let E=v===c[y]&&v!==u[y]&&M;if(E&&s&&t.manuallyAnimateOnMount&&(E=!1),S.protectedKeys={...h},!S.isActive&&A===null||!v&&!S.prevProp||$e(v)||typeof v=="boolean")continue;const R=Zd(S.prevProp,v);let p=R||y===l&&S.isActive&&!E&&M||x>m&&M,L=!1;const G=Array.isArray(v)?v:[v];let ut=G.reduce(i(y),{});A===!1&&(ut={});const{prevResolvedValues:xt={}}=S,pe={...xt,...ut},Mt=I=>{p=!0,f.has(I)&&(L=!0,f.delete(I)),S.needsAnimating[I]=!0;const T=t.getValue(I);T&&(T.liveStyle=!1)};for(const I in pe){const T=ut[I],Ct=xt[I];if(h.hasOwnProperty(I))continue;let Et=!1;jn(T)&&jn(Ct)?Et=!qo(T,Ct):Et=T!==Ct,Et?T!=null?Mt(I):f.add(I):T!==void 0&&f.has(I)?Mt(I):S.protectedKeys[I]=!0}S.prevProp=v,S.prevResolvedValues=ut,S.isActive&&(h={...h,...ut}),s&&t.blockInitialAnimation&&(p=!1),p&&(!(E&&R)||L)&&d.push(...G.map(I=>({animation:I,options:{type:y}})))}if(f.size){const x={};if(typeof u.initial!="boolean"){const y=ce(t,Array.isArray(u.initial)?u.initial[0]:u.initial);y&&y.transition&&(x.transition=y.transition)}f.forEach(y=>{const S=t.getBaseTarget(y),v=t.getValue(y);v&&(v.liveStyle=!0),x[y]=S??null}),d.push({animation:x})}let g=!!d.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,g?e(d):Promise.resolve()}function a(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=t.variantChildren)==null||d.forEach(f=>{var h;return(h=f.animationState)==null?void 0:h.setActive(l,u)}),n[l].isActive=u;const c=r(l);for(const f in n)n[f].protectedKeys={};return c}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=hi(),s=!0}}}function Zd(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!qo(e,t):!1}function wt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hi(){return{animate:wt(!0),whileInView:wt(),whileHover:wt(),whileTap:wt(),whileDrag:wt(),whileFocus:wt(),exit:wt()}}class yt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Jd extends yt{constructor(e){super(e),e.animationState||(e.animationState=qd(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();$e(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let Qd=0;class tf extends yt{constructor(){super(...arguments),this.id=Qd++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const ef={animation:{Feature:Jd},exit:{Feature:tf}};function ue(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function me(t){return{point:{x:t.pageX,y:t.pageY}}}const nf=t=>e=>ms(e)&&t(e,me(e));function ne(t,e,n,s){return ue(t,e,nf(n),s)}const Jo=1e-4,sf=1-Jo,rf=1+Jo,Qo=.01,of=0-Qo,af=0+Qo;function H(t){return t.max-t.min}function lf(t,e,n){return Math.abs(t-e)<=n}function mi(t,e,n,s=.5){t.origin=s,t.originPoint=F(e.min,e.max,t.origin),t.scale=H(n)/H(e),t.translate=F(n.min,n.max,t.origin)-t.originPoint,(t.scale>=sf&&t.scale<=rf||isNaN(t.scale))&&(t.scale=1),(t.translate>=of&&t.translate<=af||isNaN(t.translate))&&(t.translate=0)}function se(t,e,n,s){mi(t.x,e.x,n.x,s?s.originX:void 0),mi(t.y,e.y,n.y,s?s.originY:void 0)}function pi(t,e,n){t.min=n.min+e.min,t.max=t.min+H(e)}function cf(t,e,n){pi(t.x,e.x,n.x),pi(t.y,e.y,n.y)}function gi(t,e,n){t.min=e.min-n.min,t.max=t.min+H(e)}function ie(t,e,n){gi(t.x,e.x,n.x),gi(t.y,e.y,n.y)}function Q(t){return[t("x"),t("y")]}const ta=({current:t})=>t?t.ownerDocument.defaultView:null,yi=(t,e)=>Math.abs(t-e);function uf(t,e){const n=yi(t.x,e.x),s=yi(t.y,e.y);return Math.sqrt(n**2+s**2)}class ea{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=ln(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=uf(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!m)return;const{point:g}=f,{timestamp:x}=W;this.history.push({...g,timestamp:x});const{onStart:y,onMove:S}=this.handlers;h||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=an(h,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=ln(f.type==="pointercancel"?this.lastMoveEventInfo:an(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,y),g&&g(f,y)},!ms(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const a=me(e),l=an(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=W;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=n;d&&d(e,ln(l,this.history)),this.removeListeners=de(ne(this.contextWindow,"pointermove",this.handlePointerMove),ne(this.contextWindow,"pointerup",this.handlePointerUp),ne(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),rt(this.updatePoint)}}function an(t,e){return e?{point:e(t.point)}:t}function xi(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ln({point:t},e){return{point:t,delta:xi(t,na(e)),offset:xi(t,df(e)),velocity:ff(e,.1)}}function df(t){return t[0]}function na(t){return t[t.length-1]}function ff(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=na(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>st(e)));)n--;if(!s)return{x:0,y:0};const o=at(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function hf(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?F(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?F(n,t,s.max):Math.min(t,n)),t}function vi(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function mf(t,{top:e,left:n,bottom:s,right:i}){return{x:vi(t.x,n,i),y:vi(t.y,e,s)}}function bi(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function pf(t,e){return{x:bi(t.x,e.x),y:bi(t.y,e.y)}}function gf(t,e){let n=.5;const s=H(t),i=H(e);return i>s?n=zt(e.min,e.max-s,t.min):s>i&&(n=zt(t.min,t.max-i,e.min)),ct(0,1,n)}function yf(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Bn=.35;function xf(t=Bn){return t===!1?t=0:t===!0&&(t=Bn),{x:wi(t,"left","right"),y:wi(t,"top","bottom")}}function wi(t,e,n){return{min:Ti(t,e),max:Ti(t,n)}}function Ti(t,e){return typeof t=="number"?t:t[e]||0}const vf=new WeakMap;class bf{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=N(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(me(d).point)},r=(d,f)=>{const{drag:h,dragPropagation:m,onDragStart:g}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vu(h),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Q(y=>{let S=this.getAxisMotionValue(y).get()||0;if(lt.test(S)){const{projection:v}=this.visualElement;if(v&&v.layout){const M=v.layout.layoutBox[y];M&&(S=H(M)*(parseFloat(S)/100))}}this.originPoint[y]=S}),g&&D.postRender(()=>g(d,f)),Fn(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:g,onDrag:x}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:y}=f;if(m&&this.currentDirection===null){this.currentDirection=wf(y),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),x&&x(d,f)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Q(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new ea(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:s,contextWindow:ta(this.visualElement)})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&D.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Ae(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=hf(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var o;const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;e&&jt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=mf(s.layoutBox,e):this.constraints=!1,this.elastic=xf(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Q(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=yf(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!jt(e))return!1;const s=e.current;it(s!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=bd(s,i.root,this.visualElement.getTransformPagePoint());let r=pf(i.layout.layoutBox,o);if(n){const a=n(yd(r));this.hasMutatedConstraints=!!a,a&&(r=zo(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Q(c=>{if(!Ae(c,n,this.currentDirection))return;let d=l&&l[c]||{};r&&(d={min:0,max:0});const f=i?200:1e6,h=i?40:1e7,m={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Fn(this.visualElement,e),s.start(As(e,s,0,n,this.visualElement,!1))}stopAnimation(){Q(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Q(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){Q(n=>{const{drag:s}=this.getProps();if(!Ae(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-F(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!jt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Q(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=gf({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),Q(r=>{if(!Ae(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:u}=this.constraints[r];a.set(F(l,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;vf.set(this.visualElement,this);const e=this.visualElement.current,n=ne(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();jt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),D.read(s);const r=ue(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Q(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Bn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Ae(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function wf(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Tf extends yt{constructor(e){super(e),this.removeGroupControls=q,this.removeListeners=q,this.controls=new bf(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||q}unmount(){this.removeGroupControls(),this.removeListeners()}}const Si=t=>(e,n)=>{t&&D.postRender(()=>t(e,n))};class Sf extends yt{constructor(){super(...arguments),this.removePointerDownListener=q}onPointerDown(e){this.session=new ea(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ta(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Si(e),onStart:Si(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&D.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=ne(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Re={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Pi(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Zt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(V.test(t))t=parseFloat(t);else return t;const n=Pi(t,e.target.x),s=Pi(t,e.target.y);return`${n}% ${s}%`}},Pf={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=gt.parse(t);if(i.length>5)return s;const o=gt.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const u=F(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}};let Ai=!1;class Af extends k.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;Gu(kf),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),Ai&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Re.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,Ai=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||D.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),hs.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function sa(t){const[e,n]=Bu(),s=k.useContext(Rr);return P.jsx(Af,{...t,layoutGroup:s,switchLayoutGroup:k.useContext(Bo),isPresent:e,safeToRemove:n})}const kf={borderRadius:{...Zt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Zt,borderTopRightRadius:Zt,borderBottomLeftRadius:Zt,borderBottomRightRadius:Zt,boxShadow:Pf};function Vf(t,e,n){const s=$(t)?t:nt(t);return s.start(As("",s,e,n)),s.animation}const Mf=(t,e)=>t.depth-e.depth;class Cf{constructor(){this.children=[],this.isDirty=!1}add(e){Hn(this.children,e),this.isDirty=!0}remove(e){Xn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Mf),this.isDirty=!1,this.children.forEach(e)}}function Ef(t,e){const n=Y.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(rt(s),t(o-e))};return D.setup(s,!0),()=>rt(s)}const ia=["TopLeft","TopRight","BottomLeft","BottomRight"],Df=ia.length,ki=t=>typeof t=="string"?parseFloat(t):t,Vi=t=>typeof t=="number"||V.test(t);function Rf(t,e,n,s,i,o){i?(t.opacity=F(0,n.opacity??1,Lf(s)),t.opacityExit=F(e.opacity??1,0,If(s))):o&&(t.opacity=F(e.opacity??1,n.opacity??1,s));for(let r=0;r<Df;r++){const a=`border${ia[r]}Radius`;let l=Mi(e,a),u=Mi(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Vi(l)===Vi(u)?(t[a]=Math.max(F(ki(l),ki(u),s),0),(lt.test(u)||lt.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=F(e.rotate||0,n.rotate||0,s))}function Mi(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Lf=ra(0,.5,Ur),If=ra(.5,.95,q);function ra(t,e,n){return s=>s<t?0:s>e?1:n(zt(t,e,s))}function Ci(t,e){t.min=e.min,t.max=e.max}function J(t,e){Ci(t.x,e.x),Ci(t.y,e.y)}function Ei(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Di(t,e,n,s,i){return t-=e,t=Be(t,1/n,s),i!==void 0&&(t=Be(t,1/i,s)),t}function jf(t,e=0,n=1,s=.5,i,o=t,r=t){if(lt.test(e)&&(e=parseFloat(e),e=F(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=F(o.min,o.max,s);t===o&&(a-=e),t.min=Di(t.min,e,n,a,i),t.max=Di(t.max,e,n,a,i)}function Ri(t,e,[n,s,i],o,r){jf(t,e[n],e[s],e[i],e.scale,o,r)}const Ff=["x","scaleX","originX"],Nf=["y","scaleY","originY"];function Li(t,e,n,s){Ri(t.x,e,Ff,n?n.x:void 0,s?s.x:void 0),Ri(t.y,e,Nf,n?n.y:void 0,s?s.y:void 0)}function Ii(t){return t.translate===0&&t.scale===1}function oa(t){return Ii(t.x)&&Ii(t.y)}function ji(t,e){return t.min===e.min&&t.max===e.max}function Bf(t,e){return ji(t.x,e.x)&&ji(t.y,e.y)}function Fi(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function aa(t,e){return Fi(t.x,e.x)&&Fi(t.y,e.y)}function Ni(t){return H(t.x)/H(t.y)}function Bi(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Of{constructor(){this.members=[]}add(e){Hn(this.members,e),e.scheduleRender()}remove(e){if(Xn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function zf(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=(n==null?void 0:n.z)||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:h,skewY:m}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),d&&(s+=`rotateX(${d}deg) `),f&&(s+=`rotateY(${f}deg) `),h&&(s+=`skewX(${h}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const cn=["","X","Y","Z"],Wf=1e3;let Uf=0;function un(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function la(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Xo(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",D,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&la(s)}function ca({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=Uf++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Gf),this.nodes.forEach(Yf),this.nodes.forEach(qf),this.nodes.forEach(Kf)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Cf)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new qn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=ps(r)&&!Iu(r),this.instance=r;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let c,d=0;const f=()=>this.root.updateBlockedByResize=!1;D.read(()=>{d=window.innerWidth}),t(r,()=>{const h=window.innerWidth;h!==d&&(d=h,this.root.updateBlockedByResize=!0,c&&c(),c=Ef(f,250),Re.hasAnimatedSinceResize&&(Re.hasAnimatedSinceResize=!1,this.nodes.forEach(Wi)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||eh,{onLayoutAnimationStart:g,onLayoutAnimationComplete:x}=u.getProps(),y=!this.targetLayout||!aa(this.targetLayout,h),S=!d&&f;if(this.options.layoutRoot||this.resumeFrom||S||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...ds(m,"layout"),onPlay:g,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,S)}else d||Wi(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),rt(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(Zf),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&la(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Oi);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(zi);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Xf),this.nodes.forEach(_f),this.nodes.forEach($f)):this.nodes.forEach(zi),this.clearAllSnapshots();const a=Y.now();W.delta=ct(0,1e3/60,a-W.timestamp),W.timestamp=a,W.isProcessing=!0,Je.update.process(W),Je.preRender.process(W),Je.render.process(W),W.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,hs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Hf),this.sharedNodes.forEach(Jf)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!H(this.snapshot.measuredBox.x)&&!H(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=N(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!oa(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;r&&this.instance&&(a||Tt(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),nh(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:r}=this.options;if(!r)return N();const a=r.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(sh))){const{scroll:c}=this.root;c&&(Ft(a.x,c.offset.x),Ft(a.y,c.offset.y))}return a}removeElementScroll(r){var l;const a=N();if(J(a,r),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&J(a,r),Ft(a.x,d.offset.x),Ft(a.y,d.offset.y))}return a}applyTransform(r,a=!1){const l=N();J(l,r);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Nt(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Tt(c.latestValues)&&Nt(l,c.latestValues)}return Tt(this.latestValues)&&Nt(l,this.latestValues),l}removeTransform(r){const a=N();J(a,r);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Tt(u.latestValues))continue;Rn(u.latestValues)&&u.updateSnapshot();const c=N(),d=u.measurePageBox();J(c,d),Li(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Tt(this.latestValues)&&Li(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==W.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var f;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:d}=this.options;if(!(!this.layout||!(c||d))){if(this.resolvedRelativeTargetAt=W.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=N(),this.relativeTargetOrigin=N(),ie(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),J(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=N(),this.targetWithTransforms=N()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),cf(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):J(this.target,this.layout.layoutBox),Uo(this.target,this.targetDelta)):J(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=N(),this.relativeTargetOrigin=N(),ie(this.relativeTargetOrigin,this.target,h.target),J(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Rn(this.parent.latestValues)||Wo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var m;const r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===W.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;J(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;vd(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=N());const{target:h}=r;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ei(this.prevProjectionDelta.x,this.projectionDelta.x),Ei(this.prevProjectionDelta.y,this.projectionDelta.y)),se(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!Bi(this.projectionDelta.x,this.prevProjectionDelta.x)||!Bi(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),r){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Bt(),this.projectionDelta=Bt(),this.projectionDeltaWithTransform=Bt()}setAnimationOrigin(r,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=Bt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=N(),h=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=h!==m,x=this.getStack(),y=!x||x.members.length<=1,S=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(th));this.animationProgress=0;let v;this.mixTargetDelta=M=>{const A=M/1e3;Ui(d.x,r.x,A),Ui(d.y,r.y,A),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ie(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Qf(this.relativeTarget,this.relativeTargetOrigin,f,A),v&&Bf(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=N()),J(v,this.relativeTarget)),g&&(this.animationValues=c,Rf(c,u,this.latestValues,A,S,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(rt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{Re.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=nt(0)),this.currentAnimation=Vf(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),r.onUpdate&&r.onUpdate(c)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Wf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=r;if(!(!a||!l||!u)){if(this!==r&&this.layout&&u&&ua(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||N();const d=H(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+d;const f=H(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}J(a,l),Nt(a,c),se(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Of),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var a;const{layoutId:r}=this.options;return r?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:r}=this.options;return r?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&un("z",r,u,this.animationValues);for(let c=0;c<cn.length;c++)un(`rotate${cn[c]}`,r,u,this.animationValues),un(`skew${cn[c]}`,r,u,this.animationValues);r.render();for(const c in u)r.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=De(a==null?void 0:a.pointerEvents)||"",r.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=De(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Tt(this.latestValues)&&(r.transform=l?l({},""):"none",this.hasProjected=!1);return}r.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=zf(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),r.transform=d;const{x:f,y:h}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${h.origin*100}% 0`,u.animationValues?r.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:r.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const m in le){if(c[m]===void 0)continue;const{correct:g,applyTo:x,isCSSVariable:y}=le[m],S=d==="none"?c[m]:g(c[m],u);if(x){const v=x.length;for(let M=0;M<v;M++)r[x[M]]=S}else y?this.options.visualElement.renderState.vars[m]=S:r[m]=S}this.options.layoutId&&(r.pointerEvents=u===this?De(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Oi),this.root.sharedNodes.clear()}}}function _f(t){t.updateLayout()}function $f(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=e.source!==t.layout.source;o==="size"?Q(d=>{const f=r?e.measuredBox[d]:e.layoutBox[d],h=H(f);f.min=s[d].min,f.max=f.min+h}):ua(o,e.layoutBox,s)&&Q(d=>{const f=r?e.measuredBox[d]:e.layoutBox[d],h=H(s[d]);f.max=f.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+h)});const a=Bt();se(a,s,e.layoutBox);const l=Bt();r?se(l,t.applyTransform(i,!0),e.measuredBox):se(l,s,e.layoutBox);const u=!oa(a);let c=!1;if(!t.resumeFrom){const d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const m=N();ie(m,e.layoutBox,f.layoutBox);const g=N();ie(g,s,h.layoutBox),aa(m,g)||(c=!0),d.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=m,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function Gf(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Kf(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Hf(t){t.clearSnapshot()}function Oi(t){t.clearMeasurements()}function zi(t){t.isLayoutDirty=!1}function Xf(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Wi(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Yf(t){t.resolveTargetDelta()}function qf(t){t.calcProjection()}function Zf(t){t.resetSkewAndRotation()}function Jf(t){t.removeLeadSnapshot()}function Ui(t,e,n){t.translate=F(e.translate,0,n),t.scale=F(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function _i(t,e,n,s){t.min=F(e.min,n.min,s),t.max=F(e.max,n.max,s)}function Qf(t,e,n,s){_i(t.x,e.x,n.x,s),_i(t.y,e.y,n.y,s)}function th(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const eh={duration:.45,ease:[.4,0,.1,1]},$i=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Gi=$i("applewebkit/")&&!$i("chrome/")?Math.round:q;function Ki(t){t.min=Gi(t.min),t.max=Gi(t.max)}function nh(t){Ki(t.x),Ki(t.y)}function ua(t,e,n){return t==="position"||t==="preserve-aspect"&&!lf(Ni(e),Ni(n),.2)}function sh(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const ih=ca({attachResizeListener:(t,e)=>ue(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),dn={current:void 0},da=ca({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!dn.current){const t=new ih({});t.mount(window),t.setOptions({layoutScroll:!0}),dn.current=t}return dn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),rh={pan:{Feature:Sf},drag:{Feature:Tf,ProjectionNode:da,MeasureLayout:sa}};function Hi(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&D.postRender(()=>o(e,me(e)))}class oh extends yt{mount(){const{current:e}=this.node;e&&(this.unmount=bu(e,(n,s)=>(Hi(this.node,s,"Start"),i=>Hi(this.node,i,"End"))))}unmount(){}}class ah extends yt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=de(ue(this.node.current,"focus",()=>this.onFocus()),ue(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Xi(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&D.postRender(()=>o(e,me(e)))}class lh extends yt{mount(){const{current:e}=this.node;e&&(this.unmount=Pu(e,(n,s)=>(Xi(this.node,s,"Start"),(i,{success:o})=>Xi(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const On=new WeakMap,fn=new WeakMap,ch=t=>{const e=On.get(t.target);e&&e(t)},uh=t=>{t.forEach(ch)};function dh({root:t,...e}){const n=t||document;fn.has(n)||fn.set(n,{});const s=fn.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(uh,{root:t,...e})),s[i]}function fh(t,e,n){const s=dh(e);return On.set(t,n),s.observe(t),()=>{On.delete(t),s.unobserve(t)}}const hh={some:0,all:1};class mh extends yt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:hh[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return fh(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(ph(e,n))&&this.startObserver()}unmount(){}}function ph({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const gh={inView:{Feature:mh},tap:{Feature:lh},focus:{Feature:ah},hover:{Feature:oh}},yh={layout:{ProjectionNode:da,MeasureLayout:sa}},xh={...ef,...gh,...rh,...yh},vh=gd(xh,Cd),bh=50,Yi=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),wh=()=>({time:0,x:Yi(),y:Yi()}),Th={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function qi(t,e,n,s){const i=n[e],{length:o,position:r}=Th[e],a=i.current,l=n.time;i.current=t[`scroll${r}`],i.scrollLength=t[`scroll${o}`]-t[`client${o}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=zt(0,i.scrollLength,i.current);const u=s-l;i.velocity=u>bh?0:Zn(i.current-a,u)}function Sh(t,e,n){qi(t,"x",e,n),qi(t,"y",e,n),e.time=n}function Ph(t,e){const n={x:0,y:0};let s=t;for(;s&&s!==e;)if(wo(s))n.x+=s.offsetLeft,n.y+=s.offsetTop,s=s.offsetParent;else if(s.tagName==="svg"){const i=s.getBoundingClientRect();s=s.parentElement;const o=s.getBoundingClientRect();n.x+=i.left-o.left,n.y+=i.top-o.top}else if(s instanceof SVGGraphicsElement){const{x:i,y:o}=s.getBBox();n.x+=i,n.y+=o;let r=null,a=s.parentNode;for(;!r;)a.tagName==="svg"&&(r=a),a=s.parentNode;s=r}else break;return n}const zn={start:0,center:.5,end:1};function Zi(t,e,n=0){let s=0;if(t in zn&&(t=zn[t]),typeof t=="string"){const i=parseFloat(t);t.endsWith("px")?s=i:t.endsWith("%")?t=i/100:t.endsWith("vw")?s=i/100*document.documentElement.clientWidth:t.endsWith("vh")?s=i/100*document.documentElement.clientHeight:t=i}return typeof t=="number"&&(s=e*t),n+s}const Ah=[0,0];function kh(t,e,n,s){let i=Array.isArray(t)?t:Ah,o=0,r=0;return typeof t=="number"?i=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?i=t.split(" "):i=[t,zn[t]?t:"0"]),o=Zi(i[0],n,s),r=Zi(i[1],e),o-r}const Vh={All:[[0,0],[1,1]]},Mh={x:0,y:0};function Ch(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function Eh(t,e,n){const{offset:s=Vh.All}=n,{target:i=t,axis:o="y"}=n,r=o==="y"?"height":"width",a=i!==t?Ph(i,t):Mh,l=i===t?{width:t.scrollWidth,height:t.scrollHeight}:Ch(i),u={width:t.clientWidth,height:t.clientHeight};e[o].offset.length=0;let c=!e[o].interpolate;const d=s.length;for(let f=0;f<d;f++){const h=kh(s[f],u[r],l[r],a[o]);!c&&h!==e[o].interpolatorOffsets[f]&&(c=!0),e[o].offset[f]=h}c&&(e[o].interpolate=os(e[o].offset,so(s),{clamp:!1}),e[o].interpolatorOffsets=[...e[o].offset]),e[o].progress=ct(0,1,e[o].interpolate(e[o].current))}function Dh(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let s=e;for(;s&&s!==t;)n.x.targetOffset+=s.offsetLeft,n.y.targetOffset+=s.offsetTop,s=s.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight,process.env.NODE_ENV!=="production"&&t&&e&&e!==t&&Ue(getComputedStyle(t).position!=="static","Please ensure that the container has a non-static position, like 'relative', 'fixed', or 'absolute' to ensure scroll offset is calculated correctly.")}function Rh(t,e,n,s={}){return{measure:i=>{Dh(t,s.target,n),Sh(t,n,i),(s.offset||s.target)&&Eh(t,n,s)},notify:()=>e(n)}}const Jt=new WeakMap,Ji=new WeakMap,hn=new WeakMap,Qi=t=>t===document.scrollingElement?window:t;function fa(t,{container:e=document.scrollingElement,...n}={}){if(!e)return q;let s=hn.get(e);s||(s=new Set,hn.set(e,s));const i=wh(),o=Rh(e,t,i,n);if(s.add(o),!Jt.has(e)){const a=()=>{for(const d of s)d.measure(W.timestamp);D.preUpdate(l)},l=()=>{for(const d of s)d.notify()},u=()=>D.read(a);Jt.set(e,u);const c=Qi(e);window.addEventListener("resize",u,{passive:!0}),e!==document.documentElement&&Ji.set(e,Lu(e,u)),c.addEventListener("scroll",u,{passive:!0}),u()}const r=Jt.get(e);return D.read(r,!1,!0),()=>{var u;rt(r);const a=hn.get(e);if(!a||(a.delete(o),a.size))return;const l=Jt.get(e);Jt.delete(e),l&&(Qi(e).removeEventListener("scroll",l),(u=Ji.get(e))==null||u(),window.removeEventListener("resize",l))}}const tr=new Map;function Lh(t){const e={value:0},n=fa(s=>{e.value=s[t.axis].progress*100},t);return{currentTime:e,cancel:n}}function ha({source:t,container:e,...n}){const{axis:s}=n;t&&(e=t);const i=tr.get(e)??new Map;tr.set(e,i);const o=n.target??"self",r=i.get(o)??{},a=s+(n.offset??[]).join(",");return r[a]||(r[a]=!n.target&&ao()?new ScrollTimeline({source:e,axis:s}):Lh({container:e,...n})),r[a]}function Ih(t,e){const n=ha(e);return t.attachTimeline({timeline:e.target?void 0:n,observe:s=>(s.pause(),ko(i=>{s.time=s.duration*i},n))})}function jh(t){return t.length===2}function Fh(t,e){return jh(t)?fa(n=>{t(n[e.axis].progress,n)},e):ko(t,ha(e))}function Nh(t,{axis:e="y",container:n=document.scrollingElement,...s}={}){if(!n)return q;const i={axis:e,container:n,...s};return typeof t=="function"?Fh(t,i):Ih(t,i)}const Bh=()=>({scrollX:nt(0),scrollY:nt(0),scrollXProgress:nt(0),scrollYProgress:nt(0)}),ke=t=>t?!t.current:!1;function Oh({container:t,target:e,...n}={}){const s=We(Bh),i=k.useRef(null),o=k.useRef(!1),r=k.useCallback(()=>(i.current=Nh((a,{x:l,y:u})=>{s.scrollX.set(l.current),s.scrollXProgress.set(l.progress),s.scrollY.set(u.current),s.scrollYProgress.set(u.progress)},{...n,container:(t==null?void 0:t.current)||void 0,target:(e==null?void 0:e.current)||void 0}),()=>{var a;(a=i.current)==null||a.call(i)}),[t,e,JSON.stringify(n.offset)]);return Gn(()=>{if(o.current=!1,ke(t)||ke(e)){o.current=!0;return}else return r()},[r]),k.useEffect(()=>{if(o.current)return it(!ke(t),"Container ref is defined but not hydrated","use-scroll-ref"),it(!ke(e),"Target ref is defined but not hydrated","use-scroll-ref"),r()},[r]),s}function zh(t){const e=We(()=>nt(t)),{isStatic:n}=k.useContext(gs);if(n){const[,s]=k.useState(t);k.useEffect(()=>e.on("change",s),[])}return e}function ma(t,e){const n=zh(e()),s=()=>n.set(e());return s(),Gn(()=>{const i=()=>D.preRender(s,!1,!0),o=t.map(r=>r.on("change",i));return()=>{o.forEach(r=>r()),rt(s)}}),n}function Wh(t){ee.current=[],t();const e=ma(ee.current,t);return ee.current=void 0,e}function Uh(t,e,n,s){if(typeof t=="function")return Wh(t);const i=typeof e=="function"?e:ju(e,n,s);return Array.isArray(t)?er(t,i):er([t],([o])=>i(o))}function er(t,e){const n=We(()=>[]);return ma(t,()=>{n.length=0;const s=t.length;for(let i=0;i<s;i++)n[i]=t[i].get();return e(n)})}const _h=({children:t,className:e})=>{const n=k.useRef(null),{scrollYProgress:s}=Oh({target:n});if(typeof t!="string")throw new Error("TextReveal: children must be a string");const i=t.split(" ");return P.jsx("div",{ref:n,className:_("z-0 relative h-[200vh]",e),children:P.jsx("div",{className:"sticky top-0 mx-auto flex h-[50%] max-w-4xl items-center bg-transparent px-[1rem] py-[5rem]",children:P.jsx("span",{ref:n,className:"flex flex-wrap p-5 text-2xl font-bold text-black/20 dark:text-white/20 md:p-8 md:text-3xl lg:p-10 lg:text-4xl xl:text-5xl",children:i.map((o,r)=>{const a=r/i.length,l=a+1/i.length;return P.jsx($h,{progress:s,range:[a,l],children:o},r)})})})})},$h=({children:t,progress:e,range:n})=>{const s=Uh(e,n,[0,1]);return P.jsxs("span",{className:"relative mx-1 lg:mx-1.5",children:[P.jsx("span",{className:"absolute opacity-30",children:t}),P.jsx(vh.span,{style:{opacity:s},className:"text-black dark:text-white",children:t})]})};exports.AuroraText=yr;exports.Box=Ut;exports.Button=vl;exports.Container=tl;exports.ExternalLink=ml;exports.Flex=ul;exports.FormattedDate=Ll;exports.FormattedNumber=Il;exports.Grid=dl;exports.Heading=hl;exports.Input=bl;exports.LanguageSelector=jl;exports.Paragraph=gl;exports.Section=yl;exports.Select=xr;exports.SelectContent=wr;exports.SelectGroup=wl;exports.SelectItem=Tr;exports.SelectLabel=Tl;exports.SelectScrollDownButton=Pr;exports.SelectScrollUpButton=Sr;exports.SelectSeparator=Sl;exports.SelectTrigger=br;exports.SelectValue=vr;exports.Stack=xl;exports.Text=Gt;exports.TextReveal=_h;exports.TranslatedHtml=Al;exports.TranslatedText=Pl;
105
+ `,e),...r,children:[d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx(k.ItemIndicator,{children:d.jsx(le.CheckIcon,{className:"size-4"})})}),d.jsx(k.ItemText,{children:t})]})}function Sr({className:e,...t}){return d.jsx(k.Separator,{"data-slot":"select-separator",className:w("pointer-events-none -mx-1 my-1 h-px bg-border",e),...t})}function at({className:e,...t}){return d.jsx(k.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:w("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(le.ChevronUpIcon,{className:"size-4"})})}function it({className:e,...t}){return d.jsx(k.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:w("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(le.ChevronDownIcon,{className:"size-4"})})}const zr=({translationKey:e,translationOptions:t,namespace:r,...o})=>{const n=De.useTranslations(r)(e,t==null?void 0:t.args);return d.jsx(H,{...o,children:n})},jr=({translationKey:e,translationOptions:t,namespace:r,className:o,tag:s="div"})=>{const a=De.useTranslations(r)(e,t==null?void 0:t.args);return Ve.createElement(s,{className:o,"data-testid":"translated-html"},a)};var Nr=Object.defineProperty,v=(e,t)=>Nr(e,"name",{value:t,configurable:!0}),fe=new Map,be=new Map;function ke(e,t){return`${e}:${JSON.stringify(t??{})}`}v(ke,"getFormatterKey");function lt(e){const t=typeof e=="string"||typeof e=="number"?new Date(e):e;return t instanceof Date&&!Number.isNaN(t.getTime())?t:null}v(lt,"parseDate");function ct(e,t="en",r){var n;const o=lt(e);if(!o)return"";const s=ke(t,r);return fe.has(s)||fe.set(s,new Intl.DateTimeFormat(t,r)),((n=fe.get(s))==null?void 0:n.format(o))??""}v(ct,"formatDate");function dt(e,t="en",r){var s;if(typeof e!="number"||Number.isNaN(e))return"";const o=ke(t,r);return be.has(o)||be.set(o,new Intl.NumberFormat(t,r)),((s=be.get(o))==null?void 0:s.format(e))??""}v(dt,"formatNumber");var ce={defaultLocale:"en",supportedLocales:["en","es","fr","it","pt-BR","pt-PT"],fallbackLocale:"en"};function Pr(){return ce.supportedLocales}v(Pr,"getSupportedLanguages");function Ar(){return ce.defaultLocale}v(Ar,"getDefaultLanguage");function Cr(){return ce.fallbackLocale}v(Cr,"getFallbackLanguage");function Ir(e){return ce.supportedLocales.includes(e)}v(Ir,"isSupportedLanguage");var V=new Map;function Mr({value:e,forms:t,lang:r,type:o="cardinal"}){if(!mt(e,t))return"";if(e===0&&t.zero)return we(t.zero,e);const n=pt(r,o).select(e),a=ut(t,n)??t.other??Object.values(t)[0];return a?we(a,e):""}v(Mr,"pluralize");function Se(e,t){return`${e}:${t}`}v(Se,"getPluralRulesKey");var Rr=/{count}|#/g;function ut(e,t){switch(t){case"zero":return e.zero;case"one":return e.one;case"two":return e.two;case"few":return e.few;case"many":return e.many;case"other":return e.other;default:return}}v(ut,"selectTemplate");function mt(e,t){return typeof e=="number"&&t&&typeof t=="object"}v(mt,"isValidInput");function we(e,t){return e.replaceAll(Rr,t.toString())}v(we,"replacePlaceholders");function pt(e,t){const r=Se(e,t);if(!V.has(r))try{V.set(r,new Intl.PluralRules(e,{type:t}))}catch{return ie(r,t)}return V.get(r)??ie(r,t)}v(pt,"getPluralRules");function ie(e,t){const r=Se("en",t);V.has(r)||V.set(r,new Intl.PluralRules("en",{type:t}));const o=V.get(r)??ie(r,t);return V.set(e,o),o}v(ie,"getFallbackPluralRules");var A;A=class{constructor(){se(this,"fallbackLocale");this.fallbackLocale="en"}static getInstance(){return A.instance||(A.instance=new A),A.instance}detectLocale(t){return t?this.detectFromRequest(t):this.fallbackLocale}detectFromRequest(t){var n,a,p;const r=(n=t.url.split("?")[1])==null?void 0:n.split("=")[1],o=t.headers.get("accept-language"),s=(p=(a=t.headers.get("cookie"))==null?void 0:a.split("; ").find(u=>u.startsWith("locale=")))==null?void 0:p.split("=")[1];return r??s??this.parseAcceptLanguage(o??"")??this.fallbackLocale}parseAcceptLanguage(t){if(!t)return null;let r=null,o=0;for(const s of t.split(",")){const{lang:n,q:a}=this.parseLangAndQ(s.trim());if(a>o&&(o=a,r=n,a===1))break}return r}parseLangAndQ(t){const r=t.indexOf(";"),o=r===-1?t:t.slice(0,Math.max(0,r));let s=1;if(r!==-1){const n=/q=(?<q>[\d.]+)/.exec(t.slice(r+1));s=n!=null&&n.groups?Number.parseFloat(n.groups.q)||0:1}return{lang:o,q:s}}setFallbackLocale(t){this.fallbackLocale=t}},v(A,"LocaleDetector"),se(A,"instance");var U;U=class{constructor(t){se(this,"namespaces");this.namespaces=t?new Map(t):new Map}addNamespace(t,r){if(!gt(t))throw new Error("Invalid namespace name");this.namespaces.set(t,r)}getNamespace(t){return this.namespaces.get(t)}getAllNamespaces(){return[...this.namespaces.keys()]}mergeNamespaces(t,r){const o=this.namespaces.get(t)??{},s=this.namespaces.get(r)??{};this.namespaces.set(t,{...o,...s})}validateNamespace(t,r){const o=this.namespaces.get(t);return o?r?Object.entries(r).every(([s,n])=>{var p;const a=(p=Object.getOwnPropertyDescriptor(o,s))==null?void 0:p.value;return a!==void 0&&typeof a===n}):!0:!1}},v(U,"NamespaceManager");function gt(e){return/^\w+$/.test(e)}v(gt,"isSafeKey");const Lr=({date:e,formatOptions:t,locale:r,...o})=>{const s=ct(e,r,t);return d.jsx(H,{...o,children:s})},Tr=({value:e,formatOptions:t,locale:r,...o})=>{const s=dt(e,r,t);return d.jsx(H,{...o,children:s})};function Er({locale:e,locales:t,onChange:r,getLabel:o,disabled:s}){return d.jsxs(tt,{value:e,onValueChange:r,disabled:s,children:[d.jsx(ot,{children:d.jsx(rt,{placeholder:o(e)})}),d.jsx(st,{children:t.map(n=>d.jsx(nt,{value:n,children:o(n)},n))})]})}exports.AuroraText=et;exports.Box=W;exports.Button=vr;exports.Container=er;exports.ExternalLink=gr;exports.Flex=dr;exports.FormattedDate=Lr;exports.FormattedNumber=Tr;exports.Grid=ur;exports.Heading=pr;exports.Input=wr;exports.LanguageSelector=Er;exports.Paragraph=br;exports.Section=xr;exports.Select=tt;exports.SelectContent=st;exports.SelectGroup=yr;exports.SelectItem=nt;exports.SelectLabel=kr;exports.SelectScrollDownButton=it;exports.SelectScrollUpButton=at;exports.SelectSeparator=Sr;exports.SelectTrigger=ot;exports.SelectValue=rt;exports.Stack=hr;exports.Text=H;exports.TranslatedHtml=jr;exports.TranslatedText=zr;