@telegraph/tag 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +1818 -1787
- package/dist/esm/index.mjs.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @telegraph/tag
|
|
2
2
|
|
|
3
|
+
## 0.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`1de6cf1`](https://github.com/knocklabs/telegraph/commit/1de6cf1874835db4389f5e7f14fbcc694229a5de), [`d3b6fee`](https://github.com/knocklabs/telegraph/commit/d3b6fee0e7cd308151efdc5921164d324ccaf045)]:
|
|
8
|
+
- @telegraph/typography@0.3.0
|
|
9
|
+
- @telegraph/tooltip@0.2.0
|
|
10
|
+
- @telegraph/button@0.5.1
|
|
11
|
+
- @telegraph/icon@0.4.1
|
|
12
|
+
- @telegraph/layout@0.5.0
|
|
13
|
+
|
|
14
|
+
## 0.1.4
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [[`627e61c`](https://github.com/knocklabs/telegraph/commit/627e61c3b17ccfc36f5fb835bb5f21a092efca95)]:
|
|
19
|
+
- @telegraph/button@0.5.0
|
|
20
|
+
- @telegraph/layout@0.5.0
|
|
21
|
+
- @telegraph/icon@0.4.0
|
|
22
|
+
- @telegraph/tooltip@0.1.3
|
|
23
|
+
- @telegraph/typography@0.2.1
|
|
24
|
+
|
|
3
25
|
## 0.1.3
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react/jsx-runtime"),Te=require("@telegraph/button"),Hs=require("@telegraph/icon"),Us=require("@telegraph/layout"),w=require("react"),qs=require("@telegraph/tooltip"),Ys=require("@telegraph/typography"),Xs=require("clsx"),Se=require("lucide-react"),Zs=e=>{const t=[];let n="",s=0;for(let i=0;i<e.length;i++){const r=e[i];r==="("?(s++,n+=r):r===")"?(s--,n+=r):r===" "&&s===0?n&&(t.push(n),n=""):n+=r}for(n&&t.push(n);t.length<4;)t.push("0");return[t[0]||"0",t[1]||"0",t[2]||"0",t[3]||"0"]},Js=({currentValueOfCssVar:e="0 0 0 0",value:t,direction:n})=>{const[s,i,r,o]=Zs(e),a={top:s,right:i,bottom:r,left:o};return n==="top"&&(a.top=t),n==="right"&&(a.right=t),n==="bottom"&&(a.bottom=t),n==="left"&&(a.left=t),n==="all"&&(a.top=t,a.right=t,a.bottom=t,a.left=t),n==="x"&&(a.left=t,a.right=t),n==="y"&&(a.top=t,a.bottom=t),n==="side-top"&&(a.top=t,a.right=t),n==="side-bottom"&&(a.bottom=t,a.left=t),n==="side-left"&&(a.top=t,a.left=t),n==="side-right"&&(a.right=t,a.bottom=t),Object.values(a).join(" ")},Qs=({currentValueOfCssVar:e="visible visible",value:t,axis:n})=>{const[s,i]=e.split(" ");return n==="x"?`${t} ${i}`:n==="y"?`${s} ${t}`:`${t} ${t}`},ei=e=>{const{cssVars:t}=e;if(!(e!=null&&e.props)||Object.keys(e.props).length===0)return{styleProp:{},otherProps:{},interactive:!1};const{style:n={},...s}=e.props;let i=n;const r={};let o=!1;return Object.keys(s).forEach(a=>{const c=a,l=c,u=t==null?void 0:t[l];if(!u){Object.assign(r,{[c]:s[c]});return}const d=s==null?void 0:s[c];if(!d){Object.assign(i,{[c]:s[c]});return}let f;if(typeof d=="string"&&d.startsWith("-")){const p=d.slice(1);f=`calc(-1 * ${u.value.replace("VARIABLE",p)})`}else f=u.value.replace("VARIABLE",d);const h=u.cssVar;if(u.interactive&&(o=!0),u.direction){const p=i==null?void 0:i[h],y=Js({currentValueOfCssVar:p,value:f,direction:u.direction});i={...i,[h]:y};return}if(u.axis){const p=i==null?void 0:i[h],y=Qs({currentValueOfCssVar:p,value:f,axis:u.axis});i={...i,[h]:y};return}i={...i,[h]:f}}),{styleProp:i,otherProps:r,interactive:o}},ti=e=>w.useMemo(()=>ei(e),[e]),ni=w.createContext({});function si(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const yn=typeof window<"u",ii=yn?w.useLayoutEffect:w.useEffect,bn=w.createContext(null);function ri(e,t){e.indexOf(t)===-1&&e.push(t)}function oi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const _=(e,t,n)=>n>t?t:n<e?e:n;function ze(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let pe=()=>{},Y=()=>{};var gn;typeof process<"u"&&((gn=process.env)==null?void 0:gn.NODE_ENV)!=="production"&&(pe=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(ze(t,n))},Y=(e,t,n)=>{if(!e)throw new Error(ze(t,n))});const j={},vn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ai(e){return typeof e=="object"&&e!==null}const wn=e=>/^0[^.\s]+$/u.test(e);function Tn(e){let t;return()=>(t===void 0&&(t=e()),t)}const se=e=>e,ui=(e,t)=>n=>t(e(n)),Ie=(...e)=>e.reduce(ui),xn=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s};class Vn{constructor(){this.subscriptions=[]}add(t){return ri(this.subscriptions,t),()=>oi(this.subscriptions,t)}notify(t,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const K=e=>e*1e3,B=e=>e/1e3;function Sn(e,t){return t?e*(1e3/t):0}const Et=new Set;function An(e,t,n){e||Et.has(t)||(console.warn(ze(t,n)),Et.add(t))}const Mn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ci=1e-7,li=12;function fi(e,t,n,s,i){let r,o,a=0;do o=t+(n-t)/2,r=Mn(o,s,i)-e,r>0?n=o:t=o;while(Math.abs(r)>ci&&++a<li);return o}function me(e,t,n,s){if(e===t&&n===s)return se;const i=r=>fi(r,0,1,e,n);return r=>r===0||r===1?r:Mn(i(r),t,s)}const Cn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Pn=e=>t=>1-e(1-t),Rn=me(.33,1.53,.69,.99),ft=Pn(Rn),Fn=Cn(ft),Dn=e=>(e*=2)<1?.5*ft(e):.5*(2-Math.pow(2,-10*(e-1))),dt=e=>1-Math.sin(Math.acos(e)),di=Pn(dt),In=Cn(dt),hi=me(.42,0,1,1),pi=me(0,0,.58,1),kn=me(.42,0,.58,1),mi=e=>Array.isArray(e)&&typeof e[0]!="number",On=e=>Array.isArray(e)&&typeof e[0]=="number",Bt={linear:se,easeIn:hi,easeInOut:kn,easeOut:pi,circIn:dt,circInOut:In,circOut:di,backIn:ft,backInOut:Fn,backOut:Rn,anticipate:Dn},gi=e=>typeof e=="string",Lt=e=>{if(On(e)){Y(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,s,i]=e;return me(t,n,s,i)}else if(gi(e))return Y(Bt[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Bt[e];return e},ve=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function yi(e,t){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){o.has(u)&&(l.schedule(u),e()),u(a)}const l={schedule:(u,d=!1,f=!1)=>{const p=f&&i?n:s;return d&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{s.delete(u),o.delete(u)},process:u=>{if(a=u,i){r=!0;return}i=!0,[n,s]=[s,n],n.forEach(c),n.clear(),i=!1,r&&(r=!1,l.process(u))}};return l}const bi=40;function En(e,t){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=ve.reduce((v,S)=>(v[S]=yi(r),v),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:h,postRender:p}=o,y=()=>{const v=j.useManualTiming?i.timestamp:performance.now();n=!1,j.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(v-i.timestamp,bi),1)),i.timestamp=v,i.isProcessing=!0,a.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(s=!1,e(y))},b=()=>{n=!0,s=!0,i.isProcessing||e(y)};return{schedule:ve.reduce((v,S)=>{const T=o[S];return v[S]=(A,P=!1,V=!1)=>(n||b(),T.schedule(A,P,V)),v},{}),cancel:v=>{for(let S=0;S<ve.length;S++)o[ve[S]].cancel(v)},state:i,steps:o}}const{schedule:N,cancel:He,state:Ae}=En(typeof requestAnimationFrame<"u"?requestAnimationFrame:se,!0);let xe;function vi(){xe=void 0}const k={now:()=>(xe===void 0&&k.set(Ae.isProcessing||j.useManualTiming?Ae.timestamp:performance.now()),xe),set:e=>{xe=e,queueMicrotask(vi)}},Bn=e=>t=>typeof t=="string"&&t.startsWith(e),Ln=Bn("--"),wi=Bn("var(--"),ht=e=>wi(e)?Ti.test(e.split("/*")[0].trim()):!1,Ti=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Nt(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const ie={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},fe={...ie,transform:e=>_(0,1,e)},we={...ie,default:1},le=e=>Math.round(e*1e5)/1e5,pt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xi(e){return e==null}const Vi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mt=(e,t)=>n=>!!(typeof n=="string"&&Vi.test(n)&&n.startsWith(e)||t&&!xi(n)&&Object.prototype.hasOwnProperty.call(n,t)),Nn=(e,t,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(pt);return{[e]:parseFloat(i),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Si=e=>_(0,255,e),Le={...ie,transform:e=>Math.round(Si(e))},H={test:mt("rgb","red"),parse:Nn("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Le.transform(e)+", "+Le.transform(t)+", "+Le.transform(n)+", "+le(fe.transform(s))+")"};function Ai(e){let t="",n="",s="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,s+=s,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Ue={test:mt("#"),parse:Ai,transform:H.transform},ge=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$=ge("deg"),ee=ge("%"),m=ge("px"),Mi=ge("vh"),Ci=ge("vw"),Kt={...ee,parse:e=>ee.parse(e)/100,transform:e=>ee.transform(e*100)},J={test:mt("hsl","hue"),parse:Nn("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+ee.transform(le(t))+", "+ee.transform(le(n))+", "+le(fe.transform(s))+")"},C={test:e=>H.test(e)||Ue.test(e)||J.test(e),parse:e=>H.test(e)?H.parse(e):J.test(e)?J.parse(e):Ue.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?H.transform(e):J.transform(e),getAnimatableNone:e=>{const t=C.parse(e);return t.alpha=0,C.transform(t)}},Pi=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ri(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(pt))==null?void 0:t.length)||0)+(((n=e.match(Pi))==null?void 0:n.length)||0)>0}const Kn="number",jn="color",Fi="var",Di="var(",jt="${}",Ii=/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 de(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=t.replace(Ii,c=>(C.test(c)?(s.color.push(r),i.push(jn),n.push(C.parse(c))):c.startsWith(Di)?(s.var.push(r),i.push(Fi),n.push(c)):(s.number.push(r),i.push(Kn),n.push(parseFloat(c))),++r,jt)).split(jt);return{values:n,split:a,indexes:s,types:i}}function $n(e){return de(e).values}function Wn(e){const{split:t,types:n}=de(e),s=t.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=t[o],i[o]!==void 0){const a=n[o];a===Kn?r+=le(i[o]):a===jn?r+=C.transform(i[o]):r+=i[o]}return r}}const ki=e=>typeof e=="number"?0:C.test(e)?C.getAnimatableNone(e):e;function Oi(e){const t=$n(e);return Wn(e)(t.map(ki))}const L={test:Ri,parse:$n,createTransformer:Wn,getAnimatableNone:Oi};function Ne(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 Ei({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,r=0,o=0;if(!t)i=r=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;i=Ne(c,a,e+1/3),r=Ne(c,a,e),o=Ne(c,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Me(e,t){return n=>n>0?t:e}const ye=(e,t,n)=>e+(t-e)*n,Ke=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},Bi=[Ue,H,J],Li=e=>Bi.find(t=>t.test(e));function $t(e){const t=Li(e);if(pe(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===J&&(n=Ei(n)),n}const Wt=(e,t)=>{const n=$t(e),s=$t(t);if(!n||!s)return Me(e,t);const i={...n};return r=>(i.red=Ke(n.red,s.red,r),i.green=Ke(n.green,s.green,r),i.blue=Ke(n.blue,s.blue,r),i.alpha=ye(n.alpha,s.alpha,r),H.transform(i))},qe=new Set(["none","hidden"]);function Ni(e,t){return qe.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ki(e,t){return n=>ye(e,t,n)}function gt(e){return typeof e=="number"?Ki:typeof e=="string"?ht(e)?Me:C.test(e)?Wt:Wi:Array.isArray(e)?_n:typeof e=="object"?C.test(e)?Wt:ji:Me}function _n(e,t){const n=[...e],s=n.length,i=e.map((r,o)=>gt(r)(r,t[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function ji(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=gt(e[i])(e[i],t[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function $i(e,t){const n=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const r=t.types[i],o=e.indexes[r][s[r]],a=e.values[o]??0;n[i]=a,s[r]++}return n}const Wi=(e,t)=>{const n=L.createTransformer(t),s=de(e),i=de(t);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?qe.has(e)&&!i.values.length||qe.has(t)&&!s.values.length?Ni(e,t):Ie(_n($i(s,i),i.values),n):(pe(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Me(e,t))};function Gn(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ye(e,t,n):gt(e)(e,t)}const _i=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>N.update(t,n),stop:()=>He(t),now:()=>Ae.isProcessing?Ae.timestamp:k.now()}},zn=(e,t,n=10)=>{let s="";const i=Math.max(Math.round(t/n),2);for(let r=0;r<i;r++)s+=Math.round(e(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Ce=2e4;function yt(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Ce;)t+=n,s=e.next(t);return t>=Ce?1/0:t}function Gi(e,t=100,n){const s=n({...e,keyframes:[0,t]}),i=Math.min(yt(s),Ce);return{type:"keyframes",ease:r=>s.next(i*r).value/t,duration:B(i)}}const zi=5;function Hn(e,t,n){const s=Math.max(t-zi,0);return Sn(n-e(s),t-s)}const M={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},je=.001;function Hi({duration:e=M.duration,bounce:t=M.bounce,velocity:n=M.velocity,mass:s=M.mass}){let i,r;pe(e<=K(M.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=_(M.minDamping,M.maxDamping,o),e=_(M.minDuration,M.maxDuration,B(e)),o<1?(i=l=>{const u=l*o,d=u*e,f=u-n,h=Ye(l,o),p=Math.exp(-d);return je-f/h*p},r=l=>{const d=l*o*e,f=d*n+n,h=Math.pow(o,2)*Math.pow(l,2)*e,p=Math.exp(-d),y=Ye(Math.pow(l,2),o);return(-i(l)+je>0?-1:1)*((f-h)*p)/y}):(i=l=>{const u=Math.exp(-l*e),d=(l-n)*e+1;return-je+u*d},r=l=>{const u=Math.exp(-l*e),d=(n-l)*(e*e);return u*d});const a=5/e,c=qi(i,r,a);if(e=K(e),isNaN(c))return{stiffness:M.stiffness,damping:M.damping,duration:e};{const l=Math.pow(c,2)*s;return{stiffness:l,damping:o*2*Math.sqrt(s*l),duration:e}}}const Ui=12;function qi(e,t,n){let s=n;for(let i=1;i<Ui;i++)s=s-e(s)/t(s);return s}function Ye(e,t){return e*Math.sqrt(1-t*t)}const Yi=["duration","bounce"],Xi=["stiffness","damping","mass"];function _t(e,t){return t.some(n=>e[n]!==void 0)}function Zi(e){let t={velocity:M.velocity,stiffness:M.stiffness,damping:M.damping,mass:M.mass,isResolvedFromDuration:!1,...e};if(!_t(e,Xi)&&_t(e,Yi))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*_(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:M.mass,stiffness:i,damping:r}}else{const n=Hi({...e,velocity:0});t={...t,...n,mass:M.mass},t.isResolvedFromDuration=!0}return t}function Pe(e=M.visualDuration,t=M.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=Zi({...n,velocity:-B(n.velocity||0)}),p=f||0,y=l/(2*Math.sqrt(c*u)),b=o-r,g=B(Math.sqrt(c/u)),x=Math.abs(b)<5;s||(s=x?M.restSpeed.granular:M.restSpeed.default),i||(i=x?M.restDelta.granular:M.restDelta.default);let v;if(y<1){const T=Ye(g,y);v=A=>{const P=Math.exp(-y*g*A);return o-P*((p+y*g*b)/T*Math.sin(T*A)+b*Math.cos(T*A))}}else if(y===1)v=T=>o-Math.exp(-g*T)*(b+(p+g*b)*T);else{const T=g*Math.sqrt(y*y-1);v=A=>{const P=Math.exp(-y*g*A),V=Math.min(T*A,300);return o-P*((p+y*g*b)*Math.sinh(V)+T*b*Math.cosh(V))/T}}const S={calculatedDuration:h&&d||null,next:T=>{const A=v(T);if(h)a.done=T>=d;else{let P=T===0?p:0;y<1&&(P=T===0?K(p):Hn(v,T,A));const V=Math.abs(P)<=s,I=Math.abs(o-A)<=i;a.done=V&&I}return a.value=a.done?o:A,a},toString:()=>{const T=Math.min(yt(S),Ce),A=zn(P=>S.next(T*P).value,T,30);return T+"ms "+A},toTransition:()=>{}};return S}Pe.applyToOptions=e=>{const t=Gi(e,100,Pe);return e.ease=t.ease,e.duration=K(t.duration),e.type="keyframes",e};function Xe({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=V=>a!==void 0&&V<a||c!==void 0&&V>c,p=V=>a===void 0?c:c===void 0||Math.abs(a-V)<Math.abs(c-V)?a:c;let y=n*t;const b=d+y,g=o===void 0?b:o(b);g!==b&&(y=g-d);const x=V=>-y*Math.exp(-V/s),v=V=>g+x(V),S=V=>{const I=x(V),O=v(V);f.done=Math.abs(I)<=l,f.value=f.done?g:O};let T,A;const P=V=>{h(f.value)&&(T=V,A=Pe({keyframes:[f.value,p(f.value)],velocity:Hn(v,V,f.value),damping:i,stiffness:r,restDelta:l,restSpeed:u}))};return P(0),{calculatedDuration:null,next:V=>{let I=!1;return!A&&T===void 0&&(I=!0,S(V),P(V)),T!==void 0&&V>=T?A.next(V-T):(!I&&S(V),f)}}}function Ji(e,t,n){const s=[],i=n||j.mix||Gn,r=e.length-1;for(let o=0;o<r;o++){let a=i(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]||se:t;a=Ie(c,a)}s.push(a)}return s}function Qi(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const r=e.length;if(Y(r===t.length,"Both input and output ranges must be the same length","range-length"),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Ji(t,s,i),c=a.length,l=u=>{if(o&&u<e[0])return t[0];let d=0;if(c>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=xn(e[d],e[d+1],u);return a[d](f)};return n?u=>l(_(e[0],e[r-1],u)):l}function er(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=xn(0,t,s);e.push(ye(n,1,i))}}function tr(e){const t=[0];return er(t,e.length-1),t}function nr(e,t){return e.map(n=>n*t)}function sr(e,t){return e.map(()=>t||kn).splice(0,e.length-1)}function Q({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=mi(s)?s.map(Lt):Lt(s),r={done:!1,value:t[0]},o=nr(n&&n.length===t.length?n:tr(t),e),a=Qi(o,t,{ease:Array.isArray(i)?i:sr(t,i)});return{calculatedDuration:e,next:c=>(r.value=a(c),r.done=c>=e,r)}}const ir=e=>e!==null;function bt(e,{repeat:t,repeatType:n="loop"},s,i=1){const r=e.filter(ir),a=i<0||t&&n!=="loop"&&t%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const rr={decay:Xe,inertia:Xe,tween:Q,keyframes:Q,spring:Pe};function Un(e){typeof e.type=="string"&&(e.type=rr[e.type])}class vt{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const or=e=>e/100;class wt extends vt{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,i;const{motionValue:n}=this.options;n&&n.updatedAt!==k.now()&&this.tick(k.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(s=this.options).onStop)==null||i.call(s))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Un(t);const{type:n=Q,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=t;let{keyframes:a}=t;const c=n||Q;process.env.NODE_ENV!=="production"&&c!==Q&&Y(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Q&&typeof a[0]!="number"&&(this.mixKeyframes=Ie(or,Gn(a[0],a[1])),a=[0,100]);const l=c({...t,keyframes:a});r==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-o})),l.calculatedDuration===null&&(l.calculatedDuration=yt(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:l=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:h,type:p,onUpdate:y,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,S=s;if(d){const V=Math.min(this.currentTime,i)/a;let I=Math.floor(V),O=V%1;!O&&V>=1&&(O=1),O===1&&I--,I=Math.min(I,d+1),!!(I%2)&&(f==="reverse"?(O=1-O,h&&(O-=h/a)):f==="mirror"&&(S=o)),v=_(0,1,O)*a}const T=x?{done:!1,value:u[0]}:S.next(v);r&&(T.value=r(T.value));let{done:A}=T;!x&&c!==null&&(A=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return P&&p!==Xe&&(T.value=bt(u,this.options,b,this.speed)),y&&y(T.value),P&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return B(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+B(t)}get time(){return B(this.currentTime)}set time(t){var n;t=K(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(k.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=B(this.currentTime))}play(){var i,r;if(this.isStopped)return;const{driver:t=_i,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(r=(i=this.options).onPlay)==null||r.call(i);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(k.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function ar(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const U=e=>e*180/Math.PI,Ze=e=>{const t=U(Math.atan2(e[1],e[0]));return Je(t)},ur={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ze,rotateZ:Ze,skewX:e=>U(Math.atan(e[1])),skewY:e=>U(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Je=e=>(e=e%360,e<0&&(e+=360),e),Gt=Ze,zt=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ht=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),cr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zt,scaleY:Ht,scale:e=>(zt(e)+Ht(e))/2,rotateX:e=>Je(U(Math.atan2(e[6],e[5]))),rotateY:e=>Je(U(Math.atan2(-e[2],e[0]))),rotateZ:Gt,rotate:Gt,skewX:e=>U(Math.atan(e[4])),skewY:e=>U(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Qe(e){return e.includes("scale")?1:0}function et(e,t){if(!e||e==="none")return Qe(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=cr,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=ur,i=a}if(!i)return Qe(t);const r=s[t],o=i[1].split(",").map(fr);return typeof r=="function"?r(o):o[r]}const lr=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return et(n,t)};function fr(e){return parseFloat(e.trim())}const re=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oe=new Set(re),Ut=e=>e===ie||e===m,dr=new Set(["x","y","z"]),hr=re.filter(e=>!dr.has(e));function pr(e){const t=[];return hr.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const W={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:(e,{transform:t})=>et(t,"x"),y:(e,{transform:t})=>et(t,"y")};W.translateX=W.x;W.translateY=W.y;const q=new Set;let tt=!1,nt=!1,st=!1;function qn(){if(nt){const e=Array.from(q).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const i=pr(s);i.length&&(n.set(s,i),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))==null||a.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}nt=!1,tt=!1,q.forEach(e=>e.complete(st)),q.clear()}function Yn(){q.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(nt=!0)})}function mr(){st=!0,Yn(),qn(),st=!1}class Tt{constructor(t,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(q.add(this),tt||(tt=!0,N.read(Yn),N.resolveKeyframes(qn))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:i}=this;if(t[0]===null){const r=i==null?void 0:i.get(),o=t[t.length-1];if(r!==void 0)t[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&r===void 0&&i.set(t[0])}ar(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),q.delete(this)}cancel(){this.state==="scheduled"&&(q.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const gr=e=>e.startsWith("--");function yr(e,t,n){gr(t)?e.style.setProperty(t,n):e.style[t]=n}const br={};function Xn(e,t){const n=Tn(e);return()=>br[t]??n()}const vr=Xn(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Zn=Xn(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ce=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,qt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ce([0,.65,.55,1]),circOut:ce([.55,0,1,.45]),backIn:ce([.31,.01,.66,-.59]),backOut:ce([.33,1.53,.69,.99])};function Jn(e,t){if(e)return typeof e=="function"?Zn()?zn(e,t):"ease-out":On(e)?ce(e):Array.isArray(e)?e.map(n=>Jn(n,t)||qt.easeOut):qt[e]}function wr(e,t,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[t]:n};c&&(u.offset=c);const d=Jn(a,i);Array.isArray(d)&&(u.easing=d);const f={delay:s,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return l&&(f.pseudoElement=l),e.animate(u,f)}function Qn(e){return typeof e=="function"&&"applyToOptions"in e}function Tr({type:e,...t}){return Qn(e)&&Zn()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class es extends vt{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=t,Y(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=Tr(t);this.animation=wr(n,s,i,l,r),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=bt(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):yr(n,s,u),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,s,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(s=this.animation).commitStyles)==null||i.call(s))}get duration(){var n,s;const t=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return B(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+B(t)}get time(){return B(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=K(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&vr()?(this.animation.timeline=t,se):n(this)}}const ts={anticipate:Dn,backInOut:Fn,circInOut:In};function xr(e){return e in ts}function Vr(e){typeof e.ease=="string"&&xr(e.ease)&&(e.ease=ts[e.ease])}const $e=10;class Sr extends es{constructor(t){Vr(t),Un(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new wt({...o,autoplay:!1}),c=Math.max($e,k.now()-this.startTime),l=_(0,$e,c-$e);n.setWithVelocity(a.sample(Math.max(0,c-l)).value,a.sample(c).value,l),a.stop()}}const Yt=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(L.test(e)||e==="0")&&!e.startsWith("url("));function Ar(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 Mr(e,t,n,s){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],o=Yt(i,t),a=Yt(r,t);return pe(o===a,`You are trying to animate ${t} from "${i}" to "${r}". "${o?r:i}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:Ar(e)||(n==="spring"||Qn(n))&&s}function it(e){e.duration=0,e.type="keyframes"}const Cr=new Set(["opacity","clipPath","filter","transform"]),Pr=Tn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Rr(e){var u;const{motionValue:t,name:n,repeatDelay:s,repeatType:i,damping:r,type:o}=e;if(!(((u=t==null?void 0:t.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Pr()&&n&&Cr.has(n)&&(n!=="transform"||!l)&&!c&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const Fr=40;class Dr extends vt{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:c,motionValue:l,element:u,...d}){var p;super(),this.stop=()=>{var y,b;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=k.now();const f={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:c,motionValue:l,element:u,...d},h=(u==null?void 0:u.KeyframeResolver)||Tt;this.keyframeResolver=new h(a,(y,b,g)=>this.onKeyframesResolved(y,b,f,!g),c,l,u),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(t,n,s,i){var b,g;this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:c,isHandoff:l,onUpdate:u}=s;this.resolvedAt=k.now(),Mr(t,r,o,a)||((j.instantAnimations||!c)&&(u==null||u(bt(t,s,n))),t[0]=t[t.length-1],it(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Fr?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},h=!l&&Rr(f),p=(g=(b=f.motionValue)==null?void 0:b.owner)==null?void 0:g.current,y=h?new Sr({...f,element:p}):new wt(f);y.finished.then(()=>{this.notifyFinished()}).catch(se),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),mr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function ns(e,t,n,s=0,i=1){const r=Array.from(e).sort((l,u)=>l.sortNodePosition(u)).indexOf(t),o=e.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}const Ir=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kr(e){const t=Ir.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}const Or=4;function ss(e,t,n=1){Y(n<=Or,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[s,i]=kr(e);if(!s)return;const r=window.getComputedStyle(t).getPropertyValue(s);if(r){const o=r.trim();return vn(o)?parseFloat(o):o}return ht(i)?ss(i,t,n+1):i}const Er={type:"spring",stiffness:500,damping:25,restSpeed:10},Br=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Lr={type:"keyframes",duration:.8},Nr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Kr=(e,{keyframes:t})=>t.length>2?Lr:oe.has(e)?e.startsWith("scale")?Br(t[1]):Er:Nr,jr=e=>e!==null;function $r(e,{repeat:t,repeatType:n="loop"},s){const i=e.filter(jr),r=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[r]}function is(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...s}=e;return{...t,...s}}return e}function rs(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?is(n,e):n}function Wr({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const _r=(e,t,n,s={},i,r)=>o=>{const a=rs(s,e)||{},c=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-K(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:i};Wr(a)||Object.assign(u,Kr(e,u)),u.duration&&(u.duration=K(u.duration)),u.repeatDelay&&(u.repeatDelay=K(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(it(u),u.delay===0&&(d=!0)),(j.instantAnimations||j.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(d=!0,it(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!r&&t.get()!==void 0){const f=$r(u.keyframes,a);if(f!==void 0){N.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new wt(u):new Dr(u)};function Xt(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function xt(e,t,n,s){if(typeof t=="function"){const[i,r]=Xt(s);t=t(n!==void 0?n:e.custom,i,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,r]=Xt(s);t=t(n!==void 0?n:e.custom,i,r)}return t}function te(e,t,n){const s=e.getProps();return xt(s,t,n!==void 0?n:s.custom,e)}const os=new Set(["width","height","top","left","right","bottom",...re]),Zt=30,Gr=e=>!isNaN(parseFloat(e));class zr{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var r;const i=k.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((r=this.events.change)==null||r.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=k.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Gr(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&An(!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 Vn);const s=this.events[t].add(n);return t==="change"?()=>{s(),N.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=k.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zt)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zt);return Sn(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Re(e,t){return new zr(e,t)}const rt=e=>Array.isArray(e);function Hr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Re(n))}function Ur(e){return rt(e)?e[e.length-1]||0:e}function qr(e,t){const n=te(e,t);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Ur(r[o]);Hr(e,o,a)}}const D=e=>!!(e&&e.getVelocity);function Yr(e){return!!(D(e)&&e.add)}function Xr(e,t){const n=e.getValue("willChange");if(Yr(n))return n.add(t);if(!n&&j.WillChange){const s=new j.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function Vt(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Zr="framerAppearId",as="data-"+Vt(Zr);function Jr(e){return e.props[as]}function Qr({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function us(e,t,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=t;const c=e.getDefaultTransition();r=r?is(r,c):c;const l=r==null?void 0:r.reduceMotion;s&&(r=s);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in a){const h=e.getValue(f,e.latestValues[f]??null),p=a[f];if(p===void 0||d&&Qr(d,f))continue;const y={delay:n,...rs(r||{},f)},b=h.get();if(b!==void 0&&!h.isAnimating&&!Array.isArray(p)&&p===b&&!y.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const S=Jr(e);if(S){const T=window.MotionHandoffAnimation(S,f,N);T!==null&&(y.startTime=T,g=!0)}}Xr(e,f);const x=l??e.shouldReduceMotion;h.start(_r(f,h,p,x&&os.has(f)?{type:!1}:y,e,g));const v=h.animation;v&&u.push(v)}if(o){const f=()=>N.update(()=>{o&&qr(e,o)});u.length?Promise.all(u).then(f):f()}return u}function ot(e,t,n={}){var c;const s=te(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(us(e,s,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return eo(e,t,l,u,d,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[r,o]:[o,r];return l().then(()=>u())}else return Promise.all([r(),o(n.delay)])}function eo(e,t,n=0,s=0,i=0,r=1,o){const a=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),a.push(ot(c,t,{...o,delay:n+(typeof s=="function"?0:s)+ns(e.variantChildren,c,s,i,r)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(a)}function to(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const i=t.map(r=>ot(e,r,n));s=Promise.all(i)}else if(typeof t=="string")s=ot(e,t,n);else{const i=typeof t=="function"?te(e,t,n.custom):t;s=Promise.all(us(e,i,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const no={test:e=>e==="auto",parse:e=>e},cs=e=>t=>t.test(e),ls=[ie,m,ee,$,Ci,Mi,no],Jt=e=>ls.find(cs(e));function so(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||wn(e):!0}const io=new Set(["brightness","contrast","saturate","opacity"]);function ro(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(pt)||[];if(!s)return e;const i=n.replace(s,"");let r=io.has(t)?1:0;return s!==n&&(r*=100),t+"("+r+i+")"}const oo=/\b([a-z-]*)\(.*?\)/gu,at={...L,getAnimatableNone:e=>{const t=e.match(oo);return t?t.map(ro).join(" "):e}},ut={...L,getAnimatableNone:e=>{const t=L.parse(e);return L.createTransformer(e)(t.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Qt={...ie,transform:Math.round},ao={rotate:$,rotateX:$,rotateY:$,rotateZ:$,scale:we,scaleX:we,scaleY:we,scaleZ:we,skew:$,skewX:$,skewY:$,distance:m,translateX:m,translateY:m,translateZ:m,x:m,y:m,z:m,perspective:m,transformPerspective:m,opacity:fe,originX:Kt,originY:Kt,originZ:m},St={borderWidth:m,borderTopWidth:m,borderRightWidth:m,borderBottomWidth:m,borderLeftWidth:m,borderRadius:m,borderTopLeftRadius:m,borderTopRightRadius:m,borderBottomRightRadius:m,borderBottomLeftRadius:m,width:m,maxWidth:m,height:m,maxHeight:m,top:m,right:m,bottom:m,left:m,inset:m,insetBlock:m,insetBlockStart:m,insetBlockEnd:m,insetInline:m,insetInlineStart:m,insetInlineEnd:m,padding:m,paddingTop:m,paddingRight:m,paddingBottom:m,paddingLeft:m,paddingBlock:m,paddingBlockStart:m,paddingBlockEnd:m,paddingInline:m,paddingInlineStart:m,paddingInlineEnd:m,margin:m,marginTop:m,marginRight:m,marginBottom:m,marginLeft:m,marginBlock:m,marginBlockStart:m,marginBlockEnd:m,marginInline:m,marginInlineStart:m,marginInlineEnd:m,fontSize:m,backgroundPositionX:m,backgroundPositionY:m,...ao,zIndex:Qt,fillOpacity:fe,strokeOpacity:fe,numOctaves:Qt},uo={...St,color:C,backgroundColor:C,outlineColor:C,fill:C,stroke:C,borderColor:C,borderTopColor:C,borderRightColor:C,borderBottomColor:C,borderLeftColor:C,filter:at,WebkitFilter:at,mask:ut,WebkitMask:ut},fs=e=>uo[e],co=new Set([at,ut]);function ds(e,t){let n=fs(e);return co.has(n)||(n=L),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const lo=new Set(["auto","none","0"]);function fo(e,t,n){let s=0,i;for(;s<e.length&&!i;){const r=e[s];typeof r=="string"&&!lo.has(r)&&de(r).values.length&&(i=e[s]),s++}if(i&&n)for(const r of t)e[r]=ds(n,i)}class ho extends Tt{constructor(t,n,s,i,r){super(t,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),ht(d))){const f=ss(d,n.current);f!==void 0&&(t[u]=f),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!os.has(s)||t.length!==2)return;const[i,r]=t,o=Jt(i),a=Jt(r),c=Nt(i),l=Nt(r);if(c!==l&&W[s]){this.needsMeasurement=!0;return}if(o!==a)if(Ut(o)&&Ut(a))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else W[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)(t[i]===null||so(t[i]))&&s.push(i);s.length&&fo(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=W[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(s,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=W[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([c,l])=>{t.getValue(c).set(l)}),this.resolveNoneKeyframes()}}const po=new Set(["opacity","clipPath","filter","transform"]);function mo(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const i=(n==null?void 0:n[e])??s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(s=>s!=null)}const hs=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function go(e){return ai(e)&&"offsetHeight"in e}const{schedule:yo}=En(queueMicrotask,!1),bo={y:!1};function vo(){return bo.y}function ps(e,t){const n=mo(e),s=new AbortController,i={passive:!0,...t,signal:s.signal};return[n,i,()=>s.abort()]}function wo(e){return!(e.pointerType==="touch"||vo())}function To(e,t,n={}){const[s,i,r]=ps(e,n);return s.forEach(o=>{let a=!1,c=!1,l;const u=()=>{o.removeEventListener("pointerleave",p)},d=b=>{l&&(l(b),l=void 0),u()},f=b=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,d(b))},h=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},p=b=>{if(b.pointerType!=="touch"){if(a){c=!0;return}d(b)}},y=b=>{if(!wo(b))return;c=!1;const g=t(o,b);typeof g=="function"&&(l=g,o.addEventListener("pointerleave",p,i))};o.addEventListener("pointerenter",y,i),o.addEventListener("pointerdown",h,i)}),r}const ms=(e,t)=>t?e===t?!0:ms(e,t.parentElement):!1,xo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Vo=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function So(e){return Vo.has(e.tagName)||e.isContentEditable===!0}const Ve=new WeakSet;function en(e){return t=>{t.key==="Enter"&&e(t)}}function We(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Ao=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=en(()=>{if(Ve.has(n))return;We(n,"down");const i=en(()=>{We(n,"up")}),r=()=>We(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",r,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function tn(e){return xo(e)&&!0}const nn=new WeakSet;function Mo(e,t,n={}){const[s,i,r]=ps(e,n),o=a=>{const c=a.currentTarget;if(!tn(a)||nn.has(a))return;Ve.add(c),n.stopPropagation&&nn.add(a);const l=t(c,a),u=(h,p)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Ve.has(c)&&Ve.delete(c),tn(h)&&typeof l=="function"&&l(h,{success:p})},d=h=>{u(h,c===window||c===document||n.useGlobalTarget||ms(c,h.target))},f=h=>{u(h,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),go(a)&&(a.addEventListener("focus",l=>Ao(l,i)),!So(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}const Co=[...ls,C,L],Po=e=>Co.find(cs(e)),sn=()=>({min:0,max:0}),gs=()=>({x:sn(),y:sn()}),Ro=new WeakMap;function ke(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function he(e){return typeof e=="string"||Array.isArray(e)}const At=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mt=["initial",...At];function Oe(e){return ke(e.animate)||Mt.some(t=>he(e[t]))}function ys(e){return!!(Oe(e)||e.variants)}function Fo(e,t,n){for(const s in t){const i=t[s],r=n[s];if(D(i))e.addValue(s,i);else if(D(r))e.addValue(s,Re(i,{owner:e}));else if(r!==i)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(s);e.addValue(s,Re(o!==void 0?o:i,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const ct={current:null},bs={current:!1},Do=typeof window<"u";function Io(){if(bs.current=!0,!!Do)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ct.current=e.matches;e.addEventListener("change",t),t()}else ct.current=!1}const rn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Fe={};function vs(e){Fe=e}function ko(){return Fe}class Oo{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Tt,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=k.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,N.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Oe(n),this.isVariantNode=ys(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const p=f[h];l[h]!==void 0&&D(p)&&p.set(l[h])}}mount(t){var n,s;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,Ro.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((i,r)=>this.bindToMotionValue(r,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(bs.current||Io(),this.shouldReduceMotion=ct.current),process.env.NODE_ENV!=="production"&&An(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),He(this.notifyUpdate),He(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const s=this.features[n];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&po.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:c,ease:l,duration:u}=n.accelerate,d=new es({element:this.current,name:t,keyframes:a,times:c,ease:l,duration:K(u)}),f=o(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}const s=oe.has(t);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&N.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),r&&r(),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 Fe){const n=Fe[t];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[t]&&i&&s(this.props)&&(this.features[t]=new i(this)),this.features[t]){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gs()}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 s=0;s<rn.length;s++){const i=rn[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=t[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Fo(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&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 s=this.values.get(t);return s===void 0&&n!==void 0&&(s=Re(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(vn(s)||wn(s))?s=parseFloat(s):!Po(s)&&L.test(n)&&(s=ds(t,n)),this.setBaseTarget(t,D(s)?s.get():s)),D(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var r;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=xt(this.props,n,(r=this.presenceContext)==null?void 0:r.custom);o&&(s=o[t])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!D(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 Vn),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){yo.render(this.render)}}class ws extends Oo{constructor(){super(...arguments),this.KeyframeResolver=ho}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const s=t.style;return s?s[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;D(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class ae{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Eo({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function Bo(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Lo(e,t){return Eo(Bo(e.getBoundingClientRect(),t))}const No={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ko=re.length;function jo(e,t,n){let s="",i=!0;for(let r=0;r<Ko;r++){const o=re[r],a=e[o];if(a===void 0)continue;let c=!0;if(typeof a=="number")c=a===(o.startsWith("scale")?1:0);else{const l=parseFloat(a);c=o.startsWith("scale")?l===1:l===0}if(!c||n){const l=hs(a,St[o]);if(!c){i=!1;const u=No[o]||o;s+=`${u}(${l}) `}n&&(t[o]=l)}}return s=s.trim(),n?s=n(t,i?"":s):i&&(s="none"),s}function Ct(e,t,n){const{style:s,vars:i,transformOrigin:r}=e;let o=!1,a=!1;for(const c in t){const l=t[c];if(oe.has(c)){o=!0;continue}else if(Ln(c)){i[c]=l;continue}else{const u=hs(l,St[c]);c.startsWith("origin")?(a=!0,r[c]=u):s[c]=u}}if(t.transform||(o||n?s.transform=jo(t,e.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=r;s.transformOrigin=`${c} ${l} ${u}`}}function Ts(e,{style:t,vars:n},s,i){const r=e.style;let o;for(o in t)r[o]=t[o];i==null||i.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function on(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ue={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(m.test(e))e=parseFloat(e);else return e;const n=on(e,t.target.x),s=on(e,t.target.y);return`${n}% ${s}%`}},$o={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,i=L.parse(e);if(i.length>5)return s;const r=L.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=c;const l=ye(a,c,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),r(i)}},Wo={borderRadius:{...ue,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ue,borderTopRightRadius:ue,borderBottomLeftRadius:ue,borderBottomRightRadius:ue,boxShadow:$o};function xs(e,{layout:t,layoutId:n}){return oe.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Wo[e]||e==="opacity")}function Pt(e,t,n){var o;const s=e.style,i=t==null?void 0:t.style,r={};if(!s)return r;for(const a in s)(D(s[a])||i&&D(i[a])||xs(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(r[a]=s[a]);return r}function _o(e){return window.getComputedStyle(e)}class Go extends ws{constructor(){super(...arguments),this.type="html",this.renderInstance=Ts}readValueFromInstance(t,n){var s;if(oe.has(n))return(s=this.projection)!=null&&s.isProjecting?Qe(n):lr(t,n);{const i=_o(t),r=(Ln(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Lo(t,n)}build(t,n,s){Ct(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return Pt(t,n,s)}}const zo={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ho={offset:"strokeDashoffset",array:"strokeDasharray"};function Uo(e,t,n=1,s=0,i=!0){e.pathLength=1;const r=i?zo:Ho;e[r.offset]=`${-s}`,e[r.array]=`${t} ${n}`}const qo=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Vs(e,{attrX:t,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},c,l,u){if(Ct(e,a,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const h of qo)d[h]!==void 0&&(f[h]=d[h],delete d[h]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),i!==void 0&&Uo(d,i,r,o,!1)}const Ss=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"]),As=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Yo(e,t,n,s){Ts(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(Ss.has(i)?i:Vt(i),t.attrs[i])}function Ms(e,t,n){const s=Pt(e,t,n);for(const i in e)if(D(e[i])||D(t[i])){const r=re.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=e[i]}return s}class Xo extends ws{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gs}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(oe.has(n)){const s=fs(n);return s&&s.default||0}return n=Ss.has(n)?n:Vt(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return Ms(t,n,s)}build(t,n,s){Vs(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,i){Yo(t,n,s,i)}mount(t){this.isSVGTag=As(t.tagName),super.mount(t)}}const Zo=Mt.length;function Cs(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Cs(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Zo;n++){const s=Mt[n],i=e.props[s];(he(i)||i===!1)&&(t[s]=i)}return t}function Ps(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}const Jo=[...At].reverse(),Qo=At.length;function ea(e){return t=>Promise.all(t.map(({animation:n,options:s})=>to(e,n,s)))}function ta(e){let t=ea(e),n=an(),s=!0;const i=c=>(l,u)=>{var f;const d=te(e,u,c==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(d){const{transition:h,transitionEnd:p,...y}=d;l={...l,...y,...p}}return l};function r(c){t=c(e)}function o(c){const{props:l}=e,u=Cs(e.parent)||{},d=[],f=new Set;let h={},p=1/0;for(let b=0;b<Qo;b++){const g=Jo[b],x=n[g],v=l[g]!==void 0?l[g]:u[g],S=he(v),T=g===c?x.isActive:null;T===!1&&(p=b);let A=v===u[g]&&v!==l[g]&&S;if(A&&s&&e.manuallyAnimateOnMount&&(A=!1),x.protectedKeys={...h},!x.isActive&&T===null||!v&&!x.prevProp||ke(v)||typeof v=="boolean")continue;if(g==="exit"&&x.isActive&&T!==!0){x.prevResolvedValues&&(h={...h,...x.prevResolvedValues});continue}const P=na(x.prevProp,v);let V=P||g===c&&x.isActive&&!A&&S||b>p&&S,I=!1;const O=Array.isArray(v)?v:[v];let X=O.reduce(i(g),{});T===!1&&(X={});const{prevResolvedValues:It={}}=x,Gs={...It,...X},kt=F=>{V=!0,f.has(F)&&(I=!0,f.delete(F)),x.needsAnimating[F]=!0;const E=e.getValue(F);E&&(E.liveStyle=!1)};for(const F in Gs){const E=X[F],G=It[F];if(h.hasOwnProperty(F))continue;let Z=!1;rt(E)&&rt(G)?Z=!Ps(E,G):Z=E!==G,Z?E!=null?kt(F):f.add(F):E!==void 0&&f.has(F)?kt(F):x.protectedKeys[F]=!0}x.prevProp=v,x.prevResolvedValues=X,x.isActive&&(h={...h,...X}),s&&e.blockInitialAnimation&&(V=!1);const Ot=A&&P;V&&(!Ot||I)&&d.push(...O.map(F=>{const E={type:g};if(typeof F=="string"&&s&&!Ot&&e.manuallyAnimateOnMount&&e.parent){const{parent:G}=e,Z=te(G,F);if(G.enteringChildren&&Z){const{delayChildren:zs}=Z.transition||{};E.delay=ns(G.enteringChildren,e,zs)}}return{animation:F,options:E}}))}if(f.size){const b={};if(typeof l.initial!="boolean"){const g=te(e,Array.isArray(l.initial)?l.initial[0]:l.initial);g&&g.transition&&(b.transition=g.transition)}f.forEach(g=>{const x=e.getBaseTarget(g),v=e.getValue(g);v&&(v.liveStyle=!0),b[g]=x??null}),d.push({animation:b})}let y=!!d.length;return s&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(y=!1),s=!1,y?t(d):Promise.resolve()}function a(c,l){var d;if(n[c].isActive===l)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(f=>{var h;return(h=f.animationState)==null?void 0:h.setActive(c,l)}),n[c].isActive=l;const u=o(c);for(const f in n)n[f].protectedKeys={};return u}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=an()}}}function na(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ps(t,e):!1}function z(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function an(){return{animate:z(!0),whileInView:z(),whileHover:z(),whileTap:z(),whileDrag:z(),whileFocus:z(),exit:z()}}function un(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function sa(e){return D(e)?e.get():e}const Rs=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Rt=w.createContext({strict:!1}),cn={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"]};let ln=!1;function ia(){if(ln)return;const e={};for(const t in cn)e[t]={isEnabled:n=>cn[t].some(s=>!!n[s])};vs(e),ln=!0}function Fs(){return ia(),ko()}function fn(e){const t=Fs();for(const n in e)t[n]={...t[n],...e[n]};vs(t)}function ra({children:e,features:t,strict:n=!1}){const[,s]=w.useState(!_e(t)),i=w.useRef(void 0);if(!_e(t)){const{renderer:r,...o}=t;i.current=r,fn(o)}return w.useEffect(()=>{_e(t)&&t().then(({renderer:r,...o})=>{fn(o),i.current=r,s(!0)})},[]),R.jsx(Rt.Provider,{value:{renderer:i.current,strict:n},children:e})}function _e(e){return typeof e=="function"}const oa=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function De(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||oa.has(e)}let Ds=e=>!De(e);function aa(e){typeof e=="function"&&(Ds=t=>t.startsWith("on")?!De(t):e(t))}try{aa(require("@emotion/is-prop-valid").default)}catch{}function ua(e,t,n){const s={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ds(i)||n===!0&&De(i)||!t&&!De(i)||e.draggable&&i.startsWith("onDrag"))&&(s[i]=e[i]);return s}const Ee=w.createContext({});function ca(e,t){if(Oe(e)){const{initial:n,animate:s}=e;return{initial:n===!1||he(n)?n:void 0,animate:he(s)?s:void 0}}return e.inherit!==!1?t:{}}function la(e){const{initial:t,animate:n}=ca(e,w.useContext(Ee));return w.useMemo(()=>({initial:t,animate:n}),[dn(t),dn(n)])}function dn(e){return Array.isArray(e)?e.join(" "):e}const Ft=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Is(e,t,n){for(const s in t)!D(t[s])&&!xs(s,n)&&(e[s]=t[s])}function fa({transformTemplate:e},t){return w.useMemo(()=>{const n=Ft();return Ct(n,t,e),Object.assign({},n.vars,n.style)},[t])}function da(e,t){const n=e.style||{},s={};return Is(s,n,e),Object.assign(s,fa(e,t)),s}function ha(e,t){const n={},s=da(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.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=s,n}const ks=()=>({...Ft(),attrs:{}});function pa(e,t,n,s){const i=w.useMemo(()=>{const r=ks();return Vs(r,t,As(s),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};Is(r,e.style,e),i.style={...r,...i.style}}return i}const ma=["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 Dt(e){return typeof e!="string"||e.includes("-")?!1:!!(ma.indexOf(e)>-1||/[A-Z]/u.test(e))}function ga(e,t,n,{latestValues:s},i,r=!1,o){const c=(o??Dt(e)?pa:ha)(t,s,i,e),l=ua(t,typeof e=="string",r),u=e!==w.Fragment?{...l,...c,ref:n}:{},{children:d}=t,f=w.useMemo(()=>D(d)?d.get():d,[d]);return w.createElement(e,{...u,children:f})}function ya({scrapeMotionValuesFromProps:e,createRenderState:t},n,s,i){return{latestValues:ba(n,s,i,e),renderState:t()}}function ba(e,t,n,s){const i={},r=s(e,{});for(const f in r)i[f]=sa(r[f]);let{initial:o,animate:a}=e;const c=Oe(e),l=ys(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!ke(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const p=xt(e,f[h]);if(p){const{transitionEnd:y,transition:b,...g}=p;for(const x in g){let v=g[x];if(Array.isArray(v)){const S=u?v.length-1:0;v=v[S]}v!==null&&(i[x]=v)}for(const x in y)i[x]=y[x]}}}return i}const Os=e=>(t,n)=>{const s=w.useContext(Ee),i=w.useContext(bn),r=()=>ya(e,t,s,i);return n?r():si(r)},va=Os({scrapeMotionValuesFromProps:Pt,createRenderState:Ft}),wa=Os({scrapeMotionValuesFromProps:Ms,createRenderState:ks}),Ta=Symbol.for("motionComponentSymbol");function xa(e,t,n){const s=w.useRef(n);w.useInsertionEffect(()=>{s.current=n});const i=w.useRef(null);return w.useCallback(r=>{var a;r&&((a=e.onMount)==null||a.call(e,r)),t&&(r?t.mount(r):t.unmount());const o=s.current;if(typeof o=="function")if(r){const c=o(r);typeof c=="function"&&(i.current=c)}else i.current?(i.current(),i.current=null):o(r);else o&&(o.current=r)},[t])}const Va=w.createContext({});function Sa(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Aa(e,t,n,s,i,r){var v,S;const{visualElement:o}=w.useContext(Ee),a=w.useContext(Rt),c=w.useContext(bn),l=w.useContext(Rs),u=l.reducedMotion,d=l.skipAnimations,f=w.useRef(null),h=w.useRef(!1);s=s||a.renderer,!f.current&&s&&(f.current=s(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:r}),h.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const p=f.current,y=w.useContext(Va);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&Ma(f.current,n,i,y);const b=w.useRef(!1);w.useInsertionEffect(()=>{p&&b.current&&p.update(n,c)});const g=n[as],x=w.useRef(!!g&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,g))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,g)));return ii(()=>{h.current=!0,p&&(b.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),x.current&&p.animationState&&p.animationState.animateChanges())}),w.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,g)}),x.current=!1),p.enteringChildren=void 0)}),p}function Ma(e,t,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Es(e.parent)),e.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&Sa(a),visualElement:e,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:c,layoutRoot:l})}function Es(e){if(e)return e.options.allowProjection!==!1?e.projection:Es(e.parent)}function Ca(e,{forwardMotionProps:t=!1,type:n}={},s,i){const r=n?n==="svg":Dt(e),o=r?wa:va;function a(l,u){let d;const f={...w.useContext(Rs),...l,layoutId:Pa(l)},{isStatic:h}=f,p=la(l),y=o(l,h);if(!h&&yn){Ra(f,s);const b=Fa(f);d=b.MeasureLayout,p.visualElement=Aa(e,y,f,i,b.ProjectionNode,r)}return R.jsxs(Ee.Provider,{value:p,children:[d&&p.visualElement?R.jsx(d,{visualElement:p.visualElement,...f}):null,ga(e,l,xa(y,p.visualElement,u),y,h,t,r)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=w.forwardRef(a);return c[Ta]=e,c}function Pa({layoutId:e}){const t=w.useContext(ni).id;return t&&e!==void 0?t+"-"+e:e}function Ra(e,t){w.useContext(Rt).strict,process.env.NODE_ENV}function Fa(e){const t=Fs(),{drag:n,layout:s}=t;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n!=null&&n.isEnabled(e)||s!=null&&s.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const Da=(e,t)=>t.isSVG??Dt(e)?new Xo(t):new Go(t,{allowProjection:e!==w.Fragment});class Ia extends ae{constructor(t){super(t),t.animationState||(t.animationState=ta(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ke(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.call(this)}}let ka=0;class Oa extends ae{constructor(){super(...arguments),this.id=ka++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.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 Ea={animation:{Feature:Ia},exit:{Feature:Oa}};function Bs(e){return{point:{x:e.pageX,y:e.pageY}}}function hn(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&N.postRender(()=>r(t,Bs(t)))}class Ba extends ae{mount(){const{current:t}=this.node;t&&(this.unmount=To(t,(n,s)=>(hn(this.node,s,"Start"),i=>hn(this.node,i,"End"))))}unmount(){}}class La extends ae{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=Ie(un(this.node.current,"focus",()=>this.onFocus()),un(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function pn(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&N.postRender(()=>r(t,Bs(t)))}class Na extends ae{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=Mo(t,(i,r)=>(pn(this.node,r,"Start"),(o,{success:a})=>pn(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const lt=new WeakMap,Ge=new WeakMap,Ka=e=>{const t=lt.get(e.target);t&&t(e)},ja=e=>{e.forEach(Ka)};function $a({root:e,...t}){const n=e||document;Ge.has(n)||Ge.set(n,{});const s=Ge.get(n),i=JSON.stringify(t);return s[i]||(s[i]=new IntersectionObserver(ja,{root:e,...t})),s[i]}function Wa(e,t,n){const s=$a(t);return lt.set(e,n),s.observe(e),()=>{lt.delete(e),s.unobserve(e)}}const _a={some:0,all:1};class Ga extends ae{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:_a[i]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,r&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=l?u:d;f&&f(c)};return Wa(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(za(t,n))&&this.startObserver()}unmount(){}}function za({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Ha={inView:{Feature:Ga},tap:{Feature:Na},focus:{Feature:La},hover:{Feature:Ba}},Ua={renderer:Da,...Ea,...Ha};function qa(e,t){return Ca(e,t)}const mn=qa("span"),Ya={Root:{0:{h:"5"},1:{h:"6"},2:{h:"8"}}},Be={Root:{0:{pl:"1_5"},1:{pl:"2"},2:{pl:"2_5"}},Text:{0:{mr:"1_5"},1:{mr:"2"},2:{mr:"2_5"}},Button:{0:{ml:"0_5"},1:{ml:"1"},2:{ml:"1"}}},ne={Root:{solid:{default:"gray-12",accent:"accent-9",gray:"gray-9",red:"red-9",blue:"blue-9",green:"green-9",yellow:"yellow-9",purple:"purple-9"},soft:{default:"gray-2",accent:"accent-2",gray:"gray-2",red:"red-2",blue:"blue-2",green:"green-2",yellow:"yellow-2",purple:"purple-2"}},Border:{soft:{default:"gray-4",accent:"accent-4",gray:"gray-4",red:"red-4",blue:"blue-4",green:"green-4",yellow:"yellow-4",purple:"purple-4"}},Icon:{solid:{default:"white",gray:"white",red:"white",accent:"white",blue:"white",green:"white",yellow:"white",purple:"white"},soft:{default:"default",gray:"gray",accent:"accent",red:"red",blue:"blue",green:"green",yellow:"yellow",purple:"purple"}},Text:{solid:{default:"white",gray:"white",accent:"white",red:"white",blue:"white",green:"white",yellow:"white",purple:"white"},soft:{default:"default",gray:"gray",accent:"accent",red:"red",blue:"blue",green:"green",yellow:"yellow",purple:"purple"}},Button:{solid:{default:"default",gray:"gray",accent:"accent",red:"red",blue:"blue",green:"green",yellow:"yellow",purple:"purple"},soft:{default:"gray",gray:"gray",accent:"accent",red:"red",blue:"blue",green:"green",yellow:"yellow",purple:"purple"}}},Ls={Button:{solid:"solid",soft:"ghost"}},Xa={tagBorderColor:{cssVar:"--box-shadow",value:"inset 0 0 0 1px var(--tgph-VARIABLE)"}},be=w.createContext({size:"1",color:"default",variant:"soft"}),Ns=({as:e="span",size:t="1",color:n="default",variant:s="soft",className:i,style:r,...o})=>{const{styleProp:a,otherProps:c}=ti({props:{...s==="soft"?{tagBorderColor:ne.Border.soft[n]}:{},style:r},cssVars:Xa});return R.jsx(be.Provider,{value:{size:t,color:n,variant:s},children:R.jsx(Us.Stack,{as:e,align:"center",rounded:"full",display:"inline-flex",pl:Be.Root[t].pl,backgroundColor:ne.Root[s][n],h:Ya.Root[t].h,className:Xs.clsx("tgph-tag",i),style:a,...c,...o,"data-tag":!0})})},Ks=({as:e="span",maxW:t="40",overflow:n="hidden",style:s,...i})=>{const r=w.useContext(be);return R.jsx(Ys.Text,{as:e,size:r.size,color:ne.Text[r.variant][r.color],weight:"medium",mr:Be.Text[r.size].mr,maxW:t,overflow:n,internal_optionalAs:!0,style:{whiteSpace:"nowrap",textOverflow:"ellipsis",...s},...i})},js=({onClick:e,textToCopy:t,...n})=>{const s=w.useContext(be),[i,r]=w.useState(!1);return w.useEffect(()=>{if(i){const o=setTimeout(()=>r(!1),2e3);return()=>clearTimeout(o)}},[i]),R.jsx(ra,{features:Ua,children:R.jsx(qs.Tooltip,{label:"Copy text",children:R.jsxs(Te.Button.Root,{onClick:o=>{var a;e==null||e(o),r(!0),t&&navigator.clipboard.writeText(t),(a=o.currentTarget)==null||a.blur()},size:s.size,color:ne.Button[s.variant][s.color],variant:Ls.Button[s.variant],rounded:"0",position:"relative",overflow:"hidden",borderTopRightRadius:"full",borderBottomRightRadius:"full",ml:Be.Button[s.size].ml,...n,children:[R.jsx(Te.Button.Icon,{as:mn,initial:!1,animate:{y:i?0:"150%",opacity:1},transition:{duration:.15,type:"spring",bounce:0},icon:Se.Check,alt:"Copied text","aria-hidden":!i}),R.jsx(Te.Button.Icon,{as:mn,initial:!1,animate:{y:i?"-150%":0,opacity:1},transition:{duration:.15,type:"spring",bounce:0},icon:Se.Copy,position:"absolute",alt:"Copy text","aria-hidden":i})]})})})},$s=({...e})=>{const t=w.useContext(be);return R.jsx(Te.Button,{size:t.size,color:ne.Button[t.variant][t.color],variant:Ls.Button[t.variant],icon:{icon:Se.X,alt:"close"},rounded:"0",borderTopRightRadius:"full",borderBottomRightRadius:"full",ml:Be.Button[t.size].ml,...e})},Ws=({icon:e,alt:t,"aria-hidden":n,...s})=>{const i=w.useContext(be),r=t?{alt:t}:{"aria-hidden":n};return R.jsx(Hs.Icon,{icon:e,size:i.size,color:ne.Icon[i.variant][i.color],mr:"1",...r,...s})},_s=({color:e="default",size:t="1",variant:n="soft",icon:s,onRemove:i,onCopy:r,textToCopy:o,textProps:a={maxW:"40"},children:c,...l})=>{const d={...a,...!!(i||r)?{mr:"0"}:{}};return R.jsxs(Ns,{color:e,size:t,variant:n,...l,children:[s&&R.jsx(Ws,{...s}),R.jsx(Ks,{as:"span",...d,children:c}),i&&R.jsx($s,{onClick:i,icon:{icon:Se.X,alt:"Remove"}}),r&&R.jsx(js,{onClick:r,textToCopy:o})]})};Object.assign(_s,{Root:Ns,Button:$s,Text:Ks,Icon:Ws,CopyButton:js});const Za=_s;exports.Tag=Za;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react/jsx-runtime"),Te=require("@telegraph/button"),qs=require("@telegraph/icon"),Ys=require("@telegraph/layout"),w=require("react"),Xs=require("@telegraph/tooltip"),Zs=require("@telegraph/typography"),Js=require("clsx"),Se=require("lucide-react"),Qs=["_hover","_focus","_active","_focusWithin","_disabled"],ei={_hover:"hover",_focus:"focus",_active:"active",_focusWithin:"focus-within",_disabled:"disabled"},ti=e=>{const t=[];let n="",s=0;for(let i=0;i<e.length;i++){const r=e[i];r==="("?(s++,n+=r):r===")"?(s--,n+=r):r===" "&&s===0?n&&(t.push(n),n=""):n+=r}for(n&&t.push(n);t.length<4;)t.push("0");return[t[0]||"0",t[1]||"0",t[2]||"0",t[3]||"0"]},ni=({currentValueOfCssVar:e="0 0 0 0",value:t,direction:n})=>{const[s,i,r,o]=ti(e),a={top:s,right:i,bottom:r,left:o};return n==="top"&&(a.top=t),n==="right"&&(a.right=t),n==="bottom"&&(a.bottom=t),n==="left"&&(a.left=t),n==="all"&&(a.top=t,a.right=t,a.bottom=t,a.left=t),n==="x"&&(a.left=t,a.right=t),n==="y"&&(a.top=t,a.bottom=t),n==="side-top"&&(a.top=t,a.right=t),n==="side-bottom"&&(a.bottom=t,a.left=t),n==="side-left"&&(a.top=t,a.left=t),n==="side-right"&&(a.right=t,a.bottom=t),Object.values(a).join(" ")},si=({currentValueOfCssVar:e="visible visible",value:t,axis:n})=>{const[s,i]=e.split(" ");return n==="x"?`${t} ${i}`:n==="y"?`${s} ${t}`:`${t} ${t}`},Et=(e,t)=>{if(typeof t=="string"&&t.startsWith("-")){const n=t.slice(1);return`calc(-1 * ${e.value.replace("VARIABLE",n)})`}return e.value.replace("VARIABLE",t)},Bt=(e,t,n,s)=>{const i=s??t.cssVar;if(t.direction){const r=e==null?void 0:e[i],o=ni({currentValueOfCssVar:r,value:n,direction:t.direction});return{...e,[i]:o}}if(t.axis){const r=e==null?void 0:e[i],o=si({currentValueOfCssVar:r,value:n,axis:t.axis});return{...e,[i]:o}}return{...e,[i]:n}},ii=(e,t)=>{const n=ei[t],s=e.replace(/^--/,"");return`--${n}--${s}`},ri=e=>{const{cssVars:t}=e;if(!(e!=null&&e.props)||Object.keys(e.props).length===0)return{styleProp:{},otherProps:{},interactive:!1};const{style:n={},...s}=e.props;let i=n;const r={};let o=!1;return Object.keys(s).forEach(a=>{const u=a;if(Qs.includes(a)&&typeof s[u]=="object"&&s[u]!==null){const h=a,p=s[u],b={};if(Object.keys(p).forEach(y=>{const g=p[y];if(!g)return;const x=y,v=t==null?void 0:t[x];if(!v){b[y]=g;return}const S=Et(v,g),T=ii(v.cssVar,h);i=Bt(i,v,S,T)}),Object.keys(b).length>0){const y=r[a]||{};Object.assign(r,{[a]:{...y,...b}})}Object.keys(p).length>Object.keys(b).length&&(o=!0);return}const l=u,c=t==null?void 0:t[l];if(!c){Object.assign(r,{[u]:s[u]});return}const f=s==null?void 0:s[u];if(!f){Object.assign(i,{[u]:s[u]});return}const d=Et(c,f);i=Bt(i,c,d)}),{styleProp:i,otherProps:r,interactive:o}},oi=e=>w.useMemo(()=>ri(e),[e]),ai=w.createContext({});function ui(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const vn=typeof window<"u",ci=vn?w.useLayoutEffect:w.useEffect,wn=w.createContext(null);function li(e,t){e.indexOf(t)===-1&&e.push(t)}function fi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const _=(e,t,n)=>n>t?t:n<e?e:n;function ze(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let pe=()=>{},Y=()=>{};var bn;typeof process<"u"&&((bn=process.env)==null?void 0:bn.NODE_ENV)!=="production"&&(pe=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(ze(t,n))},Y=(e,t,n)=>{if(!e)throw new Error(ze(t,n))});const K={},Tn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function di(e){return typeof e=="object"&&e!==null}const xn=e=>/^0[^.\s]+$/u.test(e);function Vn(e){let t;return()=>(t===void 0&&(t=e()),t)}const se=e=>e,hi=(e,t)=>n=>t(e(n)),ke=(...e)=>e.reduce(hi),Sn=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s};class An{constructor(){this.subscriptions=[]}add(t){return li(this.subscriptions,t),()=>fi(this.subscriptions,t)}notify(t,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const j=e=>e*1e3,B=e=>e/1e3;function Mn(e,t){return t?e*(1e3/t):0}const Lt=new Set;function Cn(e,t,n){e||Lt.has(t)||(console.warn(ze(t,n)),Lt.add(t))}const Pn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,pi=1e-7,mi=12;function gi(e,t,n,s,i){let r,o,a=0;do o=t+(n-t)/2,r=Pn(o,s,i)-e,r>0?n=o:t=o;while(Math.abs(r)>pi&&++a<mi);return o}function me(e,t,n,s){if(e===t&&n===s)return se;const i=r=>gi(r,0,1,e,n);return r=>r===0||r===1?r:Pn(i(r),t,s)}const Rn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Fn=e=>t=>1-e(1-t),Dn=me(.33,1.53,.69,.99),ft=Fn(Dn),kn=Rn(ft),On=e=>(e*=2)<1?.5*ft(e):.5*(2-Math.pow(2,-10*(e-1))),dt=e=>1-Math.sin(Math.acos(e)),yi=Fn(dt),In=Rn(dt),bi=me(.42,0,1,1),vi=me(0,0,.58,1),En=me(.42,0,.58,1),wi=e=>Array.isArray(e)&&typeof e[0]!="number",Bn=e=>Array.isArray(e)&&typeof e[0]=="number",Nt={linear:se,easeIn:bi,easeInOut:En,easeOut:vi,circIn:dt,circInOut:In,circOut:yi,backIn:ft,backInOut:kn,backOut:Dn,anticipate:On},Ti=e=>typeof e=="string",jt=e=>{if(Bn(e)){Y(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,s,i]=e;return me(t,n,s,i)}else if(Ti(e))return Y(Nt[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Nt[e];return e},ve=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function xi(e,t){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(c){o.has(c)&&(l.schedule(c),e()),c(a)}const l={schedule:(c,f=!1,d=!1)=>{const p=d&&i?n:s;return f&&o.add(c),p.has(c)||p.add(c),c},cancel:c=>{s.delete(c),o.delete(c)},process:c=>{if(a=c,i){r=!0;return}i=!0,[n,s]=[s,n],n.forEach(u),n.clear(),i=!1,r&&(r=!1,l.process(c))}};return l}const Vi=40;function Ln(e,t){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=ve.reduce((v,S)=>(v[S]=xi(r),v),{}),{setup:a,read:u,resolveKeyframes:l,preUpdate:c,update:f,preRender:d,render:h,postRender:p}=o,b=()=>{const v=K.useManualTiming?i.timestamp:performance.now();n=!1,K.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(v-i.timestamp,Vi),1)),i.timestamp=v,i.isProcessing=!0,a.process(i),u.process(i),l.process(i),c.process(i),f.process(i),d.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(s=!1,e(b))},y=()=>{n=!0,s=!0,i.isProcessing||e(b)};return{schedule:ve.reduce((v,S)=>{const T=o[S];return v[S]=(A,P=!1,V=!1)=>(n||y(),T.schedule(A,P,V)),v},{}),cancel:v=>{for(let S=0;S<ve.length;S++)o[ve[S]].cancel(v)},state:i,steps:o}}const{schedule:N,cancel:He,state:Ae}=Ln(typeof requestAnimationFrame<"u"?requestAnimationFrame:se,!0);let xe;function Si(){xe=void 0}const O={now:()=>(xe===void 0&&O.set(Ae.isProcessing||K.useManualTiming?Ae.timestamp:performance.now()),xe),set:e=>{xe=e,queueMicrotask(Si)}},Nn=e=>t=>typeof t=="string"&&t.startsWith(e),jn=Nn("--"),Ai=Nn("var(--"),ht=e=>Ai(e)?Mi.test(e.split("/*")[0].trim()):!1,Mi=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Kt(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const ie={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},fe={...ie,transform:e=>_(0,1,e)},we={...ie,default:1},le=e=>Math.round(e*1e5)/1e5,pt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ci(e){return e==null}const Pi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mt=(e,t)=>n=>!!(typeof n=="string"&&Pi.test(n)&&n.startsWith(e)||t&&!Ci(n)&&Object.prototype.hasOwnProperty.call(n,t)),Kn=(e,t,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(pt);return{[e]:parseFloat(i),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Ri=e=>_(0,255,e),Le={...ie,transform:e=>Math.round(Ri(e))},H={test:mt("rgb","red"),parse:Kn("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Le.transform(e)+", "+Le.transform(t)+", "+Le.transform(n)+", "+le(fe.transform(s))+")"};function Fi(e){let t="",n="",s="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,s+=s,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Ue={test:mt("#"),parse:Fi,transform:H.transform},ge=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$=ge("deg"),ee=ge("%"),m=ge("px"),Di=ge("vh"),ki=ge("vw"),$t={...ee,parse:e=>ee.parse(e)/100,transform:e=>ee.transform(e*100)},J={test:mt("hsl","hue"),parse:Kn("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+ee.transform(le(t))+", "+ee.transform(le(n))+", "+le(fe.transform(s))+")"},C={test:e=>H.test(e)||Ue.test(e)||J.test(e),parse:e=>H.test(e)?H.parse(e):J.test(e)?J.parse(e):Ue.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?H.transform(e):J.transform(e),getAnimatableNone:e=>{const t=C.parse(e);return t.alpha=0,C.transform(t)}},Oi=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ii(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(pt))==null?void 0:t.length)||0)+(((n=e.match(Oi))==null?void 0:n.length)||0)>0}const $n="number",Wn="color",Ei="var",Bi="var(",Wt="${}",Li=/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 de(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=t.replace(Li,u=>(C.test(u)?(s.color.push(r),i.push(Wn),n.push(C.parse(u))):u.startsWith(Bi)?(s.var.push(r),i.push(Ei),n.push(u)):(s.number.push(r),i.push($n),n.push(parseFloat(u))),++r,Wt)).split(Wt);return{values:n,split:a,indexes:s,types:i}}function _n(e){return de(e).values}function Gn(e){const{split:t,types:n}=de(e),s=t.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=t[o],i[o]!==void 0){const a=n[o];a===$n?r+=le(i[o]):a===Wn?r+=C.transform(i[o]):r+=i[o]}return r}}const Ni=e=>typeof e=="number"?0:C.test(e)?C.getAnimatableNone(e):e;function ji(e){const t=_n(e);return Gn(e)(t.map(Ni))}const L={test:Ii,parse:_n,createTransformer:Gn,getAnimatableNone:ji};function Ne(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 Ki({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,r=0,o=0;if(!t)i=r=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;i=Ne(u,a,e+1/3),r=Ne(u,a,e),o=Ne(u,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Me(e,t){return n=>n>0?t:e}const ye=(e,t,n)=>e+(t-e)*n,je=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},$i=[Ue,H,J],Wi=e=>$i.find(t=>t.test(e));function _t(e){const t=Wi(e);if(pe(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===J&&(n=Ki(n)),n}const Gt=(e,t)=>{const n=_t(e),s=_t(t);if(!n||!s)return Me(e,t);const i={...n};return r=>(i.red=je(n.red,s.red,r),i.green=je(n.green,s.green,r),i.blue=je(n.blue,s.blue,r),i.alpha=ye(n.alpha,s.alpha,r),H.transform(i))},qe=new Set(["none","hidden"]);function _i(e,t){return qe.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Gi(e,t){return n=>ye(e,t,n)}function gt(e){return typeof e=="number"?Gi:typeof e=="string"?ht(e)?Me:C.test(e)?Gt:Ui:Array.isArray(e)?zn:typeof e=="object"?C.test(e)?Gt:zi:Me}function zn(e,t){const n=[...e],s=n.length,i=e.map((r,o)=>gt(r)(r,t[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function zi(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=gt(e[i])(e[i],t[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Hi(e,t){const n=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const r=t.types[i],o=e.indexes[r][s[r]],a=e.values[o]??0;n[i]=a,s[r]++}return n}const Ui=(e,t)=>{const n=L.createTransformer(t),s=de(e),i=de(t);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?qe.has(e)&&!i.values.length||qe.has(t)&&!s.values.length?_i(e,t):ke(zn(Hi(s,i),i.values),n):(pe(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Me(e,t))};function Hn(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ye(e,t,n):gt(e)(e,t)}const qi=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>N.update(t,n),stop:()=>He(t),now:()=>Ae.isProcessing?Ae.timestamp:O.now()}},Un=(e,t,n=10)=>{let s="";const i=Math.max(Math.round(t/n),2);for(let r=0;r<i;r++)s+=Math.round(e(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Ce=2e4;function yt(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Ce;)t+=n,s=e.next(t);return t>=Ce?1/0:t}function Yi(e,t=100,n){const s=n({...e,keyframes:[0,t]}),i=Math.min(yt(s),Ce);return{type:"keyframes",ease:r=>s.next(i*r).value/t,duration:B(i)}}const Xi=5;function qn(e,t,n){const s=Math.max(t-Xi,0);return Mn(n-e(s),t-s)}const M={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},Ke=.001;function Zi({duration:e=M.duration,bounce:t=M.bounce,velocity:n=M.velocity,mass:s=M.mass}){let i,r;pe(e<=j(M.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=_(M.minDamping,M.maxDamping,o),e=_(M.minDuration,M.maxDuration,B(e)),o<1?(i=l=>{const c=l*o,f=c*e,d=c-n,h=Ye(l,o),p=Math.exp(-f);return Ke-d/h*p},r=l=>{const f=l*o*e,d=f*n+n,h=Math.pow(o,2)*Math.pow(l,2)*e,p=Math.exp(-f),b=Ye(Math.pow(l,2),o);return(-i(l)+Ke>0?-1:1)*((d-h)*p)/b}):(i=l=>{const c=Math.exp(-l*e),f=(l-n)*e+1;return-Ke+c*f},r=l=>{const c=Math.exp(-l*e),f=(n-l)*(e*e);return c*f});const a=5/e,u=Qi(i,r,a);if(e=j(e),isNaN(u))return{stiffness:M.stiffness,damping:M.damping,duration:e};{const l=Math.pow(u,2)*s;return{stiffness:l,damping:o*2*Math.sqrt(s*l),duration:e}}}const Ji=12;function Qi(e,t,n){let s=n;for(let i=1;i<Ji;i++)s=s-e(s)/t(s);return s}function Ye(e,t){return e*Math.sqrt(1-t*t)}const er=["duration","bounce"],tr=["stiffness","damping","mass"];function zt(e,t){return t.some(n=>e[n]!==void 0)}function nr(e){let t={velocity:M.velocity,stiffness:M.stiffness,damping:M.damping,mass:M.mass,isResolvedFromDuration:!1,...e};if(!zt(e,tr)&&zt(e,er))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*_(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:M.mass,stiffness:i,damping:r}}else{const n=Zi({...e,velocity:0});t={...t,...n,mass:M.mass},t.isResolvedFromDuration=!0}return t}function Pe(e=M.visualDuration,t=M.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:u,damping:l,mass:c,duration:f,velocity:d,isResolvedFromDuration:h}=nr({...n,velocity:-B(n.velocity||0)}),p=d||0,b=l/(2*Math.sqrt(u*c)),y=o-r,g=B(Math.sqrt(u/c)),x=Math.abs(y)<5;s||(s=x?M.restSpeed.granular:M.restSpeed.default),i||(i=x?M.restDelta.granular:M.restDelta.default);let v;if(b<1){const T=Ye(g,b);v=A=>{const P=Math.exp(-b*g*A);return o-P*((p+b*g*y)/T*Math.sin(T*A)+y*Math.cos(T*A))}}else if(b===1)v=T=>o-Math.exp(-g*T)*(y+(p+g*y)*T);else{const T=g*Math.sqrt(b*b-1);v=A=>{const P=Math.exp(-b*g*A),V=Math.min(T*A,300);return o-P*((p+b*g*y)*Math.sinh(V)+T*y*Math.cosh(V))/T}}const S={calculatedDuration:h&&f||null,next:T=>{const A=v(T);if(h)a.done=T>=f;else{let P=T===0?p:0;b<1&&(P=T===0?j(p):qn(v,T,A));const V=Math.abs(P)<=s,k=Math.abs(o-A)<=i;a.done=V&&k}return a.value=a.done?o:A,a},toString:()=>{const T=Math.min(yt(S),Ce),A=Un(P=>S.next(T*P).value,T,30);return T+"ms "+A},toTransition:()=>{}};return S}Pe.applyToOptions=e=>{const t=Yi(e,100,Pe);return e.ease=t.ease,e.duration=j(t.duration),e.type="keyframes",e};function Xe({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:u,restDelta:l=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=V=>a!==void 0&&V<a||u!==void 0&&V>u,p=V=>a===void 0?u:u===void 0||Math.abs(a-V)<Math.abs(u-V)?a:u;let b=n*t;const y=f+b,g=o===void 0?y:o(y);g!==y&&(b=g-f);const x=V=>-b*Math.exp(-V/s),v=V=>g+x(V),S=V=>{const k=x(V),I=v(V);d.done=Math.abs(k)<=l,d.value=d.done?g:I};let T,A;const P=V=>{h(d.value)&&(T=V,A=Pe({keyframes:[d.value,p(d.value)],velocity:qn(v,V,d.value),damping:i,stiffness:r,restDelta:l,restSpeed:c}))};return P(0),{calculatedDuration:null,next:V=>{let k=!1;return!A&&T===void 0&&(k=!0,S(V),P(V)),T!==void 0&&V>=T?A.next(V-T):(!k&&S(V),d)}}}function sr(e,t,n){const s=[],i=n||K.mix||Hn,r=e.length-1;for(let o=0;o<r;o++){let a=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||se:t;a=ke(u,a)}s.push(a)}return s}function ir(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const r=e.length;if(Y(r===t.length,"Both input and output ranges must be the same length","range-length"),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=sr(t,s,i),u=a.length,l=c=>{if(o&&c<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=Sn(e[f],e[f+1],c);return a[f](d)};return n?c=>l(_(e[0],e[r-1],c)):l}function rr(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=Sn(0,t,s);e.push(ye(n,1,i))}}function or(e){const t=[0];return rr(t,e.length-1),t}function ar(e,t){return e.map(n=>n*t)}function ur(e,t){return e.map(()=>t||En).splice(0,e.length-1)}function Q({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=wi(s)?s.map(jt):jt(s),r={done:!1,value:t[0]},o=ar(n&&n.length===t.length?n:or(t),e),a=ir(o,t,{ease:Array.isArray(i)?i:ur(t,i)});return{calculatedDuration:e,next:u=>(r.value=a(u),r.done=u>=e,r)}}const cr=e=>e!==null;function bt(e,{repeat:t,repeatType:n="loop"},s,i=1){const r=e.filter(cr),a=i<0||t&&n!=="loop"&&t%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const lr={decay:Xe,inertia:Xe,tween:Q,keyframes:Q,spring:Pe};function Yn(e){typeof e.type=="string"&&(e.type=lr[e.type])}class vt{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const fr=e=>e/100;class wt extends vt{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,i;const{motionValue:n}=this.options;n&&n.updatedAt!==O.now()&&this.tick(O.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(s=this.options).onStop)==null||i.call(s))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Yn(t);const{type:n=Q,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=t;let{keyframes:a}=t;const u=n||Q;process.env.NODE_ENV!=="production"&&u!==Q&&Y(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),u!==Q&&typeof a[0]!="number"&&(this.mixKeyframes=ke(fr,Hn(a[0],a[1])),a=[0,100]);const l=u({...t,keyframes:a});r==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...a].reverse(),velocity:-o})),l.calculatedDuration===null&&(l.calculatedDuration=yt(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return s.next(0);const{delay:l=0,keyframes:c,repeat:f,repeatType:d,repeatDelay:h,type:p,onUpdate:b,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,S=s;if(f){const V=Math.min(this.currentTime,i)/a;let k=Math.floor(V),I=V%1;!I&&V>=1&&(I=1),I===1&&k--,k=Math.min(k,f+1),!!(k%2)&&(d==="reverse"?(I=1-I,h&&(I-=h/a)):d==="mirror"&&(S=o)),v=_(0,1,I)*a}const T=x?{done:!1,value:c[0]}:S.next(v);r&&(T.value=r(T.value));let{done:A}=T;!x&&u!==null&&(A=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return P&&p!==Xe&&(T.value=bt(c,this.options,y,this.speed)),b&&b(T.value),P&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return B(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+B(t)}get time(){return B(this.currentTime)}set time(t){var n;t=j(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(O.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=B(this.currentTime))}play(){var i,r;if(this.isStopped)return;const{driver:t=qi,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(r=(i=this.options).onPlay)==null||r.call(i);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(O.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function dr(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const U=e=>e*180/Math.PI,Ze=e=>{const t=U(Math.atan2(e[1],e[0]));return Je(t)},hr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ze,rotateZ:Ze,skewX:e=>U(Math.atan(e[1])),skewY:e=>U(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Je=e=>(e=e%360,e<0&&(e+=360),e),Ht=Ze,Ut=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),qt=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),pr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ut,scaleY:qt,scale:e=>(Ut(e)+qt(e))/2,rotateX:e=>Je(U(Math.atan2(e[6],e[5]))),rotateY:e=>Je(U(Math.atan2(-e[2],e[0]))),rotateZ:Ht,rotate:Ht,skewX:e=>U(Math.atan(e[4])),skewY:e=>U(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Qe(e){return e.includes("scale")?1:0}function et(e,t){if(!e||e==="none")return Qe(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=pr,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=hr,i=a}if(!i)return Qe(t);const r=s[t],o=i[1].split(",").map(gr);return typeof r=="function"?r(o):o[r]}const mr=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return et(n,t)};function gr(e){return parseFloat(e.trim())}const re=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oe=new Set(re),Yt=e=>e===ie||e===m,yr=new Set(["x","y","z"]),br=re.filter(e=>!yr.has(e));function vr(e){const t=[];return br.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const W={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:(e,{transform:t})=>et(t,"x"),y:(e,{transform:t})=>et(t,"y")};W.translateX=W.x;W.translateY=W.y;const q=new Set;let tt=!1,nt=!1,st=!1;function Xn(){if(nt){const e=Array.from(q).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const i=vr(s);i.length&&(n.set(s,i),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))==null||a.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}nt=!1,tt=!1,q.forEach(e=>e.complete(st)),q.clear()}function Zn(){q.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(nt=!0)})}function wr(){st=!0,Zn(),Xn(),st=!1}class Tt{constructor(t,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(q.add(this),tt||(tt=!0,N.read(Zn),N.resolveKeyframes(Xn))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:i}=this;if(t[0]===null){const r=i==null?void 0:i.get(),o=t[t.length-1];if(r!==void 0)t[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&r===void 0&&i.set(t[0])}dr(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),q.delete(this)}cancel(){this.state==="scheduled"&&(q.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Tr=e=>e.startsWith("--");function xr(e,t,n){Tr(t)?e.style.setProperty(t,n):e.style[t]=n}const Vr={};function Jn(e,t){const n=Vn(e);return()=>Vr[t]??n()}const Sr=Jn(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Qn=Jn(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ce=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,Xt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ce([0,.65,.55,1]),circOut:ce([.55,0,1,.45]),backIn:ce([.31,.01,.66,-.59]),backOut:ce([.33,1.53,.69,.99])};function es(e,t){if(e)return typeof e=="function"?Qn()?Un(e,t):"ease-out":Bn(e)?ce(e):Array.isArray(e)?e.map(n=>es(n,t)||Xt.easeOut):Xt[e]}function Ar(e,t,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:u}={},l=void 0){const c={[t]:n};u&&(c.offset=u);const f=es(a,i);Array.isArray(f)&&(c.easing=f);const d={delay:s,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return l&&(d.pseudoElement=l),e.animate(c,d)}function ts(e){return typeof e=="function"&&"applyToOptions"in e}function Mr({type:e,...t}){return ts(e)&&Qn()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class ns extends vt{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:u}=t;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=t,Y(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=Mr(t);this.animation=Ar(n,s,i,l,r),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const c=bt(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):xr(n,s,c),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,s,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(s=this.animation).commitStyles)==null||i.call(s))}get duration(){var n,s;const t=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return B(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+B(t)}get time(){return B(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=j(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Sr()?(this.animation.timeline=t,se):n(this)}}const ss={anticipate:On,backInOut:kn,circInOut:In};function Cr(e){return e in ss}function Pr(e){typeof e.ease=="string"&&Cr(e.ease)&&(e.ease=ss[e.ease])}const $e=10;class Rr extends ns{constructor(t){Pr(t),Yn(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new wt({...o,autoplay:!1}),u=Math.max($e,O.now()-this.startTime),l=_(0,$e,u-$e);n.setWithVelocity(a.sample(Math.max(0,u-l)).value,a.sample(u).value,l),a.stop()}}const Zt=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(L.test(e)||e==="0")&&!e.startsWith("url("));function Fr(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 Dr(e,t,n,s){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],o=Zt(i,t),a=Zt(r,t);return pe(o===a,`You are trying to animate ${t} from "${i}" to "${r}". "${o?r:i}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:Fr(e)||(n==="spring"||ts(n))&&s}function it(e){e.duration=0,e.type="keyframes"}const kr=new Set(["opacity","clipPath","filter","transform"]),Or=Vn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Ir(e){var c;const{motionValue:t,name:n,repeatDelay:s,repeatType:i,damping:r,type:o}=e;if(!(((c=t==null?void 0:t.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=t.owner.getProps();return Or()&&n&&kr.has(n)&&(n!=="transform"||!l)&&!u&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const Er=40;class Br extends vt{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:u,motionValue:l,element:c,...f}){var p;super(),this.stop=()=>{var b,y;this._animation&&(this._animation.stop(),(b=this.stopTimeline)==null||b.call(this)),(y=this.keyframeResolver)==null||y.cancel()},this.createdAt=O.now();const d={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:u,motionValue:l,element:c,...f},h=(c==null?void 0:c.KeyframeResolver)||Tt;this.keyframeResolver=new h(a,(b,y,g)=>this.onKeyframesResolved(b,y,d,!g),u,l,c),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(t,n,s,i){var y,g;this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:u,isHandoff:l,onUpdate:c}=s;this.resolvedAt=O.now(),Dr(t,r,o,a)||((K.instantAnimations||!u)&&(c==null||c(bt(t,s,n))),t[0]=t[t.length-1],it(s),s.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Er?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},h=!l&&Ir(d),p=(g=(y=d.motionValue)==null?void 0:y.owner)==null?void 0:g.current,b=h?new Rr({...d,element:p}):new wt(d);b.finished.then(()=>{this.notifyFinished()}).catch(se),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),wr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function is(e,t,n,s=0,i=1){const r=Array.from(e).sort((l,c)=>l.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}const Lr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Nr(e){const t=Lr.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}const jr=4;function rs(e,t,n=1){Y(n<=jr,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[s,i]=Nr(e);if(!s)return;const r=window.getComputedStyle(t).getPropertyValue(s);if(r){const o=r.trim();return Tn(o)?parseFloat(o):o}return ht(i)?rs(i,t,n+1):i}const Kr={type:"spring",stiffness:500,damping:25,restSpeed:10},$r=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Wr={type:"keyframes",duration:.8},_r={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Gr=(e,{keyframes:t})=>t.length>2?Wr:oe.has(e)?e.startsWith("scale")?$r(t[1]):Kr:_r,zr=e=>e!==null;function Hr(e,{repeat:t,repeatType:n="loop"},s){const i=e.filter(zr),r=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[r]}function os(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...s}=e;return{...t,...s}}return e}function as(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?os(n,e):n}function Ur({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const qr=(e,t,n,s={},i,r)=>o=>{const a=as(s,e)||{},u=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-j(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:i};Ur(a)||Object.assign(c,Gr(e,c)),c.duration&&(c.duration=j(c.duration)),c.repeatDelay&&(c.repeatDelay=j(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(it(c),c.delay===0&&(f=!0)),(K.instantAnimations||K.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(f=!0,it(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!r&&t.get()!==void 0){const d=Hr(c.keyframes,a);if(d!==void 0){N.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new wt(c):new Br(c)};function Jt(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function xt(e,t,n,s){if(typeof t=="function"){const[i,r]=Jt(s);t=t(n!==void 0?n:e.custom,i,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,r]=Jt(s);t=t(n!==void 0?n:e.custom,i,r)}return t}function te(e,t,n){const s=e.getProps();return xt(s,t,n!==void 0?n:s.custom,e)}const us=new Set(["width","height","top","left","right","bottom",...re]),Qt=30,Yr=e=>!isNaN(parseFloat(e));class Xr{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var r;const i=O.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((r=this.events.change)==null||r.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=O.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Yr(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Cn(!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 An);const s=this.events[t].add(n);return t==="change"?()=>{s(),N.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=O.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Qt)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Qt);return Mn(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Re(e,t){return new Xr(e,t)}const rt=e=>Array.isArray(e);function Zr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Re(n))}function Jr(e){return rt(e)?e[e.length-1]||0:e}function Qr(e,t){const n=te(e,t);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Jr(r[o]);Zr(e,o,a)}}const D=e=>!!(e&&e.getVelocity);function eo(e){return!!(D(e)&&e.add)}function to(e,t){const n=e.getValue("willChange");if(eo(n))return n.add(t);if(!n&&K.WillChange){const s=new K.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function Vt(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const no="framerAppearId",cs="data-"+Vt(no);function so(e){return e.props[cs]}function io({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function ls(e,t,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=t;const u=e.getDefaultTransition();r=r?os(r,u):u;const l=r==null?void 0:r.reduceMotion;s&&(r=s);const c=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const d in a){const h=e.getValue(d,e.latestValues[d]??null),p=a[d];if(p===void 0||f&&io(f,d))continue;const b={delay:n,...as(r||{},d)},y=h.get();if(y!==void 0&&!h.isAnimating&&!Array.isArray(p)&&p===y&&!b.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const S=so(e);if(S){const T=window.MotionHandoffAnimation(S,d,N);T!==null&&(b.startTime=T,g=!0)}}to(e,d);const x=l??e.shouldReduceMotion;h.start(qr(d,h,p,x&&us.has(d)?{type:!1}:b,e,g));const v=h.animation;v&&c.push(v)}if(o){const d=()=>N.update(()=>{o&&Qr(e,o)});c.length?Promise.all(c).then(d):d()}return c}function ot(e,t,n={}){var u;const s=te(e,t,n.type==="exit"?(u=e.presenceContext)==null?void 0:u.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(ls(e,s,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=i;return ro(e,t,l,c,f,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[r,o]:[o,r];return l().then(()=>c())}else return Promise.all([r(),o(n.delay)])}function ro(e,t,n=0,s=0,i=0,r=1,o){const a=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),a.push(ot(u,t,{...o,delay:n+(typeof s=="function"?0:s)+is(e.variantChildren,u,s,i,r)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(a)}function oo(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const i=t.map(r=>ot(e,r,n));s=Promise.all(i)}else if(typeof t=="string")s=ot(e,t,n);else{const i=typeof t=="function"?te(e,t,n.custom):t;s=Promise.all(ls(e,i,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const ao={test:e=>e==="auto",parse:e=>e},fs=e=>t=>t.test(e),ds=[ie,m,ee,$,ki,Di,ao],en=e=>ds.find(fs(e));function uo(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||xn(e):!0}const co=new Set(["brightness","contrast","saturate","opacity"]);function lo(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(pt)||[];if(!s)return e;const i=n.replace(s,"");let r=co.has(t)?1:0;return s!==n&&(r*=100),t+"("+r+i+")"}const fo=/\b([a-z-]*)\(.*?\)/gu,at={...L,getAnimatableNone:e=>{const t=e.match(fo);return t?t.map(lo).join(" "):e}},ut={...L,getAnimatableNone:e=>{const t=L.parse(e);return L.createTransformer(e)(t.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},tn={...ie,transform:Math.round},ho={rotate:$,rotateX:$,rotateY:$,rotateZ:$,scale:we,scaleX:we,scaleY:we,scaleZ:we,skew:$,skewX:$,skewY:$,distance:m,translateX:m,translateY:m,translateZ:m,x:m,y:m,z:m,perspective:m,transformPerspective:m,opacity:fe,originX:$t,originY:$t,originZ:m},St={borderWidth:m,borderTopWidth:m,borderRightWidth:m,borderBottomWidth:m,borderLeftWidth:m,borderRadius:m,borderTopLeftRadius:m,borderTopRightRadius:m,borderBottomRightRadius:m,borderBottomLeftRadius:m,width:m,maxWidth:m,height:m,maxHeight:m,top:m,right:m,bottom:m,left:m,inset:m,insetBlock:m,insetBlockStart:m,insetBlockEnd:m,insetInline:m,insetInlineStart:m,insetInlineEnd:m,padding:m,paddingTop:m,paddingRight:m,paddingBottom:m,paddingLeft:m,paddingBlock:m,paddingBlockStart:m,paddingBlockEnd:m,paddingInline:m,paddingInlineStart:m,paddingInlineEnd:m,margin:m,marginTop:m,marginRight:m,marginBottom:m,marginLeft:m,marginBlock:m,marginBlockStart:m,marginBlockEnd:m,marginInline:m,marginInlineStart:m,marginInlineEnd:m,fontSize:m,backgroundPositionX:m,backgroundPositionY:m,...ho,zIndex:tn,fillOpacity:fe,strokeOpacity:fe,numOctaves:tn},po={...St,color:C,backgroundColor:C,outlineColor:C,fill:C,stroke:C,borderColor:C,borderTopColor:C,borderRightColor:C,borderBottomColor:C,borderLeftColor:C,filter:at,WebkitFilter:at,mask:ut,WebkitMask:ut},hs=e=>po[e],mo=new Set([at,ut]);function ps(e,t){let n=hs(e);return mo.has(n)||(n=L),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const go=new Set(["auto","none","0"]);function yo(e,t,n){let s=0,i;for(;s<e.length&&!i;){const r=e[s];typeof r=="string"&&!go.has(r)&&de(r).values.length&&(i=e[s]),s++}if(i&&n)for(const r of t)e[r]=ps(n,i)}class bo extends Tt{constructor(t,n,s,i,r){super(t,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let f=t[c];if(typeof f=="string"&&(f=f.trim(),ht(f))){const d=rs(f,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!us.has(s)||t.length!==2)return;const[i,r]=t,o=en(i),a=en(r),u=Kt(i),l=Kt(r);if(u!==l&&W[s]){this.needsMeasurement=!0;return}if(o!==a)if(Yt(o)&&Yt(a))for(let c=0;c<t.length;c++){const f=t[c];typeof f=="string"&&(t[c]=parseFloat(f))}else W[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)(t[i]===null||uo(t[i]))&&s.push(i);s.length&&yo(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=W[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(s,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=W[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([u,l])=>{t.getValue(u).set(l)}),this.resolveNoneKeyframes()}}const vo=new Set(["opacity","clipPath","filter","transform"]);function wo(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const i=(n==null?void 0:n[e])??s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(s=>s!=null)}const ms=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function To(e){return di(e)&&"offsetHeight"in e}const{schedule:xo}=Ln(queueMicrotask,!1),Vo={y:!1};function So(){return Vo.y}function gs(e,t){const n=wo(e),s=new AbortController,i={passive:!0,...t,signal:s.signal};return[n,i,()=>s.abort()]}function Ao(e){return!(e.pointerType==="touch"||So())}function Mo(e,t,n={}){const[s,i,r]=gs(e,n);return s.forEach(o=>{let a=!1,u=!1,l;const c=()=>{o.removeEventListener("pointerleave",p)},f=y=>{l&&(l(y),l=void 0),c()},d=y=>{a=!1,window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),u&&(u=!1,f(y))},h=()=>{a=!0,window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",d,i)},p=y=>{if(y.pointerType!=="touch"){if(a){u=!0;return}f(y)}},b=y=>{if(!Ao(y))return;u=!1;const g=t(o,y);typeof g=="function"&&(l=g,o.addEventListener("pointerleave",p,i))};o.addEventListener("pointerenter",b,i),o.addEventListener("pointerdown",h,i)}),r}const ys=(e,t)=>t?e===t?!0:ys(e,t.parentElement):!1,Co=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Po=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ro(e){return Po.has(e.tagName)||e.isContentEditable===!0}const Ve=new WeakSet;function nn(e){return t=>{t.key==="Enter"&&e(t)}}function We(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Fo=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=nn(()=>{if(Ve.has(n))return;We(n,"down");const i=nn(()=>{We(n,"up")}),r=()=>We(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",r,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function sn(e){return Co(e)&&!0}const rn=new WeakSet;function Do(e,t,n={}){const[s,i,r]=gs(e,n),o=a=>{const u=a.currentTarget;if(!sn(a)||rn.has(a))return;Ve.add(u),n.stopPropagation&&rn.add(a);const l=t(u,a),c=(h,p)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),Ve.has(u)&&Ve.delete(u),sn(h)&&typeof l=="function"&&l(h,{success:p})},f=h=>{c(h,u===window||u===document||n.useGlobalTarget||ys(u,h.target))},d=h=>{c(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),To(a)&&(a.addEventListener("focus",l=>Fo(l,i)),!Ro(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}const ko=[...ds,C,L],Oo=e=>ko.find(fs(e)),on=()=>({min:0,max:0}),bs=()=>({x:on(),y:on()}),Io=new WeakMap;function Oe(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function he(e){return typeof e=="string"||Array.isArray(e)}const At=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mt=["initial",...At];function Ie(e){return Oe(e.animate)||Mt.some(t=>he(e[t]))}function vs(e){return!!(Ie(e)||e.variants)}function Eo(e,t,n){for(const s in t){const i=t[s],r=n[s];if(D(i))e.addValue(s,i);else if(D(r))e.addValue(s,Re(i,{owner:e}));else if(r!==i)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(s);e.addValue(s,Re(o!==void 0?o:i,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const ct={current:null},ws={current:!1},Bo=typeof window<"u";function Lo(){if(ws.current=!0,!!Bo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ct.current=e.matches;e.addEventListener("change",t),t()}else ct.current=!1}const an=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Fe={};function Ts(e){Fe=e}function No(){return Fe}class jo{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Tt,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=O.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,N.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Ie(n),this.isVariantNode=vs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const p=d[h];l[h]!==void 0&&D(p)&&p.set(l[h])}}mount(t){var n,s;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,Io.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((i,r)=>this.bindToMotionValue(r,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ws.current||Lo(),this.shouldReduceMotion=ct.current),process.env.NODE_ENV!=="production"&&Cn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),He(this.notifyUpdate),He(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const s=this.features[n];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&vo.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:u,ease:l,duration:c}=n.accelerate,f=new ns({element:this.current,name:t,keyframes:a,times:u,ease:l,duration:j(c)}),d=o(f);this.valueSubscriptions.set(t,()=>{d(),f.cancel()});return}const s=oe.has(t);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&N.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),r&&r(),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 Fe){const n=Fe[t];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[t]&&i&&s(this.props)&&(this.features[t]=new i(this)),this.features[t]){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):bs()}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 s=0;s<an.length;s++){const i=an[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=t[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Eo(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&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 s=this.values.get(t);return s===void 0&&n!==void 0&&(s=Re(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(Tn(s)||xn(s))?s=parseFloat(s):!Oo(s)&&L.test(n)&&(s=ps(t,n)),this.setBaseTarget(t,D(s)?s.get():s)),D(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var r;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=xt(this.props,n,(r=this.presenceContext)==null?void 0:r.custom);o&&(s=o[t])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!D(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 An),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){xo.render(this.render)}}class xs extends jo{constructor(){super(...arguments),this.KeyframeResolver=bo}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const s=t.style;return s?s[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;D(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class ae{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Ko({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function $o(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Wo(e,t){return Ko($o(e.getBoundingClientRect(),t))}const _o={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Go=re.length;function zo(e,t,n){let s="",i=!0;for(let r=0;r<Go;r++){const o=re[r],a=e[o];if(a===void 0)continue;let u=!0;if(typeof a=="number")u=a===(o.startsWith("scale")?1:0);else{const l=parseFloat(a);u=o.startsWith("scale")?l===1:l===0}if(!u||n){const l=ms(a,St[o]);if(!u){i=!1;const c=_o[o]||o;s+=`${c}(${l}) `}n&&(t[o]=l)}}return s=s.trim(),n?s=n(t,i?"":s):i&&(s="none"),s}function Ct(e,t,n){const{style:s,vars:i,transformOrigin:r}=e;let o=!1,a=!1;for(const u in t){const l=t[u];if(oe.has(u)){o=!0;continue}else if(jn(u)){i[u]=l;continue}else{const c=ms(l,St[u]);u.startsWith("origin")?(a=!0,r[u]=c):s[u]=c}}if(t.transform||(o||n?s.transform=zo(t,e.transform,n):s.transform&&(s.transform="none")),a){const{originX:u="50%",originY:l="50%",originZ:c=0}=r;s.transformOrigin=`${u} ${l} ${c}`}}function Vs(e,{style:t,vars:n},s,i){const r=e.style;let o;for(o in t)r[o]=t[o];i==null||i.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function un(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ue={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(m.test(e))e=parseFloat(e);else return e;const n=un(e,t.target.x),s=un(e,t.target.y);return`${n}% ${s}%`}},Ho={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,i=L.parse(e);if(i.length>5)return s;const r=L.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,u=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=u;const l=ye(a,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),r(i)}},Uo={borderRadius:{...ue,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ue,borderTopRightRadius:ue,borderBottomLeftRadius:ue,borderBottomRightRadius:ue,boxShadow:Ho};function Ss(e,{layout:t,layoutId:n}){return oe.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Uo[e]||e==="opacity")}function Pt(e,t,n){var o;const s=e.style,i=t==null?void 0:t.style,r={};if(!s)return r;for(const a in s)(D(s[a])||i&&D(i[a])||Ss(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(r[a]=s[a]);return r}function qo(e){return window.getComputedStyle(e)}class Yo extends xs{constructor(){super(...arguments),this.type="html",this.renderInstance=Vs}readValueFromInstance(t,n){var s;if(oe.has(n))return(s=this.projection)!=null&&s.isProjecting?Qe(n):mr(t,n);{const i=qo(t),r=(jn(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Wo(t,n)}build(t,n,s){Ct(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return Pt(t,n,s)}}const Xo={offset:"stroke-dashoffset",array:"stroke-dasharray"},Zo={offset:"strokeDashoffset",array:"strokeDasharray"};function Jo(e,t,n=1,s=0,i=!0){e.pathLength=1;const r=i?Xo:Zo;e[r.offset]=`${-s}`,e[r.array]=`${t} ${n}`}const Qo=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function As(e,{attrX:t,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},u,l,c){if(Ct(e,a,l),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete f.transformBox);for(const h of Qo)f[h]!==void 0&&(d[h]=f[h],delete f[h]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),i!==void 0&&Jo(f,i,r,o,!1)}const Ms=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"]),Cs=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ea(e,t,n,s){Vs(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(Ms.has(i)?i:Vt(i),t.attrs[i])}function Ps(e,t,n){const s=Pt(e,t,n);for(const i in e)if(D(e[i])||D(t[i])){const r=re.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=e[i]}return s}class ta extends xs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bs}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(oe.has(n)){const s=hs(n);return s&&s.default||0}return n=Ms.has(n)?n:Vt(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return Ps(t,n,s)}build(t,n,s){As(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,i){ea(t,n,s,i)}mount(t){this.isSVGTag=Cs(t.tagName),super.mount(t)}}const na=Mt.length;function Rs(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Rs(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<na;n++){const s=Mt[n],i=e.props[s];(he(i)||i===!1)&&(t[s]=i)}return t}function Fs(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}const sa=[...At].reverse(),ia=At.length;function ra(e){return t=>Promise.all(t.map(({animation:n,options:s})=>oo(e,n,s)))}function oa(e){let t=ra(e),n=cn(),s=!0;const i=u=>(l,c)=>{var d;const f=te(e,c,u==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:p,...b}=f;l={...l,...b,...p}}return l};function r(u){t=u(e)}function o(u){const{props:l}=e,c=Rs(e.parent)||{},f=[],d=new Set;let h={},p=1/0;for(let y=0;y<ia;y++){const g=sa[y],x=n[g],v=l[g]!==void 0?l[g]:c[g],S=he(v),T=g===u?x.isActive:null;T===!1&&(p=y);let A=v===c[g]&&v!==l[g]&&S;if(A&&s&&e.manuallyAnimateOnMount&&(A=!1),x.protectedKeys={...h},!x.isActive&&T===null||!v&&!x.prevProp||Oe(v)||typeof v=="boolean")continue;if(g==="exit"&&x.isActive&&T!==!0){x.prevResolvedValues&&(h={...h,...x.prevResolvedValues});continue}const P=aa(x.prevProp,v);let V=P||g===u&&x.isActive&&!A&&S||y>p&&S,k=!1;const I=Array.isArray(v)?v:[v];let X=I.reduce(i(g),{});T===!1&&(X={});const{prevResolvedValues:kt={}}=x,Hs={...kt,...X},Ot=F=>{V=!0,d.has(F)&&(k=!0,d.delete(F)),x.needsAnimating[F]=!0;const E=e.getValue(F);E&&(E.liveStyle=!1)};for(const F in Hs){const E=X[F],G=kt[F];if(h.hasOwnProperty(F))continue;let Z=!1;rt(E)&&rt(G)?Z=!Fs(E,G):Z=E!==G,Z?E!=null?Ot(F):d.add(F):E!==void 0&&d.has(F)?Ot(F):x.protectedKeys[F]=!0}x.prevProp=v,x.prevResolvedValues=X,x.isActive&&(h={...h,...X}),s&&e.blockInitialAnimation&&(V=!1);const It=A&&P;V&&(!It||k)&&f.push(...I.map(F=>{const E={type:g};if(typeof F=="string"&&s&&!It&&e.manuallyAnimateOnMount&&e.parent){const{parent:G}=e,Z=te(G,F);if(G.enteringChildren&&Z){const{delayChildren:Us}=Z.transition||{};E.delay=is(G.enteringChildren,e,Us)}}return{animation:F,options:E}}))}if(d.size){const y={};if(typeof l.initial!="boolean"){const g=te(e,Array.isArray(l.initial)?l.initial[0]:l.initial);g&&g.transition&&(y.transition=g.transition)}d.forEach(g=>{const x=e.getBaseTarget(g),v=e.getValue(g);v&&(v.liveStyle=!0),y[g]=x??null}),f.push({animation:y})}let b=!!f.length;return s&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(b=!1),s=!1,b?t(f):Promise.resolve()}function a(u,l){var f;if(n[u].isActive===l)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(d=>{var h;return(h=d.animationState)==null?void 0:h.setActive(u,l)}),n[u].isActive=l;const c=o(u);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=cn()}}}function aa(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Fs(t,e):!1}function z(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function cn(){return{animate:z(!0),whileInView:z(),whileHover:z(),whileTap:z(),whileDrag:z(),whileFocus:z(),exit:z()}}function ln(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function ua(e){return D(e)?e.get():e}const Ds=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Rt=w.createContext({strict:!1}),fn={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"]};let dn=!1;function ca(){if(dn)return;const e={};for(const t in fn)e[t]={isEnabled:n=>fn[t].some(s=>!!n[s])};Ts(e),dn=!0}function ks(){return ca(),No()}function hn(e){const t=ks();for(const n in e)t[n]={...t[n],...e[n]};Ts(t)}function la({children:e,features:t,strict:n=!1}){const[,s]=w.useState(!_e(t)),i=w.useRef(void 0);if(!_e(t)){const{renderer:r,...o}=t;i.current=r,hn(o)}return w.useEffect(()=>{_e(t)&&t().then(({renderer:r,...o})=>{hn(o),i.current=r,s(!0)})},[]),R.jsx(Rt.Provider,{value:{renderer:i.current,strict:n},children:e})}function _e(e){return typeof e=="function"}const fa=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function De(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||fa.has(e)}let Os=e=>!De(e);function da(e){typeof e=="function"&&(Os=t=>t.startsWith("on")?!De(t):e(t))}try{da(require("@emotion/is-prop-valid").default)}catch{}function ha(e,t,n){const s={};for(const i in e)i==="values"&&typeof e.values=="object"||(Os(i)||n===!0&&De(i)||!t&&!De(i)||e.draggable&&i.startsWith("onDrag"))&&(s[i]=e[i]);return s}const Ee=w.createContext({});function pa(e,t){if(Ie(e)){const{initial:n,animate:s}=e;return{initial:n===!1||he(n)?n:void 0,animate:he(s)?s:void 0}}return e.inherit!==!1?t:{}}function ma(e){const{initial:t,animate:n}=pa(e,w.useContext(Ee));return w.useMemo(()=>({initial:t,animate:n}),[pn(t),pn(n)])}function pn(e){return Array.isArray(e)?e.join(" "):e}const Ft=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Is(e,t,n){for(const s in t)!D(t[s])&&!Ss(s,n)&&(e[s]=t[s])}function ga({transformTemplate:e},t){return w.useMemo(()=>{const n=Ft();return Ct(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ya(e,t){const n=e.style||{},s={};return Is(s,n,e),Object.assign(s,ga(e,t)),s}function ba(e,t){const n={},s=ya(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.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=s,n}const Es=()=>({...Ft(),attrs:{}});function va(e,t,n,s){const i=w.useMemo(()=>{const r=Es();return As(r,t,Cs(s),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};Is(r,e.style,e),i.style={...r,...i.style}}return i}const wa=["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 Dt(e){return typeof e!="string"||e.includes("-")?!1:!!(wa.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ta(e,t,n,{latestValues:s},i,r=!1,o){const u=(o??Dt(e)?va:ba)(t,s,i,e),l=ha(t,typeof e=="string",r),c=e!==w.Fragment?{...l,...u,ref:n}:{},{children:f}=t,d=w.useMemo(()=>D(f)?f.get():f,[f]);return w.createElement(e,{...c,children:d})}function xa({scrapeMotionValuesFromProps:e,createRenderState:t},n,s,i){return{latestValues:Va(n,s,i,e),renderState:t()}}function Va(e,t,n,s){const i={},r=s(e,{});for(const d in r)i[d]=ua(r[d]);let{initial:o,animate:a}=e;const u=Ie(e),l=vs(e);t&&l&&!u&&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 f=c?a:o;if(f&&typeof f!="boolean"&&!Oe(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const p=xt(e,d[h]);if(p){const{transitionEnd:b,transition:y,...g}=p;for(const x in g){let v=g[x];if(Array.isArray(v)){const S=c?v.length-1:0;v=v[S]}v!==null&&(i[x]=v)}for(const x in b)i[x]=b[x]}}}return i}const Bs=e=>(t,n)=>{const s=w.useContext(Ee),i=w.useContext(wn),r=()=>xa(e,t,s,i);return n?r():ui(r)},Sa=Bs({scrapeMotionValuesFromProps:Pt,createRenderState:Ft}),Aa=Bs({scrapeMotionValuesFromProps:Ps,createRenderState:Es}),Ma=Symbol.for("motionComponentSymbol");function Ca(e,t,n){const s=w.useRef(n);w.useInsertionEffect(()=>{s.current=n});const i=w.useRef(null);return w.useCallback(r=>{var a;r&&((a=e.onMount)==null||a.call(e,r)),t&&(r?t.mount(r):t.unmount());const o=s.current;if(typeof o=="function")if(r){const u=o(r);typeof u=="function"&&(i.current=u)}else i.current?(i.current(),i.current=null):o(r);else o&&(o.current=r)},[t])}const Pa=w.createContext({});function Ra(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Fa(e,t,n,s,i,r){var v,S;const{visualElement:o}=w.useContext(Ee),a=w.useContext(Rt),u=w.useContext(wn),l=w.useContext(Ds),c=l.reducedMotion,f=l.skipAnimations,d=w.useRef(null),h=w.useRef(!1);s=s||a.renderer,!d.current&&s&&(d.current=s(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c,skipAnimations:f,isSVG:r}),h.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));const p=d.current,b=w.useContext(Pa);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&Da(d.current,n,i,b);const y=w.useRef(!1);w.useInsertionEffect(()=>{p&&y.current&&p.update(n,u)});const g=n[cs],x=w.useRef(!!g&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,g))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,g)));return ci(()=>{h.current=!0,p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),x.current&&p.animationState&&p.animationState.animateChanges())}),w.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,g)}),x.current=!1),p.enteringChildren=void 0)}),p}function Da(e,t,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:u,layoutRoot:l,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ls(e.parent)),e.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&Ra(a),visualElement:e,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,crossfade:c,layoutScroll:u,layoutRoot:l})}function Ls(e){if(e)return e.options.allowProjection!==!1?e.projection:Ls(e.parent)}function ka(e,{forwardMotionProps:t=!1,type:n}={},s,i){const r=n?n==="svg":Dt(e),o=r?Aa:Sa;function a(l,c){let f;const d={...w.useContext(Ds),...l,layoutId:Oa(l)},{isStatic:h}=d,p=ma(l),b=o(l,h);if(!h&&vn){Ia(d,s);const y=Ea(d);f=y.MeasureLayout,p.visualElement=Fa(e,b,d,i,y.ProjectionNode,r)}return R.jsxs(Ee.Provider,{value:p,children:[f&&p.visualElement?R.jsx(f,{visualElement:p.visualElement,...d}):null,Ta(e,l,Ca(b,p.visualElement,c),b,h,t,r)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=w.forwardRef(a);return u[Ma]=e,u}function Oa({layoutId:e}){const t=w.useContext(ai).id;return t&&e!==void 0?t+"-"+e:e}function Ia(e,t){w.useContext(Rt).strict,process.env.NODE_ENV}function Ea(e){const t=ks(),{drag:n,layout:s}=t;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n!=null&&n.isEnabled(e)||s!=null&&s.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const Ba=(e,t)=>t.isSVG??Dt(e)?new ta(t):new Yo(t,{allowProjection:e!==w.Fragment});class La extends ae{constructor(t){super(t),t.animationState||(t.animationState=oa(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Oe(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.call(this)}}let Na=0;class ja extends ae{constructor(){super(...arguments),this.id=Na++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.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 Ka={animation:{Feature:La},exit:{Feature:ja}};function Ns(e){return{point:{x:e.pageX,y:e.pageY}}}function mn(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&N.postRender(()=>r(t,Ns(t)))}class $a extends ae{mount(){const{current:t}=this.node;t&&(this.unmount=Mo(t,(n,s)=>(mn(this.node,s,"Start"),i=>mn(this.node,i,"End"))))}unmount(){}}class Wa extends ae{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=ke(ln(this.node.current,"focus",()=>this.onFocus()),ln(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function gn(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&N.postRender(()=>r(t,Ns(t)))}class _a extends ae{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=Do(t,(i,r)=>(gn(this.node,r,"Start"),(o,{success:a})=>gn(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const lt=new WeakMap,Ge=new WeakMap,Ga=e=>{const t=lt.get(e.target);t&&t(e)},za=e=>{e.forEach(Ga)};function Ha({root:e,...t}){const n=e||document;Ge.has(n)||Ge.set(n,{});const s=Ge.get(n),i=JSON.stringify(t);return s[i]||(s[i]=new IntersectionObserver(za,{root:e,...t})),s[i]}function Ua(e,t,n){const s=Ha(t);return lt.set(e,n),s.observe(e),()=>{lt.delete(e),s.unobserve(e)}}const qa={some:0,all:1};class Ya extends ae{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:qa[i]},a=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,r&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=l?c:f;d&&d(u)};return Ua(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(Xa(t,n))&&this.startObserver()}unmount(){}}function Xa({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Za={inView:{Feature:Ya},tap:{Feature:_a},focus:{Feature:Wa},hover:{Feature:$a}},Ja={renderer:Ba,...Ka,...Za};function Qa(e,t){return ka(e,t)}const yn=Qa("span"),eu={Root:{0:{h:"5"},1:{h:"6"},2:{h:"8"}}},Be={Root:{0:{pl:"1_5"},1:{pl:"2"},2:{pl:"2_5"}},Text:{0:{mr:"1_5"},1:{mr:"2"},2:{mr:"2_5"}},Button:{0:{ml:"0_5"},1:{ml:"1"},2:{ml:"1"}}},ne={Root:{solid:{default:"gray-12",accent:"accent-9",gray:"gray-9",red:"red-9",blue:"blue-9",green:"green-9",yellow:"yellow-9",purple:"purple-9"},soft:{default:"gray-2",accent:"accent-2",gray:"gray-2",red:"red-2",blue:"blue-2",green:"green-2",yellow:"yellow-2",purple:"purple-2"}},Border:{soft:{default:"gray-4",accent:"accent-4",gray:"gray-4",red:"red-4",blue:"blue-4",green:"green-4",yellow:"yellow-4",purple:"purple-4"}},Icon:{solid:{default:"white",gray:"white",red:"white",accent:"white",blue:"white",green:"white",yellow:"white",purple:"white"},soft:{default:"default",gray:"gray",accent:"accent",red:"red",blue:"blue",green:"green",yellow:"yellow",purple:"purple"}},Text:{solid:{default:"white",gray:"white",accent:"white",red:"white",blue:"white",green:"white",yellow:"white",purple:"white"},soft:{default:"default",gray:"gray",accent:"accent",red:"red",blue:"blue",green:"green",yellow:"yellow",purple:"purple"}},Button:{solid:{default:"default",gray:"gray",accent:"accent",red:"red",blue:"blue",green:"green",yellow:"yellow",purple:"purple"},soft:{default:"gray",gray:"gray",accent:"accent",red:"red",blue:"blue",green:"green",yellow:"yellow",purple:"purple"}}},js={Button:{solid:"solid",soft:"ghost"}},tu={tagBorderColor:{cssVar:"--box-shadow",value:"inset 0 0 0 1px var(--tgph-VARIABLE)"}},be=w.createContext({size:"1",color:"default",variant:"soft"}),Ks=({as:e="span",size:t="1",color:n="default",variant:s="soft",className:i,style:r,...o})=>{const{styleProp:a,otherProps:u}=oi({props:{...s==="soft"?{tagBorderColor:ne.Border.soft[n]}:{},style:r},cssVars:tu});return R.jsx(be.Provider,{value:{size:t,color:n,variant:s},children:R.jsx(Ys.Stack,{as:e,align:"center",rounded:"full",display:"inline-flex",pl:Be.Root[t].pl,backgroundColor:ne.Root[s][n],h:eu.Root[t].h,className:Js.clsx("tgph-tag",i),style:a,...u,...o,"data-tag":!0})})},$s=({as:e="span",maxW:t="40",overflow:n="hidden",style:s,...i})=>{const r=w.useContext(be);return R.jsx(Zs.Text,{as:e,size:r.size,color:ne.Text[r.variant][r.color],weight:"medium",mr:Be.Text[r.size].mr,maxW:t,overflow:n,internal_optionalAs:!0,style:{whiteSpace:"nowrap",textOverflow:"ellipsis",...s},...i})},Ws=({onClick:e,textToCopy:t,...n})=>{const s=w.useContext(be),[i,r]=w.useState(!1);return w.useEffect(()=>{if(i){const o=setTimeout(()=>r(!1),2e3);return()=>clearTimeout(o)}},[i]),R.jsx(la,{features:Ja,children:R.jsx(Xs.Tooltip,{label:"Copy text",children:R.jsxs(Te.Button.Root,{onClick:o=>{var a;e==null||e(o),r(!0),t&&navigator.clipboard.writeText(t),(a=o.currentTarget)==null||a.blur()},size:s.size,color:ne.Button[s.variant][s.color],variant:js.Button[s.variant],rounded:"0",position:"relative",overflow:"hidden",borderTopRightRadius:"full",borderBottomRightRadius:"full",ml:Be.Button[s.size].ml,...n,children:[R.jsx(Te.Button.Icon,{as:yn,initial:!1,animate:{y:i?0:"150%",opacity:1},transition:{duration:.15,type:"spring",bounce:0},icon:Se.Check,alt:"Copied text","aria-hidden":!i}),R.jsx(Te.Button.Icon,{as:yn,initial:!1,animate:{y:i?"-150%":0,opacity:1},transition:{duration:.15,type:"spring",bounce:0},icon:Se.Copy,position:"absolute",alt:"Copy text","aria-hidden":i})]})})})},_s=({...e})=>{const t=w.useContext(be);return R.jsx(Te.Button,{size:t.size,color:ne.Button[t.variant][t.color],variant:js.Button[t.variant],icon:{icon:Se.X,alt:"close"},rounded:"0",borderTopRightRadius:"full",borderBottomRightRadius:"full",ml:Be.Button[t.size].ml,...e})},Gs=({icon:e,alt:t,"aria-hidden":n,...s})=>{const i=w.useContext(be),r=t?{alt:t}:{"aria-hidden":n};return R.jsx(qs.Icon,{icon:e,size:i.size,color:ne.Icon[i.variant][i.color],mr:"1",...r,...s})},zs=({color:e="default",size:t="1",variant:n="soft",icon:s,onRemove:i,onCopy:r,textToCopy:o,textProps:a={maxW:"40"},children:u,...l})=>{const f={...a,...!!(i||r)?{mr:"0"}:{}};return R.jsxs(Ks,{color:e,size:t,variant:n,...l,children:[s&&R.jsx(Gs,{...s}),R.jsx($s,{as:"span",...f,children:u}),i&&R.jsx(_s,{onClick:i,icon:{icon:Se.X,alt:"Remove"}}),r&&R.jsx(Ws,{onClick:r,textToCopy:o})]})};Object.assign(zs,{Root:Ks,Button:_s,Text:$s,Icon:Gs,CopyButton:Ws});const nu=zs;exports.Tag=nu;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|