@vezham/storybook-utils 0.1.0 → 0.2.0-poc-env-1

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/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react/jsx-runtime"),v=require("react"),Pa=require("react-dom");function hu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const fo=hu(v);function Pe(e){return v.forwardRef(e)}var sn=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((s,i)=>i in e?{...s,[i]:e[i]}:s,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,o)=>({...i,[o]:e[o]}),{}),r]:[e,r]},pu={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",info:"bg-info text-info-foreground"},mu={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",info:"shadow-lg shadow-info/40 bg-info text-info-foreground"},gu={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",info:"bg-transparent border-info text-info"},vu={default:"bg-default/40 text-default-700",primary:"bg-primary/20 text-primary-600",secondary:"bg-secondary/20 text-secondary-600",success:"bg-success/20 text-success-700 dark:text-success",warning:"bg-warning/20 text-warning-700 dark:text-warning",danger:"bg-danger/20 text-danger-600 dark:text-danger-500",info:"bg-info/20 text-info-600"},bu={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",info:"border-default bg-default-100 text-info"},yu={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",info:"bg-transparent text-info"},B={solid:pu,shadow:mu,bordered:gu,flat:vu,faded:bu,light:yu},pn=["small","medium","large"],Dr={theme:{opacity:["disabled"],spacing:["divider"],borderWidth:pn,borderRadius:pn},classGroups:{shadow:[{shadow:pn}],"font-size":[{text:["tiny",...pn]}],"bg-image":["bg-stripe-gradient-default","bg-stripe-gradient-primary","bg-stripe-gradient-secondary","bg-stripe-gradient-success","bg-stripe-gradient-warning","bg-stripe-gradient-danger","bg-stripe-gradient-info"]}},ho=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ie=e=>!e||typeof e!="object"||Object.keys(e).length===0,xu=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Sa(e,t){e.forEach(function(n){Array.isArray(n)?Sa(n,t):t.push(n)})}function Ea(e){let t=[];return Sa(e,t),t}var Ca=(...e)=>Ea(e).filter(Boolean),Ma=(e,t)=>{let n={},r=Object.keys(e),s=Object.keys(t);for(let i of r)if(s.includes(i)){let o=e[i],a=t[i];Array.isArray(o)||Array.isArray(a)?n[i]=Ca(a,o):typeof o=="object"&&typeof a=="object"?n[i]=Ma(o,a):n[i]=a+" "+o}else n[i]=e[i];for(let i of s)r.includes(i)||(n[i]=t[i]);return n},po=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();const fs="-",wu=e=>{const t=$u(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(fs);return a[0]===""&&a.length!==1&&a.shift(),Aa(a,t)||Tu(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},Aa=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Aa(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(fs);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},mo=/^\[(.+)\]$/,Tu=e=>{if(mo.test(e)){const t=mo.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},$u=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Su(Object.entries(e.classGroups),n).forEach(([i,o])=>{Lr(o,r,i,t)}),r},Lr=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:go(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(Pu(s)){Lr(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Lr(o,go(t,i),n,r)})})},go=(e,t)=>{let n=e;return t.split(fs).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Pu=e=>e.isThemeGetter,Su=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,Eu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},ka="!",Cu=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let u=0,c=0,h;for(let y=0;y<a.length;y++){let x=a[y];if(u===0){if(x===s&&(r||a.slice(y,y+i)===t)){l.push(a.slice(c,y)),c=y+i;continue}if(x==="/"){h=y;continue}}x==="["?u++:x==="]"&&u--}const p=l.length===0?a:a.substring(c),m=p.startsWith(ka),b=m?p.substring(1):p,g=h&&h>c?h-c:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:o}):o},Mu=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Au=e=>({cache:Eu(e.cacheSize),parseClassName:Cu(e),...wu(e)}),ku=/\s+/,Du=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(ku);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:m}=n(u);let b=!!m,g=r(b?p.substring(0,m):p);if(!g){if(!b){a=u+(a.length>0?" "+a:a);continue}if(g=r(p),!g){a=u+(a.length>0?" "+a:a);continue}b=!1}const y=Mu(c).join(":"),x=h?y+ka:y,T=x+g;if(i.includes(T))continue;i.push(T);const E=s(g,b);for(let k=0;k<E.length;++k){const A=E[k];i.push(x+A)}a=u+(a.length>0?" "+a:a)}return a};function Lu(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Da(t))&&(r&&(r+=" "),r+=n);return r}const Da=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Da(e[r]))&&(n&&(n+=" "),n+=t);return n};function Rr(e,...t){let n,r,s,i=o;function o(l){const u=t.reduce((c,h)=>h(c),e());return n=Au(u),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=Du(l,n);return s(l,c),c}return function(){return i(Lu.apply(null,arguments))}}const _=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},La=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ru=/^\d+\/\d+$/,Ku=new Set(["px","full","screen"]),Vu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Fu=/\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$/,Iu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ou=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Nu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ae=e=>yt(e)||Ku.has(e)||Ru.test(e),Ne=e=>Et(e,"length",_u),yt=e=>!!e&&!Number.isNaN(Number(e)),sr=e=>Et(e,"number",yt),Dt=e=>!!e&&Number.isInteger(Number(e)),Bu=e=>e.endsWith("%")&&yt(e.slice(0,-1)),U=e=>La.test(e),Be=e=>Vu.test(e),ju=new Set(["length","size","percentage"]),zu=e=>Et(e,ju,Ra),Uu=e=>Et(e,"position",Ra),Wu=new Set(["image","url"]),Gu=e=>Et(e,Wu,Yu),Hu=e=>Et(e,"",Xu),Lt=()=>!0,Et=(e,t,n)=>{const r=La.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},_u=e=>Fu.test(e)&&!Iu.test(e),Ra=()=>!1,Xu=e=>Ou.test(e),Yu=e=>Nu.test(e),Kr=()=>{const e=_("colors"),t=_("spacing"),n=_("blur"),r=_("brightness"),s=_("borderColor"),i=_("borderRadius"),o=_("borderSpacing"),a=_("borderWidth"),l=_("contrast"),u=_("grayscale"),c=_("hueRotate"),h=_("invert"),p=_("gap"),m=_("gradientColorStops"),b=_("gradientColorStopPositions"),g=_("inset"),y=_("margin"),x=_("opacity"),T=_("padding"),E=_("saturate"),k=_("scale"),A=_("sepia"),R=_("skew"),F=_("space"),d=_("translate"),M=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",U,t],S=()=>[U,t],f=()=>["",Ae,Ne],w=()=>["auto",yt,U],$=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>["start","end","center","between","around","evenly","stretch"],V=()=>["","0",U],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[yt,U];return{cacheSize:500,separator:":",theme:{colors:[Lt],spacing:[Ae,Ne],blur:["none","",Be,U],brightness:z(),borderColor:[e],borderRadius:["none","","full",Be,U],borderSpacing:S(),borderWidth:f(),contrast:z(),grayscale:V(),hueRotate:z(),invert:V(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[Bu,Ne],inset:P(),margin:P(),opacity:z(),padding:S(),saturate:z(),scale:z(),sepia:V(),skew:z(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",U]}],container:["container"],columns:[{columns:[Be]}],"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"],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:[...$(),U]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Dt,U]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",U]}],grow:[{grow:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",Dt,U]}],"grid-cols":[{"grid-cols":[Lt]}],"col-start-end":[{col:["auto",{span:["full",Dt,U]},U]}],"col-start":[{"col-start":w()}],"col-end":[{"col-end":w()}],"grid-rows":[{"grid-rows":[Lt]}],"row-start-end":[{row:["auto",{span:[Dt,U]},U]}],"row-start":[{"row-start":w()}],"row-end":[{"row-end":w()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",U]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",U]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...C()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...C(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...C(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",U,t]}],"min-w":[{"min-w":[U,t,"min","max","fit"]}],"max-w":[{"max-w":[U,t,"none","full","min","max","fit","prose",{screen:[Be]},Be]}],h:[{h:[U,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[U,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[U,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[U,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Be,Ne]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",sr]}],"font-family":[{font:[Lt]}],"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:["tighter","tight","normal","wide","wider","widest",U]}],"line-clamp":[{"line-clamp":["none",yt,sr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ae,U]}],"list-image":[{"list-image":["none",U]}],"list-style-type":[{list:["none","disc","decimal",U]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ae,Ne]}],"underline-offset":[{"underline-offset":["auto",Ae,U]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",U]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",U]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$(),Uu]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zu]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Gu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:D()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[Ae,U]}],"outline-w":[{outline:[Ae,Ne]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:f()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Ae,Ne]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Be,Hu]}],"shadow-color":[{shadow:[Lt]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...L(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":L()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Be,U]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[h]}],saturate:[{saturate:[E]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",U]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",U]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",U]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[Dt,U]}],"translate-x":[{"translate-x":[d]}],"translate-y":[{"translate-y":[d]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",U]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",U]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",U]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ae,Ne,sr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-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"],"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"]}}},qu=(e,{cacheSize:t,prefix:n,separator:r,experimentalParseClassName:s,extend:i={},override:o={}})=>{It(e,"cacheSize",t),It(e,"prefix",n),It(e,"separator",r),It(e,"experimentalParseClassName",s);for(const a in o)Zu(e[a],o[a]);for(const a in i)Ju(e[a],i[a]);return e},It=(e,t,n)=>{n!==void 0&&(e[t]=n)},Zu=(e,t)=>{if(t)for(const n in t)It(e,n,t[n])},Ju=(e,t)=>{if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}},Qu=(e,...t)=>typeof e=="function"?Rr(Kr,e,...t):Rr(()=>qu(Kr(),e),...t),ed=Rr(Kr);var td={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Ka=e=>e||void 0,Yt=(...e)=>Ka(Ea(e).filter(Boolean).join(" ")),or=null,Le={},Vr=!1,Rt=(...e)=>t=>t.twMerge?((!or||Vr)&&(Vr=!1,or=ie(Le)?ed:Qu({...Le,extend:{theme:Le.theme,classGroups:Le.classGroups,conflictingClassGroupModifiers:Le.conflictingClassGroupModifiers,conflictingClassGroups:Le.conflictingClassGroups,...Le.extend}})),Ka(or(Yt(e)))):Yt(e),vo=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=Yt(e[n],t[n]):e[n]=t[n];return e},nd=(e,t)=>{let{extend:n=null,slots:r={},variants:s={},compoundVariants:i=[],compoundSlots:o=[],defaultVariants:a={}}=e,l={...td,...t},u=n!=null&&n.base?Yt(n.base,e==null?void 0:e.base):e==null?void 0:e.base,c=n!=null&&n.variants&&!ie(n.variants)?Ma(s,n.variants):s,h=n!=null&&n.defaultVariants&&!ie(n.defaultVariants)?{...n.defaultVariants,...a}:a;!ie(l.twMergeConfig)&&!xu(l.twMergeConfig,Le)&&(Vr=!0,Le=l.twMergeConfig);let p=ie(n==null?void 0:n.slots),m=ie(r)?{}:{base:Yt(e==null?void 0:e.base,p&&(n==null?void 0:n.base)),...r},b=p?m:vo({...n==null?void 0:n.slots},ie(m)?{base:e==null?void 0:e.base}:m),g=ie(n==null?void 0:n.compoundVariants)?i:Ca(n==null?void 0:n.compoundVariants,i),y=T=>{if(ie(c)&&ie(r)&&p)return Rt(u,T==null?void 0:T.class,T==null?void 0:T.className)(l);if(g&&!Array.isArray(g))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof g}`);if(o&&!Array.isArray(o))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof o}`);let E=(S,f,w=[],$)=>{let D=w;if(typeof f=="string")D=D.concat(po(f).split(" ").map(L=>`${S}:${L}`));else if(Array.isArray(f))D=D.concat(f.reduce((L,C)=>L.concat(`${S}:${C}`),[]));else if(typeof f=="object"&&typeof $=="string"){for(let L in f)if(f.hasOwnProperty(L)&&L===$){let C=f[L];if(C&&typeof C=="string"){let V=po(C);D[$]?D[$]=D[$].concat(V.split(" ").map(j=>`${S}:${j}`)):D[$]=V.split(" ").map(j=>`${S}:${j}`)}else Array.isArray(C)&&C.length>0&&(D[$]=C.reduce((V,j)=>V.concat(`${S}:${j}`),[]))}}return D},k=(S,f=c,w=null,$=null)=>{var D;let L=f[S];if(!L||ie(L))return null;let C=(D=$==null?void 0:$[S])!=null?D:T==null?void 0:T[S];if(C===null)return null;let V=ho(C),j=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,z=h==null?void 0:h[S],H=[];if(typeof V=="object"&&j)for(let[fe,we]of Object.entries(V)){let Se=L[we];if(fe==="initial"){z=we;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(fe)||(H=E(fe,Se,H,w))}let ce=V!=null&&typeof V!="object"?V:ho(z),de=L[ce||"false"];return typeof H=="object"&&typeof w=="string"&&H[w]?vo(H,de):H.length>0?(H.push(de),w==="base"?H.join(" "):H):de},A=()=>c?Object.keys(c).map(S=>k(S,c)):null,R=(S,f)=>{if(!c||typeof c!="object")return null;let w=new Array;for(let $ in c){let D=k($,c,S,f),L=S==="base"&&typeof D=="string"?D:D&&D[S];L&&(w[w.length]=L)}return w},F={};for(let S in T)T[S]!==void 0&&(F[S]=T[S]);let d=(S,f)=>{var w;let $=typeof(T==null?void 0:T[S])=="object"?{[S]:(w=T[S])==null?void 0:w.initial}:{};return{...h,...F,...$,...f}},M=(S=[],f)=>{let w=[];for(let{class:$,className:D,...L}of S){let C=!0;for(let[V,j]of Object.entries(L)){let z=d(V,f)[V];if(Array.isArray(j)){if(!j.includes(z)){C=!1;break}}else{let H=ce=>ce==null||ce===!1;if(H(j)&&H(z))continue;if(z!==j){C=!1;break}}}C&&($&&w.push($),D&&w.push(D))}return w},K=S=>{let f=M(g,S);if(!Array.isArray(f))return f;let w={};for(let $ of f)if(typeof $=="string"&&(w.base=Rt(w.base,$)(l)),typeof $=="object")for(let[D,L]of Object.entries($))w[D]=Rt(w[D],L)(l);return w},P=S=>{if(o.length<1)return null;let f={};for(let{slots:w=[],class:$,className:D,...L}of o){if(!ie(L)){let C=!0;for(let V of Object.keys(L)){let j=d(V,S)[V];if(j===void 0||(Array.isArray(L[V])?!L[V].includes(j):L[V]!==j)){C=!1;break}}if(!C)continue}for(let C of w)f[C]=f[C]||[],f[C].push([$,D])}return f};if(!ie(r)||!p){let S={};if(typeof b=="object"&&!ie(b))for(let f of Object.keys(b))S[f]=w=>{var $,D;return Rt(b[f],R(f,w),(($=K(w))!=null?$:[])[f],((D=P(w))!=null?D:[])[f],w==null?void 0:w.class,w==null?void 0:w.className)(l)};return S}return Rt(u,A(),M(g),T==null?void 0:T.class,T==null?void 0:T.className)(l)},x=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return y.variantKeys=x(),y.extend=n,y.base=u,y.slots=b,y.variants=c,y.defaultVariants=h,y.compoundSlots=o,y.compoundVariants=g,y},Ct=(e,t)=>{var n,r,s;return nd(e,{...t,twMerge:(n=void 0)!=null?n:!0,twMergeConfig:{theme:{...(r=void 0)==null?void 0:r.theme,...Dr.theme},classGroups:{...(s=void 0)==null?void 0:s.classGroups,...Dr.classGroups}}})},bo=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],rd=["outline-none","ring-2","ring-focus","ring-offset-2","ring-offset-background"],yo=Ct({slots:{base:"inline-flex",tabList:["flex","p-1","h-fit","gap-2","items-center","flex-nowrap","overflow-x-scroll","scrollbar-hide","bg-default-100"],tab:["z-0","w-full","px-3","py-1","flex","group","relative","justify-center","items-center","outline-none","cursor-pointer","transition-opacity","tap-highlight-transparent","data-[disabled=true]:cursor-not-allowed","data-[disabled=true]:opacity-30","data-[hover-unselected=true]:opacity-disabled",...bo],tabContent:["relative","z-10","text-inherit","whitespace-nowrap","transition-colors","text-default-500","group-data-[selected=true]:text-foreground"],cursor:["absolute","z-0","bg-white"],panel:["py-3","px-1","outline-none","data-[inert=true]:hidden",...bo],tabWrapper:[]},variants:{variant:{solid:{cursor:"inset-0"},light:{tabList:"bg-transparent dark:bg-transparent",cursor:"inset-0"},underlined:{tabList:"bg-transparent dark:bg-transparent",cursor:"h-[2px] w-[80%] bottom-0 shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]"},bordered:{tabList:"bg-transparent dark:bg-transparent border-medium border-default-200 shadow-sm",cursor:"inset-0"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{},info:{}},size:{sm:{tabList:"rounded-medium",tab:"h-7 text-tiny rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"h-8 text-small rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"h-9 text-medium rounded-medium",cursor:"rounded-medium"}},radius:{none:{tabList:"rounded-none",tab:"rounded-none",cursor:"rounded-none"},sm:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"rounded-medium",cursor:"rounded-medium"},full:{tabList:"rounded-full",tab:"rounded-full",cursor:"rounded-full"}},fullWidth:{true:{base:"w-full",tabList:"w-full"}},isDisabled:{true:{tabList:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{tab:"transition-none",tabContent:"transition-none"}},placement:{top:{},start:{tabList:"flex-col",panel:"py-0 px-3",tabWrapper:"flex"},end:{tabList:"flex-col",panel:"py-0 px-3",tabWrapper:"flex flex-row-reverse"},bottom:{tabWrapper:"flex flex-col-reverse"}}},defaultVariants:{color:"default",variant:"solid",size:"md",fullWidth:!1,isDisabled:!1},compoundVariants:[{variant:["solid","bordered","light"],color:"default",class:{cursor:["bg-background","dark:bg-default","shadow-small"],tabContent:"group-data-[selected=true]:text-default-foreground"}},{variant:["solid","bordered","light"],color:"primary",class:{cursor:B.solid.primary,tabContent:"group-data-[selected=true]:text-primary-foreground"}},{variant:["solid","bordered","light"],color:"secondary",class:{cursor:B.solid.secondary,tabContent:"group-data-[selected=true]:text-secondary-foreground"}},{variant:["solid","bordered","light"],color:"success",class:{cursor:B.solid.success,tabContent:"group-data-[selected=true]:text-success-foreground"}},{variant:["solid","bordered","light"],color:"warning",class:{cursor:B.solid.warning,tabContent:"group-data-[selected=true]:text-warning-foreground"}},{variant:["solid","bordered","light"],color:"danger",class:{cursor:B.solid.danger,tabContent:"group-data-[selected=true]:text-danger-foreground"}},{variant:["solid","bordered","light"],color:"info",class:{cursor:B.solid.info,tabContent:"group-data-[selected=true]:text-info-foreground"}},{variant:"underlined",color:"default",class:{cursor:"bg-foreground",tabContent:"group-data-[selected=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{cursor:"bg-primary",tabContent:"group-data-[selected=true]:text-primary"}},{variant:"underlined",color:"secondary",class:{cursor:"bg-secondary",tabContent:"group-data-[selected=true]:text-secondary"}},{variant:"underlined",color:"success",class:{cursor:"bg-success",tabContent:"group-data-[selected=true]:text-success"}},{variant:"underlined",color:"warning",class:{cursor:"bg-warning",tabContent:"group-data-[selected=true]:text-warning"}},{variant:"underlined",color:"danger",class:{cursor:"bg-danger",tabContent:"group-data-[selected=true]:text-danger"}},{variant:"underlined",color:"info",class:{cursor:"bg-info",tabContent:"group-data-[selected=true]:text-info"}},{disableAnimation:!0,variant:"underlined",class:{tab:["after:content-['']","after:absolute","after:bottom-0","after:h-[2px]","after:w-[80%]","after:opacity-0","after:shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","data-[selected=true]:after:opacity-100"]}},{disableAnimation:!0,color:"default",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-default data-[selected=true]:text-default-foreground"}},{disableAnimation:!0,color:"primary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground"}},{disableAnimation:!0,color:"secondary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-secondary data-[selected=true]:text-secondary-foreground"}},{disableAnimation:!0,color:"success",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-success data-[selected=true]:text-success-foreground"}},{disableAnimation:!0,color:"warning",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-warning data-[selected=true]:text-warning-foreground"}},{disableAnimation:!0,color:"danger",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-danger data-[selected=true]:text-danger-foreground"}},{disableAnimation:!0,color:"info",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-info data-[selected=true]:text-info-foreground"}},{disableAnimation:!0,color:"default",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-foreground"}},{disableAnimation:!0,color:"primary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-primary"}},{disableAnimation:!0,color:"secondary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-secondary"}},{disableAnimation:!0,color:"success",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-success"}},{disableAnimation:!0,color:"warning",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-warning"}},{disableAnimation:!0,color:"danger",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-danger"}},{disableAnimation:!0,color:"info",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-info"}}],compoundSlots:[{variant:"underlined",slots:["tab","tabList","cursor"],class:["rounded-none"]}]}),sd=Ct({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),xo=Ct({slots:{base:["relative","max-w-fit","min-w-min","inline-flex","items-center","justify-between","box-border","whitespace-nowrap"],content:"flex-1 text-inherit font-normal",dot:["w-2","h-2","ml-1","rounded-full"],avatar:"flex-shrink-0",closeButton:["z-10","appearance-none","outline-none","select-none","transition-opacity","opacity-70","hover:opacity-100","cursor-pointer","active:opacity-disabled","tap-highlight-transparent"]},variants:{variant:{solid:{},bordered:{base:"border-medium bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-medium"},shadow:{},dot:{base:"border-medium border-default text-foreground bg-transparent"}},color:{default:{dot:"bg-default-400"},primary:{dot:"bg-primary"},secondary:{dot:"bg-secondary"},success:{dot:"bg-success"},warning:{dot:"bg-warning"},danger:{dot:"bg-danger"},info:{dot:"bg-info"}},size:{sm:{base:"px-1 h-6 text-tiny",content:"px-1",closeButton:"text-medium",avatar:"w-4 h-4"},md:{base:"px-1 h-7 text-small",content:"px-2",closeButton:"text-large",avatar:"w-5 h-5"},lg:{base:"px-2 h-8 text-medium",content:"px-2",closeButton:"text-xl",avatar:"w-6 h-6"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isOneChar:{true:{},false:{}},isCloseable:{true:{},false:{}},hasStartContent:{true:{}},hasEndContent:{true:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isCloseButtonFocusVisible:{true:{closeButton:[...rd,"ring-1","rounded-full"]}}},defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:B.solid.default}},{variant:"solid",color:"primary",class:{base:B.solid.primary}},{variant:"solid",color:"secondary",class:{base:B.solid.secondary}},{variant:"solid",color:"success",class:{base:B.solid.success}},{variant:"solid",color:"warning",class:{base:B.solid.warning}},{variant:"solid",color:"danger",class:{base:B.solid.danger}},{variant:"solid",color:"info",class:{base:B.solid.info}},{variant:"shadow",color:"default",class:{base:B.shadow.default}},{variant:"shadow",color:"primary",class:{base:B.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:B.shadow.secondary}},{variant:"shadow",color:"success",class:{base:B.shadow.success}},{variant:"shadow",color:"warning",class:{base:B.shadow.warning}},{variant:"shadow",color:"danger",class:{base:B.shadow.danger}},{variant:"shadow",color:"info",class:{base:B.shadow.info}},{variant:"bordered",color:"default",class:{base:B.bordered.default}},{variant:"bordered",color:"primary",class:{base:B.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:B.bordered.secondary}},{variant:"bordered",color:"success",class:{base:B.bordered.success}},{variant:"bordered",color:"warning",class:{base:B.bordered.warning}},{variant:"bordered",color:"danger",class:{base:B.bordered.danger}},{variant:"bordered",color:"info",class:{base:B.bordered.info}},{variant:"flat",color:"default",class:{base:B.flat.default}},{variant:"flat",color:"primary",class:{base:B.flat.primary}},{variant:"flat",color:"secondary",class:{base:B.flat.secondary}},{variant:"flat",color:"success",class:{base:B.flat.success}},{variant:"flat",color:"warning",class:{base:B.flat.warning}},{variant:"flat",color:"danger",class:{base:B.flat.danger}},{variant:"flat",color:"info",class:{base:B.flat.info}},{variant:"faded",color:"default",class:{base:B.faded.default}},{variant:"faded",color:"primary",class:{base:B.faded.primary}},{variant:"faded",color:"secondary",class:{base:B.faded.secondary}},{variant:"faded",color:"success",class:{base:B.faded.success}},{variant:"faded",color:"warning",class:{base:B.faded.warning}},{variant:"faded",color:"danger",class:{base:B.faded.danger}},{variant:"faded",color:"info",class:{base:B.faded.info}},{variant:"light",color:"default",class:{base:B.light.default}},{variant:"light",color:"primary",class:{base:B.light.primary}},{variant:"light",color:"secondary",class:{base:B.light.secondary}},{variant:"light",color:"success",class:{base:B.light.success}},{variant:"light",color:"warning",class:{base:B.light.warning}},{variant:"light",color:"danger",class:{base:B.light.danger}},{variant:"light",color:"info",class:{base:B.light.info}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"sm",class:{base:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"md",class:{base:"w-6 h-6 min-w-6 min-h-6"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"lg",class:{base:"w-7 h-7 min-w-7 min-h-7"}},{isOneChar:!0,isCloseable:!1,hasStartContent:!1,hasEndContent:!1,class:{base:"px-0 justify-center",content:"px-0 flex-none"}},{isOneChar:!0,isCloseable:!0,hasStartContent:!1,hasEndContent:!1,class:{base:"w-auto"}},{isOneChar:!0,variant:"dot",class:{base:"w-auto h-7 px-1 items-center",content:"px-2"}},{hasStartContent:!0,size:"sm",class:{content:"pl-0.5"}},{hasStartContent:!0,size:["md","lg"],class:{content:"pl-1"}},{hasEndContent:!0,size:"sm",class:{content:"pr-0.5"}},{hasEndContent:!0,size:["md","lg"],class:{content:"pr-1"}}]}),od=e=>e?"":void 0;process.env.NODE_ENV;process.env.NODE_ENV;function id(e){return typeof e=="function"}var Je=e=>e?"true":void 0;function Va(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Va(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function He(...e){for(var t=0,n,r,s="";t<e.length;)(n=e[t++])&&(r=Va(n))&&(s&&(s+=" "),s+=r);return s}function Fa(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function Ia(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ia(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ad(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ia(e))&&(r&&(r+=" "),r+=t);return r}const hs="-",ld=e=>{const t=ud(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(hs);return a[0]===""&&a.length!==1&&a.shift(),Oa(a,t)||cd(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},Oa=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Oa(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(hs);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},wo=/^\[(.+)\]$/,cd=e=>{if(wo.test(e)){const t=wo.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ud=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return fd(Object.entries(e.classGroups),n).forEach(([i,o])=>{Fr(o,r,i,t)}),r},Fr=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:To(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(dd(s)){Fr(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Fr(o,To(t,i),n,r)})})},To=(e,t)=>{let n=e;return t.split(hs).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},dd=e=>e.isThemeGetter,fd=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,hd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},Na="!",pd=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let u=0,c=0,h;for(let y=0;y<a.length;y++){let x=a[y];if(u===0){if(x===s&&(r||a.slice(y,y+i)===t)){l.push(a.slice(c,y)),c=y+i;continue}if(x==="/"){h=y;continue}}x==="["?u++:x==="]"&&u--}const p=l.length===0?a:a.substring(c),m=p.startsWith(Na),b=m?p.substring(1):p,g=h&&h>c?h-c:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:o}):o},md=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},gd=e=>({cache:hd(e.cacheSize),parseClassName:pd(e),...ld(e)}),vd=/\s+/,bd=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(vd);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:m}=n(u);let b=!!m,g=r(b?p.substring(0,m):p);if(!g){if(!b){a=u+(a.length>0?" "+a:a);continue}if(g=r(p),!g){a=u+(a.length>0?" "+a:a);continue}b=!1}const y=md(c).join(":"),x=h?y+Na:y,T=x+g;if(i.includes(T))continue;i.push(T);const E=s(g,b);for(let k=0;k<E.length;++k){const A=E[k];i.push(x+A)}a=u+(a.length>0?" "+a:a)}return a};function yd(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Ba(t))&&(r&&(r+=" "),r+=n);return r}const Ba=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ba(e[r]))&&(n&&(n+=" "),n+=t);return n};function $o(e,...t){let n,r,s,i=o;function o(l){const u=t.reduce((c,h)=>h(c),e());return n=gd(u),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=bd(l,n);return s(l,c),c}return function(){return i(yd.apply(null,arguments))}}const X=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ja=/^\[(?:([a-z-]+):)?(.+)\]$/i,xd=/^\d+\/\d+$/,wd=new Set(["px","full","screen"]),Td=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$d=/\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$/,Pd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Sd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ed=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ke=e=>xt(e)||wd.has(e)||xd.test(e),je=e=>Mt(e,"length",Kd),xt=e=>!!e&&!Number.isNaN(Number(e)),ir=e=>Mt(e,"number",xt),Kt=e=>!!e&&Number.isInteger(Number(e)),Cd=e=>e.endsWith("%")&&xt(e.slice(0,-1)),W=e=>ja.test(e),ze=e=>Td.test(e),Md=new Set(["length","size","percentage"]),Ad=e=>Mt(e,Md,za),kd=e=>Mt(e,"position",za),Dd=new Set(["image","url"]),Ld=e=>Mt(e,Dd,Fd),Rd=e=>Mt(e,"",Vd),Vt=()=>!0,Mt=(e,t,n)=>{const r=ja.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Kd=e=>$d.test(e)&&!Pd.test(e),za=()=>!1,Vd=e=>Sd.test(e),Fd=e=>Ed.test(e),Po=()=>{const e=X("colors"),t=X("spacing"),n=X("blur"),r=X("brightness"),s=X("borderColor"),i=X("borderRadius"),o=X("borderSpacing"),a=X("borderWidth"),l=X("contrast"),u=X("grayscale"),c=X("hueRotate"),h=X("invert"),p=X("gap"),m=X("gradientColorStops"),b=X("gradientColorStopPositions"),g=X("inset"),y=X("margin"),x=X("opacity"),T=X("padding"),E=X("saturate"),k=X("scale"),A=X("sepia"),R=X("skew"),F=X("space"),d=X("translate"),M=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",W,t],S=()=>[W,t],f=()=>["",ke,je],w=()=>["auto",xt,W],$=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>["start","end","center","between","around","evenly","stretch"],V=()=>["","0",W],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[xt,W];return{cacheSize:500,separator:":",theme:{colors:[Vt],spacing:[ke,je],blur:["none","",ze,W],brightness:z(),borderColor:[e],borderRadius:["none","","full",ze,W],borderSpacing:S(),borderWidth:f(),contrast:z(),grayscale:V(),hueRotate:z(),invert:V(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[Cd,je],inset:P(),margin:P(),opacity:z(),padding:S(),saturate:z(),scale:z(),sepia:V(),skew:z(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[ze]}],"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"],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:[...$(),W]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Kt,W]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",Kt,W]}],"grid-cols":[{"grid-cols":[Vt]}],"col-start-end":[{col:["auto",{span:["full",Kt,W]},W]}],"col-start":[{"col-start":w()}],"col-end":[{"col-end":w()}],"grid-rows":[{"grid-rows":[Vt]}],"row-start-end":[{row:["auto",{span:[Kt,W]},W]}],"row-start":[{"row-start":w()}],"row-end":[{"row-end":w()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...C()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...C(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...C(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,t]}],"min-w":[{"min-w":[W,t,"min","max","fit"]}],"max-w":[{"max-w":[W,t,"none","full","min","max","fit","prose",{screen:[ze]},ze]}],h:[{h:[W,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ze,je]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ir]}],"font-family":[{font:[Vt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",xt,ir]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ke,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ke,je]}],"underline-offset":[{"underline-offset":["auto",ke,W]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$(),kd]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ad]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ld]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:D()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[ke,W]}],"outline-w":[{outline:[ke,je]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:f()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[ke,je]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ze,Rd]}],"shadow-color":[{shadow:[Vt]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...L(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":L()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ze,W]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[h]}],saturate:[{saturate:[E]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[Kt,W]}],"translate-x":[{"translate-x":[d]}],"translate-y":[{"translate-y":[d]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ke,je,ir]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-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"],"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"]}}},Id=(e,{cacheSize:t,prefix:n,separator:r,experimentalParseClassName:s,extend:i={},override:o={}})=>{Ot(e,"cacheSize",t),Ot(e,"prefix",n),Ot(e,"separator",r),Ot(e,"experimentalParseClassName",s);for(const a in o)Od(e[a],o[a]);for(const a in i)Nd(e[a],i[a]);return e},Ot=(e,t,n)=>{n!==void 0&&(e[t]=n)},Od=(e,t)=>{if(t)for(const n in t)Ot(e,n,t[n])},Nd=(e,t)=>{if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}},Bd=(e,...t)=>typeof e=="function"?$o(Po,e,...t):$o(()=>Id(Po(),e),...t);var jd=Bd({extend:Dr});function ps(...e){return jd(ad(e))}function zd(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,s=fo.createContext(void 0);s.displayName=r;function i(){var o;const a=fo.useContext(s);if(!a&&t){const l=new Error(n);throw l.name="ContextError",(o=Error.captureStackTrace)==null||o.call(Error,l,i),l}return a}return[s.Provider,i,s]}function qe(e){const t=v.useRef(null);return v.useImperativeHandle(e,()=>t.current),t}function Ud(e,t){if(e!=null){if(id(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Wd(...e){return t=>{e.forEach(n=>Ud(n,t))}}var Gd=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),Hd=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),So=/^(data-.*)$/,_d=/^(aria-.*)$/,mn=/^(on[A-Z].*)$/;function ms(e,t={}){let{labelable:n=!0,enabled:r=!0,propNames:s,omitPropNames:i,omitEventNames:o,omitDataProps:a,omitEventProps:l}=t,u={};if(!r)return e;for(const c in e)i!=null&&i.has(c)||o!=null&&o.has(c)&&mn.test(c)||mn.test(c)&&!Hd.has(c)||a&&So.test(c)||l&&mn.test(c)||(Object.prototype.hasOwnProperty.call(e,c)&&(Gd.has(c)||n&&_d.test(c)||s!=null&&s.has(c)||So.test(c))||mn.test(c))&&(u[c]=e[c]);return u}const Eo=Ct({slots:{base:"va"},variants:{variant:{solid:"",bordered:"",light:""},border:{none:"border-0 border-solid",sm:"border border-solid",md:"border-2 border-solid",lg:"border-4 border-solid"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"},shadow:{none:"shadow-none",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg"},blur:{none:"blur-none",sm:"blur-sm",md:"blur-md",lg:"blur-lg"}},defaultVariants:{variant:"solid",border:"sm",radius:"lg",shadow:"none",blur:"none"}}),Xd=e=>{const[t,n]=sn(e,Eo.variantKeys),{as:r,id:s,ref:i,children:o,className:a,classNames:l,label:u="Welcome to A!",...c}=t,h=r||"div",p=qe(i),m=Eo(n);return{Component:h,domRef:p,slots:m,classNames:l,children:o,getBaseProps:()=>({id:s,ref:p,className:m.base({class:ps(l==null?void 0:l.base,a)}),...c}),label:u}},Ua=Pe((e,t)=>{const{Component:n,getBaseProps:r,children:s,label:i}=Xd({...e,ref:t});return N.jsxs(n,{...r(),children:[i?N.jsx("h1",{children:i}):null,s]})});Ua.displayName="A";var[Qb,Yd]=zd({name:"ProviderContext",strict:!1});const Fn={prefix:String(Math.round(Math.random()*1e10)),current:0},Wa=v.createContext(Fn),qd=v.createContext(!1);let Zd=!!(typeof window<"u"&&window.document&&window.document.createElement),ar=new WeakMap;function Jd(e=!1){let t=v.useContext(Wa),n=v.useRef(null);if(n.current===null&&!e){var r,s;let i=(s=v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||s===void 0||(r=s.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let o=ar.get(i);o==null?ar.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==o.state&&(t.current=o.id,ar.delete(i))}n.current=++t.current}return n.current}function Qd(e){let t=v.useContext(Wa);t===Fn&&!Zd&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=Jd(!!e),r=t===Fn&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function ef(e){let t=v.useId(),[n]=v.useState(Ga()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Fn.prefix}`;return e||`${r}-${t}`}const tf=typeof v.useId=="function"?ef:Qd;function nf(){return!1}function rf(){return!0}function sf(e){return()=>{}}function Ga(){return typeof v.useSyncExternalStore=="function"?v.useSyncExternalStore(sf,nf,rf):v.useContext(qd)}function of(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ha(e,t,n){of(e,t),t.set(e,n)}let Co=new Map;function af(e,t){if(e===t)return e;let n=Co.get(e);if(n)return n.forEach(s=>s(t)),t;let r=Co.get(t);return r?(r.forEach(s=>s(e)),e):t}function _a(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function Xa(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Xa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ya(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Xa(e))&&(r&&(r+=" "),r+=t);return r}function qt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let s in r){let i=t[s],o=r[s];typeof i=="function"&&typeof o=="function"&&s[0]==="o"&&s[1]==="n"&&s.charCodeAt(2)>=65&&s.charCodeAt(2)<=90?t[s]=_a(i,o):(s==="className"||s==="UNSAFE_className")&&typeof i=="string"&&typeof o=="string"?t[s]=Ya(i,o):s==="id"&&i&&o?t.id=af(i,o):t[s]=o!==void 0?o:i}}return t}function qa(e,t,n){let[r,s]=v.useState(e||t),i=v.useRef(e!==void 0),o=e!==void 0;v.useEffect(()=>{let u=i.current;u!==o&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),i.current=o},[o]);let a=o?e:r,l=v.useCallback((u,...c)=>{let h=(p,...m)=>{n&&(Object.is(a,p)||n(p,...m)),o||(a=p)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),s((m,...b)=>{let g=u(o?a:m,...b);return h(g,...c),o?m:g})):(o||s(u),h(u,...c))},[o,a,n]);return[a,l]}const lf=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),cf=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function uf(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return lf.has(n.script)}let t=e.split("-")[0];return cf.has(t)}const df=Symbol.for("react-aria.i18n.locale");function Za(){let e=typeof window<"u"&&window[df]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:uf(e)?"rtl":"ltr"}}let Ir=Za(),Nt=new Set;function Mo(){Ir=Za();for(let e of Nt)e(Ir)}function ff(){let e=Ga(),[t,n]=v.useState(Ir);return v.useEffect(()=>(Nt.size===0&&window.addEventListener("languagechange",Mo),Nt.add(n),()=>{Nt.delete(n),Nt.size===0&&window.removeEventListener("languagechange",Mo)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const hf=v.createContext(null);function Ja(){let e=ff();return v.useContext(hf)||e}const _e=typeof document<"u"?v.useLayoutEffect:()=>{};function ae(e){const t=v.useRef(null);return _e(()=>{t.current=e},[e]),v.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}let pf=!!(typeof window<"u"&&window.document&&window.document.createElement),wt=new Map,Ao=new FinalizationRegistry(e=>{wt.delete(e)});function Yn(e){let[t,n]=v.useState(e),r=v.useRef(null),s=tf(t),i=v.useRef(null);if(Ao.register(i,s),pf){const o=wt.get(s);o&&!o.includes(r)?o.push(r):wt.set(s,[r])}return _e(()=>{let o=s;return()=>{Ao.unregister(i),wt.delete(o)}},[s]),v.useEffect(()=>{let o=r.current;return o&&n(o),()=>{o&&(r.current=null)}}),s}function mf(e,t){if(e===t)return e;let n=wt.get(e);if(n)return n.forEach(s=>s.current=t),t;let r=wt.get(t);return r?(r.forEach(s=>s.current=e),e):t}function gs(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Y=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},te=e=>e&&"window"in e&&e.window===e?e:Y(e).defaultView||window;function gf(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function vf(e){return gf(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let bf=!1;function qn(){return bf}function Q(e,t){if(!qn())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:vf(n)?n=n.host:n=n.parentNode}return!1}const Or=(e=document)=>{var t;if(!qn())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function q(e){return qn()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class yf{get currentNode(){return this._currentNode}set currentNode(t){if(!Q(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,s=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const o=r,a=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=s,this._currentSetFor.add(a),r=s=o.host}else r=r.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(i),i.currentNode=s,this._currentSetFor.add(i),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return Q(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let s;if(typeof this.filter=="function"?s=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(s=this.filter.acceptNode(t)),s===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let i=this.nextNode();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let s=this.previousNode();return s&&(this.currentNode=s),s}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let i;if(typeof this.filter=="function"?i=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(i=this.filter.acceptNode(n)),i===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let o=this.lastChild();return o&&(this.currentNode=o),o}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let s=this.previousNode();return s&&(this.currentNode=s),s}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,s){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=o=>{if(o.nodeType===Node.ELEMENT_NODE){const l=o.shadowRoot;if(l){const u=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(o);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(o);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=s??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const i=n.shadowRoot;if(i){const o=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(o)}}}function xf(e,t,n,r){return qn()?new yf(e,t,n,r):e.createTreeWalker(t,n,r)}function xe(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let s in r){let i=t[s],o=r[s];typeof i=="function"&&typeof o=="function"&&s[0]==="o"&&s[1]==="n"&&s.charCodeAt(2)>=65&&s.charCodeAt(2)<=90?t[s]=gs(i,o):(s==="className"||s==="UNSAFE_className")&&typeof i=="string"&&typeof o=="string"?t[s]=Ya(i,o):s==="id"&&i&&o?t.id=mf(i,o):t[s]=o!==void 0?o:i}}return t}const wf=new Set(["id"]),Tf=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),$f=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Pf=/^(data-.*)$/;function Sf(e,t={}){let{labelable:n,isLink:r,propNames:s}=t,i={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(wf.has(o)||n&&Tf.has(o)||r&&$f.has(o)||s!=null&&s.has(o)||Pf.test(o))&&(i[o]=e[o]);return i}function ue(e){if(Ef())e.focus({preventScroll:!0});else{let t=Cf(e);e.focus(),Mf(t)}}let gn=null;function Ef(){if(gn==null){gn=!1;try{document.createElement("div").focus({get preventScroll(){return gn=!0,!0}})}catch{}}return gn}function Cf(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Mf(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Zn(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function vs(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ie(e){let t=null;return()=>(t==null&&(t=e()),t)}const Ke=Ie(function(){return vs(/^Mac/i)}),Af=Ie(function(){return vs(/^iPhone/i)}),Qa=Ie(function(){return vs(/^iPad/i)||Ke()&&navigator.maxTouchPoints>1}),on=Ie(function(){return Af()||Qa()}),kf=Ie(function(){return Ke()||on()}),Df=Ie(function(){return Zn(/AppleWebKit/i)&&!Lf()}),Lf=Ie(function(){return Zn(/Chrome/i)}),el=Ie(function(){return Zn(/Android/i)}),Rf=Ie(function(){return Zn(/Firefox/i)}),Kf=v.createContext({isNative:!0,open:Ff,useHref:e=>e});function bs(){return v.useContext(Kf)}function Ve(e,t,n=!0){var r,s;let{metaKey:i,ctrlKey:o,altKey:a,shiftKey:l}=t;Rf()&&(!((s=window.event)===null||s===void 0||(r=s.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Ke()?i=!0:o=!0);let u=Df()&&Ke()&&!Qa()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:o,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:o,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});Ve.isOpening=n,ue(e),e.dispatchEvent(u),Ve.isOpening=!1}Ve.isOpening=!1;function Vf(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function Ff(e,t){Vf(e,n=>Ve(n,t))}function If(e){let t=bs();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let ct=new Map,Nr=new Set;function ko(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let s=ct.get(r.target);s||(s=new Set,ct.set(r.target,s),r.target.addEventListener("transitioncancel",n,{once:!0})),s.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let s=ct.get(r.target);if(s&&(s.delete(r.propertyName),s.size===0&&(r.target.removeEventListener("transitioncancel",n),ct.delete(r.target)),ct.size===0)){for(let i of Nr)i();Nr.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?ko():document.addEventListener("DOMContentLoaded",ko));function ys(e){requestAnimationFrame(()=>{ct.size===0?e():Nr.add(e)})}function xs(){let e=v.useRef(new Map),t=v.useCallback((s,i,o,a)=>{let l=a!=null&&a.once?(...u)=>{e.current.delete(o),o(...u)}:o;e.current.set(o,{type:i,eventTarget:s,fn:l,options:a}),s.addEventListener(i,l,a)},[]),n=v.useCallback((s,i,o,a)=>{var l;let u=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;s.removeEventListener(i,u,a),e.current.delete(o)},[]),r=v.useCallback(()=>{e.current.forEach((s,i)=>{n(s.eventTarget,s.type,i,s.options)})},[n]);return v.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function tl(e,t){let{id:n,"aria-label":r,"aria-labelledby":s}=e;return n=Yn(n),s&&r?s=[...new Set([n,...s.trim().split(/\s+/)])].join(" "):s&&(s=s.trim().split(/\s+/).join(" ")),!r&&!s&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":s}}function Do(e,t){const n=v.useRef(!0),r=v.useRef(null);_e(()=>(n.current=!0,()=>{n.current=!1}),[]),_e(()=>{n.current?n.current=!1:(!r.current||t.some((s,i)=>!Object.is(s,r[i])))&&e(),r.current=t},t)}function nl(e,t){_e(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Of(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Nf(e,t){const n=[];for(;e&&e!==document.documentElement;)Of(e,t)&&n.push(e),e=e.parentElement;return n}let Bf=0;const lr=new Map;function jf(e){let[t,n]=v.useState();return _e(()=>{if(!e)return;let r=lr.get(e);if(r)n(r.element.id);else{let s=`react-aria-description-${Bf++}`;n(s);let i=document.createElement("div");i.id=s,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},lr.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),lr.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function vn(e,t,n,r){let s=ae(n),i=n==null;v.useEffect(()=>{if(i||!e.current)return;let o=e.current;return o.addEventListener(t,s,r),()=>{o.removeEventListener(t,s,r)}},[e,t,r,i,s])}function rl(e,t){let n=Lo(e,t,"left"),r=Lo(e,t,"top"),s=t.offsetWidth,i=t.offsetHeight,o=e.scrollLeft,a=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:h,scrollPaddingBottom:p,scrollPaddingLeft:m}=getComputedStyle(e),b=o+parseInt(u,10),g=a+parseInt(l,10),y=b+e.clientWidth,x=g+e.clientHeight,T=parseInt(c,10)||0,E=parseInt(p,10)||0,k=parseInt(h,10)||0,A=parseInt(m,10)||0;n<=o+A?o=n-parseInt(u,10)-A:n+s>y-k&&(o+=n+s-y+k),r<=g+T?a=r-parseInt(l,10)-T:r+i>x-E&&(a+=r+i-x+E),e.scrollLeft=o,e.scrollTop=a}function Lo(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let s=0;for(;t.offsetParent&&(s+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){s-=e[r];break}t=t.offsetParent}return s}function Ro(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=Nf(e);for(let u of l)rl(u,e)}else{var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:h}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-h)>1){var r,s,i;t==null||(s=t.containingElement)===null||s===void 0||(r=s.scrollIntoView)===null||r===void 0||r.call(s,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function Tt(e){return e.mozInputSource===0&&e.isTrusted?!0:el()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function sl(e){return!el()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const zf="react-aria-clear-focus",Uf="react-aria-focus";function ut(e){return Ke()?e.metaKey:e.ctrlKey}const ws=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],Wf=ws.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ws.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Gf=ws.join(':not([hidden]):not([tabindex="-1"]),');function ol(e){return e.matches(Wf)}function Hf(e){return e.matches(Gf)}function _f(e){const t=te(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,s=n!=="none"&&r!=="hidden"&&r!=="collapse";if(s){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:o,visibility:a}=i(e);s=o!=="none"&&a!=="hidden"&&a!=="collapse"}return s}function Xf(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function il(e,t){return e.nodeName!=="#comment"&&_f(e)&&Xf(e,t)&&(!e.parentElement||il(e.parentElement,e))}let dt="default",Br="",Dn=new WeakMap;function Ko(e){if(on()){if(dt==="default"){const t=Y(e);Br=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}dt="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Dn.set(e,e.style[t]),e.style[t]="none"}}function cr(e){if(on()){if(dt!=="disabled")return;dt="restoring",setTimeout(()=>{ys(()=>{if(dt==="restoring"){const t=Y(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Br||""),Br="",dt="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Dn.has(e)){let t=Dn.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Dn.delete(e)}}const al=v.createContext({register:()=>{}});al.displayName="PressResponderContext";let In=!1;function Vo(e){for(;e&&!ol(e);)e=e.parentElement;let t=te(e),n=t.document.activeElement;if(!n||n===e)return;In=!0;let r=!1,s=c=>{(c.target===n||r)&&c.stopImmediatePropagation()},i=c=>{(c.target===n||r)&&(c.stopImmediatePropagation(),!e&&!r&&(r=!0,ue(n),l()))},o=c=>{(c.target===e||r)&&c.stopImmediatePropagation()},a=c=>{(c.target===e||r)&&(c.stopImmediatePropagation(),r||(r=!0,ue(n),l()))};t.addEventListener("blur",s,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",o,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",s,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",o,!0),In=!1,r=!1},u=requestAnimationFrame(l);return l}function Yf(e,t){return t.get?t.get.call(e):t.value}function ll(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function cl(e,t){var n=ll(e,t,"get");return Yf(e,n)}function qf(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function On(e,t,n){var r=ll(e,t,"set");return qf(e,r,n),n}function Zf(e){let t=v.useContext(al);if(t){let{register:n,...r}=t;e=xe(r,e),n()}return nl(t,e.ref),e}var bn=new WeakMap;let yn=class{continuePropagation(){On(this,bn,!1)}get shouldStopPropagation(){return cl(this,bn)}constructor(t,n,r,s){Ha(this,bn,{writable:!0,value:void 0}),On(this,bn,!0);var i;let o=(i=s==null?void 0:s.target)!==null&&i!==void 0?i:r.currentTarget;const a=o==null?void 0:o.getBoundingClientRect();let l,u=0,c,h=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,h=r.clientY),a&&(c!=null&&h!=null?(l=c-a.left,u=h-a.top):(l=a.width/2,u=a.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}};const Fo=Symbol("linkClicked");function ul(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:s,onPressUp:i,isDisabled:o,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:h,...p}=Zf(e),[m,b]=v.useState(!1),g=v.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:x}=xs(),T=ae((d,M)=>{let K=g.current;if(o||K.didFirePressStart)return!1;let P=!0;if(K.isTriggeringEvent=!0,r){let S=new yn("pressstart",M,d);r(S),P=S.shouldStopPropagation}return n&&n(!0),K.isTriggeringEvent=!1,K.didFirePressStart=!0,b(!0),P}),E=ae((d,M,K=!0)=>{let P=g.current;if(!P.didFirePressStart)return!1;P.didFirePressStart=!1,P.isTriggeringEvent=!0;let S=!0;if(s){let f=new yn("pressend",M,d);s(f),S=f.shouldStopPropagation}if(n&&n(!1),b(!1),t&&K&&!o){let f=new yn("press",M,d);t(f),S&&(S=f.shouldStopPropagation)}return P.isTriggeringEvent=!1,S}),k=ae((d,M)=>{let K=g.current;if(o)return!1;if(i){K.isTriggeringEvent=!0;let P=new yn("pressup",M,d);return i(P),K.isTriggeringEvent=!1,P.shouldStopPropagation}return!0}),A=ae(d=>{let M=g.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&E(lt(M.target,d),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,x(),c||cr(M.target);for(let K of M.disposables)K();M.disposables=[]}}),R=ae(d=>{u&&A(d)}),F=v.useMemo(()=>{let d=g.current,M={onKeyDown(P){if(ur(P.nativeEvent,P.currentTarget)&&Q(P.currentTarget,q(P.nativeEvent))){var S;No(q(P.nativeEvent),P.key)&&P.preventDefault();let f=!0;if(!d.isPressed&&!P.repeat){d.target=P.currentTarget,d.isPressed=!0,d.pointerType="keyboard",f=T(P,"keyboard");let w=P.currentTarget,$=D=>{ur(D,w)&&!D.repeat&&Q(w,q(D))&&d.target&&k(lt(d.target,D),"keyboard")};y(Y(P.currentTarget),"keyup",gs($,K),!0)}f&&P.stopPropagation(),P.metaKey&&Ke()&&((S=d.metaKeyEvents)===null||S===void 0||S.set(P.key,P.nativeEvent))}else P.key==="Meta"&&(d.metaKeyEvents=new Map)},onClick(P){if(!(P&&!Q(P.currentTarget,q(P.nativeEvent)))&&P&&P.button===0&&!d.isTriggeringEvent&&!Ve.isOpening){let S=!0;if(o&&P.preventDefault(),!d.ignoreEmulatedMouseEvents&&!d.isPressed&&(d.pointerType==="virtual"||Tt(P.nativeEvent))){let f=T(P,"virtual"),w=k(P,"virtual"),$=E(P,"virtual");S=f&&w&&$}else if(d.isPressed&&d.pointerType!=="keyboard"){let f=d.pointerType||P.nativeEvent.pointerType||"virtual";S=E(lt(P.currentTarget,P),f,!0),d.isOverTarget=!1,A(P)}d.ignoreEmulatedMouseEvents=!1,S&&P.stopPropagation()}}},K=P=>{var S;if(d.isPressed&&d.target&&ur(P,d.target)){var f;No(q(P),P.key)&&P.preventDefault();let $=q(P);E(lt(d.target,P),"keyboard",Q(d.target,q(P))),x(),P.key!=="Enter"&&Ts(d.target)&&Q(d.target,$)&&!P[Fo]&&(P[Fo]=!0,Ve(d.target,P,!1)),d.isPressed=!1,(f=d.metaKeyEvents)===null||f===void 0||f.delete(P.key)}else if(P.key==="Meta"&&(!((S=d.metaKeyEvents)===null||S===void 0)&&S.size)){var w;let $=d.metaKeyEvents;d.metaKeyEvents=void 0;for(let D of $.values())(w=d.target)===null||w===void 0||w.dispatchEvent(new KeyboardEvent("keyup",D))}};if(typeof PointerEvent<"u"){M.onPointerDown=f=>{if(f.button!==0||!Q(f.currentTarget,q(f.nativeEvent)))return;if(sl(f.nativeEvent)){d.pointerType="virtual";return}d.pointerType=f.pointerType;let w=!0;if(!d.isPressed){d.isPressed=!0,d.isOverTarget=!0,d.activePointerId=f.pointerId,d.target=f.currentTarget,c||Ko(d.target),w=T(f,d.pointerType);let $=q(f.nativeEvent);"releasePointerCapture"in $&&$.releasePointerCapture(f.pointerId),y(Y(f.currentTarget),"pointerup",P,!1),y(Y(f.currentTarget),"pointercancel",S,!1)}w&&f.stopPropagation()},M.onMouseDown=f=>{if(Q(f.currentTarget,q(f.nativeEvent))&&f.button===0){if(l){let w=Vo(f.target);w&&d.disposables.push(w)}f.stopPropagation()}},M.onPointerUp=f=>{!Q(f.currentTarget,q(f.nativeEvent))||d.pointerType==="virtual"||f.button===0&&k(f,d.pointerType||f.pointerType)},M.onPointerEnter=f=>{f.pointerId===d.activePointerId&&d.target&&!d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!0,T(lt(d.target,f),d.pointerType))},M.onPointerLeave=f=>{f.pointerId===d.activePointerId&&d.target&&d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!1,E(lt(d.target,f),d.pointerType,!1),R(f))};let P=f=>{if(f.pointerId===d.activePointerId&&d.isPressed&&f.button===0&&d.target){if(Q(d.target,q(f))&&d.pointerType!=null){let w=!1,$=setTimeout(()=>{d.isPressed&&d.target instanceof HTMLElement&&(w?A(f):(ue(d.target),d.target.click()))},80);y(f.currentTarget,"click",()=>w=!0,!0),d.disposables.push(()=>clearTimeout($))}else A(f);d.isOverTarget=!1}},S=f=>{A(f)};M.onDragStart=f=>{Q(f.currentTarget,q(f.nativeEvent))&&A(f)}}else{M.onMouseDown=f=>{if(f.button!==0||!Q(f.currentTarget,q(f.nativeEvent)))return;if(d.ignoreEmulatedMouseEvents){f.stopPropagation();return}if(d.isPressed=!0,d.isOverTarget=!0,d.target=f.currentTarget,d.pointerType=Tt(f.nativeEvent)?"virtual":"mouse",Pa.flushSync(()=>T(f,d.pointerType))&&f.stopPropagation(),l){let $=Vo(f.target);$&&d.disposables.push($)}y(Y(f.currentTarget),"mouseup",P,!1)},M.onMouseEnter=f=>{if(!Q(f.currentTarget,q(f.nativeEvent)))return;let w=!0;d.isPressed&&!d.ignoreEmulatedMouseEvents&&d.pointerType!=null&&(d.isOverTarget=!0,w=T(f,d.pointerType)),w&&f.stopPropagation()},M.onMouseLeave=f=>{if(!Q(f.currentTarget,q(f.nativeEvent)))return;let w=!0;d.isPressed&&!d.ignoreEmulatedMouseEvents&&d.pointerType!=null&&(d.isOverTarget=!1,w=E(f,d.pointerType,!1),R(f)),w&&f.stopPropagation()},M.onMouseUp=f=>{Q(f.currentTarget,q(f.nativeEvent))&&!d.ignoreEmulatedMouseEvents&&f.button===0&&k(f,d.pointerType||"mouse")};let P=f=>{if(f.button===0){if(d.ignoreEmulatedMouseEvents){d.ignoreEmulatedMouseEvents=!1;return}d.target&&d.target.contains(f.target)&&d.pointerType!=null||A(f),d.isOverTarget=!1}};M.onTouchStart=f=>{if(!Q(f.currentTarget,q(f.nativeEvent)))return;let w=Jf(f.nativeEvent);if(!w)return;d.activePointerId=w.identifier,d.ignoreEmulatedMouseEvents=!0,d.isOverTarget=!0,d.isPressed=!0,d.target=f.currentTarget,d.pointerType="touch",c||Ko(d.target),T(Ue(d.target,f),d.pointerType)&&f.stopPropagation(),y(te(f.currentTarget),"scroll",S,!0)},M.onTouchMove=f=>{if(!Q(f.currentTarget,q(f.nativeEvent)))return;if(!d.isPressed){f.stopPropagation();return}let w=Io(f.nativeEvent,d.activePointerId),$=!0;w&&Oo(w,f.currentTarget)?!d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!0,$=T(Ue(d.target,f),d.pointerType)):d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!1,$=E(Ue(d.target,f),d.pointerType,!1),R(Ue(d.target,f))),$&&f.stopPropagation()},M.onTouchEnd=f=>{if(!Q(f.currentTarget,q(f.nativeEvent)))return;if(!d.isPressed){f.stopPropagation();return}let w=Io(f.nativeEvent,d.activePointerId),$=!0;w&&Oo(w,f.currentTarget)&&d.pointerType!=null?(k(Ue(d.target,f),d.pointerType),$=E(Ue(d.target,f),d.pointerType)):d.isOverTarget&&d.pointerType!=null&&($=E(Ue(d.target,f),d.pointerType,!1)),$&&f.stopPropagation(),d.isPressed=!1,d.activePointerId=null,d.isOverTarget=!1,d.ignoreEmulatedMouseEvents=!0,d.target&&!c&&cr(d.target),x()},M.onTouchCancel=f=>{Q(f.currentTarget,q(f.nativeEvent))&&(f.stopPropagation(),d.isPressed&&A(Ue(d.target,f)))};let S=f=>{d.isPressed&&Q(q(f),d.target)&&A({currentTarget:d.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=f=>{Q(f.currentTarget,q(f.nativeEvent))&&A(f)}}return M},[y,o,l,x,c,A,R,E,T,k]);return v.useEffect(()=>{let d=g.current;return()=>{var M;c||cr((M=d.target)!==null&&M!==void 0?M:void 0);for(let K of d.disposables)K();d.disposables=[]}},[c]),{isPressed:a||m,pressProps:xe(p,F)}}function Ts(e){return e.tagName==="A"&&e.hasAttribute("href")}function ur(e,t){const{key:n,code:r}=e,s=t,i=s.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(s instanceof te(s).HTMLInputElement&&!dl(s,n)||s instanceof te(s).HTMLTextAreaElement||s.isContentEditable)&&!((i==="link"||!i&&Ts(s))&&n!=="Enter")}function Jf(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Io(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const s=n[r];if(s.identifier===t)return s}return null}function Ue(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function lt(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Qf(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function eh(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Oo(e,t){let n=t.getBoundingClientRect(),r=Qf(e);return eh(n,r)}function th(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Ts(e)}function No(e,t){return e instanceof HTMLInputElement?!dl(e,t):th(e)}const nh=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function dl(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":nh.has(e.type)}let an=null,rh=new Set,zt=new Map,rt=!1,jr=!1;function $s(e,t){for(let n of rh)n(e,t)}function sh(e){return!(e.metaKey||!Ke()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Nn(e){rt=!0,sh(e)&&(an="keyboard",$s("keyboard",e))}function be(e){an="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(rt=!0,$s("pointer",e))}function fl(e){Tt(e)&&(rt=!0,an="virtual")}function hl(e){e.target===window||e.target===document||In||!e.isTrusted||(!rt&&!jr&&(an="virtual",$s("virtual",e)),rt=!1,jr=!1)}function pl(){In||(rt=!1,jr=!0)}function Bo(e){if(typeof window>"u"||zt.get(te(e)))return;const t=te(e),n=Y(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){rt=!0,r.apply(this,arguments)},n.addEventListener("keydown",Nn,!0),n.addEventListener("keyup",Nn,!0),n.addEventListener("click",fl,!0),t.addEventListener("focus",hl,!0),t.addEventListener("blur",pl,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",be,!0),n.addEventListener("pointermove",be,!0),n.addEventListener("pointerup",be,!0)):(n.addEventListener("mousedown",be,!0),n.addEventListener("mousemove",be,!0),n.addEventListener("mouseup",be,!0)),t.addEventListener("beforeunload",()=>{ml(e)},{once:!0}),zt.set(t,{focus:r})}const ml=(e,t)=>{const n=te(e),r=Y(e);t&&r.removeEventListener("DOMContentLoaded",t),zt.has(n)&&(n.HTMLElement.prototype.focus=zt.get(n).focus,r.removeEventListener("keydown",Nn,!0),r.removeEventListener("keyup",Nn,!0),r.removeEventListener("click",fl,!0),n.removeEventListener("focus",hl,!0),n.removeEventListener("blur",pl,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",be,!0),r.removeEventListener("pointermove",be,!0),r.removeEventListener("pointerup",be,!0)):(r.removeEventListener("mousedown",be,!0),r.removeEventListener("mousemove",be,!0),r.removeEventListener("mouseup",be,!0)),zt.delete(n))};function oh(e){const t=Y(e);let n;return t.readyState!=="loading"?Bo(e):(n=()=>{Bo(e)},t.addEventListener("DOMContentLoaded",n)),()=>ml(e,n)}typeof document<"u"&&oh();function zr(){return an}function Ur(e){const t=Y(e),n=Or(t);if(zr()==="virtual"){let r=n;ys(()=>{Or(t)===r&&e.isConnected&&ue(e)})}else ue(e)}const ih=500;function ah(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:s,threshold:i=ih,accessibilityDescription:o}=e;const a=v.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:u}=xs(),{pressProps:c}=ul({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),a.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Y(p.target).activeElement!==p.target&&ue(p.target),s&&s({...p,type:"longpress"}),a.current=void 0},i),p.pointerType==="touch")){let m=b=>{b.preventDefault()};l(p.target,"contextmenu",m,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",m)},30)},{once:!0})}},onPressEnd(p){a.current&&clearTimeout(a.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),h=jf(s&&!t?o:void 0);return{longPressProps:xe(c,h)}}function gl(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function vl(e,t,n){let r=t!=null&&t.tabbable?Hf:ol,s=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,i=Y(s),o=xf(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(a)?NodeFilter.FILTER_REJECT:r(a)&&il(a)&&(!n||gl(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}class Ps{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let s=this.fastMap.get(n??null);if(!s)return;let i=new jo({scopeRef:t});s.addChild(i),i.parent=s,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&gl(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let s=n.children;r&&(r.removeChild(n),s.size>0&&s.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Ps;var r;for(let s of this.traverse())n.addTreeNode(s.scopeRef,(r=(t=s.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,s.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new jo({scopeRef:null}),this.fastMap.set(null,this.root)}}class jo{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new Ps;function lh(e,t){let n=t==null?void 0:t.isDisabled,[r,s]=v.useState(!1);return _e(()=>{if(e!=null&&e.current&&!n){let i=()=>{if(e.current){let a=vl(e.current,{tabbable:!0});s(!!a.nextNode())}};i();let o=new MutationObserver(i);return o.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{o.disconnect()}}}),n?!1:r}function bl(e){let t=dh(Y(e));t!==e&&(t&&ch(t,e),e&&uh(e,t))}function ch(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function uh(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function dh(e){let t=Or(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}const Bn=v.createContext({});function fh(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ss=v.createContext(null),yl=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function hh(e=!0){const t=v.useContext(Ss);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=v.useId();v.useEffect(()=>{if(e)return s(i)},[e]);const o=v.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const Es=typeof window<"u",xl=Es?v.useLayoutEffect:v.useEffect,ph=v.createContext(null);function mh(){const e=v.useRef(!1);return xl(()=>(e.current=!0,()=>{e.current=!1}),[]),e}const le=e=>e;let ln=le,st=le;process.env.NODE_ENV!=="production"&&(ln=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},st=(e,t)=>{if(!e)throw new Error(t)});function Cs(e){let t;return()=>(t===void 0&&(t=e()),t)}const $t=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ee=e=>e*1e3,Re=e=>e/1e3,gh={useManualTiming:!1},xn=["read","resolveKeyframes","update","preRender","render","postRender"];function vh(e,t){let n=new Set,r=new Set,s=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,h=!1,p=!1)=>{const b=p&&s?n:r;return h&&o.add(c),b.has(c)||b.add(c),c},cancel:c=>{r.delete(c),o.delete(c)},process:c=>{if(a=c,s){i=!0;return}s=!0,[n,r]=[r,n],n.forEach(l),n.clear(),s=!1,i&&(i=!1,u.process(c))}};return u}const bh=40;function wl(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=xn.reduce((x,T)=>(x[T]=vh(i),x),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:p}=o,m=()=>{const x=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(x-s.timestamp,bh),1),s.timestamp=x,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),h.process(s),p.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(m))},b=()=>{n=!0,r=!0,s.isProcessing||e(m)};return{schedule:xn.reduce((x,T)=>{const E=o[T];return x[T]=(k,A=!1,R=!1)=>(n||b(),E.schedule(k,A,R)),x},{}),cancel:x=>{for(let T=0;T<xn.length;T++)o[xn[T]].cancel(x)},state:s,steps:o}}const{schedule:G,cancel:Xe,state:ne,steps:dr}=wl(typeof requestAnimationFrame<"u"?requestAnimationFrame:le,!0);function yh(){const e=mh(),[t,n]=v.useState(0),r=v.useCallback(()=>{e.current&&n(t+1)},[t]);return[v.useCallback(()=>G.postRender(r),[r]),t]}const xh=e=>!e.isLayoutDirty&&e.willUpdate(!1);function zo(){const e=new Set,t=new WeakMap,n=()=>e.forEach(xh);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);const s=t.get(r);s&&(s(),t.delete(r)),n()},dirty:n}}const Tl=e=>e===!0,wh=e=>Tl(e===!0)||e==="id",Th=({children:e,id:t,inherit:n=!0})=>{const r=v.useContext(Bn),s=v.useContext(ph),[i,o]=yh(),a=v.useRef(null),l=r.id||s;a.current===null&&(wh(n)&&l&&(t=t?l+"-"+t:l),a.current={id:t,group:Tl(n)&&r.group||zo()});const u=v.useMemo(()=>({...a.current,forceRender:i}),[o]);return N.jsx(Bn.Provider,{value:u,children:e})},Ms=v.createContext({strict:!1}),Uo={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"]},Pt={};for(const e in Uo)Pt[e]={isEnabled:t=>Uo[e].some(n=>!!t[n])};function Wo(e){for(const t in e)Pt[t]={...Pt[t],...e[t]}}function $h({children:e,features:t,strict:n=!1}){const[,r]=v.useState(!fr(t)),s=v.useRef(void 0);if(!fr(t)){const{renderer:i,...o}=t;s.current=i,Wo(o)}return v.useEffect(()=>{fr(t)&&t().then(({renderer:i,...o})=>{Wo(o),s.current=i,r(!0)})},[]),N.jsx(Ms.Provider,{value:{renderer:s.current,strict:n},children:e})}function fr(e){return typeof e=="function"}const Ph=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 jn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ph.has(e)}let $l=e=>!jn(e);function Sh(e){e&&($l=t=>t.startsWith("on")?!jn(t):e(t))}try{Sh(require("@emotion/is-prop-valid").default)}catch{}function Eh(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||($l(s)||n===!0&&jn(s)||!t&&!jn(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const Go=new Set;function Jn(e,t,n){e||Go.has(t)||(console.warn(t),Go.add(t))}function Ch(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Jn(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const Qn=v.createContext({});function er(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Zt(e){return typeof e=="string"||Array.isArray(e)}const As=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ks=["initial",...As];function tr(e){return er(e.animate)||ks.some(t=>Zt(e[t]))}function Pl(e){return!!(tr(e)||e.variants)}function Mh(e,t){if(tr(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Zt(n)?n:void 0,animate:Zt(r)?r:void 0}}return e.inherit!==!1?t:{}}function Ah(e){const{initial:t,animate:n}=Mh(e,v.useContext(Qn));return v.useMemo(()=>({initial:t,animate:n}),[Ho(t),Ho(n)])}function Ho(e){return Array.isArray(e)?e.join(" "):e}const kh=Symbol.for("motionComponentSymbol");function ft(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Dh(e,t,n){return v.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ft(n)&&(n.current=r))},[t])}const Ds=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Lh="framerAppearId",Sl="data-"+Ds(Lh),{schedule:Ls}=wl(queueMicrotask,!1),El=v.createContext({});function Rh(e,t,n,r,s){var i,o;const{visualElement:a}=v.useContext(Qn),l=v.useContext(Ms),u=v.useContext(Ss),c=v.useContext(yl).reducedMotion,h=v.useRef(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const p=h.current,m=v.useContext(El);p&&!p.projection&&s&&(p.type==="html"||p.type==="svg")&&Kh(h.current,n,s,m);const b=v.useRef(!1);v.useInsertionEffect(()=>{p&&b.current&&p.update(n,u)});const g=n[Sl],y=v.useRef(!!g&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,g))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,g)));return xl(()=>{p&&(b.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Ls.render(p.render),y.current&&p.animationState&&p.animationState.animateChanges())}),v.useEffect(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,g)}),y.current=!1))}),p}function Kh(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Cl(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&ft(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function Cl(e){if(e)return e.options.allowProjection!==!1?e.projection:Cl(e.parent)}function Vh({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,o;function a(u,c){let h;const p={...v.useContext(yl),...u,layoutId:Fh(u)},{isStatic:m}=p,b=Ah(u),g=r(u,m);if(!m&&Es){Ih(p,e);const y=Oh(p);h=y.MeasureLayout,b.visualElement=Rh(s,g,p,t,y.ProjectionNode)}return N.jsxs(Qn.Provider,{value:b,children:[h&&b.visualElement?N.jsx(h,{visualElement:b.visualElement,...p}):null,n(s,u,Dh(g,b.visualElement,c),g,m,b.visualElement)]})}a.displayName=`motion.${typeof s=="string"?s:`create(${(o=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&o!==void 0?o:""})`}`;const l=v.forwardRef(a);return l[kh]=s,l}function Fh({layoutId:e}){const t=v.useContext(Bn).id;return t&&e!==void 0?t+"-"+e:e}function Ih(e,t){v.useContext(Ms).strict,process.env.NODE_ENV}function Oh(e){const{drag:t,layout:n}=Pt;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Ml=e=>t=>typeof t=="string"&&t.startsWith(e),Rs=Ml("--"),Nh=Ml("var(--"),Ks=e=>Nh(e)?Bh.test(e.split("/*")[0].trim()):!1,Bh=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Jt={};function jh(e){for(const t in e)Jt[t]=e[t],Rs(t)&&(Jt[t].isCSSVariable=!0)}const At=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],it=new Set(At);function Al(e,{layout:t,layoutId:n}){return it.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Jt[e]||e==="opacity")}const se=e=>!!(e&&e.getVelocity),kl=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Fe=(e,t,n)=>n>t?t:n<e?e:n,kt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Qt={...kt,transform:e=>Fe(0,1,e)},wn={...kt,default:1},cn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ge=cn("deg"),Ce=cn("%"),O=cn("px"),zh=cn("vh"),Uh=cn("vw"),_o={...Ce,parse:e=>Ce.parse(e)/100,transform:e=>Ce.transform(e*100)},Wh={borderWidth:O,borderTopWidth:O,borderRightWidth:O,borderBottomWidth:O,borderLeftWidth:O,borderRadius:O,radius:O,borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,top:O,right:O,bottom:O,left:O,padding:O,paddingTop:O,paddingRight:O,paddingBottom:O,paddingLeft:O,margin:O,marginTop:O,marginRight:O,marginBottom:O,marginLeft:O,backgroundPositionX:O,backgroundPositionY:O},Gh={rotate:Ge,rotateX:Ge,rotateY:Ge,rotateZ:Ge,scale:wn,scaleX:wn,scaleY:wn,scaleZ:wn,skew:Ge,skewX:Ge,skewY:Ge,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:Qt,originX:_o,originY:_o,originZ:O},Xo={...kt,transform:Math.round},Vs={...Wh,...Gh,zIndex:Xo,size:O,fillOpacity:Qt,strokeOpacity:Qt,numOctaves:Xo},Hh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_h=At.length;function Xh(e,t,n){let r="",s=!0;for(let i=0;i<_h;i++){const o=At[i],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=kl(a,Vs[o]);if(!l){s=!1;const c=Hh[o]||o;r+=`${c}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Fs(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(it.has(l)){o=!0;continue}else if(Rs(l)){s[l]=u;continue}else{const c=kl(u,Vs[l]);l.startsWith("origin")?(a=!0,i[l]=c):r[l]=c}}if(t.transform||(o||n?r.transform=Xh(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=i;r.transformOrigin=`${l} ${u} ${c}`}}const Is=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Dl(e,t,n){for(const r in t)!se(t[r])&&!Al(r,n)&&(e[r]=t[r])}function Yh({transformTemplate:e},t){return v.useMemo(()=>{const n=Is();return Fs(n,t,e),Object.assign({},n.vars,n.style)},[t])}function qh(e,t){const n=e.style||{},r={};return Dl(r,n,e),Object.assign(r,Yh(e,t)),r}function Zh(e,t){const n={},r=qh(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Jh=["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 Os(e){return typeof e!="string"||e.includes("-")?!1:!!(Jh.indexOf(e)>-1||/[A-Z]/u.test(e))}const Qh={offset:"stroke-dashoffset",array:"stroke-dasharray"},ep={offset:"strokeDashoffset",array:"strokeDasharray"};function tp(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?Qh:ep;e[i.offset]=O.transform(-r);const o=O.transform(t),a=O.transform(n);e[i.array]=`${o} ${a}`}function Yo(e,t,n){return typeof e=="string"?e:O.transform(t+n*e)}function np(e,t,n){const r=Yo(t,e.x,e.width),s=Yo(n,e.y,e.height);return`${r} ${s}`}function Ns(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(Fs(e,u,h),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:m,dimensions:b}=e;p.transform&&(b&&(m.transform=p.transform),delete p.transform),b&&(s!==void 0||i!==void 0||m.transform)&&(m.transformOrigin=np(b,s!==void 0?s:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),o!==void 0&&tp(p,o,a,l,!1)}const Ll=()=>({...Is(),attrs:{}}),Bs=e=>typeof e=="string"&&e.toLowerCase()==="svg";function rp(e,t,n,r){const s=v.useMemo(()=>{const i=Ll();return Ns(i,t,Bs(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Dl(i,e.style,e),s.style={...i,...s.style}}return s}function sp(e=!1){return(n,r,s,{latestValues:i},o)=>{const l=(Os(n)?rp:Zh)(r,i,o,n),u=Eh(r,typeof n=="string",e),c=n!==v.Fragment?{...u,...l,ref:s}:{},{children:h}=r,p=v.useMemo(()=>se(h)?h.get():h,[h]);return v.createElement(n,{...c,children:p})}}function qo(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function js(e,t,n,r){if(typeof t=="function"){const[s,i]=qo(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=qo(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const Wr=e=>Array.isArray(e),op=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),ip=e=>Wr(e)?e[e.length-1]||0:e;function Ln(e){const t=se(e)?e.get():e;return op(t)?t.toValue():t}function ap({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const o={latestValues:lp(r,s,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const Rl=e=>(t,n)=>{const r=v.useContext(Qn),s=v.useContext(Ss),i=()=>ap(e,t,r,s);return n?i():fh(i)};function lp(e,t,n,r){const s={},i=r(e,{});for(const p in i)s[p]=Ln(i[p]);let{initial:o,animate:a}=e;const l=tr(e),u=Pl(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const h=c?a:o;if(h&&typeof h!="boolean"&&!er(h)){const p=Array.isArray(h)?h:[h];for(let m=0;m<p.length;m++){const b=js(e,p[m]);if(b){const{transitionEnd:g,transition:y,...x}=b;for(const T in x){let E=x[T];if(Array.isArray(E)){const k=c?E.length-1:0;E=E[k]}E!==null&&(s[T]=E)}for(const T in g)s[T]=g[T]}}}return s}function zs(e,t,n){var r;const{style:s}=e,i={};for(const o in s)(se(s[o])||t.style&&se(t.style[o])||Al(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[o]=s[o]);return i}const cp={useVisualState:Rl({scrapeMotionValuesFromProps:zs,createRenderState:Is})};function Kl(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Vl(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Fl=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 Il(e,t,n,r){Vl(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Fl.has(s)?s:Ds(s),t.attrs[s])}function Ol(e,t,n){const r=zs(e,t,n);for(const s in e)if(se(e[s])||se(t[s])){const i=At.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}const Zo=["x","y","width","height","cx","cy","r"],up={useVisualState:Rl({scrapeMotionValuesFromProps:Ol,createRenderState:Ll,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in s)if(it.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a<Zo.length;a++){const l=Zo[a];e[l]!==t[l]&&(o=!0)}o&&G.read(()=>{Kl(n,r),G.render(()=>{Ns(r,s,Bs(n.tagName),e.transformTemplate),Il(n,r)})})}})};function dp(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...Os(r)?up:cp,preloadedFeatures:e,useRender:sp(s),createVisualElement:t,Component:r};return Vh(o)}}const fp=dp(),hp=Ch(fp);function en(e,t,n){const r=e.getProps();return js(r,t,n!==void 0?n:r.custom,e)}const pp=Cs(()=>window.ScrollTimeline!==void 0);class mp{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(s=>{if(pp()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class gp extends mp{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Us(e,t){return e?e[t]||e.default||e:void 0}const Gr=2e4;function Nl(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Gr;)t+=n,r=e.next(t);return t>=Gr?1/0:t}function Ws(e){return typeof e=="function"}function Jo(e,t){e.timeline=t,e.onfinish=null}const Gs=e=>Array.isArray(e)&&typeof e[0]=="number",vp={linearEasing:void 0};function bp(e,t){const n=Cs(e);return()=>{var r;return(r=vp[t])!==null&&r!==void 0?r:n()}}const zn=bp(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Bl=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=e($t(0,s-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function jl(e){return!!(typeof e=="function"&&zn()||!e||typeof e=="string"&&(e in Hr||zn())||Gs(e)||Array.isArray(e)&&e.every(jl))}const Bt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Hr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bt([0,.65,.55,1]),circOut:Bt([.55,0,1,.45]),backIn:Bt([.31,.01,.66,-.59]),backOut:Bt([.33,1.53,.69,.99])};function zl(e,t){if(e)return typeof e=="function"&&zn()?Bl(e,t):Gs(e)?Bt(e):Array.isArray(e)?e.map(n=>zl(n,t)||Hr.easeOut):Hr[e]}const Te={x:!1,y:!1};function Ul(){return Te.x||Te.y}function yp(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Wl(e,t){const n=yp(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function Qo(e){return!(e.pointerType==="touch"||Ul())}function xp(e,t,n={}){const[r,s,i]=Wl(e,n),o=a=>{if(!Qo(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=h=>{Qo(h)&&(u(h),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,s)};return r.forEach(a=>{a.addEventListener("pointerenter",o,s)}),i}function Ut(e,t){const n=`${t}PointerCapture`;if(e.target instanceof Element&&n in e.target&&e.pointerId!==void 0)try{e.target[n](e.pointerId)}catch{}}const Gl=(e,t)=>t?e===t?!0:Gl(e,t.parentElement):!1,Hs=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,wp=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Tp(e){return wp.has(e.tagName)||e.tabIndex!==-1}const jt=new WeakSet;function ei(e){return t=>{t.key==="Enter"&&e(t)}}function hr(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const $p=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=ei(()=>{if(jt.has(n))return;hr(n,"down");const s=ei(()=>{hr(n,"up")}),i=()=>hr(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function ti(e){return Hs(e)&&!Ul()}function Pp(e,t,n={}){const[r,s,i]=Wl(e,n),o=a=>{const l=a.currentTarget;if(!l||!ti(a)||jt.has(l))return;jt.add(l),Ut(a,"set");const u=t(l,a),c=(m,b)=>{l.removeEventListener("pointerup",h),l.removeEventListener("pointercancel",p),Ut(m,"release"),!(!ti(m)||!jt.has(l))&&(jt.delete(l),typeof u=="function"&&u(m,{success:b}))},h=m=>{(m.isTrusted?Sp(m,l instanceof Element?l.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?c(m,!1):c(m,!(l instanceof Element)||Gl(l,m.target))},p=m=>{c(m,!1)};l.addEventListener("pointerup",h,s),l.addEventListener("pointercancel",p,s),l.addEventListener("lostpointercapture",p,s)};return r.forEach(a=>{a=n.useGlobalTarget?window:a;let l=!1;a instanceof HTMLElement&&(l=!0,!Tp(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0)),a.addEventListener("pointerdown",o,s),l&&a.addEventListener("focus",u=>$p(u,s),s)}),i}function Sp(e,t){return e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom}function Ep(e){return e==="x"||e==="y"?Te[e]?null:(Te[e]=!0,()=>{Te[e]=!1}):Te.x||Te.y?null:(Te.x=Te.y=!0,()=>{Te.x=Te.y=!1})}const Hl=new Set(["width","height","top","left","right","bottom",...At]);let Rn;function Cp(){Rn=void 0}const Me={now:()=>(Rn===void 0&&Me.set(ne.isProcessing||gh.useManualTiming?ne.timestamp:performance.now()),Rn),set:e=>{Rn=e,queueMicrotask(Cp)}};function _s(e,t){e.indexOf(t)===-1&&e.push(t)}function Xs(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ys{constructor(){this.subscriptions=[]}add(t){return _s(this.subscriptions,t),()=>Xs(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function _l(e,t){return t?e*(1e3/t):0}const ni=30,Mp=e=>!isNaN(parseFloat(e));class Ap{constructor(t,n={}){this.version="12.4.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=Me.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Me.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Mp(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Jn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ys);const r=this.events[t].add(n);return t==="change"?()=>{r(),G.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Me.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ni)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ni);return _l(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tn(e,t){return new Ap(e,t)}function kp(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tn(n))}function Dp(e,t){const n=en(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=ip(i[o]);kp(e,o,a)}}function Lp(e){return!!(se(e)&&e.add)}function _r(e,t){const n=e.getValue("willChange");if(Lp(n))return n.add(t)}function Xl(e){return e.props[Sl]}const Yl=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Rp=1e-7,Kp=12;function Vp(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=Yl(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>Rp&&++a<Kp);return o}function un(e,t,n,r){if(e===t&&n===r)return le;const s=i=>Vp(i,0,1,e,n);return i=>i===0||i===1?i:Yl(s(i),t,r)}const ql=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Zl=e=>t=>1-e(1-t),Jl=un(.33,1.53,.69,.99),qs=Zl(Jl),Ql=ql(qs),ec=e=>(e*=2)<1?.5*qs(e):.5*(2-Math.pow(2,-10*(e-1))),Zs=e=>1-Math.sin(Math.acos(e)),tc=Zl(Zs),nc=ql(Zs),rc=e=>/^0[^.\s]+$/u.test(e);function Fp(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||rc(e):!0}const Wt=e=>Math.round(e*1e5)/1e5,Js=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ip(e){return e==null}const Op=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Qs=(e,t)=>n=>!!(typeof n=="string"&&Op.test(n)&&n.startsWith(e)||t&&!Ip(n)&&Object.prototype.hasOwnProperty.call(n,t)),sc=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Js);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Np=e=>Fe(0,255,e),pr={...kt,transform:e=>Math.round(Np(e))},tt={test:Qs("rgb","red"),parse:sc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+pr.transform(e)+", "+pr.transform(t)+", "+pr.transform(n)+", "+Wt(Qt.transform(r))+")"};function Bp(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Xr={test:Qs("#"),parse:Bp,transform:tt.transform},ht={test:Qs("hsl","hue"),parse:sc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ce.transform(Wt(t))+", "+Ce.transform(Wt(n))+", "+Wt(Qt.transform(r))+")"},re={test:e=>tt.test(e)||Xr.test(e)||ht.test(e),parse:e=>tt.test(e)?tt.parse(e):ht.test(e)?ht.parse(e):Xr.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?tt.transform(e):ht.transform(e)},jp=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function zp(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Js))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(jp))===null||n===void 0?void 0:n.length)||0)>0}const oc="number",ic="color",Up="var",Wp="var(",ri="${}",Gp=/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 nn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(Gp,l=>(re.test(l)?(r.color.push(i),s.push(ic),n.push(re.parse(l))):l.startsWith(Wp)?(r.var.push(i),s.push(Up),n.push(l)):(r.number.push(i),s.push(oc),n.push(parseFloat(l))),++i,ri)).split(ri);return{values:n,split:a,indexes:r,types:s}}function ac(e){return nn(e).values}function lc(e){const{split:t,types:n}=nn(e),r=t.length;return s=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],s[o]!==void 0){const a=n[o];a===oc?i+=Wt(s[o]):a===ic?i+=re.transform(s[o]):i+=s[o]}return i}}const Hp=e=>typeof e=="number"?0:e;function _p(e){const t=ac(e);return lc(e)(t.map(Hp))}const Ye={test:zp,parse:ac,createTransformer:lc,getAnimatableNone:_p},Xp=new Set(["brightness","contrast","saturate","opacity"]);function Yp(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Js)||[];if(!r)return e;const s=n.replace(r,"");let i=Xp.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const qp=/\b([a-z-]*)\(.*?\)/gu,Yr={...Ye,getAnimatableNone:e=>{const t=e.match(qp);return t?t.map(Yp).join(" "):e}},Zp={...Vs,color:re,backgroundColor:re,outlineColor:re,fill:re,stroke:re,borderColor:re,borderTopColor:re,borderRightColor:re,borderBottomColor:re,borderLeftColor:re,filter:Yr,WebkitFilter:Yr},eo=e=>Zp[e];function cc(e,t){let n=eo(e);return n!==Yr&&(n=Ye),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Jp=new Set(["auto","none","0"]);function Qp(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!Jp.has(i)&&nn(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=cc(n,s)}const si=e=>e===kt||e===O,oi=(e,t)=>parseFloat(e.split(", ")[t]),ii=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return oi(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?oi(i[1],e):0}},em=new Set(["x","y","z"]),tm=At.filter(e=>!em.has(e));function nm(e){const t=[];return tm.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const St={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ii(4,13),y:ii(5,14)};St.translateX=St.x;St.translateY=St.y;const nt=new Set;let qr=!1,Zr=!1;function uc(){if(Zr){const e=Array.from(nt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=nm(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Zr=!1,qr=!1,nt.forEach(e=>e.complete()),nt.clear()}function dc(){nt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Zr=!0)})}function rm(){dc(),uc()}class to{constructor(t,n,r,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(nt.add(this),qr||(qr=!0,G.read(dc),G.resolveKeyframes(uc))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const o=s==null?void 0:s.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),s&&o===void 0&&s.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),nt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,nt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const fc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),sm=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function om(e){const t=sm.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const im=4;function hc(e,t,n=1){st(n<=im,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,s]=om(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return fc(o)?parseFloat(o):o}return Ks(s)?hc(s,t,n+1):s}const pc=e=>t=>t.test(e),am={test:e=>e==="auto",parse:e=>e},mc=[kt,O,Ce,Ge,Uh,zh,am],ai=e=>mc.find(pc(e));class gc extends to{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),Ks(u))){const c=hc(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Hl.has(r)||t.length!==2)return;const[s,i]=t,o=ai(s),a=ai(i);if(o!==a)if(si(o)&&si(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)Fp(t[s])&&r.push(s);r.length&&Qp(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=St[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,a=s[o];s[o]=St[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const li=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ye.test(e)||e==="0")&&!e.startsWith("url("));function lm(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function cm(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=li(s,t),a=li(i,t);return ln(o===a,`You are trying to animate ${t} from "${s}" to "${i}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${i} via the \`style\` property.`),!o||!a?!1:lm(e)||(n==="spring"||Ws(n))&&r}const um=e=>e!==null;function nr(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(um),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const dm=40;class vc{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Me.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>dm?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&rm(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Me.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!cm(t,r,s,i))if(o)this.options.duration=0;else{l&&l(nr(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const J=(e,t,n)=>e+(t-e)*n;function mr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fm({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=mr(l,a,e+1/3),i=mr(l,a,e),o=mr(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Un(e,t){return n=>n>0?t:e}const gr=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},hm=[Xr,tt,ht],pm=e=>hm.find(t=>t.test(e));function ci(e){const t=pm(e);if(ln(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ht&&(n=fm(n)),n}const ui=(e,t)=>{const n=ci(e),r=ci(t);if(!n||!r)return Un(e,t);const s={...n};return i=>(s.red=gr(n.red,r.red,i),s.green=gr(n.green,r.green,i),s.blue=gr(n.blue,r.blue,i),s.alpha=J(n.alpha,r.alpha,i),tt.transform(s))},mm=(e,t)=>n=>t(e(n)),dn=(...e)=>e.reduce(mm),Jr=new Set(["none","hidden"]);function gm(e,t){return Jr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function vm(e,t){return n=>J(e,t,n)}function no(e){return typeof e=="number"?vm:typeof e=="string"?Ks(e)?Un:re.test(e)?ui:xm:Array.isArray(e)?bc:typeof e=="object"?re.test(e)?ui:bm:Un}function bc(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>no(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function bm(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=no(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function ym(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],a=e.indexes[o][s[o]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[i]=l,s[o]++}return r}const xm=(e,t)=>{const n=Ye.createTransformer(t),r=nn(e),s=nn(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Jr.has(e)&&!s.values.length||Jr.has(t)&&!r.values.length?gm(e,t):dn(bc(ym(r,s),s.values),n):(ln(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Un(e,t))};function yc(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?J(e,t,n):no(e)(e,t)}const wm=5;function xc(e,t,n){const r=Math.max(t-wm,0);return _l(n-e(r),t-r)}const Z={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},di=.001;function Tm({duration:e=Z.duration,bounce:t=Z.bounce,velocity:n=Z.velocity,mass:r=Z.mass}){let s,i;ln(e<=Ee(Z.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Fe(Z.minDamping,Z.maxDamping,o),e=Fe(Z.minDuration,Z.maxDuration,Re(e)),o<1?(s=u=>{const c=u*o,h=c*e,p=c-n,m=Qr(u,o),b=Math.exp(-h);return di-p/m*b},i=u=>{const h=u*o*e,p=h*n+n,m=Math.pow(o,2)*Math.pow(u,2)*e,b=Math.exp(-h),g=Qr(Math.pow(u,2),o);return(-s(u)+di>0?-1:1)*((p-m)*b)/g}):(s=u=>{const c=Math.exp(-u*e),h=(u-n)*e+1;return-.001+c*h},i=u=>{const c=Math.exp(-u*e),h=(n-u)*(e*e);return c*h});const a=5/e,l=Pm(s,i,a);if(e=Ee(e),isNaN(l))return{stiffness:Z.stiffness,damping:Z.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const $m=12;function Pm(e,t,n){let r=n;for(let s=1;s<$m;s++)r=r-e(r)/t(r);return r}function Qr(e,t){return e*Math.sqrt(1-t*t)}const Sm=["duration","bounce"],Em=["stiffness","damping","mass"];function fi(e,t){return t.some(n=>e[n]!==void 0)}function Cm(e){let t={velocity:Z.velocity,stiffness:Z.stiffness,damping:Z.damping,mass:Z.mass,isResolvedFromDuration:!1,...e};if(!fi(e,Em)&&fi(e,Sm))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Fe(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:Z.mass,stiffness:s,damping:i}}else{const n=Tm(e);t={...t,...n,mass:Z.mass},t.isResolvedFromDuration=!0}return t}function wc(e=Z.visualDuration,t=Z.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:h,velocity:p,isResolvedFromDuration:m}=Cm({...n,velocity:-Re(n.velocity||0)}),b=p||0,g=u/(2*Math.sqrt(l*c)),y=o-i,x=Re(Math.sqrt(l/c)),T=Math.abs(y)<5;r||(r=T?Z.restSpeed.granular:Z.restSpeed.default),s||(s=T?Z.restDelta.granular:Z.restDelta.default);let E;if(g<1){const A=Qr(x,g);E=R=>{const F=Math.exp(-g*x*R);return o-F*((b+g*x*y)/A*Math.sin(A*R)+y*Math.cos(A*R))}}else if(g===1)E=A=>o-Math.exp(-x*A)*(y+(b+x*y)*A);else{const A=x*Math.sqrt(g*g-1);E=R=>{const F=Math.exp(-g*x*R),d=Math.min(A*R,300);return o-F*((b+g*x*y)*Math.sinh(d)+A*y*Math.cosh(d))/A}}const k={calculatedDuration:m&&h||null,next:A=>{const R=E(A);if(m)a.done=A>=h;else{let F=0;g<1&&(F=A===0?Ee(b):xc(E,A,R));const d=Math.abs(F)<=r,M=Math.abs(o-R)<=s;a.done=d&&M}return a.value=a.done?o:R,a},toString:()=>{const A=Math.min(Nl(k),Gr),R=Bl(F=>k.next(A*F).value,A,30);return A+"ms "+R}};return k}function hi({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=e[0],p={done:!1,value:h},m=d=>a!==void 0&&d<a||l!==void 0&&d>l,b=d=>a===void 0?l:l===void 0||Math.abs(a-d)<Math.abs(l-d)?a:l;let g=n*t;const y=h+g,x=o===void 0?y:o(y);x!==y&&(g=x-h);const T=d=>-g*Math.exp(-d/r),E=d=>x+T(d),k=d=>{const M=T(d),K=E(d);p.done=Math.abs(M)<=u,p.value=p.done?x:K};let A,R;const F=d=>{m(p.value)&&(A=d,R=wc({keyframes:[p.value,b(p.value)],velocity:xc(E,d,p.value),damping:s,stiffness:i,restDelta:u,restSpeed:c}))};return F(0),{calculatedDuration:null,next:d=>{let M=!1;return!R&&A===void 0&&(M=!0,k(d),F(d)),A!==void 0&&d>=A?R.next(d-A):(!M&&k(d),p)}}}const Mm=un(.42,0,1,1),Am=un(0,0,.58,1),Tc=un(.42,0,.58,1),km=e=>Array.isArray(e)&&typeof e[0]!="number",pi={linear:le,easeIn:Mm,easeInOut:Tc,easeOut:Am,circIn:Zs,circInOut:nc,circOut:tc,backIn:qs,backInOut:Ql,backOut:Jl,anticipate:ec},mi=e=>{if(Gs(e)){st(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,s]=e;return un(t,n,r,s)}else if(typeof e=="string")return st(pi[e]!==void 0,`Invalid easing type '${e}'`),pi[e];return e};function Dm(e,t,n){const r=[],s=n||yc,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||le:t;a=dn(l,a)}r.push(a)}return r}function Lm(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(st(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Dm(t,r,s),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(c<e[h+1]);h++);const p=$t(e[h],e[h+1],c);return a[h](p)};return n?c=>u(Fe(e[0],e[i-1],c)):u}function Rm(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=$t(0,t,r);e.push(J(n,1,s))}}function Km(e){const t=[0];return Rm(t,e.length-1),t}function Vm(e,t){return e.map(n=>n*t)}function Fm(e,t){return e.map(()=>t||Tc).splice(0,e.length-1)}function Gt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=km(r)?r.map(mi):mi(r),i={done:!1,value:t[0]},o=Vm(n&&n.length===t.length?n:Km(t),e),a=Lm(o,t,{ease:Array.isArray(s)?s:Fm(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Im=e=>{const t=({timestamp:n})=>e(n);return{start:()=>G.update(t,!0),stop:()=>Xe(t),now:()=>ne.isProcessing?ne.timestamp:Me.now()}},Om={decay:hi,inertia:hi,tween:Gt,keyframes:Gt,spring:wc},Nm=e=>e/100;class ro extends vc{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,o=(s==null?void 0:s.KeyframeResolver)||to,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(i,a,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=this.options,a=Ws(n)?n:Om[n]||Gt;let l,u;process.env.NODE_ENV!=="production"&&a!==Gt&&st(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),a!==Gt&&typeof t[0]!="number"&&(l=dn(Nm,yc(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Nl(c));const{calculatedDuration:h}=c,p=h+s,m=p*(r+1)-s;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:p,totalDuration:m}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:d}=this.options;return{done:!0,value:d[d.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=r;if(this.startTime===null)return i.next(0);const{delay:p,repeat:m,repeatType:b,repeatDelay:g,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const x=this.currentTime-p*(this.speed>=0?1:-1),T=this.speed>=0?x<0:x>c;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let E=this.currentTime,k=i;if(m){const d=Math.min(this.currentTime,c)/h;let M=Math.floor(d),K=d%1;!K&&d>=1&&(K=1),K===1&&M--,M=Math.min(M,m+1),!!(M%2)&&(b==="reverse"?(K=1-K,g&&(K-=g/h)):b==="mirror"&&(k=o)),E=Fe(0,1,K)*h}const A=T?{done:!1,value:l[0]}:k.next(E);a&&(A.value=a(A.value));let{done:R}=A;!T&&u!==null&&(R=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return F&&s!==void 0&&(A.value=nr(l,this.options,s)),y&&y(A.value),F&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Re(t.calculatedDuration):0}get time(){return Re(this.currentTime)}set time(t){t=Ee(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Re(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Im,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Bm=new Set(["opacity","clipPath","filter","transform"]);function jm(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=zl(a,s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const zm=Cs(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Wn=10,Um=2e4;function Wm(e){return Ws(e.type)||e.type==="spring"||!jl(e.ease)}function Gm(e,t){const n=new ro({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&i<Um;)r=n.sample(i),s.push(r.value),i+=Wn;return{times:void 0,keyframes:s,duration:i-Wn,ease:"linear"}}const $c={anticipate:ec,backInOut:Ql,circInOut:nc};function Hm(e){return e in $c}class gi extends vc{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:i}=this.options;this.resolver=new gc(i,(o,a)=>this.onKeyframesResolved(o,a),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&zn()&&Hm(i)&&(i=$c[i]),Wm(this.options)){const{onComplete:h,onUpdate:p,motionValue:m,element:b,...g}=this.options,y=Gm(t,g);t=y.keyframes,t.length===1&&(t[1]=t[0]),r=y.duration,s=y.times,i=y.ease,o="keyframes"}const c=jm(a.owner.current,l,t,{...this.options,duration:r,times:s,ease:i});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(Jo(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:h}=this.options;a.set(nr(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:s,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Re(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Re(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ee(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return le;const{animation:r}=n;Jo(r,t)}return le}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:h,element:p,...m}=this.options,b=new ro({...m,keyframes:r,duration:s,type:i,ease:o,times:a,isGenerator:!0}),g=Ee(this.time);u.setWithVelocity(b.sample(g-Wn).value,b.sample(g).value,Wn)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:i,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return zm()&&r&&Bm.has(r)&&!l&&!u&&!s&&i!=="mirror"&&o!==0&&a!=="inertia"}}const _m={type:"spring",stiffness:500,damping:25,restSpeed:10},Xm=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ym={type:"keyframes",duration:.8},qm={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Zm=(e,{keyframes:t})=>t.length>2?Ym:it.has(e)?e.startsWith("scale")?Xm(t[1]):_m:qm;function Jm({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const so=(e,t,n,r={},s,i)=>o=>{const a=Us(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Ee(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:p=>{t.set(p),a.onUpdate&&a.onUpdate(p)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};Jm(a)||(c={...c,...Zm(e,c)}),c.duration&&(c.duration=Ee(c.duration)),c.repeatDelay&&(c.repeatDelay=Ee(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),h&&!i&&t.get()!==void 0){const p=nr(c.keyframes,a);if(p!==void 0)return G.update(()=>{c.onUpdate(p),c.onComplete()}),new gp([])}return!i&&gi.supports(c)?new gi(c):new ro(c)};function Qm({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Pc(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(o=r);const u=[],c=s&&e.animationState&&e.animationState.getState()[s];for(const h in l){const p=e.getValue(h,(i=e.latestValues[h])!==null&&i!==void 0?i:null),m=l[h];if(m===void 0||c&&Qm(c,h))continue;const b={delay:n,...Us(o||{},h)};let g=!1;if(window.MotionHandoffAnimation){const x=Xl(e);if(x){const T=window.MotionHandoffAnimation(x,h,G);T!==null&&(b.startTime=T,g=!0)}}_r(e,h),p.start(so(h,p,m,e.shouldReduceMotion&&Hl.has(h)?{type:!1}:b,e,g));const y=p.animation;y&&u.push(y)}return a&&Promise.all(u).then(()=>{G.update(()=>{a&&Dp(e,a)})}),u}function es(e,t,n={}){var r;const s=en(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Pc(e,s,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:p}=i;return eg(e,t,c+u,h,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function eg(e,t,n=0,r=0,s=1,i){const o=[],a=(e.variantChildren.size-1)*r,l=s===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(tg).forEach((u,c)=>{u.notify("AnimationStart",t),o.push(es(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function tg(e,t){return e.sortNodePosition(t)}function ng(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>es(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=es(e,t,n);else{const s=typeof t=="function"?en(e,t,n.custom):t;r=Promise.all(Pc(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Sc(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const rg=ks.length;function Ec(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Ec(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<rg;n++){const r=ks[n],s=e.props[r];(Zt(s)||s===!1)&&(t[r]=s)}return t}const sg=[...As].reverse(),og=As.length;function ig(e){return t=>Promise.all(t.map(({animation:n,options:r})=>ng(e,n,r)))}function ag(e){let t=ig(e),n=vi(),r=!0;const s=l=>(u,c)=>{var h;const p=en(e,c,l==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(p){const{transition:m,transitionEnd:b,...g}=p;u={...u,...g,...b}}return u};function i(l){t=l(e)}function o(l){const{props:u}=e,c=Ec(e.parent)||{},h=[],p=new Set;let m={},b=1/0;for(let y=0;y<og;y++){const x=sg[y],T=n[x],E=u[x]!==void 0?u[x]:c[x],k=Zt(E),A=x===l?T.isActive:null;A===!1&&(b=y);let R=E===c[x]&&E!==u[x]&&k;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),T.protectedKeys={...m},!T.isActive&&A===null||!E&&!T.prevProp||er(E)||typeof E=="boolean")continue;const F=lg(T.prevProp,E);let d=F||x===l&&T.isActive&&!R&&k||y>b&&k,M=!1;const K=Array.isArray(E)?E:[E];let P=K.reduce(s(x),{});A===!1&&(P={});const{prevResolvedValues:S={}}=T,f={...S,...P},w=L=>{d=!0,p.has(L)&&(M=!0,p.delete(L)),T.needsAnimating[L]=!0;const C=e.getValue(L);C&&(C.liveStyle=!1)};for(const L in f){const C=P[L],V=S[L];if(m.hasOwnProperty(L))continue;let j=!1;Wr(C)&&Wr(V)?j=!Sc(C,V):j=C!==V,j?C!=null?w(L):p.add(L):C!==void 0&&p.has(L)?w(L):T.protectedKeys[L]=!0}T.prevProp=E,T.prevResolvedValues=P,T.isActive&&(m={...m,...P}),r&&e.blockInitialAnimation&&(d=!1),d&&(!(R&&F)||M)&&h.push(...K.map(L=>({animation:L,options:{type:x}})))}if(p.size){const y={};if(typeof u.initial!="boolean"){const x=en(e,Array.isArray(u.initial)?u.initial[0]:u.initial);x&&x.transition&&(y.transition=x.transition)}p.forEach(x=>{const T=e.getBaseTarget(x),E=e.getValue(x);E&&(E.liveStyle=!0),y[x]=T??null}),h.push({animation:y})}let g=!!h.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(h):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(p=>{var m;return(m=p.animationState)===null||m===void 0?void 0:m.setActive(l,u)}),n[l].isActive=u;const h=o(l);for(const p in n)n[p].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=vi(),r=!0}}}function lg(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Sc(t,e):!1}function Qe(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vi(){return{animate:Qe(!0),whileInView:Qe(),whileHover:Qe(),whileTap:Qe(),whileDrag:Qe(),whileFocus:Qe(),exit:Qe()}}class Ze{constructor(t){this.isMounted=!1,this.node=t}update(){}}class cg extends Ze{constructor(t){super(t),t.animationState||(t.animationState=ag(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();er(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let ug=0;class dg extends Ze{constructor(){super(...arguments),this.id=ug++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const fg={animation:{Feature:cg},exit:{Feature:dg}};function rn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function fn(e){return{point:{x:e.pageX,y:e.pageY}}}const hg=e=>t=>Hs(t)&&e(t,fn(t));function pt(e,t,n,r){return rn(e,t,hg(n),r)}function Cc({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function pg({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mg(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const Mc=1e-4,gg=1-Mc,vg=1+Mc,Ac=.01,bg=0-Ac,yg=0+Ac;function oe(e){return e.max-e.min}function xg(e,t,n){return Math.abs(e-t)<=n}function bi(e,t,n,r=.5){e.origin=r,e.originPoint=J(t.min,t.max,e.origin),e.scale=oe(n)/oe(t),e.translate=J(n.min,n.max,e.origin)-e.originPoint,(e.scale>=gg&&e.scale<=vg||isNaN(e.scale))&&(e.scale=1),(e.translate>=bg&&e.translate<=yg||isNaN(e.translate))&&(e.translate=0)}function Ht(e,t,n,r){bi(e.x,t.x,n.x,r?r.originX:void 0),bi(e.y,t.y,n.y,r?r.originY:void 0)}function yi(e,t,n){e.min=n.min+t.min,e.max=e.min+oe(t)}function wg(e,t,n){yi(e.x,t.x,n.x),yi(e.y,t.y,n.y)}function xi(e,t,n){e.min=t.min-n.min,e.max=e.min+oe(t)}function _t(e,t,n){xi(e.x,t.x,n.x),xi(e.y,t.y,n.y)}const wi=()=>({translate:0,scale:1,origin:0,originPoint:0}),mt=()=>({x:wi(),y:wi()}),Ti=()=>({min:0,max:0}),ee=()=>({x:Ti(),y:Ti()});function ve(e){return[e("x"),e("y")]}function vr(e){return e===void 0||e===1}function ts({scale:e,scaleX:t,scaleY:n}){return!vr(e)||!vr(t)||!vr(n)}function et(e){return ts(e)||kc(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function kc(e){return $i(e.x)||$i(e.y)}function $i(e){return e&&e!=="0%"}function Gn(e,t,n){const r=e-n,s=t*r;return n+s}function Pi(e,t,n,r,s){return s!==void 0&&(e=Gn(e,s,r)),Gn(e,n,r)+t}function ns(e,t=0,n=1,r,s){e.min=Pi(e.min,t,n,r,s),e.max=Pi(e.max,t,n,r,s)}function Dc(e,{x:t,y:n}){ns(e.x,t.translate,t.scale,t.originPoint),ns(e.y,n.translate,n.scale,n.originPoint)}const Si=.999999999999,Ei=1.0000000000001;function Tg(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let a=0;a<s;a++){i=n[a],o=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&vt(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Dc(e,o)),r&&et(i.latestValues)&&vt(e,i.latestValues))}t.x<Ei&&t.x>Si&&(t.x=1),t.y<Ei&&t.y>Si&&(t.y=1)}function gt(e,t){e.min=e.min+t,e.max=e.max+t}function Ci(e,t,n,r,s=.5){const i=J(e.min,e.max,s);ns(e,t,n,i,r)}function vt(e,t){Ci(e.x,t.x,t.scaleX,t.scale,t.originX),Ci(e.y,t.y,t.scaleY,t.scale,t.originY)}function Lc(e,t){return Cc(mg(e.getBoundingClientRect(),t))}function $g(e,t,n){const r=Lc(e,n),{scroll:s}=t;return s&&(gt(r.x,s.offset.x),gt(r.y,s.offset.y)),r}const Mi=(e,t)=>Math.abs(e-t);function Pg(e,t){const n=Mi(e.x,t.x),r=Mi(e.y,t.y);return Math.sqrt(n**2+r**2)}class Rc{constructor(t,n,{transformPagePoint:r,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=yr(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=Pg(c.offset,{x:0,y:0})>=3;if(!h&&!p)return;const{point:m}=c,{timestamp:b}=ne;this.history.push({...m,timestamp:b});const{onStart:g,onMove:y}=this.handlers;h||(g&&g(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,c)},this.handlePointerMove=(c,h)=>{if(this.index=ki(c.currentTarget),c.target instanceof Element&&c.target.hasPointerCapture&&c.pointerId!==void 0)try{if(!c.target.hasPointerCapture(c.pointerId))return}catch{}this.lastMoveEvent=c,this.lastMoveEventInfo=br(h,this.transformPagePoint),G.update(this.updatePoint,!0)},this.handlePointerUp=(c,h)=>{Ut(c,"release"),this.end();const{onEnd:p,onSessionEnd:m,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=yr(c.type==="pointercancel"||c.type==="lostpointercapture"?this.lastMoveEventInfo:br(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(c,g),m&&m(c,g)},!Hs(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r;const i=fn(t),o=br(i,this.transformPagePoint),{point:a}=o,{timestamp:l}=ne;this.history=[{...a,timestamp:l}];const{onSessionStart:u}=n;u&&u(t,yr(o,this.history)),Ut(t,"set"),this.removeListeners=dn(pt(t.currentTarget,"pointermove",this.handlePointerMove),pt(t.currentTarget,"pointerup",this.handlePointerUp),pt(t.currentTarget,"pointercancel",this.handlePointerUp),pt(t.currentTarget,"lostpointercapture",(c,h)=>{ki(c.currentTarget)!==this.index?Ut(c,"set"):this.handlePointerUp(c,h)}))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Xe(this.updatePoint)}}function br(e,t){return t?{point:t(e.point)}:e}function Ai(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yr({point:e},t){return{point:e,delta:Ai(e,Kc(t)),offset:Ai(e,Sg(t)),velocity:Eg(t,.1)}}function Sg(e){return e[0]}function Kc(e){return e[e.length-1]}function Eg(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Kc(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Ee(t)));)n--;if(!r)return{x:0,y:0};const i=Re(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function ki(e){return e.parentNode?Array.from(e.parentNode.children).indexOf(e):-1}function Cg(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?J(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?J(n,e,r.max):Math.min(e,n)),e}function Di(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Mg(e,{top:t,left:n,bottom:r,right:s}){return{x:Di(e.x,n,s),y:Di(e.y,t,r)}}function Li(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Ag(e,t){return{x:Li(e.x,t.x),y:Li(e.y,t.y)}}function kg(e,t){let n=.5;const r=oe(e),s=oe(t);return s>r?n=$t(t.min,t.max-r,e.min):r>s&&(n=$t(e.min,e.max-s,t.min)),Fe(0,1,n)}function Dg(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const rs=.35;function Lg(e=rs){return e===!1?e=0:e===!0&&(e=rs),{x:Ri(e,"left","right"),y:Ri(e,"top","bottom")}}function Ri(e,t,n){return{min:Ki(e,t),max:Ki(e,n)}}function Ki(e,t){return typeof e=="number"?e:e[t]||0}const Rg=new WeakMap;class Kg{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ee(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(fn(c).point)},i=(c,h)=>{const{drag:p,dragPropagation:m,onDragStart:b}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ep(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ve(y=>{let x=this.getAxisMotionValue(y).get()||0;if(Ce.test(x)){const{projection:T}=this.visualElement;if(T&&T.layout){const E=T.layout.layoutBox[y];E&&(x=oe(E)*(parseFloat(x)/100))}}this.originPoint[y]=x}),b&&G.postRender(()=>b(c,h)),_r(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},o=(c,h)=>{const{dragPropagation:p,dragDirectionLock:m,onDirectionLock:b,onDrag:g}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:y}=h;if(m&&this.currentDirection===null){this.currentDirection=Vg(y),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),g&&g(c,h)},a=(c,h)=>this.stop(c,h),l=()=>ve(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Rc(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&G.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Tn(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Cg(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&ft(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=Mg(s.layoutBox,n):this.constraints=!1,this.elastic=Lg(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&ve(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Dg(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ft(t))return!1;const r=t.current;st(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=$g(r,s.root,this.visualElement.getTransformPagePoint());let o=Ag(s.layout.layoutBox,i);if(n){const a=n(pg(o));this.hasMutatedConstraints=!!a,a&&(o=Cc(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=ve(c=>{if(!Tn(c,n,this.currentDirection))return;let h=l&&l[c]||{};o&&(h={min:0,max:0});const p=s?200:1e6,m=s?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(c,b)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return _r(this.visualElement,t),r.start(so(t,r,0,n,this.visualElement,!1))}stopAnimation(){ve(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ve(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ve(n=>{const{drag:r}=this.getProps();if(!Tn(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];i.set(t[n]-J(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ft(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};ve(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=kg({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ve(o=>{if(!Tn(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(J(l,u,s[o]))})}addListeners(){if(!this.visualElement.current)return;Rg.set(this.visualElement,this);const t=this.visualElement.current,n=pt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ft(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),G.read(r);const o=rn(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ve(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=rs,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Tn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Vg(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Fg extends Ze{constructor(t){super(t),this.removeGroupControls=le,this.removeListeners=le,this.controls=new Kg(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||le}unmount(){this.removeGroupControls(),this.removeListeners()}}const Vi=e=>(t,n)=>{e&&G.postRender(()=>e(t,n))};class Ig extends Ze{constructor(){super(...arguments),this.removePointerDownListener=le}onPointerDown(t){this.session=new Rc(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Vi(t),onStart:Vi(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&G.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=pt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Kn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Fi(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ft={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(O.test(e))e=parseFloat(e);else return e;const n=Fi(e,t.target.x),r=Fi(e,t.target.y);return`${n}% ${r}%`}},Og={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Ye.parse(e);if(s.length>5)return r;const i=Ye.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const u=J(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=u),typeof s[3+o]=="number"&&(s[3+o]/=u),i(s)}};class Ng extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;jh(Bg),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Kn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||G.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ls.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Vc(e){const[t,n]=hh(),r=v.useContext(Bn);return N.jsx(Ng,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(El),isPresent:t,safeToRemove:n})}const Bg={borderRadius:{...Ft,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ft,borderTopRightRadius:Ft,borderBottomLeftRadius:Ft,borderBottomRightRadius:Ft,boxShadow:Og};function jg(e,t,n){const r=se(e)?e:tn(e);return r.start(so("",r,t,n)),r.animation}function zg(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Ug=(e,t)=>e.depth-t.depth;class Wg{constructor(){this.children=[],this.isDirty=!1}add(t){_s(this.children,t),this.isDirty=!0}remove(t){Xs(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ug),this.isDirty=!1,this.children.forEach(t)}}function Gg(e,t){const n=Me.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Xe(r),e(i-t))};return G.read(r,!0),()=>Xe(r)}const Fc=["TopLeft","TopRight","BottomLeft","BottomRight"],Hg=Fc.length,Ii=e=>typeof e=="string"?parseFloat(e):e,Oi=e=>typeof e=="number"||O.test(e);function _g(e,t,n,r,s,i){s?(e.opacity=J(0,n.opacity!==void 0?n.opacity:1,Xg(r)),e.opacityExit=J(t.opacity!==void 0?t.opacity:1,0,Yg(r))):i&&(e.opacity=J(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Hg;o++){const a=`border${Fc[o]}Radius`;let l=Ni(t,a),u=Ni(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Oi(l)===Oi(u)?(e[a]=Math.max(J(Ii(l),Ii(u),r),0),(Ce.test(u)||Ce.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=J(t.rotate||0,n.rotate||0,r))}function Ni(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Xg=Ic(0,.5,tc),Yg=Ic(.5,.95,le);function Ic(e,t,n){return r=>r<e?0:r>t?1:n($t(e,t,r))}function Bi(e,t){e.min=t.min,e.max=t.max}function ge(e,t){Bi(e.x,t.x),Bi(e.y,t.y)}function ji(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function zi(e,t,n,r,s){return e-=t,e=Gn(e,1/n,r),s!==void 0&&(e=Gn(e,1/s,r)),e}function qg(e,t=0,n=1,r=.5,s,i=e,o=e){if(Ce.test(t)&&(t=parseFloat(t),t=J(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=J(i.min,i.max,r);e===i&&(a-=t),e.min=zi(e.min,t,n,a,s),e.max=zi(e.max,t,n,a,s)}function Ui(e,t,[n,r,s],i,o){qg(e,t[n],t[r],t[s],t.scale,i,o)}const Zg=["x","scaleX","originX"],Jg=["y","scaleY","originY"];function Wi(e,t,n,r){Ui(e.x,t,Zg,n?n.x:void 0,r?r.x:void 0),Ui(e.y,t,Jg,n?n.y:void 0,r?r.y:void 0)}function Gi(e){return e.translate===0&&e.scale===1}function Oc(e){return Gi(e.x)&&Gi(e.y)}function Hi(e,t){return e.min===t.min&&e.max===t.max}function Qg(e,t){return Hi(e.x,t.x)&&Hi(e.y,t.y)}function _i(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Nc(e,t){return _i(e.x,t.x)&&_i(e.y,t.y)}function Xi(e){return oe(e.x)/oe(e.y)}function Yi(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ev{constructor(){this.members=[]}add(t){_s(this.members,t),t.scheduleRender()}remove(t){if(Xs(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function tv(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:p,skewX:m,skewY:b}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),h&&(r+=`rotateX(${h}deg) `),p&&(r+=`rotateY(${p}deg) `),m&&(r+=`skewX(${m}deg) `),b&&(r+=`skewY(${b}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const xr=["","X","Y","Z"],nv={visibility:"hidden"},qi=1e3;let rv=0;function wr(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Bc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Xl(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",G,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Bc(r)}function jc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=rv++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(iv),this.nodes.forEach(dv),this.nodes.forEach(fv),this.nodes.forEach(av)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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 Wg)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Ys),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=zg(o),this.instance=o;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let h;const p=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Gg(p,250),Kn.hasAnimatedSinceResize&&(Kn.hasAnimatedSinceResize=!1,this.nodes.forEach(Ji))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:p,hasRelativeLayoutChanged:m,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||vv,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=c.getProps(),T=!this.targetLayout||!Nc(this.targetLayout,b),E=!p&&m;if(this.options.layoutRoot||this.resumeFrom||E||p&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,E);const k={...Us(g,"layout"),onPlay:y,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else p||Ji(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Xe(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(hv),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Bc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.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(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Zi);return}this.isUpdating||this.nodes.forEach(cv),this.isUpdating=!1,this.nodes.forEach(uv),this.nodes.forEach(sv),this.nodes.forEach(ov),this.clearAllSnapshots();const a=Me.now();ne.delta=Fe(0,1e3/60,a-ne.timestamp),ne.timestamp=a,ne.isProcessing=!0,dr.update.process(ne),dr.preRender.process(ne),dr.render.process(ne),ne.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ls.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(lv),this.sharedNodes.forEach(pv)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,G.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){G.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!oe(this.snapshot.measuredBox.x)&&!oe(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 o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ee(),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,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Oc(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&(a||et(this.latestValues)||c)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),bv(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return ee();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(yv))){const{scroll:c}=this.root;c&&(gt(l.x,c.offset.x),gt(l.y,c.offset.y))}return l}removeElementScroll(o){var a;const l=ee();if(ge(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:h,options:p}=c;c!==this.root&&h&&p.layoutScroll&&(h.wasRoot&&ge(l,o),gt(l.x,h.offset.x),gt(l.y,h.offset.y))}return l}applyTransform(o,a=!1){const l=ee();ge(l,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&vt(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),et(c.latestValues)&&vt(l,c.latestValues)}return et(this.latestValues)&&vt(l,this.latestValues),l}removeTransform(o){const a=ee();ge(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!et(u.latestValues))continue;ts(u.latestValues)&&u.updateSnapshot();const c=ee(),h=u.measurePageBox();ge(c,h),Wi(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return et(this.latestValues)&&Wi(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==ne.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:p}=this.options;if(!(!this.layout||!(h||p))){if(this.resolvedRelativeTargetAt=ne.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ee(),this.relativeTargetOrigin=ee(),_t(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),ge(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ee(),this.targetWithTransforms=ee()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),wg(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ge(this.target,this.layout.layoutBox),Dc(this.target,this.targetDelta)):ge(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ee(),this.relativeTargetOrigin=ee(),_t(this.relativeTargetOrigin,this.target,m.target),ge(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ts(this.parent.latestValues)||kc(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 o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===ne.timestamp&&(u=!1),u)return;const{layout:c,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||h))return;ge(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,m=this.treeScale.y;Tg(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=ee());const{target:b}=a;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ji(this.prevProjectionDelta.x,this.projectionDelta.x),ji(this.prevProjectionDelta.y,this.projectionDelta.y)),Ht(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==m||!Yi(this.projectionDelta.x,this.prevProjectionDelta.x)||!Yi(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=mt(),this.projectionDelta=mt(),this.projectionDeltaWithTransform=mt()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=mt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const p=ee(),m=l?l.source:void 0,b=this.layout?this.layout.source:void 0,g=m!==b,y=this.getStack(),x=!y||y.members.length<=1,T=!!(g&&!x&&this.options.crossfade===!0&&!this.path.some(gv));this.animationProgress=0;let E;this.mixTargetDelta=k=>{const A=k/1e3;Qi(h.x,o.x,A),Qi(h.y,o.y,A),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_t(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mv(this.relativeTarget,this.relativeTargetOrigin,p,A),E&&Qg(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=ee()),ge(E,this.relativeTarget)),g&&(this.animationValues=c,_g(c,u,this.latestValues,A,T,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Xe(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=G.update(()=>{Kn.hasAnimatedSinceResize=!0,this.currentAnimation=jg(0,qi,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(qi),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&zc(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ee();const h=oe(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const p=oe(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+p}ge(a,l),vt(a,c),Ht(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new ev),this.sharedNodes.get(o).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 o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&wr("z",o,u,this.animationValues);for(let c=0;c<xr.length;c++)wr(`rotate${xr[c]}`,o,u,this.animationValues),wr(`skew${xr[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nv;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Ln(o==null?void 0:o.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Ln(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!et(this.latestValues)&&(g.transform=c?c({},""):"none",this.hasProjected=!1),g}const p=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=tv(this.projectionDeltaWithTransform,this.treeScale,p),c&&(u.transform=c(p,u.transform));const{x:m,y:b}=this.projectionDelta;u.transformOrigin=`${m.origin*100}% ${b.origin*100}% 0`,h.animationValues?u.opacity=h===this?(l=(a=p.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:u.opacity=h===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const g in Jt){if(p[g]===void 0)continue;const{correct:y,applyTo:x,isCSSVariable:T}=Jt[g],E=u.transform==="none"?p[g]:y(p[g],h);if(x){const k=x.length;for(let A=0;A<k;A++)u[x[A]]=E}else T?this.options.visualElement.renderState.vars[g]=E:u[g]=E}return this.options.layoutId&&(u.pointerEvents=h===this?Ln(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Zi),this.root.sharedNodes.clear()}}}function sv(e){e.updateLayout()}function ov(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?ve(h=>{const p=o?n.measuredBox[h]:n.layoutBox[h],m=oe(p);p.min=r[h].min,p.max=p.min+m}):zc(i,n.layoutBox,r)&&ve(h=>{const p=o?n.measuredBox[h]:n.layoutBox[h],m=oe(r[h]);p.max=p.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+m)});const a=mt();Ht(a,r,n.layoutBox);const l=mt();o?Ht(l,e.applyTransform(s,!0),n.measuredBox):Ht(l,r,n.layoutBox);const u=!Oc(a);let c=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:p,layout:m}=h;if(p&&m){const b=ee();_t(b,n.layoutBox,p.layoutBox);const g=ee();_t(g,r,m.layoutBox),Nc(b,g)||(c=!0),h.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=b,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function iv(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function av(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function lv(e){e.clearSnapshot()}function Zi(e){e.clearMeasurements()}function cv(e){e.isLayoutDirty=!1}function uv(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ji(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function dv(e){e.resolveTargetDelta()}function fv(e){e.calcProjection()}function hv(e){e.resetSkewAndRotation()}function pv(e){e.removeLeadSnapshot()}function Qi(e,t,n){e.translate=J(t.translate,0,n),e.scale=J(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ea(e,t,n,r){e.min=J(t.min,n.min,r),e.max=J(t.max,n.max,r)}function mv(e,t,n,r){ea(e.x,t.x,n.x,r),ea(e.y,t.y,n.y,r)}function gv(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const vv={duration:.45,ease:[.4,0,.1,1]},ta=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),na=ta("applewebkit/")&&!ta("chrome/")?Math.round:le;function ra(e){e.min=na(e.min),e.max=na(e.max)}function bv(e){ra(e.x),ra(e.y)}function zc(e,t,n){return e==="position"||e==="preserve-aspect"&&!xg(Xi(t),Xi(n),.2)}function yv(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const xv=jc({attachResizeListener:(e,t)=>rn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Tr={current:void 0},Uc=jc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Tr.current){const e=new xv({});e.mount(window),e.setOptions({layoutScroll:!0}),Tr.current=e}return Tr.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),wv={pan:{Feature:Ig},drag:{Feature:Fg,ProjectionNode:Uc,MeasureLayout:Vc}};function sa(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&G.postRender(()=>i(t,fn(t)))}class Tv extends Ze{mount(){const{current:t}=this.node;t&&(this.unmount=xp(t,(n,r)=>(sa(this.node,r,"Start"),s=>sa(this.node,s,"End"))))}unmount(){}}class $v extends Ze{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=dn(rn(this.node.current,"focus",()=>this.onFocus()),rn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function oa(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&G.postRender(()=>i(t,fn(t)))}class Pv extends Ze{mount(){const{current:t}=this.node;t&&(this.unmount=Pp(t,(n,r)=>(oa(this.node,r,"Start"),(s,{success:i})=>oa(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ss=new WeakMap,$r=new WeakMap,Sv=e=>{const t=ss.get(e.target);t&&t(e)},Ev=e=>{e.forEach(Sv)};function Cv({root:e,...t}){const n=e||document;$r.has(n)||$r.set(n,{});const r=$r.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(Ev,{root:e,...t})),r[s]}function Mv(e,t,n){const r=Cv(t);return ss.set(e,n),r.observe(e),()=>{ss.delete(e),r.unobserve(e)}}const Av={some:0,all:1};class kv extends Ze{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:Av[s]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),p=u?c:h;p&&p(l)};return Mv(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Dv(t,n))&&this.startObserver()}unmount(){}}function Dv({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Lv={inView:{Feature:kv},tap:{Feature:Pv},focus:{Feature:$v},hover:{Feature:Tv}},Rv={layout:{ProjectionNode:Uc,MeasureLayout:Vc}},os={current:null},Wc={current:!1};function Kv(){if(Wc.current=!0,!!Es)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>os.current=e.matches;e.addListener(t),t()}else os.current=!1}const Vv=[...mc,re,Ye],Fv=e=>Vv.find(pc(e)),Iv=new WeakMap;function Ov(e,t,n){for(const r in t){const s=t[r],i=n[r];if(se(s))e.addValue(r,s),process.env.NODE_ENV==="development"&&Jn(s.version==="12.4.10",`Attempting to mix Motion versions ${s.version} with 12.4.10 may not work as expected.`);else if(se(i))e.addValue(r,tn(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,tn(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ia=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Nv{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=to,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 m=Me.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,G.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:c}=o;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=tr(n),this.isVariantNode=Pl(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in p){const b=p[m];l[m]!==void 0&&se(b)&&b.set(l[m],!1)}}mount(t){this.current=t,Iv.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Wc.current||Kv(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:os.current,process.env.NODE_ENV!=="production"&&Jn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Xe(this.notifyUpdate),Xe(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=it.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&G.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Pt){const n=Pt[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ee()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<ia.length;r++){const s=ia[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=Ov(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=tn(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(fc(s)||rc(s))?s=parseFloat(s):!Fv(s)&&Ye.test(n)&&(s=cc(t,n)),this.setBaseTarget(t,se(s)?s.get():s)),se(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const o=js(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!se(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ys),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Gc extends Nv{constructor(){super(...arguments),this.KeyframeResolver=gc}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;se(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Bv(e){return window.getComputedStyle(e)}class jv extends Gc{constructor(){super(...arguments),this.type="html",this.renderInstance=Vl}readValueFromInstance(t,n){if(it.has(n)){const r=eo(n);return r&&r.default||0}else{const r=Bv(t),s=(Rs(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Lc(t,n)}build(t,n,r){Fs(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return zs(t,n,r)}}class zv extends Gc{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ee,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Kl(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(it.has(n)){const r=eo(n);return r&&r.default||0}return n=Fl.has(n)?n:Ds(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ol(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&G.postRender(this.updateDimensions)}build(t,n,r){Ns(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){Il(t,n,r,s)}mount(t){this.isSVGTag=Bs(t.tagName),super.mount(t)}}const Uv=(e,t)=>Os(e)?new zv(t):new jv(t,{allowProjection:e!==v.Fragment}),Wv={renderer:Uv,...fg,...Lv},Gv={...Wv,...wv,...Rv};let bt="default",is="",Vn=new WeakMap;function aa(e){if(on()){if(bt==="default"){const t=Y(e);is=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}bt="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Vn.set(e,e.style.userSelect),e.style.userSelect="none")}function $n(e){if(on()){if(bt!=="disabled")return;bt="restoring",setTimeout(()=>{ys(()=>{if(bt==="restoring"){const t=Y(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=is||""),is="",bt="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Vn.has(e)){let t=Vn.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Vn.delete(e)}}const Hc=v.createContext({register:()=>{}});Hc.displayName="PressResponderContext";function Hv(e){let t=v.useContext(Hc);if(t){let{register:n,...r}=t;e=xe(r,e),n()}return nl(t,e.ref),e}var Pn=new WeakMap;class Sn{continuePropagation(){On(this,Pn,!1)}get shouldStopPropagation(){return cl(this,Pn)}constructor(t,n,r,s){Ha(this,Pn,{writable:!0,value:void 0}),On(this,Pn,!0);var i;let o=(i=s==null?void 0:s.target)!==null&&i!==void 0?i:r.currentTarget;const a=o==null?void 0:o.getBoundingClientRect();let l,u=0,c,h=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,h=r.clientY),a&&(c!=null&&h!=null?(l=c-a.left,u=h-a.top):(l=a.width/2,u=a.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}}const la=Symbol("linkClicked");function _v(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:s,onPressUp:i,isDisabled:o,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:h,...p}=Hv(e),[m,b]=v.useState(!1),g=v.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:x}=xs(),T=ae((d,M)=>{let K=g.current;if(o||K.didFirePressStart)return!1;let P=!0;if(K.isTriggeringEvent=!0,r){let S=new Sn("pressstart",M,d);r(S),P=S.shouldStopPropagation}return n&&n(!0),K.isTriggeringEvent=!1,K.didFirePressStart=!0,b(!0),P}),E=ae((d,M,K=!0)=>{let P=g.current;if(!P.didFirePressStart)return!1;P.ignoreClickAfterPress=!0,P.didFirePressStart=!1,P.isTriggeringEvent=!0;let S=!0;if(s){let f=new Sn("pressend",M,d);s(f),S=f.shouldStopPropagation}if(n&&n(!1),b(!1),t&&K&&!o){let f=new Sn("press",M,d);t(f),S&&(S=f.shouldStopPropagation)}return P.isTriggeringEvent=!1,S}),k=ae((d,M)=>{let K=g.current;if(o)return!1;if(i){K.isTriggeringEvent=!0;let P=new Sn("pressup",M,d);return i(P),K.isTriggeringEvent=!1,P.shouldStopPropagation}return!0}),A=ae(d=>{let M=g.current;M.isPressed&&M.target&&(M.isOverTarget&&M.pointerType!=null&&E(De(M.target,d),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,x(),c||$n(M.target))}),R=ae(d=>{u&&A(d)}),F=v.useMemo(()=>{let d=g.current,M={onKeyDown(P){if(Pr(P.nativeEvent,P.currentTarget)&&P.currentTarget.contains(P.target)){var S;ua(P.target,P.key)&&P.preventDefault();let f=!0;if(!d.isPressed&&!P.repeat){d.target=P.currentTarget,d.isPressed=!0,f=T(P,"keyboard");let w=P.currentTarget,$=D=>{Pr(D,w)&&!D.repeat&&w.contains(D.target)&&d.target&&k(De(d.target,D),"keyboard")};y(Y(P.currentTarget),"keyup",gs($,K),!0)}f&&P.stopPropagation(),P.metaKey&&Ke()&&((S=d.metaKeyEvents)===null||S===void 0||S.set(P.key,P.nativeEvent))}else P.key==="Meta"&&(d.metaKeyEvents=new Map)},onClick(P){if(!(P&&!P.currentTarget.contains(P.target))&&P&&P.button===0&&!d.isTriggeringEvent&&!Ve.isOpening){let S=!0;if(o&&P.preventDefault(),!d.ignoreClickAfterPress&&!d.ignoreEmulatedMouseEvents&&!d.isPressed&&(d.pointerType==="virtual"||Tt(P.nativeEvent))){!o&&!l&&ue(P.currentTarget);let f=T(P,"virtual"),w=k(P,"virtual"),$=E(P,"virtual");S=f&&w&&$}d.ignoreEmulatedMouseEvents=!1,d.ignoreClickAfterPress=!1,S&&P.stopPropagation()}}},K=P=>{var S;if(d.isPressed&&d.target&&Pr(P,d.target)){var f;ua(P.target,P.key)&&P.preventDefault();let $=P.target;E(De(d.target,P),"keyboard",d.target.contains($)),x(),P.key!=="Enter"&&oo(d.target)&&d.target.contains($)&&!P[la]&&(P[la]=!0,Ve(d.target,P,!1)),d.isPressed=!1,(f=d.metaKeyEvents)===null||f===void 0||f.delete(P.key)}else if(P.key==="Meta"&&(!((S=d.metaKeyEvents)===null||S===void 0)&&S.size)){var w;let $=d.metaKeyEvents;d.metaKeyEvents=void 0;for(let D of $.values())(w=d.target)===null||w===void 0||w.dispatchEvent(new KeyboardEvent("keyup",D))}};if(typeof PointerEvent<"u"){M.onPointerDown=w=>{if(w.button!==0||!w.currentTarget.contains(w.target))return;if(sl(w.nativeEvent)){d.pointerType="virtual";return}Er(w.currentTarget)&&w.preventDefault(),d.pointerType=w.pointerType;let $=!0;if(!d.isPressed){d.isPressed=!0,d.isOverTarget=!0,d.activePointerId=w.pointerId,d.target=w.currentTarget,!o&&!l&&ue(w.currentTarget),c||aa(d.target),$=T(w,d.pointerType);let D=w.target;"releasePointerCapture"in D&&D.releasePointerCapture(w.pointerId),y(Y(w.currentTarget),"pointerup",P,!1),y(Y(w.currentTarget),"pointercancel",f,!1)}$&&w.stopPropagation()},M.onMouseDown=w=>{w.currentTarget.contains(w.target)&&w.button===0&&(Er(w.currentTarget)&&w.preventDefault(),w.stopPropagation())},M.onPointerUp=w=>{!w.currentTarget.contains(w.target)||d.pointerType==="virtual"||w.button===0&&k(w,d.pointerType||w.pointerType)},M.onPointerEnter=w=>{w.pointerId===d.activePointerId&&d.target&&!d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!0,T(De(d.target,w),d.pointerType))},M.onPointerLeave=w=>{w.pointerId===d.activePointerId&&d.target&&d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!1,E(De(d.target,w),d.pointerType,!1),R(w))};let P=w=>{w.pointerId===d.activePointerId&&d.isPressed&&w.button===0&&d.target&&(d.target.contains(w.target)&&d.pointerType!=null?E(De(d.target,w),d.pointerType):d.isOverTarget&&d.pointerType!=null&&E(De(d.target,w),d.pointerType,!1),d.isPressed=!1,d.isOverTarget=!1,d.activePointerId=null,d.pointerType=null,x(),c||$n(d.target),"ontouchend"in d.target&&w.pointerType!=="mouse"&&y(d.target,"touchend",S,{once:!0}))},S=w=>{_c(w.currentTarget)&&w.preventDefault()},f=w=>{A(w)};M.onDragStart=w=>{w.currentTarget.contains(w.target)&&A(w)}}else{M.onMouseDown=f=>{if(f.button!==0||!f.currentTarget.contains(f.target))return;if(Er(f.currentTarget)&&f.preventDefault(),d.ignoreEmulatedMouseEvents){f.stopPropagation();return}d.isPressed=!0,d.isOverTarget=!0,d.target=f.currentTarget,d.pointerType=Tt(f.nativeEvent)?"virtual":"mouse",!o&&!l&&ue(f.currentTarget),T(f,d.pointerType)&&f.stopPropagation(),y(Y(f.currentTarget),"mouseup",P,!1)},M.onMouseEnter=f=>{if(!f.currentTarget.contains(f.target))return;let w=!0;d.isPressed&&!d.ignoreEmulatedMouseEvents&&d.pointerType!=null&&(d.isOverTarget=!0,w=T(f,d.pointerType)),w&&f.stopPropagation()},M.onMouseLeave=f=>{if(!f.currentTarget.contains(f.target))return;let w=!0;d.isPressed&&!d.ignoreEmulatedMouseEvents&&d.pointerType!=null&&(d.isOverTarget=!1,w=E(f,d.pointerType,!1),R(f)),w&&f.stopPropagation()},M.onMouseUp=f=>{f.currentTarget.contains(f.target)&&!d.ignoreEmulatedMouseEvents&&f.button===0&&k(f,d.pointerType||"mouse")};let P=f=>{if(f.button===0){if(d.isPressed=!1,x(),d.ignoreEmulatedMouseEvents){d.ignoreEmulatedMouseEvents=!1;return}d.target&&Sr(f,d.target)&&d.pointerType!=null?E(De(d.target,f),d.pointerType):d.target&&d.isOverTarget&&d.pointerType!=null&&E(De(d.target,f),d.pointerType,!1),d.isOverTarget=!1}};M.onTouchStart=f=>{if(!f.currentTarget.contains(f.target))return;let w=Xv(f.nativeEvent);if(!w)return;d.activePointerId=w.identifier,d.ignoreEmulatedMouseEvents=!0,d.isOverTarget=!0,d.isPressed=!0,d.target=f.currentTarget,d.pointerType="touch",!o&&!l&&ue(f.currentTarget),c||aa(d.target),T(We(d.target,f),d.pointerType)&&f.stopPropagation(),y(te(f.currentTarget),"scroll",S,!0)},M.onTouchMove=f=>{if(!f.currentTarget.contains(f.target))return;if(!d.isPressed){f.stopPropagation();return}let w=ca(f.nativeEvent,d.activePointerId),$=!0;w&&Sr(w,f.currentTarget)?!d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!0,$=T(We(d.target,f),d.pointerType)):d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!1,$=E(We(d.target,f),d.pointerType,!1),R(We(d.target,f))),$&&f.stopPropagation()},M.onTouchEnd=f=>{if(!f.currentTarget.contains(f.target))return;if(!d.isPressed){f.stopPropagation();return}let w=ca(f.nativeEvent,d.activePointerId),$=!0;w&&Sr(w,f.currentTarget)&&d.pointerType!=null?(k(We(d.target,f),d.pointerType),$=E(We(d.target,f),d.pointerType)):d.isOverTarget&&d.pointerType!=null&&($=E(We(d.target,f),d.pointerType,!1)),$&&f.stopPropagation(),d.isPressed=!1,d.activePointerId=null,d.isOverTarget=!1,d.ignoreEmulatedMouseEvents=!0,d.target&&!c&&$n(d.target),x()},M.onTouchCancel=f=>{f.currentTarget.contains(f.target)&&(f.stopPropagation(),d.isPressed&&A(We(d.target,f)))};let S=f=>{d.isPressed&&f.target.contains(d.target)&&A({currentTarget:d.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=f=>{f.currentTarget.contains(f.target)&&A(f)}}return M},[y,o,l,x,c,A,R,E,T,k]);return v.useEffect(()=>()=>{var d;c||$n((d=g.current.target)!==null&&d!==void 0?d:void 0)},[c]),{isPressed:a||m,pressProps:xe(p,F)}}function oo(e){return e.tagName==="A"&&e.hasAttribute("href")}function Pr(e,t){const{key:n,code:r}=e,s=t,i=s.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(s instanceof te(s).HTMLInputElement&&!Xc(s,n)||s instanceof te(s).HTMLTextAreaElement||s.isContentEditable)&&!((i==="link"||!i&&oo(s))&&n!=="Enter")}function Xv(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function ca(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const s=n[r];if(s.identifier===t)return s}return null}function We(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function De(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Yv(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function qv(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Sr(e,t){let n=t.getBoundingClientRect(),r=Yv(e);return qv(n,r)}function Er(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function _c(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!oo(e)}function ua(e,t){return e instanceof HTMLInputElement?!Xc(e,t):_c(e)}const Zv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Xc(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Zv.has(e.type)}class Jv{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Yc(e){let t=v.useRef({isFocused:!1,observer:null});_e(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=ae(r=>{e==null||e(r)});return v.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let s=r.target,i=o=>{t.current.isFocused=!1,s.disabled&&n(new Jv("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};s.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&s.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let a=s===document.activeElement?null:document.activeElement;s.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),s.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(s,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Qv(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:s}=e;const i=v.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),s&&s(!1),!0},[r,s]),o=Yc(i),a=v.useCallback(l=>{const u=Y(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),s&&s(!0),o(l))},[s,n,o]);return{focusProps:{onFocus:!t&&(n||s||r)?a:void 0,onBlur:!t&&(r||s)?i:void 0}}}let hn=null,as=new Set,Xt=new Map,ot=!1,ls=!1;const eb={Tab:!0,Escape:!0};function io(e,t){for(let n of as)n(e,t)}function tb(e){return!(e.metaKey||!Ke()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Hn(e){ot=!0,tb(e)&&(hn="keyboard",io("keyboard",e))}function ye(e){hn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ot=!0,io("pointer",e))}function qc(e){Tt(e)&&(ot=!0,hn="virtual")}function Zc(e){e.target===window||e.target===document||(!ot&&!ls&&(hn="virtual",io("virtual",e)),ot=!1,ls=!1)}function Jc(){ot=!1,ls=!0}function cs(e){if(typeof window>"u"||Xt.get(te(e)))return;const t=te(e),n=Y(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ot=!0,r.apply(this,arguments)},n.addEventListener("keydown",Hn,!0),n.addEventListener("keyup",Hn,!0),n.addEventListener("click",qc,!0),t.addEventListener("focus",Zc,!0),t.addEventListener("blur",Jc,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ye,!0),n.addEventListener("pointermove",ye,!0),n.addEventListener("pointerup",ye,!0)):(n.addEventListener("mousedown",ye,!0),n.addEventListener("mousemove",ye,!0),n.addEventListener("mouseup",ye,!0)),t.addEventListener("beforeunload",()=>{Qc(e)},{once:!0}),Xt.set(t,{focus:r})}const Qc=(e,t)=>{const n=te(e),r=Y(e);t&&r.removeEventListener("DOMContentLoaded",t),Xt.has(n)&&(n.HTMLElement.prototype.focus=Xt.get(n).focus,r.removeEventListener("keydown",Hn,!0),r.removeEventListener("keyup",Hn,!0),r.removeEventListener("click",qc,!0),n.removeEventListener("focus",Zc,!0),n.removeEventListener("blur",Jc,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ye,!0),r.removeEventListener("pointermove",ye,!0),r.removeEventListener("pointerup",ye,!0)):(r.removeEventListener("mousedown",ye,!0),r.removeEventListener("mousemove",ye,!0),r.removeEventListener("mouseup",ye,!0)),Xt.delete(n))};function nb(e){const t=Y(e);let n;return t.readyState!=="loading"?cs(e):(n=()=>{cs(e)},t.addEventListener("DOMContentLoaded",n)),()=>Qc(e,n)}typeof document<"u"&&nb();function eu(){return hn!=="pointer"}const rb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function sb(e,t,n){var r;const s=typeof window<"u"?te(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?te(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?te(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?te(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof s&&!rb.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof i||(n==null?void 0:n.target)instanceof o&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof a&&!eb[n.key])}function ob(e,t,n){cs(),v.useEffect(()=>{let r=(s,i)=>{sb(!!(n!=null&&n.isTextInput),s,i)&&e(eu())};return as.add(r),()=>{as.delete(r)}},t)}function ib(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:s}=e,i=v.useRef({isFocusWithin:!1}),o=v.useCallback(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),s&&s(!1))},[n,s,i]),a=Yc(o),l=v.useCallback(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),s&&s(!0),i.current.isFocusWithin=!0,a(u))},[r,s,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:o}}}let _n=!1,Cr=0;function us(){_n=!0,setTimeout(()=>{_n=!1},50)}function da(e){e.pointerType==="touch"&&us()}function ab(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",da):document.addEventListener("touchend",us),Cr++,()=>{Cr--,!(Cr>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",da):document.removeEventListener("touchend",us))}}function lb(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:s}=e,[i,o]=v.useState(!1),a=v.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;v.useEffect(ab,[]);let{hoverProps:l,triggerHoverEnd:u}=v.useMemo(()=>{let c=(m,b)=>{if(a.pointerType=b,s||b==="touch"||a.isHovered||!m.currentTarget.contains(m.target))return;a.isHovered=!0;let g=m.currentTarget;a.target=g,t&&t({type:"hoverstart",target:g,pointerType:b}),n&&n(!0),o(!0)},h=(m,b)=>{if(a.pointerType="",a.target=null,b==="touch"||!a.isHovered)return;a.isHovered=!1;let g=m.currentTarget;r&&r({type:"hoverend",target:g,pointerType:b}),n&&n(!1),o(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=m=>{_n&&m.pointerType==="mouse"||c(m,m.pointerType)},p.onPointerLeave=m=>{!s&&m.currentTarget.contains(m.target)&&h(m,m.pointerType)}):(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=m=>{!a.ignoreEmulatedMouseEvents&&!_n&&c(m,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=m=>{!s&&m.currentTarget.contains(m.target)&&h(m,"mouse")}),{hoverProps:p,triggerHoverEnd:h}},[t,n,r,s,a]);return v.useEffect(()=>{s&&u({currentTarget:a.target},a.pointerType)},[s]),{hoverProps:l,isHovered:i}}function ao(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,s=v.useRef({isFocused:!1,isFocusVisible:t||eu()}),[i,o]=v.useState(!1),[a,l]=v.useState(()=>s.current.isFocused&&s.current.isFocusVisible),u=v.useCallback(()=>l(s.current.isFocused&&s.current.isFocusVisible),[]),c=v.useCallback(m=>{s.current.isFocused=m,o(m),u()},[u]);ob(m=>{s.current.isFocusVisible=m,u()},[],{isTextInput:n});let{focusProps:h}=Qv({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=ib({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:a,focusProps:r?p:h}}function cb(e){const[t,n]=sn(e,xo.variantKeys),{ref:r,as:s,children:i,avatar:o,startContent:a,endContent:l,onClose:u,classNames:c,className:h,...p}=t,m=s||"div",b=qe(r),g=He(c==null?void 0:c.base,h),y=!!u,x=e.variant==="dot",{focusProps:T,isFocusVisible:E}=ao(),k=v.useMemo(()=>typeof i=="string"&&(i==null?void 0:i.length)===1,[i]),A=v.useMemo(()=>!!o||!!a,[o,a]),R=v.useMemo(()=>!!l||y,[l,y]),F=v.useMemo(()=>xo({...n,hasStartContent:A,hasEndContent:R,isOneChar:k,isCloseable:y,isCloseButtonFocusVisible:E}),[Fa(n),E,A,R,k,y]),{pressProps:d}=_v({isDisabled:!!(e!=null&&e.isDisabled),onPress:u}),M=()=>({ref:b,className:F.base({class:g}),...p}),K=()=>({role:"button",tabIndex:0,className:F.closeButton({class:c==null?void 0:c.closeButton}),"aria-label":"close chip",...qt(d,T)}),P=f=>v.isValidElement(f)?v.cloneElement(f,{className:F.avatar({class:c==null?void 0:c.avatar})}):null,S=f=>v.isValidElement(f)?v.cloneElement(f,{className:He("max-h-[80%]",f.props.className)}):null;return{Component:m,children:i,slots:F,classNames:c,isDot:x,isCloseable:y,startContent:P(o)||S(a),endContent:S(l),getCloseButtonProps:K,getChipProps:M}}var ub=e=>N.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:N.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})}),tu=Pe((e,t)=>{const{Component:n,children:r,slots:s,classNames:i,isDot:o,isCloseable:a,startContent:l,endContent:u,getCloseButtonProps:c,getChipProps:h}=cb({...e,ref:t}),p=v.useMemo(()=>o&&!l?N.jsx("span",{className:s.dot({class:i==null?void 0:i.dot})}):l,[s,l,o]),m=v.useMemo(()=>a?N.jsx("span",{...c(),children:u||N.jsx(ub,{})}):u,[u,a,c]);return N.jsxs(n,{...h(),children:[p,N.jsx("span",{className:s.content({class:i==null?void 0:i.content}),children:r}),m]})});tu.displayName="HeroUI.Chip";var En=tu;function db(e){let t=ms(e,{enabled:typeof e.elementType=="string"}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}function fb(e){const{as:t,className:n,orientation:r,...s}=e;let i=t||"hr";i==="hr"&&r==="vertical"&&(i="div");const{separatorProps:o}=db({elementType:typeof i=="string"?i:"hr",orientation:r}),a=v.useMemo(()=>sd({orientation:r,className:n}),[r,n]),l=v.useCallback((u={})=>({className:a,role:"separator","data-orientation":r,...o,...s,...u}),[a,r,o,s]);return{Component:i,getDividerProps:l}}var nu=Pe((e,t)=>{const{Component:n,getDividerProps:r}=fb({...e});return N.jsx(n,{ref:t,...r()})});nu.displayName="HeroUI.Divider";var ru=nu;const hb=e=>{const{as:t,id:n,ref:r,children:s,className:i,usecase:o,dev:a,storybook:l,tests:u,...c}=e,h=t||"div",p=qe(r);return{Component:h,domRef:p,children:s,getBaseProps:()=>({id:n,ref:p,className:i,...c}),usecase:o,dev:a,storybook:l,tests:u}},Cn=e=>{switch(e){case"todo":return"default";case"poc":return"default";case"dev":return"danger";case"review":return"warning";case"completed":return"success";default:return"default"}},Mn=e=>{switch(e){case"todo":return"bordered";case"poc":return"bordered";case"dev":return"flat";case"review":return"solid";case"completed":return"dot";default:return"faded"}},su=Pe((e,t)=>{const{Component:n,getBaseProps:r,usecase:s,dev:i,storybook:o,tests:a}=hb({...e,ref:t});return N.jsxs(n,{...r(),children:[N.jsxs("div",{className:"flex gap-2 ",children:[N.jsx(En,{color:Cn(s),radius:"full",size:"md",variant:Mn(s),children:"UI/UX (PM)"}),N.jsx(En,{color:Cn(i),radius:"full",size:"md",variant:Mn(i),children:"Development"}),N.jsx(En,{color:Cn(o),radius:"full",size:"md",variant:Mn(o),children:"Storybook"}),N.jsx(En,{color:Cn(a),radius:"full",size:"md",variant:Mn(a),children:"Testing"})]}),N.jsx(ru,{className:"my-4 !h-px"})]})});su.displayName="StoryStatus";const fa=Ct({slots:{base:"vheader text-foreground my-1 text-lg font-bold lg:text-xl"},variants:{color:{none:"",default:"!text-default-foreground",primary:"!text-primary-foreground",success:"!text-success-foreground",warning:"!text-warning-foreground",danger:"!text-danger-foreground",info:"!text-info-foreground"},vc:{none:"",black:"!text-black",white:"!text-white",secondary:"!text-default-400",mode:"!text-black dark:!text-white"},size:{xs:"v-xs",sm:"v-sm",md:"v-md",lg:"v-lg",xl:"v-xl",xxl:"v-xxl"},align:{center:"text-center",left:"text-left rtl:text-right",right:"text-right rtl:text-left"}},defaultVariants:{color:"none",vc:"none",size:"sm",align:"left"}}),pb=e=>{const[t,n]=sn(e,fa.variantKeys),{as:r,id:s,ref:i,children:o,className:a,classNames:l,content:u,onClick:c,...h}=t,p=r||"div",m=qe(i),b=fa(n);return{Component:p,domRef:m,slots:b,classNames:l,children:o,getBaseProps:()=>({id:s,ref:m,className:b.base({class:ps(l==null?void 0:l.base,a)}),onClick:c,children:u,...h}),content:u}},mb=Pe((e,t)=>{const{Component:n,getBaseProps:r}=pb({...e,ref:t});return N.jsx(n,{...r()})});mb.displayName="Heading";const ha=Ct({slots:{base:"vtext"},variants:{variant:{title:"text-foreground my-1 text-base font-bold lg:text-lg",title1:"text-foreground my-1 text-base lg:text-lg",subtitle:"text-default-200 my-1 text-sm font-semibold lg:text-base",label:"my-1 text-sm font-medium",paragraph:"text-foreground my-1 text-sm",disable:"text-default-300 my-1 text-sm",error:"text-danger-500 my-1 text-sm"},color:{none:"",default:"!text-default-foreground",primary:"!text-primary-foreground",success:"!text-success-foreground",warning:"!text-warning-foreground",danger:"!text-danger-foreground",info:"!text-info-foreground"},vc:{none:"",black:"!text-black",white:"!text-white",secondary:"!text-default-400",mode:"!text-black dark:!text-white"},size:{sm:"v-sm",md:"v-md",lg:"v-lg"},align:{center:"text-center",left:"text-left rtl:text-right",right:"text-right rtl:text-left"}},defaultVariants:{variant:"paragraph",vc:"none",color:"none",size:"sm",align:"left"}}),gb=e=>{const[t,n]=sn(e,ha.variantKeys),{as:r,id:s,ref:i,children:o,className:a,classNames:l,content:u,...c}=t,h=r||"div",p=qe(i),m=ha(n);return{Component:h,domRef:p,slots:m,classNames:l,children:o,getBaseProps:()=>({id:s,ref:p,className:m.base({class:ps(l==null?void 0:l.base,a)}),children:u,...c}),content:u}},ou=Pe((e,t)=>{const{Component:n,getBaseProps:r}=gb({...e,ref:t});return N.jsx(n,{...r()})});ou.displayName="Text";const iu=new WeakMap;function Xn(e,t,n){return e?(typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${iu.get(e)}-${n}-${t}`):""}function ds(e){return kf()?e.altKey:e.ctrlKey}function Mr(e,t){var n,r;let s=`[data-key="${CSS.escape(String(t))}"]`,i=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return i&&(s=`[data-collection="${CSS.escape(i)}"]${s}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(s)}const au=new WeakMap;function vb(e){let t=Yn();return au.set(e,t),t}function bb(e){return au.get(e)}const yb=1e3;function xb(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,s=v.useRef({search:"",timeout:void 0}).current,i=o=>{let a=wb(o.key);if(!(!a||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))){if(a===" "&&s.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),s.search+=a,t.getKeyForSearch!=null){let l=t.getKeyForSearch(s.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(s.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(s.timeout),s.timeout=setTimeout(()=>{s.search=""},yb)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function wb(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Tb(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:s=!1,shouldFocusWrap:i=!1,disallowEmptySelection:o=!1,disallowSelectAll:a=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:c,allowsTabNavigation:h=!1,isVirtualized:p,scrollRef:m=r,linkBehavior:b="action"}=e,{direction:g}=Ja(),y=bs(),x=$=>{var D;if($.altKey&&$.key==="Tab"&&$.preventDefault(),!(!((D=r.current)===null||D===void 0)&&D.contains($.target)))return;const L=(I,pe)=>{if(I!=null){if(t.isLink(I)&&b==="selection"&&l&&!ds($)){Pa.flushSync(()=>{t.setFocusedKey(I,pe)});let me=Mr(r,I),at=t.getItemProps(I);me&&y.open(me,$,at.href,at.routerOptions);return}if(t.setFocusedKey(I,pe),t.isLink(I)&&b==="override")return;$.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(I):l&&!ds($)&&t.replaceSelection(I)}};switch($.key){case"ArrowDown":if(n.getKeyBelow){var C,V,j;let I=t.focusedKey!=null?(C=n.getKeyBelow)===null||C===void 0?void 0:C.call(n,t.focusedKey):(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n);I==null&&i&&(I=(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n,t.focusedKey)),I!=null&&($.preventDefault(),L(I))}break;case"ArrowUp":if(n.getKeyAbove){var z,H,ce;let I=t.focusedKey!=null?(z=n.getKeyAbove)===null||z===void 0?void 0:z.call(n,t.focusedKey):(H=n.getLastKey)===null||H===void 0?void 0:H.call(n);I==null&&i&&(I=(ce=n.getLastKey)===null||ce===void 0?void 0:ce.call(n,t.focusedKey)),I!=null&&($.preventDefault(),L(I))}break;case"ArrowLeft":if(n.getKeyLeftOf){var de,fe,we;let I=t.focusedKey!=null?(de=n.getKeyLeftOf)===null||de===void 0?void 0:de.call(n,t.focusedKey):null;I==null&&i&&(I=g==="rtl"?(fe=n.getFirstKey)===null||fe===void 0?void 0:fe.call(n,t.focusedKey):(we=n.getLastKey)===null||we===void 0?void 0:we.call(n,t.focusedKey)),I!=null&&($.preventDefault(),L(I,g==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Se,Oe,he;let I=t.focusedKey!=null?(Se=n.getKeyRightOf)===null||Se===void 0?void 0:Se.call(n,t.focusedKey):null;I==null&&i&&(I=g==="rtl"?(Oe=n.getLastKey)===null||Oe===void 0?void 0:Oe.call(n,t.focusedKey):(he=n.getFirstKey)===null||he===void 0?void 0:he.call(n,t.focusedKey)),I!=null&&($.preventDefault(),L(I,g==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&$.shiftKey)return;$.preventDefault();let I=n.getFirstKey(t.focusedKey,ut($));t.setFocusedKey(I),I!=null&&(ut($)&&$.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(I):l&&t.replaceSelection(I))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&$.shiftKey)return;$.preventDefault();let I=n.getLastKey(t.focusedKey,ut($));t.setFocusedKey(I),I!=null&&(ut($)&&$.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(I):l&&t.replaceSelection(I))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let I=n.getKeyPageBelow(t.focusedKey);I!=null&&($.preventDefault(),L(I))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let I=n.getKeyPageAbove(t.focusedKey);I!=null&&($.preventDefault(),L(I))}break;case"a":ut($)&&t.selectionMode==="multiple"&&a!==!0&&($.preventDefault(),t.selectAll());break;case"Escape":!o&&t.selectedKeys.size!==0&&($.stopPropagation(),$.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if($.shiftKey)r.current.focus();else{let I=vl(r.current,{tabbable:!0}),pe,me;do me=I.lastChild(),me&&(pe=me);while(me);pe&&!pe.contains(document.activeElement)&&ue(pe)}break}}},T=v.useRef({top:0,left:0});vn(m,"scroll",p?void 0:()=>{var $,D,L,C;T.current={top:(L=($=m.current)===null||$===void 0?void 0:$.scrollTop)!==null&&L!==void 0?L:0,left:(C=(D=m.current)===null||D===void 0?void 0:D.scrollLeft)!==null&&C!==void 0?C:0}});let E=$=>{if(t.isFocused){$.currentTarget.contains($.target)||t.setFocused(!1);return}if($.currentTarget.contains($.target)){if(t.setFocused(!0),t.focusedKey==null){var D,L;let j=H=>{H!=null&&(t.setFocusedKey(H),l&&!t.isSelected(H)&&t.replaceSelection(H))},z=$.relatedTarget;var C,V;z&&$.currentTarget.compareDocumentPosition(z)&Node.DOCUMENT_POSITION_FOLLOWING?j((C=t.lastSelectedKey)!==null&&C!==void 0?C:(D=n.getLastKey)===null||D===void 0?void 0:D.call(n)):j((V=t.firstSelectedKey)!==null&&V!==void 0?V:(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n))}else!p&&m.current&&(m.current.scrollTop=T.current.top,m.current.scrollLeft=T.current.left);if(t.focusedKey!=null&&m.current){let j=Mr(r,t.focusedKey);j instanceof HTMLElement&&(!j.contains(document.activeElement)&&!c&&ue(j),zr()==="keyboard"&&Ro(j,{containingElement:r.current}))}}},k=$=>{$.currentTarget.contains($.relatedTarget)||t.setFocused(!1)},A=v.useRef(!1);vn(r,Uf,c?$=>{let{detail:D}=$;$.stopPropagation(),t.setFocused(!0),(D==null?void 0:D.focusStrategy)==="first"&&(A.current=!0)}:void 0);let R=ae(()=>{var $,D;let L=(D=($=n.getFirstKey)===null||$===void 0?void 0:$.call(n))!==null&&D!==void 0?D:null;L==null?(bl(r.current),t.collection.size>0&&(A.current=!1)):(t.setFocusedKey(L),A.current=!1)});Do(()=>{A.current&&R()},[t.collection,R]);let F=ae(()=>{t.collection.size>0&&(A.current=!1)});Do(()=>{F()},[t.focusedKey,F]),vn(r,zf,c?$=>{var D;$.stopPropagation(),t.setFocused(!1),!((D=$.detail)===null||D===void 0)&&D.clearFocusKey&&t.setFocusedKey(null)}:void 0);const d=v.useRef(s),M=v.useRef(!1);v.useEffect(()=>{if(d.current){var $,D;let V=null;var L;s==="first"&&(V=(L=($=n.getFirstKey)===null||$===void 0?void 0:$.call(n))!==null&&L!==void 0?L:null);var C;s==="last"&&(V=(C=(D=n.getLastKey)===null||D===void 0?void 0:D.call(n))!==null&&C!==void 0?C:null);let j=t.selectedKeys;if(j.size){for(let z of j)if(t.canSelectItem(z)){V=z;break}}t.setFocused(!0),t.setFocusedKey(V),V==null&&!c&&r.current&&Ur(r.current),t.collection.size>0&&(d.current=!1,M.current=!0)}});let K=v.useRef(t.focusedKey);v.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==K.current||M.current)&&m.current&&r.current){let $=zr(),D=Mr(r,t.focusedKey);if(!(D instanceof HTMLElement))return;($==="keyboard"||M.current)&&(rl(m.current,D),$!=="virtual"&&Ro(D,{containingElement:r.current}))}!c&&t.isFocused&&t.focusedKey==null&&K.current!=null&&r.current&&Ur(r.current),K.current=t.focusedKey,M.current=!1}),vn(r,"react-aria-focus-scope-restore",$=>{$.preventDefault(),t.setFocused(!0)});let P={onKeyDown:x,onFocus:E,onBlur:k,onMouseDown($){m.current===$.target&&$.preventDefault()}},{typeSelectProps:S}=xb({keyboardDelegate:n,selectionManager:t});u||(P=xe(S,P));let f;c||(f=t.focusedKey==null?0:-1);let w=vb(t.collection);return{collectionProps:xe(P,{tabIndex:f,"data-collection":w})}}function $b(e){let{id:t,selectionManager:n,key:r,ref:s,shouldSelectOnPressUp:i,shouldUseVirtualFocus:o,focus:a,isDisabled:l,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:h="action"}=e,p=bs();t=Yn(t);let m=C=>{if(C.pointerType==="keyboard"&&ds(C))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(h==="selection"&&s.current){let V=n.getItemProps(r);p.open(s.current,C,V.href,V.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(h==="override"||h==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):C&&C.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||C&&(ut(C)||C.pointerType==="touch"||C.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};v.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(o?bl(s.current):a?a():document.activeElement!==s.current&&s.current&&Ur(s.current))},[s,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),l=l||n.isDisabled(r);let b={};!o&&!l?b={tabIndex:r===n.focusedKey?0:-1,onFocus(C){C.target===s.current&&n.setFocusedKey(r)}}:l&&(b.onMouseDown=C=>{C.preventDefault()});let g=n.isLink(r)&&h==="override",y=n.isLink(r)&&h!=="selection"&&h!=="none",x=!l&&n.canSelectItem(r)&&!g,T=(u||y)&&!l,E=T&&(n.selectionBehavior==="replace"?!x:!x||n.isEmpty),k=T&&x&&n.selectionBehavior==="replace",A=E||k,R=v.useRef(null),F=A&&x,d=v.useRef(!1),M=v.useRef(!1),K=C=>{if(u&&u(),y&&s.current){let V=n.getItemProps(r);p.open(s.current,C,V.href,V.routerOptions)}},P={};i?(P.onPressStart=C=>{R.current=C.pointerType,d.current=F,C.pointerType==="keyboard"&&(!A||ma())&&m(C)},c?(P.onPressUp=E?void 0:C=>{C.pointerType==="mouse"&&x&&m(C)},P.onPress=E?K:C=>{C.pointerType!=="keyboard"&&C.pointerType!=="mouse"&&x&&m(C)}):P.onPress=C=>{if(E||k&&C.pointerType!=="mouse"){if(C.pointerType==="keyboard"&&!pa())return;K(C)}else C.pointerType!=="keyboard"&&x&&m(C)}):(P.onPressStart=C=>{R.current=C.pointerType,d.current=F,M.current=E,x&&(C.pointerType==="mouse"&&!E||C.pointerType==="keyboard"&&(!T||ma()))&&m(C)},P.onPress=C=>{(C.pointerType==="touch"||C.pointerType==="pen"||C.pointerType==="virtual"||C.pointerType==="keyboard"&&A&&pa()||C.pointerType==="mouse"&&M.current)&&(A?K(C):x&&m(C))}),b["data-collection"]=bb(n.collection),b["data-key"]=r,P.preventFocusOnPress=o,o&&(P=xe(P,{onPressStart(C){C.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(C){C.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:S,isPressed:f}=ul(P),w=k?C=>{R.current==="mouse"&&(C.stopPropagation(),C.preventDefault(),K(C))}:void 0,{longPressProps:$}=ah({isDisabled:!F,onLongPress(C){C.pointerType==="touch"&&(m(C),n.setSelectionBehavior("toggle"))}}),D=C=>{R.current==="touch"&&d.current&&C.preventDefault()},L=n.isLink(r)?C=>{Ve.isOpening||C.preventDefault()}:void 0;return{itemProps:xe(b,x||E||o?S:{},F?$:{},{onDoubleClick:w,onDragStartCapture:D,onClick:L,id:t},o?{onMouseDown:C=>C.preventDefault()}:void 0),isPressed:f,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:x,hasAction:A}}function pa(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function ma(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}function Pb(e,t,n){let{key:r,isDisabled:s,shouldSelectOnPressUp:i}=e,{selectionManager:o,selectedKey:a}=t,l=r===a,u=s||t.isDisabled||t.selectionManager.isDisabled(r),{itemProps:c,isPressed:h}=$b({selectionManager:o,key:r,ref:n,isDisabled:u,shouldSelectOnPressUp:i,linkBehavior:"selection"}),p=Xn(t,r,"tab"),m=Xn(t,r,"tabpanel"),{tabIndex:b}=c,g=t.collection.getItem(r),y=Sf(g==null?void 0:g.props,{labelable:!0});delete y.id;let x=If(g==null?void 0:g.props);return{tabProps:xe(y,x,c,{id:p,"aria-selected":l,"aria-disabled":u||void 0,"aria-controls":l?m:void 0,tabIndex:u?void 0:b,role:"tab"}),isSelected:l,isDisabled:u,isPressed:h}}function Sb(e,t,n){let r=lh(n)?void 0:0;var s;const i=Xn(t,(s=e.id)!==null&&s!==void 0?s:t==null?void 0:t.selectedKey,"tabpanel"),o=tl({...e,id:i,"aria-labelledby":Xn(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:xe(o,{tabIndex:r,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class Eb{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}isDisabled(t){var n,r;return this.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.isDisabled(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.isDisabled(t)&&(t=this.getPreviousKey(t)),t}getKeyAbove(t){return this.tabDirection?null:this.getPreviousKey(t)}getKeyBelow(t){return this.tabDirection?null:this.getNextKey(t)}getNextKey(t){do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(this.isDisabled(t));return t}getPreviousKey(t){do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(this.isDisabled(t));return t}constructor(t,n,r,s=new Set){this.collection=t,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=s,this.tabDirection=r==="horizontal"}}function Cb(e,t,n){let{orientation:r="horizontal",keyboardActivation:s="automatic"}=e,{collection:i,selectionManager:o,disabledKeys:a}=t,{direction:l}=Ja(),u=v.useMemo(()=>new Eb(i,l,r,a),[i,a,r,l]),{collectionProps:c}=Tb({ref:n,selectionManager:o,keyboardDelegate:u,selectOnFocus:s==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),h=Yn();iu.set(t,h);let p=tl({...e,id:h});return{tabListProps:{...xe(c,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}var lu=Pe((e,t)=>{var n,r;const{as:s,tabKey:i,destroyInactiveTabPanel:o,state:a,className:l,slots:u,classNames:c,...h}=e,p=s||"div",m=qe(t),{tabPanelProps:b}=Sb({...e,id:String(i)},a,m),{focusProps:g,isFocused:y,isFocusVisible:x}=ao(),T=a.selectedItem,E=a.collection.getItem(i).props.children,k=He(c==null?void 0:c.panel,l,(n=T==null?void 0:T.props)==null?void 0:n.className),A=i===(T==null?void 0:T.key);return!E||!A&&o?null:N.jsx(p,{ref:m,"data-focus":y,"data-focus-visible":x,"data-inert":A?void 0:"true",inert:od(!A),...A&&qt(b,g,h),className:(r=u.panel)==null?void 0:r.call(u,{class:k}),"data-slot":"panel",children:E})});lu.displayName="HeroUI.TabPanel";var Mb=lu;const ga=e=>typeof e=="object"&&e!=null&&e.nodeType===1,va=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",An=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return va(n.overflowY,t)||va(n.overflowX,t)||(r=>{const s=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!s&&(s.clientHeight<r.scrollHeight||s.clientWidth<r.scrollWidth)})(e)}return!1},kn=(e,t,n,r,s,i,o,a)=>i<e&&o>t||i>e&&o<t?0:i<=e&&a<=n||o>=t&&a>=n?i-e-r:o>t&&a<n||i<e&&a>n?o-t+s:0,Ab=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},ba=(e,t)=>{var n,r,s,i;if(typeof document>"u")return[];const{scrollMode:o,block:a,inline:l,boundary:u,skipOverflowHiddenElements:c}=t,h=typeof u=="function"?u:D=>D!==u;if(!ga(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,m=[];let b=e;for(;ga(b)&&h(b);){if(b=Ab(b),b===p){m.push(b);break}b!=null&&b===document.body&&An(b)&&!An(document.documentElement)||b!=null&&An(b,c)&&m.push(b)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,y=(i=(s=window.visualViewport)==null?void 0:s.height)!=null?i:innerHeight,{scrollX:x,scrollY:T}=window,{height:E,width:k,top:A,right:R,bottom:F,left:d}=e.getBoundingClientRect(),{top:M,right:K,bottom:P,left:S}=(D=>{const L=window.getComputedStyle(D);return{top:parseFloat(L.scrollMarginTop)||0,right:parseFloat(L.scrollMarginRight)||0,bottom:parseFloat(L.scrollMarginBottom)||0,left:parseFloat(L.scrollMarginLeft)||0}})(e);let f=a==="start"||a==="nearest"?A-M:a==="end"?F+P:A+E/2-M+P,w=l==="center"?d+k/2-S+K:l==="end"?R+K:d-S;const $=[];for(let D=0;D<m.length;D++){const L=m[D],{height:C,width:V,top:j,right:z,bottom:H,left:ce}=L.getBoundingClientRect();if(o==="if-needed"&&A>=0&&d>=0&&F<=y&&R<=g&&(L===p&&!An(L)||A>=j&&F<=H&&d>=ce&&R<=z))return $;const de=getComputedStyle(L),fe=parseInt(de.borderLeftWidth,10),we=parseInt(de.borderTopWidth,10),Se=parseInt(de.borderRightWidth,10),Oe=parseInt(de.borderBottomWidth,10);let he=0,I=0;const pe="offsetWidth"in L?L.offsetWidth-L.clientWidth-fe-Se:0,me="offsetHeight"in L?L.offsetHeight-L.clientHeight-we-Oe:0,at="offsetWidth"in L?L.offsetWidth===0?0:V/L.offsetWidth:0,rr="offsetHeight"in L?L.offsetHeight===0?0:C/L.offsetHeight:0;if(p===L)he=a==="start"?f:a==="end"?f-y:a==="nearest"?kn(T,T+y,y,we,Oe,T+f,T+f+E,E):f-y/2,I=l==="start"?w:l==="center"?w-g/2:l==="end"?w-g:kn(x,x+g,g,fe,Se,x+w,x+w+k,k),he=Math.max(0,he+T),I=Math.max(0,I+x);else{he=a==="start"?f-j-we:a==="end"?f-H+Oe+me:a==="nearest"?kn(j,H,C,we,Oe+me,f,f+E,E):f-(j+C/2)+me/2,I=l==="start"?w-ce-fe:l==="center"?w-(ce+V/2)+pe/2:l==="end"?w-z+Se+pe:kn(ce,z,V,fe,Se+pe,w,w+k,k);const{scrollLeft:co,scrollTop:uo}=L;he=rr===0?0:Math.max(0,Math.min(uo+he/rr,L.scrollHeight-C/rr+me)),I=at===0?0:Math.max(0,Math.min(co+I/at,L.scrollWidth-V/at+pe)),f+=uo-he,w+=co-I}$.push({el:L,top:he,left:I})}return $},kb=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function Db(e,t){if(!e.isConnected||!(r=>{let s=r;for(;s&&s.parentNode;){if(s.parentNode===document)return!0;s=s.parentNode instanceof ShadowRoot?s.parentNode.host:s.parentNode}return!1})(e))return;if((r=>typeof r=="object"&&typeof r.behavior=="function")(t))return t.behavior(ba(e,t));const n=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:r,top:s,left:i}of ba(e,kb(t)))r.scroll({top:s,left:i,behavior:n})}function Lb(e={}){const{rerender:t=!1,delay:n=0}=e,r=v.useRef(!1),[s,i]=v.useState(!1);return v.useEffect(()=>{r.current=!0;let o=null;return t&&(n>0?o=setTimeout(()=>{i(!0)},n):i(!0)),()=>{r.current=!1,t&&i(!1),o&&clearTimeout(o)}},[t]),[v.useCallback(()=>r.current,[]),s]}var cu=Pe((e,t)=>{var n;const{className:r,as:s,item:i,state:o,classNames:a,isDisabled:l,listRef:u,slots:c,motionProps:h,disableAnimation:p,disableCursorAnimation:m,shouldSelectOnPressUp:b,onClick:g,tabRef:y,...x}=e,{key:T}=i,E=qe(t),k=s||(e.href?"a":"button"),A=typeof k=="string",{tabProps:R,isSelected:F,isDisabled:d,isPressed:M}=Pb({key:T,isDisabled:l,shouldSelectOnPressUp:b},o,E);e.children==null&&delete R["aria-controls"];const K=l||d,{focusProps:P,isFocused:S,isFocusVisible:f}=ao(),{hoverProps:w,isHovered:$}=lb({isDisabled:K}),D=He(a==null?void 0:a.tab,r),[,L]=Lb({rerender:!0}),C=()=>{_a(g,R.onClick),!(!(E!=null&&E.current)||!(u!=null&&u.current))&&Db(E.current,{scrollMode:"if-needed",behavior:"smooth",block:"end",inline:"end",boundary:u==null?void 0:u.current})};return N.jsxs(k,{ref:Wd(E,y),"data-disabled":Je(d),"data-focus":Je(S),"data-focus-visible":Je(f),"data-hover":Je($),"data-hover-unselected":Je(($||M)&&!F),"data-pressed":Je(M),"data-selected":Je(F),"data-slot":"tab",...qt(R,K?{}:{...P,...w},ms(x,{enabled:A,omitPropNames:new Set(["title"])}),{onClick:C}),className:(n=c.tab)==null?void 0:n.call(c,{class:D}),title:x==null?void 0:x.titleValue,type:k==="button"?"button":void 0,children:[F&&!p&&!m&&L?N.jsx($h,{features:Gv,children:N.jsx(hp.span,{className:c.cursor({class:a==null?void 0:a.cursor}),"data-slot":"cursor",layoutDependency:!1,layoutId:"cursor",transition:{type:"spring",bounce:.15,duration:.5},...h})}):null,N.jsx("div",{className:c.tabContent({class:a==null?void 0:a.tabContent}),"data-slot":"tabContent",children:i.rendered})]})});cu.displayName="HeroUI.Tab";var Rb=cu;class ya{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&o.type==="section")for(let a of o.childNodes)n(a)};for(let o of t)n(o);let r=null,s=0;for(let[o,a]of this.keyMap)r?(r.nextKey=o,a.prevKey=r.key):(this.firstKey=o,a.prevKey=void 0),a.type==="item"&&(a.index=s++),r=a,r.nextKey=void 0;var i;this.lastKey=(i=r==null?void 0:r.key)!==null&&i!==void 0?i:null}}class $e extends Set{constructor(t,n,r){super(t),t instanceof $e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Kb(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Vb(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:s="toggle",disabledBehavior:i="all"}=e,o=v.useRef(!1),[,a]=v.useState(!1),l=v.useRef(null),u=v.useRef(null),[,c]=v.useState(null),h=v.useMemo(()=>xa(e.selectedKeys),[e.selectedKeys]),p=v.useMemo(()=>xa(e.defaultSelectedKeys,new $e),[e.defaultSelectedKeys]),[m,b]=qa(h,p,e.onSelectionChange),g=v.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[y,x]=v.useState(s);s==="replace"&&y==="toggle"&&typeof m=="object"&&m.size===0&&x("replace");let T=v.useRef(s);return v.useEffect(()=>{s!==T.current&&(x(s),T.current=s)},[s]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:x,get isFocused(){return o.current},setFocused(E){o.current=E,a(E)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(E,k="first"){l.current=E,u.current=k,c(E)},selectedKeys:m,setSelectedKeys(E){(r||!Kb(E,m))&&b(E)},disabledKeys:g,disabledBehavior:i}}function xa(e,t){return e?e==="all"?"all":new $e(e):t}class Fb{build(t,n){return this.context=n,wa(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(v.isValidElement(n)&&n.type===v.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let s=0;for(let i of r)yield*this.getFullNode({value:i,index:s},{renderer:n}),s++}else{let s=[];v.Children.forEach(n,o=>{o&&s.push(o)});let i=0;for(let o of s){let a=this.getFullNode({element:o,index:i},{});for(let l of a)i++,yield l}}}getKey(t,n,r,s){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${s}${n.key}`;let i=n.value;if(i!=null){var o;let a=(o=i.key)!==null&&o!==void 0?o:i.id;if(a==null)throw new Error("No key found for item");return a}return s?`${s}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,s){if(v.isValidElement(t.element)&&t.element.type===v.Fragment){let y=[];v.Children.forEach(t.element.props.children,T=>{y.push(T)});var i;let x=(i=t.index)!==null&&i!==void 0?i:0;for(const T of y)yield*this.getFullNode({element:T,index:x++},n,r,s);return}let o=t.element;if(!o&&t.value&&n&&n.renderer){let y=this.cache.get(t.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=t.index,y.parentKey=s?s.key:null,yield y;return}o=n.renderer(t.value)}if(v.isValidElement(o)){let y=o.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let k=o.type;throw new Error(`Unknown element <${k}> in collection.`)}let x=y.getCollectionNode(o.props,this.context);var a;let T=(a=t.index)!==null&&a!==void 0?a:0,E=x.next();for(;!E.done&&E.value;){let k=E.value;t.index=T;var l;let A=(l=k.key)!==null&&l!==void 0?l:null;A==null&&(A=k.element?null:this.getKey(o,t,n,r));let F=[...this.getFullNode({...k,key:A,index:T,wrapper:Ib(t.wrapper,k.wrapper)},this.getChildState(n,k),r?`${r}${o.key}`:o.key,s)];for(let d of F){var u,c;d.value=(c=(u=k.value)!==null&&u!==void 0?u:t.value)!==null&&c!==void 0?c:null,d.value&&this.cache.set(d.value,d);var h;if(t.type&&d.type!==t.type)throw new Error(`Unsupported type <${Ar(d.type)}> in <${Ar((h=s==null?void 0:s.type)!==null&&h!==void 0?h:"unknown parent type")}>. Only <${Ar(t.type)}> is supported.`);T++,yield d}E=x.next(F)}return}if(t.key==null||t.type==null)return;let p=this;var m,b;let g={type:t.type,props:t.props,key:t.key,parentKey:s?s.key:null,value:(m=t.value)!==null&&m!==void 0?m:null,level:s?s.level+1:0,index:t.index,rendered:t.rendered,textValue:(b=t.textValue)!==null&&b!==void 0?b:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:wa(function*(){if(!t.hasChildNodes||!t.childNodes)return;let y=0;for(let x of t.childNodes()){x.key!=null&&(x.key=`${g.key}${x.key}`);let T=p.getFullNode({...x,index:y},p.getChildState(n,x),g.key,g);for(let E of T)y++,yield E}})};yield g}constructor(){this.cache=new WeakMap}}function wa(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function Ib(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Ar(e){return e[0].toUpperCase()+e.slice(1)}function Ob(e,t,n){let r=v.useMemo(()=>new Fb,[]),{children:s,items:i,collection:o}=e;return v.useMemo(()=>{if(o)return o;let l=r.build({children:s,items:i},n);return t(l)},[r,s,i,o,n,t])}function Nb(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Bb(e){return jb(e)}function jb(e,t){for(let n of e)return n}function kr(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Ta(e,t),t],s=[...Ta(e,n),n],i=r.slice(0,s.length).findIndex((o,a)=>o!==s[a]);return i!==-1?(t=r[i],n=s[i],t.index-n.index):r.findIndex(o=>o===n)>=0?1:(s.findIndex(o=>o===t)>=0,-1)}function Ta(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}class lo{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let s=this.collection.getItem(r);(!t||s&&kr(this.collection,s,t)<0)&&(t=s)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let s=this.collection.getItem(r);(!t||s&&kr(this.collection,s,t)>0)&&(t=s)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new $e([n],n,n);else{let o=this.state.selectedKeys;var s;let a=(s=o.anchorKey)!==null&&s!==void 0?s:n;r=new $e(o,a,n);var i;for(let l of this.getKeyRange(a,(i=o.currentKey)!==null&&i!==void 0?i:n))r.delete(l);for(let l of this.getKeyRange(n,a))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),s=this.collection.getItem(n);return r&&s?kr(this.collection,r,s)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let s=[],i=t;for(;i!=null;){let o=this.collection.getItem(i);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&s.push(i),i===n)return s;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new $e(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new $e([n],n,n):new $e;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new $e;for(let r of t){let s=this.getKey(r);if(s!=null&&(n.add(s),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var s;let o=this.collection.getItem(r);(o==null?void 0:o.type)==="item"&&t.push(r);var i;o!=null&&o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n((i=(s=Bb(Nb(o,this.collection)))===null||s===void 0?void 0:s.key)!==null&&i!==void 0?i:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new $e)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new lo(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var s;this.allowsCellSelection=(s=r==null?void 0:r.allowsCellSelection)!==null&&s!==void 0?s:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function zb(e){let{filter:t,layoutDelegate:n}=e,r=Vb(e),s=v.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=v.useCallback(u=>t?new ya(t(u)):new ya(u),[t]),o=v.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=Ob(e,i,o),l=v.useMemo(()=>new lo(a,r,{layoutDelegate:n}),[a,r,n]);return Ub(a,l),{collection:a,disabledKeys:s,selectionManager:l}}function Ub(e,t){const n=v.useRef(null);v.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){const c=n.current.getItem(t.focusedKey),h=[...n.current.getKeys()].map(x=>{const T=n.current.getItem(x);return(T==null?void 0:T.type)==="item"?T:null}).filter(x=>x!==null),p=[...e.getKeys()].map(x=>{const T=e.getItem(x);return(T==null?void 0:T.type)==="item"?T:null}).filter(x=>x!==null);var r,s;const m=((r=h==null?void 0:h.length)!==null&&r!==void 0?r:0)-((s=p==null?void 0:p.length)!==null&&s!==void 0?s:0);var i,o,a;let b=Math.min(m>1?Math.max(((i=c==null?void 0:c.index)!==null&&i!==void 0?i:0)-m+1,0):(o=c==null?void 0:c.index)!==null&&o!==void 0?o:0,((a=p==null?void 0:p.length)!==null&&a!==void 0?a:0)-1),g=null,y=!1;for(;b>=0;){if(!t.isDisabled(p[b].key)){g=p[b];break}if(b<p.length-1&&!y)b++;else{y=!0;var l,u;b>((l=c==null?void 0:c.index)!==null&&l!==void 0?l:0)&&(b=(u=c==null?void 0:c.index)!==null&&u!==void 0?u:0),b--}}t.setFocusedKey(g?g.key:null)}n.current=e},[e,t])}function Wb(e){var t;let[n,r]=qa(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),s=v.useMemo(()=>n!=null?[n]:[],[n]),{collection:i,disabledKeys:o,selectionManager:a}=zb({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:s,onSelectionChange:u=>{if(u==="all")return;var c;let h=(c=u.values().next().value)!==null&&c!==void 0?c:null;h===n&&e.onSelectionChange&&e.onSelectionChange(h),r(h)}}),l=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:o,selectionManager:a,selectedKey:n,setSelectedKey:r,selectedItem:l}}function Gb(e){var t,n;let r=Wb({...e,suppressTextValueWarning:!0,defaultSelectedKey:(n=(t=e.defaultSelectedKey)!==null&&t!==void 0?t:$a(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set))!==null&&n!==void 0?n:void 0}),{selectionManager:s,collection:i,selectedKey:o}=r,a=v.useRef(o);return v.useEffect(()=>{let l=o;(s.isEmpty||l==null||!i.getItem(l))&&(l=$a(i,r.disabledKeys),l!=null&&s.setSelectedKeys([l])),(l!=null&&s.focusedKey==null||!s.isFocused&&l!==a.current)&&s.setFocusedKey(l),a.current=l}),{...r,isDisabled:e.isDisabled||!1}}function $a(e,t){let n=null;if(e){var r,s,i,o;for(n=e.getFirstKey();n!=null&&(t.has(n)||!((s=e.getItem(n))===null||s===void 0||(r=s.props)===null||r===void 0)&&r.isDisabled)&&n!==e.getLastKey();)n=e.getKeyAfter(n);n!=null&&(t.has(n)||!((o=e.getItem(n))===null||o===void 0||(i=o.props)===null||i===void 0)&&i.isDisabled)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}function Hb(e){var t,n,r;const s=Yd(),[i,o]=sn(e,yo.variantKeys),{ref:a,as:l,className:u,classNames:c,children:h,disableCursorAnimation:p,motionProps:m,isVertical:b=!1,shouldSelectOnPressUp:g=!0,destroyInactiveTabPanel:y=!0,...x}=i,T=l||"div",E=typeof T=="string",k=qe(a),A=(n=(t=e==null?void 0:e.disableAnimation)!=null?t:s==null?void 0:s.disableAnimation)!=null?n:!1,R=Gb({children:h,...x}),{tabListProps:F}=Cb(x,R,k),d=v.useMemo(()=>yo({...o,disableAnimation:A,...b?{placement:"start"}:{}}),[Fa(o),A,b]),M=He(c==null?void 0:c.base,u),K=v.useMemo(()=>({state:R,slots:d,classNames:c,motionProps:m,disableAnimation:A,listRef:k,shouldSelectOnPressUp:g,disableCursorAnimation:p,isDisabled:e==null?void 0:e.isDisabled}),[R,d,k,m,A,p,g,e==null?void 0:e.isDisabled,c]),P=v.useCallback($=>({"data-slot":"base",className:d.base({class:He(M,$==null?void 0:$.className)}),...qt(ms(x,{enabled:E}),$)}),[M,x,d]),S=(r=o.placement)!=null?r:b?"start":"top",f=v.useCallback($=>({"data-slot":"tabWrapper",className:d.tabWrapper({class:He(c==null?void 0:c.tabWrapper,$==null?void 0:$.className)}),"data-placement":S,"data-vertical":b||S==="start"||S==="end"?"vertical":"horizontal"}),[c,d,S,b]),w=v.useCallback($=>({ref:k,"data-slot":"tabList",className:d.tabList({class:He(c==null?void 0:c.tabList,$==null?void 0:$.className)}),...qt(F,$)}),[k,F,c,d]);return{Component:T,domRef:k,state:R,values:K,destroyInactiveTabPanel:y,getBaseProps:P,getTabListProps:w,getWrapperProps:f}}var _b=Pe(function(t,n){const{Component:r,values:s,state:i,destroyInactiveTabPanel:o,getBaseProps:a,getTabListProps:l,getWrapperProps:u}=Hb({...t,ref:n}),c=v.useId(),h=!t.disableAnimation&&!t.disableCursorAnimation,p={state:i,listRef:s.listRef,slots:s.slots,classNames:s.classNames,isDisabled:s.isDisabled,motionProps:s.motionProps,disableAnimation:s.disableAnimation,shouldSelectOnPressUp:s.shouldSelectOnPressUp,disableCursorAnimation:s.disableCursorAnimation},m=[...i.collection].map(g=>N.jsx(Rb,{item:g,...p,...g.props},g.key)),b=N.jsxs(N.Fragment,{children:[N.jsx("div",{...a(),children:N.jsx(r,{...l(),children:h?N.jsx(Th,{id:c,children:m}):m})}),[...i.collection].map(g=>N.jsx(Mb,{classNames:s.classNames,destroyInactiveTabPanel:o,slots:s.slots,state:s.state,tabKey:g.key},g.key))]});return"placement"in t||"isVertical"in t?N.jsx("div",{...u(),children:b}):b}),Xb=_b;function uu(e){return null}uu.getCollectionNode=function*(t,n){let{childItems:r,title:s,children:i}=t,o=t.title||t.children,a=t.textValue||(typeof o=="string"?o:"")||t["aria-label"]||"";!a&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:o,textValue:a,"aria-label":t["aria-label"],hasChildNodes:Yb(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(s){let l=[];v.Children.forEach(i,u=>{l.push({type:"item",element:u})}),yield*l}}}};function Yb(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&v.Children.count(e.children)>0)}let qb=uu;var Zb=qb,Jb=Zb;const du=Pe(({title:e,sub_section:t=!1,data:n})=>N.jsxs(N.Fragment,{children:[t?null:N.jsx(ou,{content:e,variant:"title"}),N.jsx(Xb,{"aria-label":"Story variants",variant:t?"solid":"underlined",color:t?"success":"default",radius:t?"full":"none",children:n.map(({id:r,className:s,label:i,children:o})=>N.jsx(Jb,{id:r,title:i,className:s,children:o},i))})]}));du.displayName="StoryTab";const fu=Pe(({config:e})=>N.jsxs(N.Fragment,{children:[N.jsxs("div",{className:"gap-2",children:[e," | Was he a beast if music could move him so?",N.jsx("div",{children:"ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),N.jsx("div",{children:"abcdefghijklmnopqrstuvwxyz"}),N.jsx("div",{children:"1234567890"}),N.jsx("div",{children:"!@#$%^&[/|(;~`:)|\\]_+-=*"})]}),N.jsx(ru,{className:"my-4 !h-px"})]}));fu.displayName="StoryTypo";exports.A=Ua;exports.StoryStatus=su;exports.StoryTab=du;exports.StoryTypo=fu;