lizaui 3.0.35 → 3.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/button/index.cjs.js +1 -1
- package/dist/button/index.es.js +1 -1
- package/dist/calendar/index.cjs.js +1 -1
- package/dist/calendar/index.es.js +1 -1
- package/dist/checkbox/index.cjs.js +1 -1
- package/dist/checkbox/index.es.js +1 -1
- package/dist/chunks/assertion-C7nbUE-q.js +2 -0
- package/dist/chunks/assertion-C7nbUE-q.js.map +1 -0
- package/dist/chunks/assertion-CrT8p68K.js +11 -0
- package/dist/chunks/assertion-CrT8p68K.js.map +1 -0
- package/dist/chunks/button-ByG7rkKr.js +528 -0
- package/dist/chunks/button-ByG7rkKr.js.map +1 -0
- package/dist/chunks/button-W_O8D9E6.js +2 -0
- package/dist/chunks/button-W_O8D9E6.js.map +1 -0
- package/dist/chunks/checkbox-D7Bt7i2P.js +2 -0
- package/dist/chunks/{checkbox-C23sBMh5.js.map → checkbox-D7Bt7i2P.js.map} +1 -1
- package/dist/chunks/{checkbox-ChChDxFl.js → checkbox-lvTY3PXC.js} +3 -2
- package/dist/chunks/{checkbox-ChChDxFl.js.map → checkbox-lvTY3PXC.js.map} +1 -1
- package/dist/chunks/index-BnlGNtJe.js +65 -0
- package/dist/chunks/index-BnlGNtJe.js.map +1 -0
- package/dist/chunks/{index-BpSN4GSo.js → index-DSpBzH_i.js} +796 -793
- package/dist/chunks/index-DSpBzH_i.js.map +1 -0
- package/dist/chunks/refs-DAOksVs3.js +29 -0
- package/dist/chunks/refs-DAOksVs3.js.map +1 -0
- package/dist/chunks/refs-pI64b4UC.js +2 -0
- package/dist/chunks/refs-pI64b4UC.js.map +1 -0
- package/dist/chunks/ripple-BQsLJHrx.js +3594 -0
- package/dist/chunks/ripple-BQsLJHrx.js.map +1 -0
- package/dist/chunks/ripple-CUdIIH3t.js +10 -0
- package/dist/chunks/ripple-CUdIIH3t.js.map +1 -0
- package/dist/components/ripple/index.d.ts +3 -0
- package/dist/components/ripple/index.d.ts.map +1 -0
- package/dist/components/ui/modal.d.ts +1 -0
- package/dist/components/ui/modal.d.ts.map +1 -1
- package/dist/components/ui/sheet.d.ts +9 -2
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/pagination/index.cjs.js +1 -1
- package/dist/pagination/index.es.js +2 -2
- package/dist/ripple/index.cjs.js +2 -0
- package/dist/ripple/index.cjs.js.map +1 -0
- package/dist/ripple/index.es.js +5 -0
- package/dist/ripple/index.es.js.map +1 -0
- package/dist/ripple.d.ts +2 -0
- package/dist/select-input/index.cjs.js +1 -1
- package/dist/select-input/index.cjs.js.map +1 -1
- package/dist/select-input/index.es.js +2 -2
- package/dist/table/index.cjs.js +1 -1
- package/dist/table/index.es.js +1 -1
- package/dist/ui/index.cjs.js +2 -2
- package/dist/ui/index.cjs.js.map +1 -1
- package/dist/ui/index.es.js +785 -755
- package/dist/ui/index.es.js.map +1 -1
- package/package.json +6 -1
- package/dist/chunks/button-C6LoJycL.js +0 -4112
- package/dist/chunks/button-C6LoJycL.js.map +0 -1
- package/dist/chunks/button-CPPU0FsH.js +0 -10
- package/dist/chunks/button-CPPU0FsH.js.map +0 -1
- package/dist/chunks/checkbox-C23sBMh5.js +0 -2
- package/dist/chunks/index-BTn-tZ5q.js +0 -65
- package/dist/chunks/index-BTn-tZ5q.js.map +0 -1
- package/dist/chunks/index-BpSN4GSo.js.map +0 -1
- package/dist/chunks/refs-DLih6QCP.js +0 -2
- package/dist/chunks/refs-DLih6QCP.js.map +0 -1
- package/dist/chunks/refs-DcCOPvdv.js +0 -35
- package/dist/chunks/refs-DcCOPvdv.js.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";require("./assertion-C7nbUE-q.js");const p=require("react"),O=require("./jsx-runtime-DFswc9zO.js");function ci(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const dt=ci(p);function li(e,t,n){return Math.min(Math.max(e,t),n)}function fi(e){return`${e}-${Math.floor(Math.random()*1e6)}`}function di(e={}){const[t,n]=p.useState([]),s=p.useCallback(r=>{const o=r.target,a=Math.max(o.clientWidth,o.clientHeight);n(c=>[...c,{key:fi(c.length.toString()),size:a,x:r.x-a/2,y:r.y-a/2}])},[]),i=p.useCallback(r=>{n(o=>o.filter(a=>a.key!==r))},[]);return{ripples:t,onClear:i,onPress:s,...e}}const ht=p.createContext({});function pt(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}const mt=typeof window<"u",On=mt?p.useLayoutEffect:p.useEffect,Pe=p.createContext(null);function In(e,t){e.indexOf(t)===-1&&e.push(t)}function kn(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const $=(e,t,n)=>n>t?t:n<e?e:n;let te=()=>{};exports.invariant=()=>{};process.env.NODE_ENV!=="production"&&(te=(e,t)=>{},exports.invariant=(e,t)=>{if(!e)throw new Error(t)});const j={},Nn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Bn(e){return typeof e=="object"&&e!==null}const Ln=e=>/^0[^.\s]+$/u.test(e);function gt(e){let t;return()=>(t===void 0&&(t=e()),t)}const Y=e=>e,hi=(e,t)=>n=>t(e(n)),pe=(...e)=>e.reduce(hi),yt=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s};class bt{constructor(){this.subscriptions=[]}add(t){return In(this.subscriptions,t),()=>kn(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 N=e=>e*1e3,B=e=>e/1e3;function jn(e,t){return t?e*(1e3/t):0}const qt=new Set;function xt(e,t,n){e||qt.has(t)||qt.add(t)}const Kn=(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=Kn(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 Y;const i=r=>gi(r,0,1,e,n);return r=>r===0||r===1?r:Kn(i(r),t,s)}const $n=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Wn=e=>t=>1-e(1-t),_n=me(.33,1.53,.69,.99),vt=Wn(_n),zn=$n(vt),Un=e=>(e*=2)<1?.5*vt(e):.5*(2-Math.pow(2,-10*(e-1))),Tt=e=>1-Math.sin(Math.acos(e)),Gn=Wn(Tt),Hn=$n(Tt),yi=me(.42,0,1,1),bi=me(0,0,.58,1),Yn=me(.42,0,.58,1),xi=e=>Array.isArray(e)&&typeof e[0]!="number",Xn=e=>Array.isArray(e)&&typeof e[0]=="number",Zt={linear:Y,easeIn:yi,easeInOut:Yn,easeOut:bi,circIn:Tt,circInOut:Hn,circOut:Gn,backIn:vt,backInOut:zn,backOut:_n,anticipate:Un},vi=e=>typeof e=="string",Jt=e=>{if(Xn(e)){exports.invariant(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,s,i]=e;return me(t,n,s,i)}else if(vi(e))return exports.invariant(Zt[e]!==void 0,`Invalid easing type '${e}'`),Zt[e];return e},ye=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ti(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,f=!1,d=!1)=>{const y=d&&i?n:s;return f&&o.add(u),y.has(u)||y.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 wi=40;function qn(e,t){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=ye.reduce((b,M)=>(b[M]=Ti(r),b),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:f,preRender:d,render:h,postRender:y}=o,v=()=>{const b=j.useManualTiming?i.timestamp:performance.now();n=!1,j.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(b-i.timestamp,wi),1)),i.timestamp=b,i.isProcessing=!0,a.process(i),c.process(i),l.process(i),u.process(i),f.process(i),d.process(i),h.process(i),y.process(i),i.isProcessing=!1,n&&t&&(s=!1,e(v))},w=()=>{n=!0,s=!0,i.isProcessing||e(v)};return{schedule:ye.reduce((b,M)=>{const g=o[M];return b[M]=(T,A=!1,V=!1)=>(n||w(),g.schedule(T,A,V)),b},{}),cancel:b=>{for(let M=0;M<ye.length;M++)o[ye[M]].cancel(b)},state:i,steps:o}}const{schedule:k,cancel:we,state:ue,steps:Vi}=qn(typeof requestAnimationFrame<"u"?requestAnimationFrame:Y,!0);let ve;function Si(){ve=void 0}const I={now:()=>(ve===void 0&&I.set(ue.isProcessing||j.useManualTiming?ue.timestamp:performance.now()),ve),set:e=>{ve=e,queueMicrotask(Si)}},Zn=e=>t=>typeof t=="string"&&t.startsWith(e),wt=Zn("--"),Mi=Zn("var(--"),Vt=e=>Mi(e)?Ai.test(e.split("/*")[0].trim()):!1,Ai=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ne={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ce={...ne,transform:e=>$(0,1,e)},be={...ne,default:1},ae=e=>Math.round(e*1e5)/1e5,St=/-?(?:\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)),Jn=(e,t,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(St);return{[e]:parseFloat(i),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Ri=e=>$(0,255,e),ke={...ne,transform:e=>Math.round(Ri(e))},_={test:Mt("rgb","red"),parse:Jn("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+ke.transform(e)+", "+ke.transform(t)+", "+ke.transform(n)+", "+ae(ce.transform(s))+")"};function Di(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 _e={test:Mt("#"),parse:Di,transform:_.transform},ge=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),K=ge("deg"),U=ge("%"),x=ge("px"),Ei=ge("vh"),Fi=ge("vw"),Qt={...U,parse:e=>U.parse(e)/100,transform:e=>U.transform(e*100)},J={test:Mt("hsl","hue"),parse:Jn("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+U.transform(ae(t))+", "+U.transform(ae(n))+", "+ae(ce.transform(s))+")"},P={test:e=>_.test(e)||_e.test(e)||J.test(e),parse:e=>_.test(e)?_.parse(e):J.test(e)?J.parse(e):_e.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?_.transform(e):J.transform(e),getAnimatableNone:e=>{const t=P.parse(e);return t.alpha=0,P.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(St))==null?void 0:t.length)||0)+(((n=e.match(Oi))==null?void 0:n.length)||0)>0}const Qn="number",es="color",ki="var",Ni="var(",en="${}",Bi=/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 le(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=t.replace(Bi,c=>(P.test(c)?(s.color.push(r),i.push(es),n.push(P.parse(c))):c.startsWith(Ni)?(s.var.push(r),i.push(ki),n.push(c)):(s.number.push(r),i.push(Qn),n.push(parseFloat(c))),++r,en)).split(en);return{values:n,split:a,indexes:s,types:i}}function ts(e){return le(e).values}function ns(e){const{split:t,types:n}=le(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===Qn?r+=ae(i[o]):a===es?r+=P.transform(i[o]):r+=i[o]}return r}}const Li=e=>typeof e=="number"?0:P.test(e)?P.getAnimatableNone(e):e;function ji(e){const t=ts(e);return ns(e)(t.map(Li))}const X={test:Ii,parse:ts,createTransformer:ns,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,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 Ve(e,t){return n=>n>0?t:e}const se=(e,t,n)=>e+(t-e)*n,Be=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},$i=[_e,_,J],Wi=e=>$i.find(t=>t.test(e));function tn(e){const t=Wi(e);if(te(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===J&&(n=Ki(n)),n}const nn=(e,t)=>{const n=tn(e),s=tn(t);if(!n||!s)return Ve(e,t);const i={...n};return r=>(i.red=Be(n.red,s.red,r),i.green=Be(n.green,s.green,r),i.blue=Be(n.blue,s.blue,r),i.alpha=se(n.alpha,s.alpha,r),_.transform(i))},ze=new Set(["none","hidden"]);function _i(e,t){return ze.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function zi(e,t){return n=>se(e,t,n)}function At(e){return typeof e=="number"?zi:typeof e=="string"?Vt(e)?Ve:P.test(e)?nn:Hi:Array.isArray(e)?ss:typeof e=="object"?P.test(e)?nn:Ui:Ve}function ss(e,t){const n=[...e],s=n.length,i=e.map((r,o)=>At(r)(r,t[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Ui(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=At(e[i])(e[i],t[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Gi(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 Hi=(e,t)=>{const n=X.createTransformer(t),s=le(e),i=le(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?ze.has(e)&&!i.values.length||ze.has(t)&&!s.values.length?_i(e,t):pe(ss(Gi(s,i),i.values),n):(te(!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.`),Ve(e,t))};function is(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?se(e,t,n):At(e)(e,t)}const Yi=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>k.update(t,n),stop:()=>we(t),now:()=>ue.isProcessing?ue.timestamp:I.now()}},rs=(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)})`},Se=2e4;function Ct(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Se;)t+=n,s=e.next(t);return t>=Se?1/0:t}function Xi(e,t=100,n){const s=n({...e,keyframes:[0,t]}),i=Math.min(Ct(s),Se);return{type:"keyframes",ease:r=>s.next(i*r).value/t,duration:B(i)}}const qi=5;function os(e,t,n){const s=Math.max(t-qi,0);return jn(n-e(s),t-s)}const C={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},Le=.001;function Zi({duration:e=C.duration,bounce:t=C.bounce,velocity:n=C.velocity,mass:s=C.mass}){let i,r;te(e<=N(C.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=$(C.minDamping,C.maxDamping,o),e=$(C.minDuration,C.maxDuration,B(e)),o<1?(i=l=>{const u=l*o,f=u*e,d=u-n,h=Ue(l,o),y=Math.exp(-f);return Le-d/h*y},r=l=>{const f=l*o*e,d=f*n+n,h=Math.pow(o,2)*Math.pow(l,2)*e,y=Math.exp(-f),v=Ue(Math.pow(l,2),o);return(-i(l)+Le>0?-1:1)*((d-h)*y)/v}):(i=l=>{const u=Math.exp(-l*e),f=(l-n)*e+1;return-Le+u*f},r=l=>{const u=Math.exp(-l*e),f=(n-l)*(e*e);return u*f});const a=5/e,c=Qi(i,r,a);if(e=N(e),isNaN(c))return{stiffness:C.stiffness,damping:C.damping,duration:e};{const l=Math.pow(c,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 Ue(e,t){return e*Math.sqrt(1-t*t)}const er=["duration","bounce"],tr=["stiffness","damping","mass"];function sn(e,t){return t.some(n=>e[n]!==void 0)}function nr(e){let t={velocity:C.velocity,stiffness:C.stiffness,damping:C.damping,mass:C.mass,isResolvedFromDuration:!1,...e};if(!sn(e,tr)&&sn(e,er))if(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:C.mass,stiffness:i,damping:r}}else{const n=Zi(e);t={...t,...n,mass:C.mass},t.isResolvedFromDuration=!0}return t}function Me(e=C.visualDuration,t=C.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:f,velocity:d,isResolvedFromDuration:h}=nr({...n,velocity:-B(n.velocity||0)}),y=d||0,v=l/(2*Math.sqrt(c*u)),w=o-r,m=B(Math.sqrt(c/u)),S=Math.abs(w)<5;s||(s=S?C.restSpeed.granular:C.restSpeed.default),i||(i=S?C.restDelta.granular:C.restDelta.default);let b;if(v<1){const g=Ue(m,v);b=T=>{const A=Math.exp(-v*m*T);return o-A*((y+v*m*w)/g*Math.sin(g*T)+w*Math.cos(g*T))}}else if(v===1)b=g=>o-Math.exp(-m*g)*(w+(y+m*w)*g);else{const g=m*Math.sqrt(v*v-1);b=T=>{const A=Math.exp(-v*m*T),V=Math.min(g*T,300);return o-A*((y+v*m*w)*Math.sinh(V)+g*w*Math.cosh(V))/g}}const M={calculatedDuration:h&&f||null,next:g=>{const T=b(g);if(h)a.done=g>=f;else{let A=g===0?y:0;v<1&&(A=g===0?N(y):os(b,g,T));const V=Math.abs(A)<=s,R=Math.abs(o-T)<=i;a.done=V&&R}return a.value=a.done?o:T,a},toString:()=>{const g=Math.min(Ct(M),Se),T=rs(A=>M.next(g*A).value,g,30);return g+"ms "+T},toTransition:()=>{}};return M}Me.applyToOptions=e=>{const t=Xi(e,100,Me);return e.ease=t.ease,e.duration=N(t.duration),e.type="keyframes",e};function Ge({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 f=e[0],d={done:!1,value:f},h=V=>a!==void 0&&V<a||c!==void 0&&V>c,y=V=>a===void 0?c:c===void 0||Math.abs(a-V)<Math.abs(c-V)?a:c;let v=n*t;const w=f+v,m=o===void 0?w:o(w);m!==w&&(v=m-f);const S=V=>-v*Math.exp(-V/s),b=V=>m+S(V),M=V=>{const R=S(V),F=b(V);d.done=Math.abs(R)<=l,d.value=d.done?m:F};let g,T;const A=V=>{h(d.value)&&(g=V,T=Me({keyframes:[d.value,y(d.value)],velocity:os(b,V,d.value),damping:i,stiffness:r,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:V=>{let R=!1;return!T&&g===void 0&&(R=!0,M(V),A(V)),g!==void 0&&V>=g?T.next(V-g):(!R&&M(V),d)}}}function sr(e,t,n){const s=[],i=n||j.mix||is,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]||Y:t;a=pe(c,a)}s.push(a)}return s}function ir(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const r=e.length;if(exports.invariant(r===t.length,"Both input and output ranges must be the same 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),c=a.length,l=u=>{if(o&&u<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const d=yt(e[f],e[f+1],u);return a[f](d)};return n?u=>l($(e[0],e[r-1],u)):l}function rr(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=yt(0,t,s);e.push(se(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||Yn).splice(0,e.length-1)}function Q({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=xi(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:c=>(r.value=a(c),r.done=c>=e,r)}}const cr=e=>e!==null;function Pt(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:Ge,inertia:Ge,tween:Q,keyframes:Q,spring:Me};function as(e){typeof e.type=="string"&&(e.type=lr[e.type])}class Rt{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 Dt extends Rt{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!==I.now()&&this.tick(I.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;as(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&&exports.invariant(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`),c!==Q&&typeof a[0]!="number"&&(this.mixKeyframes=pe(fr,is(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=Ct(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:f,repeatType:d,repeatDelay:h,type:y,onUpdate:v,finalKeyframe:w}=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 m=this.currentTime-l*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let b=this.currentTime,M=s;if(f){const V=Math.min(this.currentTime,i)/a;let R=Math.floor(V),F=V%1;!F&&V>=1&&(F=1),F===1&&R--,R=Math.min(R,f+1),!!(R%2)&&(d==="reverse"?(F=1-F,h&&(F-=h/a)):d==="mirror"&&(M=o)),b=$(0,1,F)*a}const g=S?{done:!1,value:u[0]}:M.next(b);r&&(g.value=r(g.value));let{done:T}=g;!S&&c!==null&&(T=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return A&&y!==Ge&&(g.value=Pt(u,this.options,w,this.speed)),v&&v(g.value),A&&this.finish(),g}then(t,n){return this.finished.then(t,n)}get duration(){return B(this.calculatedDuration)}get time(){return B(this.currentTime)}set time(t){var n;t=N(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(I.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=Yi,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(I.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 z=e=>e*180/Math.PI,He=e=>{const t=z(Math.atan2(e[1],e[0]));return Ye(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:He,rotateZ:He,skewX:e=>z(Math.atan(e[1])),skewY:e=>z(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ye=e=>(e=e%360,e<0&&(e+=360),e),rn=He,on=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),an=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:on,scaleY:an,scale:e=>(on(e)+an(e))/2,rotateX:e=>Ye(z(Math.atan2(e[6],e[5]))),rotateY:e=>Ye(z(Math.atan2(-e[2],e[0]))),rotateZ:rn,rotate:rn,skewX:e=>z(Math.atan(e[4])),skewY:e=>z(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Xe(e){return e.includes("scale")?1:0}function qe(e,t){if(!e||e==="none")return Xe(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 Xe(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 qe(n,t)};function gr(e){return parseFloat(e.trim())}const ie=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],re=new Set(ie),un=e=>e===ne||e===x,yr=new Set(["x","y","z"]),br=ie.filter(e=>!yr.has(e));function xr(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 G={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})=>qe(t,"x"),y:(e,{transform:t})=>qe(t,"y")};G.translateX=G.x;G.translateY=G.y;const H=new Set;let Ze=!1,Je=!1,Qe=!1;function us(){if(Je){const e=Array.from(H).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const i=xr(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)})}Je=!1,Ze=!1,H.forEach(e=>e.complete(Qe)),H.clear()}function cs(){H.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Je=!0)})}function vr(){Qe=!0,cs(),us(),Qe=!1}class Et{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?(H.add(this),Ze||(Ze=!0,k.read(cs),k.resolveKeyframes(us))):(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),H.delete(this)}cancel(){this.state==="scheduled"&&(H.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Tr=e=>e.startsWith("--");function wr(e,t,n){Tr(t)?e.style.setProperty(t,n):e.style[t]=n}const Vr=gt(()=>window.ScrollTimeline!==void 0),Sr={};function Mr(e,t){const n=gt(e);return()=>Sr[t]??n()}const ls=Mr(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),oe=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,cn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:oe([0,.65,.55,1]),circOut:oe([.55,0,1,.45]),backIn:oe([.31,.01,.66,-.59]),backOut:oe([.33,1.53,.69,.99])};function fs(e,t){if(e)return typeof e=="function"?ls()?rs(e,t):"ease-out":Xn(e)?oe(e):Array.isArray(e)?e.map(n=>fs(n,t)||cn.easeOut):cn[e]}function Ar(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 f=fs(a,i);Array.isArray(f)&&(u.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(u,d)}function ds(e){return typeof e=="function"&&"applyToOptions"in e}function Cr({type:e,...t}){return ds(e)&&ls()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Pr extends Rt{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!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,exports.invariant(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const l=Cr(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 u=Pt(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):wr(n,s,u),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(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 t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}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 time(){return B(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=N(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 Number(this.animation.startTime)}set startTime(t){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,Y):n(this)}}const hs={anticipate:Un,backInOut:zn,circInOut:Hn};function Rr(e){return e in hs}function Dr(e){typeof e.ease=="string"&&Rr(e.ease)&&(e.ease=hs[e.ease])}const ln=10;class Er extends Pr{constructor(t){Dr(t),as(t),super(t),t.startTime&&(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 Dt({...o,autoplay:!1}),c=N(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-ln).value,a.sample(c).value,ln),a.stop()}}const fn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(X.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 Or(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=fn(i,t),a=fn(r,t);return te(o===a,`You are trying to animate ${t} from "${i}" to "${r}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${r} via the \`style\` property.`),!o||!a?!1:Fr(e)||(n==="spring"||ds(n))&&s}function Ft(e){return Bn(e)&&"offsetHeight"in e}const Ir=new Set(["opacity","clipPath","filter","transform"]),kr=gt(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Nr(e){var l;const{motionValue:t,name:n,repeatDelay:s,repeatType:i,damping:r,type:o}=e;if(!Ft((l=t==null?void 0:t.owner)==null?void 0:l.current))return!1;const{onUpdate:a,transformTemplate:c}=t.owner.getProps();return kr()&&n&&Ir.has(n)&&(n!=="transform"||!c)&&!a&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const Br=40;class Lr extends Rt{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,...f}){var y;super(),this.stop=()=>{var v,w;this._animation&&(this._animation.stop(),(v=this.stopTimeline)==null||v.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=I.now();const d={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:c,motionValue:l,element:u,...f},h=(u==null?void 0:u.KeyframeResolver)||Et;this.keyframeResolver=new h(a,(v,w,m)=>this.onKeyframesResolved(v,w,d,!m),c,l,u),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:c,isHandoff:l,onUpdate:u}=s;this.resolvedAt=I.now(),Or(t,r,o,a)||((j.instantAnimations||!c)&&(u==null||u(Pt(t,s,n))),t[0]=t[t.length-1],s.duration=0,s.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Br?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},h=!l&&Nr(d)?new Er({...d,element:d.motionValue.owner.current}):new Dt(d);h.finished.then(()=>this.notifyFinished()).catch(Y),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),vr()),this._animation}get duration(){return this.animation.duration}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()}}const jr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Kr(e){const t=jr.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}const $r=4;function ps(e,t,n=1){exports.invariant(n<=$r,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[s,i]=Kr(e);if(!s)return;const r=window.getComputedStyle(t).getPropertyValue(s);if(r){const o=r.trim();return Nn(o)?parseFloat(o):o}return Vt(i)?ps(i,t,n+1):i}function Ot(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const ms=new Set(["width","height","top","left","right","bottom",...ie]),Wr={test:e=>e==="auto",parse:e=>e},gs=e=>t=>t.test(e),ys=[ne,x,U,K,Fi,Ei,Wr],dn=e=>ys.find(gs(e));function _r(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ln(e):!0}const zr=new Set(["brightness","contrast","saturate","opacity"]);function Ur(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(St)||[];if(!s)return e;const i=n.replace(s,"");let r=zr.has(t)?1:0;return s!==n&&(r*=100),t+"("+r+i+")"}const Gr=/\b([a-z-]*)\(.*?\)/gu,et={...X,getAnimatableNone:e=>{const t=e.match(Gr);return t?t.map(Ur).join(" "):e}},hn={...ne,transform:Math.round},Hr={rotate:K,rotateX:K,rotateY:K,rotateZ:K,scale:be,scaleX:be,scaleY:be,scaleZ:be,skew:K,skewX:K,skewY:K,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:ce,originX:Qt,originY:Qt,originZ:x},It={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,radius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,backgroundPositionX:x,backgroundPositionY:x,...Hr,zIndex:hn,fillOpacity:ce,strokeOpacity:ce,numOctaves:hn},Yr={...It,color:P,backgroundColor:P,outlineColor:P,fill:P,stroke:P,borderColor:P,borderTopColor:P,borderRightColor:P,borderBottomColor:P,borderLeftColor:P,filter:et,WebkitFilter:et},bs=e=>Yr[e];function xs(e,t){let n=bs(e);return n!==et&&(n=X),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Xr=new Set(["auto","none","0"]);function qr(e,t,n){let s=0,i;for(;s<e.length&&!i;){const r=e[s];typeof r=="string"&&!Xr.has(r)&&le(r).values.length&&(i=e[s]),s++}if(i&&n)for(const r of t)e[r]=xs(n,i)}class Zr extends Et{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 l=t[c];if(typeof l=="string"&&(l=l.trim(),Vt(l))){const u=ps(l,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!ms.has(s)||t.length!==2)return;const[i,r]=t,o=dn(i),a=dn(r);if(o!==a)if(un(o)&&un(a))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else G[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)(t[i]===null||_r(t[i]))&&s.push(i);s.length&&qr(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=G[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]=G[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()}}function Jr(e,t,n){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)}const vs=(e,t)=>t&&typeof e=="number"?t.transform(e):e,pn=30,Qr=e=>!isNaN(parseFloat(e));class eo{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{var o,a;const r=I.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty();i&&((a=this.events.renderRequest)==null||a.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=I.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Qr(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&xt(!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 bt);const s=this.events[t].add(n);return t==="change"?()=>{s(),k.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,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}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=I.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,pn);return jn(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 fe(e,t){return new eo(e,t)}const{schedule:Ts}=qn(queueMicrotask,!1),tt={x:!1,y:!1};function ws(){return tt.x||tt.y}function Vs(e,t){const n=Jr(e),s=new AbortController,i={passive:!0,...t,signal:s.signal};return[n,i,()=>s.abort()]}function mn(e){return!(e.pointerType==="touch"||ws())}function to(e,t,n={}){const[s,i,r]=Vs(e,n),o=a=>{if(!mn(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=f=>{mn(f)&&(l(f),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,i)};return s.forEach(a=>{a.addEventListener("pointerenter",o,i)}),r}const Ss=(e,t)=>t?e===t?!0:Ss(e,t.parentElement):!1,kt=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,no=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function so(e){return no.has(e.tagName)||e.tabIndex!==-1}const Te=new WeakSet;function gn(e){return t=>{t.key==="Enter"&&e(t)}}function je(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const io=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=gn(()=>{if(Te.has(n))return;je(n,"down");const i=gn(()=>{je(n,"up")}),r=()=>je(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 yn(e){return kt(e)&&!ws()}function ro(e,t,n={}){const[s,i,r]=Vs(e,n),o=a=>{const c=a.currentTarget;if(!yn(a))return;Te.add(c);const l=t(c,a),u=(h,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),Te.has(c)&&Te.delete(c),yn(h)&&typeof l=="function"&&l(h,{success:y})},f=h=>{u(h,c===window||c===document||n.useGlobalTarget||Ss(c,h.target))},d=h=>{u(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Ft(a)&&(a.addEventListener("focus",l=>io(l,i)),!so(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}const D=e=>!!(e&&e.getVelocity),oo=[...ys,P,X],ao=e=>oo.find(gs(e)),Nt=p.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class uo extends dt.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const s=n.offsetParent,i=Ft(s)&&s.offsetWidth||0,r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft,r.right=i-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function co({children:e,isPresent:t,anchorX:n}){const s=p.useId(),i=p.useRef(null),r=p.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=p.useContext(Nt);return p.useInsertionEffect(()=>{const{width:a,height:c,top:l,left:u,right:f}=r.current;if(t||!i.current||!a||!c)return;const d=n==="left"?`left: ${u}`:`right: ${f}`;i.current.dataset.motionPopId=s;const h=document.createElement("style");return o&&(h.nonce=o),document.head.appendChild(h),h.sheet&&h.sheet.insertRule(`
|
|
2
|
+
[data-motion-pop-id="${s}"] {
|
|
3
|
+
position: absolute !important;
|
|
4
|
+
width: ${a}px !important;
|
|
5
|
+
height: ${c}px !important;
|
|
6
|
+
${d}px !important;
|
|
7
|
+
top: ${l}px !important;
|
|
8
|
+
}
|
|
9
|
+
`),()=>{document.head.contains(h)&&document.head.removeChild(h)}},[t]),O.jsxRuntimeExports.jsx(uo,{isPresent:t,childRef:i,sizeRef:r,children:dt.cloneElement(e,{ref:i})})}const lo=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:r,mode:o,anchorX:a})=>{const c=pt(fo),l=p.useId();let u=!0,f=p.useMemo(()=>(u=!1,{id:l,initial:t,isPresent:n,custom:i,onExitComplete:d=>{c.set(d,!0);for(const h of c.values())if(!h)return;s&&s()},register:d=>(c.set(d,!1),()=>c.delete(d))}),[n,c,s]);return r&&u&&(f={...f}),p.useMemo(()=>{c.forEach((d,h)=>c.set(h,!1))},[n]),dt.useEffect(()=>{!n&&!c.size&&s&&s()},[n]),o==="popLayout"&&(e=O.jsxRuntimeExports.jsx(co,{isPresent:n,anchorX:a,children:e})),O.jsxRuntimeExports.jsx(Pe.Provider,{value:f,children:e})};function fo(){return new Map}function Ms(e=!0){const t=p.useContext(Pe);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=t,r=p.useId();p.useEffect(()=>{if(e)return i(r)},[e]);const o=p.useCallback(()=>e&&s&&s(r),[r,s,e]);return!n&&s?[!1,o]:[!0]}const xe=e=>e.key||"";function bn(e){const t=[];return p.Children.forEach(e,n=>{p.isValidElement(n)&&t.push(n)}),t}const As=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:r="sync",propagate:o=!1,anchorX:a="left"})=>{const[c,l]=Ms(o),u=p.useMemo(()=>bn(e),[e]),f=o&&!c?[]:u.map(xe),d=p.useRef(!0),h=p.useRef(u),y=pt(()=>new Map),[v,w]=p.useState(u),[m,S]=p.useState(u);On(()=>{d.current=!1,h.current=u;for(let g=0;g<m.length;g++){const T=xe(m[g]);f.includes(T)?y.delete(T):y.get(T)!==!0&&y.set(T,!1)}},[m,f.length,f.join("-")]);const b=[];if(u!==v){let g=[...u];for(let T=0;T<m.length;T++){const A=m[T],V=xe(A);f.includes(V)||(g.splice(T,0,A),b.push(A))}return r==="wait"&&b.length&&(g=b),S(bn(g)),w(u),null}process.env.NODE_ENV!=="production"&&r==="wait"&&m.length>1;const{forceRender:M}=p.useContext(ht);return O.jsxRuntimeExports.jsx(O.jsxRuntimeExports.Fragment,{children:m.map(g=>{const T=xe(g),A=o&&!c?!1:u===m||f.includes(T),V=()=>{if(y.has(T))y.set(T,!0);else return;let R=!0;y.forEach(F=>{F||(R=!1)}),R&&(M==null||M(),S(h.current),o&&(l==null||l()),s&&s())};return O.jsxRuntimeExports.jsx(lo,{isPresent:A,initial:!d.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:r,onExitComplete:A?void 0:V,anchorX:a,children:g},T)})})},Bt=p.createContext({strict:!1}),xn={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"]},ee={};for(const e in xn)ee[e]={isEnabled:t=>xn[e].some(n=>!!t[n])};function nt(e){for(const t in e)ee[t]={...ee[t],...e[t]}}function ho({children:e,features:t,strict:n=!1}){const[,s]=p.useState(!Ke(t)),i=p.useRef(void 0);if(!Ke(t)){const{renderer:r,...o}=t;i.current=r,nt(o)}return p.useEffect(()=>{Ke(t)&&t().then(({renderer:r,...o})=>{nt(o),i.current=r,s(!0)})},[]),O.jsxRuntimeExports.jsx(Bt.Provider,{value:{renderer:i.current,strict:n},children:e})}function Ke(e){return typeof e=="function"}const po=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ae(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||po.has(e)}let Cs=e=>!Ae(e);function mo(e){typeof e=="function"&&(Cs=t=>t.startsWith("on")?!Ae(t):e(t))}try{mo(require("@emotion/is-prop-valid").default)}catch{}function go(e,t,n){const s={};for(const i in e)i==="values"&&typeof e.values=="object"||(Cs(i)||n===!0&&Ae(i)||!t&&!Ae(i)||e.draggable&&i.startsWith("onDrag"))&&(s[i]=e[i]);return s}function Ps(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>(process.env.NODE_ENV!=="production"&&xt(!1,"motion() is deprecated. Use motion.create() instead."),e(...s));return new Proxy(n,{get:(s,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Re=p.createContext({});function De(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function de(e){return typeof e=="string"||Array.isArray(e)}const Lt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jt=["initial",...Lt];function Ee(e){return De(e.animate)||jt.some(t=>de(e[t]))}function Rs(e){return!!(Ee(e)||e.variants)}function yo(e,t){if(Ee(e)){const{initial:n,animate:s}=e;return{initial:n===!1||de(n)?n:void 0,animate:de(s)?s:void 0}}return e.inherit!==!1?t:{}}function bo(e){const{initial:t,animate:n}=yo(e,p.useContext(Re));return p.useMemo(()=>({initial:t,animate:n}),[vn(t),vn(n)])}function vn(e){return Array.isArray(e)?e.join(" "):e}const xo=Symbol.for("motionComponentSymbol");function Kt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function vo(e,t,n){return p.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):Kt(n)&&(n.current=s))},[t])}const $t=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),To="framerAppearId",Ds="data-"+$t(To),Es=p.createContext({});function wo(e,t,n,s,i){var v,w;const{visualElement:r}=p.useContext(Re),o=p.useContext(Bt),a=p.useContext(Pe),c=p.useContext(Nt).reducedMotion,l=p.useRef(null);s=s||o.renderer,!l.current&&s&&(l.current=s(e,{visualState:t,parent:r,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const u=l.current,f=p.useContext(Es);u&&!u.projection&&i&&(u.type==="html"||u.type==="svg")&&Vo(l.current,n,i,f);const d=p.useRef(!1);p.useInsertionEffect(()=>{u&&d.current&&u.update(n,a)});const h=n[Ds],y=p.useRef(!!h&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,h))&&((w=window.MotionHasOptimisedAnimation)==null?void 0:w.call(window,h)));return On(()=>{u&&(d.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),Ts.render(u.render),y.current&&u.animationState&&u.animationState.animateChanges())}),p.useEffect(()=>{u&&(!y.current&&u.animationState&&u.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)==null||m.call(window,h)}),y.current=!1))}),u}function Vo(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:Fs(e.parent)),e.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&Kt(a),visualElement:e,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:c,layoutRoot:l})}function Fs(e){if(e)return e.options.allowProjection!==!1?e.projection:Fs(e.parent)}function So({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:i}){e&&nt(e);function r(a,c){let l;const u={...p.useContext(Nt),...a,layoutId:Mo(a)},{isStatic:f}=u,d=bo(a),h=s(a,f);if(!f&&mt){Ao(u,e);const y=Co(u);l=y.MeasureLayout,d.visualElement=wo(i,h,u,t,y.ProjectionNode)}return O.jsxRuntimeExports.jsxs(Re.Provider,{value:d,children:[l&&d.visualElement?O.jsxRuntimeExports.jsx(l,{visualElement:d.visualElement,...u}):null,n(i,a,vo(h,d.visualElement,c),h,f,d.visualElement)]})}r.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const o=p.forwardRef(r);return o[xo]=i,o}function Mo({layoutId:e}){const t=p.useContext(ht).id;return t&&e!==void 0?t+"-"+e:e}function Ao(e,t){const n=p.useContext(Bt).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const s="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?te(!1,s):exports.invariant(!1,s)}}function Co(e){const{drag:t,layout:n}=ee;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const Ce={};function Po(e){for(const t in e)Ce[t]=e[t],wt(t)&&(Ce[t].isCSSVariable=!0)}function Os(e,{layout:t,layoutId:n}){return re.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ce[e]||e==="opacity")}const Ro={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Do=ie.length;function Eo(e,t,n){let s="",i=!0;for(let r=0;r<Do;r++){const o=ie[r],a=e[o];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(o.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const l=vs(a,It[o]);if(!c){i=!1;const u=Ro[o]||o;s+=`${u}(${l}) `}n&&(t[o]=l)}}return s=s.trim(),n?s=n(t,i?"":s):i&&(s="none"),s}function Wt(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(re.has(c)){o=!0;continue}else if(wt(c)){i[c]=l;continue}else{const u=vs(l,It[c]);c.startsWith("origin")?(a=!0,r[c]=u):s[c]=u}}if(t.transform||(o||n?s.transform=Eo(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}`}}const _t=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Is(e,t,n){for(const s in t)!D(t[s])&&!Os(s,n)&&(e[s]=t[s])}function Fo({transformTemplate:e},t){return p.useMemo(()=>{const n=_t();return Wt(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Oo(e,t){const n=e.style||{},s={};return Is(s,n,e),Object.assign(s,Fo(e,t)),s}function Io(e,t){const n={},s=Oo(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 ko={offset:"stroke-dashoffset",array:"stroke-dasharray"},No={offset:"strokeDashoffset",array:"strokeDasharray"};function Bo(e,t,n=1,s=0,i=!0){e.pathLength=1;const r=i?ko:No;e[r.offset]=x.transform(-s);const o=x.transform(t),a=x.transform(n);e[r.array]=`${o} ${a}`}function ks(e,{attrX:t,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},c,l,u){if(Wt(e,a,l),c){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=(u==null?void 0:u.transformBox)??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),i!==void 0&&Bo(f,i,r,o,!1)}const Ns=()=>({..._t(),attrs:{}}),Bs=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Lo(e,t,n,s){const i=p.useMemo(()=>{const r=Ns();return ks(r,t,Bs(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 jo=["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 zt(e){return typeof e!="string"||e.includes("-")?!1:!!(jo.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ko(e=!1){return(n,s,i,{latestValues:r},o)=>{const c=(zt(n)?Lo:Io)(s,r,o,n),l=go(s,typeof n=="string",e),u=n!==p.Fragment?{...l,...c,ref:i}:{},{children:f}=s,d=p.useMemo(()=>D(f)?f.get():f,[f]);return p.createElement(n,{...u,children:d})}}function Tn(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function Ut(e,t,n,s){if(typeof t=="function"){const[i,r]=Tn(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]=Tn(s);t=t(n!==void 0?n:e.custom,i,r)}return t}function Ls(e){return D(e)?e.get():e}function $o({scrapeMotionValuesFromProps:e,createRenderState:t},n,s,i){return{latestValues:Wo(n,s,i,e),renderState:t()}}const js=e=>(t,n)=>{const s=p.useContext(Re),i=p.useContext(Pe),r=()=>$o(e,t,s,i);return n?r():pt(r)};function Wo(e,t,n,s){const i={},r=s(e,{});for(const d in r)i[d]=Ls(r[d]);let{initial:o,animate:a}=e;const c=Ee(e),l=Rs(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 f=u?a:o;if(f&&typeof f!="boolean"&&!De(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const y=Ut(e,d[h]);if(y){const{transitionEnd:v,transition:w,...m}=y;for(const S in m){let b=m[S];if(Array.isArray(b)){const M=u?b.length-1:0;b=b[M]}b!==null&&(i[S]=b)}for(const S in v)i[S]=v[S]}}}return i}function Gt(e,t,n){var r;const{style:s}=e,i={};for(const o in s)(D(s[o])||t.style&&D(t.style[o])||Os(o,e)||((r=n==null?void 0:n.getValue(o))==null?void 0:r.liveStyle)!==void 0)&&(i[o]=s[o]);return i}const _o={useVisualState:js({scrapeMotionValuesFromProps:Gt,createRenderState:_t})};function Ks(e,t,n){const s=Gt(e,t,n);for(const i in e)if(D(e[i])||D(t[i])){const r=ie.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=e[i]}return s}const zo={useVisualState:js({scrapeMotionValuesFromProps:Ks,createRenderState:Ns})};function $s(e,t){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...zt(s)?zo:_o,preloadedFeatures:e,useRender:Ko(i),createVisualElement:t,Component:s};return So(o)}}const Uo=$s(),Go=Ps(Uo);function he(e,t,n){const s=e.getProps();return Ut(s,t,n!==void 0?n:s.custom,e)}const st=e=>Array.isArray(e);function Ho(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,fe(n))}function Yo(e){return st(e)?e[e.length-1]||0:e}function Xo(e,t){const n=he(e,t);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Yo(r[o]);Ho(e,o,a)}}function qo(e){return!!(D(e)&&e.add)}function Ws(e,t){const n=e.getValue("willChange");if(qo(n))return n.add(t);if(!n&&j.WillChange){const s=new j.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function _s(e){return e.props[Ds]}const Zo=e=>e!==null;function Jo(e,{repeat:t,repeatType:n="loop"},s){const i=e.filter(Zo),r=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[r]}const Qo={type:"spring",stiffness:500,damping:25,restSpeed:10},ea=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ta={type:"keyframes",duration:.8},na={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sa=(e,{keyframes:t})=>t.length>2?ta:re.has(e)?e.startsWith("scale")?ea(t[1]):Qo:na;function ia({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 zs=(e,t,n,s={},i,r)=>o=>{const a=Ot(s,e)||{},c=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-N(c);const u={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};ia(a)||Object.assign(u,sa(e,u)),u.duration&&(u.duration=N(u.duration)),u.repeatDelay&&(u.repeatDelay=N(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(f=!0)),(j.instantAnimations||j.skipAnimations)&&(f=!0,u.duration=0,u.delay=0),u.allowFlatten=!a.type&&!a.ease,f&&!r&&t.get()!==void 0){const d=Jo(u.keyframes,a);if(d!==void 0){k.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new Dt(u):new Lr(u)};function ra({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=e.getDefaultTransition(),transitionEnd:o,...a}=t;s&&(r=s);const c=[],l=i&&e.animationState&&e.animationState.getState()[i];for(const u in a){const f=e.getValue(u,e.latestValues[u]??null),d=a[u];if(d===void 0||l&&ra(l,u))continue;const h={delay:n,...Ot(r||{},u)},y=f.get();if(y!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===y&&!h.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const m=_s(e);if(m){const S=window.MotionHandoffAnimation(m,u,k);S!==null&&(h.startTime=S,v=!0)}}Ws(e,u),f.start(zs(u,f,d,e.shouldReduceMotion&&ms.has(u)?{type:!1}:h,e,v));const w=f.animation;w&&c.push(w)}return o&&Promise.all(c).then(()=>{k.update(()=>{o&&Xo(e,o)})}),c}function it(e,t,n={}){var c;const s=he(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:f,staggerDirection:d}=i;return oa(e,t,u+l,f,d,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 oa(e,t,n=0,s=0,i=1,r){const o=[],a=(e.variantChildren.size-1)*s,c=i===1?(l=0)=>l*s:(l=0)=>a-l*s;return Array.from(e.variantChildren).sort(aa).forEach((l,u)=>{l.notify("AnimationStart",t),o.push(it(l,t,{...r,delay:n+c(u)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function aa(e,t){return e.sortNodePosition(t)}function ua(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const i=t.map(r=>it(e,r,n));s=Promise.all(i)}else if(typeof t=="string")s=it(e,t,n);else{const i=typeof t=="function"?he(e,t,n.custom):t;s=Promise.all(Us(e,i,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}function Gs(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 ca=jt.length;function Hs(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Hs(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<ca;n++){const s=jt[n],i=e.props[s];(de(i)||i===!1)&&(t[s]=i)}return t}const la=[...Lt].reverse(),fa=Lt.length;function da(e){return t=>Promise.all(t.map(({animation:n,options:s})=>ua(e,n,s)))}function ha(e){let t=da(e),n=wn(),s=!0;const i=c=>(l,u)=>{var d;const f=he(e,u,c==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:y,...v}=f;l={...l,...v,...y}}return l};function r(c){t=c(e)}function o(c){const{props:l}=e,u=Hs(e.parent)||{},f=[],d=new Set;let h={},y=1/0;for(let w=0;w<fa;w++){const m=la[w],S=n[m],b=l[m]!==void 0?l[m]:u[m],M=de(b),g=m===c?S.isActive:null;g===!1&&(y=w);let T=b===u[m]&&b!==l[m]&&M;if(T&&s&&e.manuallyAnimateOnMount&&(T=!1),S.protectedKeys={...h},!S.isActive&&g===null||!b&&!S.prevProp||De(b)||typeof b=="boolean")continue;const A=pa(S.prevProp,b);let V=A||m===c&&S.isActive&&!T&&M||w>y&&M,R=!1;const F=Array.isArray(b)?b:[b];let Z=F.reduce(i(m),{});g===!1&&(Z={});const{prevResolvedValues:Yt={}}=S,ui={...Yt,...Z},Xt=E=>{V=!0,d.has(E)&&(R=!0,d.delete(E)),S.needsAnimating[E]=!0;const L=e.getValue(E);L&&(L.liveStyle=!1)};for(const E in ui){const L=Z[E],Oe=Yt[E];if(h.hasOwnProperty(E))continue;let Ie=!1;st(L)&&st(Oe)?Ie=!Gs(L,Oe):Ie=L!==Oe,Ie?L!=null?Xt(E):d.add(E):L!==void 0&&d.has(E)?Xt(E):S.protectedKeys[E]=!0}S.prevProp=b,S.prevResolvedValues=Z,S.isActive&&(h={...h,...Z}),s&&e.blockInitialAnimation&&(V=!1),V&&(!(T&&A)||R)&&f.push(...F.map(E=>({animation:E,options:{type:m}})))}if(d.size){const w={};if(typeof l.initial!="boolean"){const m=he(e,Array.isArray(l.initial)?l.initial[0]:l.initial);m&&m.transition&&(w.transition=m.transition)}d.forEach(m=>{const S=e.getBaseTarget(m),b=e.getValue(m);b&&(b.liveStyle=!0),w[m]=S??null}),f.push({animation:w})}let v=!!f.length;return s&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(v=!1),s=!1,v?t(f):Promise.resolve()}function a(c,l){var f;if(n[c].isActive===l)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(d=>{var h;return(h=d.animationState)==null?void 0:h.setActive(c,l)}),n[c].isActive=l;const u=o(c);for(const d in n)n[d].protectedKeys={};return u}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=wn(),s=!0}}}function pa(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Gs(t,e):!1}function W(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wn(){return{animate:W(!0),whileInView:W(),whileHover:W(),whileTap:W(),whileDrag:W(),whileFocus:W(),exit:W()}}class q{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ma extends q{constructor(t){super(t),t.animationState||(t.animationState=ha(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();De(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 ga=0;class ya extends q{constructor(){super(...arguments),this.id=ga++}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 Ys={animation:{Feature:ma},exit:{Feature:ya}};function rt(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function Fe(e){return{point:{x:e.pageX,y:e.pageY}}}const ba=e=>t=>kt(t)&&e(t,Fe(t));function Xs({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function xa({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function va(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}}const Vn=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ta=()=>({x:Vn(),y:Vn()}),Sn=()=>({min:0,max:0}),Ht=()=>({x:Sn(),y:Sn()});function $e(e){return e===void 0||e===1}function qs({scale:e,scaleX:t,scaleY:n}){return!$e(e)||!$e(t)||!$e(n)}function Zs(e){return qs(e)||Js(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Js(e){return Mn(e.x)||Mn(e.y)}function Mn(e){return e&&e!=="0%"}function ot(e,t,n){const s=e-n,i=t*s;return n+i}function An(e,t,n,s,i){return i!==void 0&&(e=ot(e,i,s)),ot(e,n,s)+t}function at(e,t=0,n=1,s,i){e.min=An(e.min,t,n,s,i),e.max=An(e.max,t,n,s,i)}function Qs(e,{x:t,y:n}){at(e.x,t.translate,t.scale,t.originPoint),at(e.y,n.translate,n.scale,n.originPoint)}const Cn=.999999999999,Pn=1.0000000000001;function wa(e,t,n,s=!1){const i=n.length;if(!i)return;t.x=t.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:c}=r.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&ct(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Qs(e,o)),s&&Zs(r.latestValues)&&ct(e,r.latestValues))}t.x<Pn&&t.x>Cn&&(t.x=1),t.y<Pn&&t.y>Cn&&(t.y=1)}function ut(e,t){e.min=e.min+t,e.max=e.max+t}function Rn(e,t,n,s,i=.5){const r=se(e.min,e.max,i);at(e,t,n,r,s)}function ct(e,t){Rn(e.x,t.x,t.scaleX,t.scale,t.originX),Rn(e.y,t.y,t.scaleY,t.scale,t.originY)}function ei(e,t){return Xs(va(e.getBoundingClientRect(),t))}function Va(e,t,n){const s=ei(e,n),{scroll:i}=t;return i&&(ut(s.x,i.offset.x),ut(s.y,i.offset.y)),s}function Dn(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&&k.postRender(()=>r(t,Fe(t)))}class Sa extends q{mount(){const{current:t}=this.node;t&&(this.unmount=to(t,(n,s)=>(Dn(this.node,s,"Start"),i=>Dn(this.node,i,"End"))))}unmount(){}}class Ma extends q{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=pe(rt(this.node.current,"focus",()=>this.onFocus()),rt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function En(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&&k.postRender(()=>r(t,Fe(t)))}class Aa extends q{mount(){const{current:t}=this.node;t&&(this.unmount=ro(t,(n,s)=>(En(this.node,s,"Start"),(i,{success:r})=>En(this.node,i,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const lt=new WeakMap,We=new WeakMap,Ca=e=>{const t=lt.get(e.target);t&&t(e)},Pa=e=>{e.forEach(Ca)};function Ra({root:e,...t}){const n=e||document;We.has(n)||We.set(n,{});const s=We.get(n),i=JSON.stringify(t);return s[i]||(s[i]=new IntersectionObserver(Pa,{root:e,...t})),s[i]}function Da(e,t,n){const s=Ra(t);return lt.set(e,n),s.observe(e),()=>{lt.delete(e),s.unobserve(e)}}const Ea={some:0,all:1};class Fa extends q{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:Ea[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:f}=this.node.getProps(),d=l?u:f;d&&d(c)};return Da(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(Oa(t,n))&&this.startObserver()}unmount(){}}function Oa({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const ti={inView:{Feature:Fa},tap:{Feature:Aa},focus:{Feature:Ma},hover:{Feature:Sa}},ft={current:null},ni={current:!1};function Ia(){if(ni.current=!0,!!mt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ft.current=e.matches;e.addListener(t),t()}else ft.current=!1}const ka=new WeakMap;function Na(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,fe(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,fe(o!==void 0?o:i,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const Fn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ba{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Et,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=I.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,k.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=Ee(n),this.isVariantNode=Rs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const h=f[d];c[d]!==void 0&&D(h)&&h.set(c[d],!1)}}mount(t){this.current=t,ka.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),ni.current||Ia(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ft.current,process.env.NODE_ENV!=="production"&&xt(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),we(this.notifyUpdate),we(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=re.has(t);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&k.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),r(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ee){const n=ee[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):Ht()}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<Fn.length;s++){const i=Fn[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=Na(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=fe(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"&&(Nn(s)||Ln(s))?s=parseFloat(s):!ao(s)&&X.test(n)&&(s=xs(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=Ut(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 bt),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class si extends Ba{constructor(){super(...arguments),this.KeyframeResolver=Zr}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style: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}`)}))}}function ii(e,{style:t,vars:n},s,i){Object.assign(e.style,t,i&&i.getProjectionStyles(s));for(const r in n)e.style.setProperty(r,n[r])}function La(e){return window.getComputedStyle(e)}class ja extends si{constructor(){super(...arguments),this.type="html",this.renderInstance=ii}readValueFromInstance(t,n){var s;if(re.has(n))return(s=this.projection)!=null&&s.isProjecting?Xe(n):mr(t,n);{const i=La(t),r=(wt(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ei(t,n)}build(t,n,s){Wt(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return Gt(t,n,s)}}const ri=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ka(e,t,n,s){ii(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(ri.has(i)?i:$t(i),t.attrs[i])}class $a extends si{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ht}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(re.has(n)){const s=bs(n);return s&&s.default||0}return n=ri.has(n)?n:$t(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return Ks(t,n,s)}build(t,n,s){ks(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,i){Ka(t,n,s,i)}mount(t){this.isSVGTag=Bs(t.tagName),super.mount(t)}}const oi=(e,t)=>zt(e)?new $a(t):new ja(t,{allowProjection:e!==p.Fragment}),Wa={renderer:oi,...Ys,...ti},ai=e=>{const{ripples:t=[],motionProps:n,color:s="currentColor",style:i,onClear:r}=e;return O.jsxRuntimeExports.jsx(O.jsxRuntimeExports.Fragment,{children:t.map(o=>{const a=li(.01*o.size,.2,o.size>100?.75:.5);return O.jsxRuntimeExports.jsx(ho,{features:Wa,children:O.jsxRuntimeExports.jsx(As,{mode:"popLayout",children:O.jsxRuntimeExports.jsx(Go.span,{animate:{transform:"scale(2)",opacity:0},className:"ripple-item-span",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:s,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:o.y,left:o.x,width:`${o.size}px`,height:`${o.size}px`,...i},transition:{duration:a},onAnimationComplete:()=>{r(o.key)},...n})})},o.key)})})};ai.displayName="LizaUI.Ripple";exports.AnimatePresence=As;exports.Feature=q;exports.LayoutGroupContext=ht;exports.Ripple=ai;exports.SubscriptionManager=bt;exports.SwitchLayoutGroupContext=Es;exports.addDomEvent=rt;exports.addPointerInfo=ba;exports.addScaleCorrector=Po;exports.addUniqueItem=In;exports.addValueToWillChange=Ws;exports.animateMotionValue=zs;exports.animations=Ys;exports.applyBoxDelta=Qs;exports.applyTreeDeltas=wa;exports.cancelFrame=we;exports.circOut=Gn;exports.clamp=$;exports.complex=X;exports.convertBoundingBoxToBox=Xs;exports.convertBoxToBoundingBox=xa;exports.createBox=Ht;exports.createDOMMotionComponentProxy=Ps;exports.createDelta=Ta;exports.createDomVisualElement=oi;exports.createMotionComponentFactory=$s;exports.extractEventInfo=Fe;exports.frame=k;exports.frameData=ue;exports.frameSteps=Vi;exports.gestureAnimations=ti;exports.getOptimisedAppearId=_s;exports.getValueTransition=Ot;exports.has2DTranslate=Js;exports.hasScale=qs;exports.hasTransform=Zs;exports.isDragging=tt;exports.isMotionValue=D;exports.isObject=Bn;exports.isPrimaryPointer=kt;exports.isRefObject=Kt;exports.measurePageBox=Va;exports.microtask=Ts;exports.millisecondsToSeconds=B;exports.mixNumber=se;exports.motionValue=fe;exports.noop=Y;exports.percent=U;exports.pipe=pe;exports.progress=yt;exports.px=x;exports.removeItem=kn;exports.resolveMotionValue=Ls;exports.scaleCorrectors=Ce;exports.scalePoint=ot;exports.secondsToMilliseconds=N;exports.time=I;exports.transformBox=ct;exports.translateAxis=ut;exports.usePresence=Ms;exports.useRipple=di;
|
|
10
|
+
//# sourceMappingURL=ripple-CUdIIH3t.js.map
|