PageSourceSearch

https://www.easy.fun/_next/static/chunks/583-b4ba406b4cc59005.js

js easy.fun collected 2026-10-04 04:19:55 UTC 138,321 bytes, 9 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[583],{9008:function(t,e,i){t.exports=i(3867)},512:function(t,e,i){"use strict";function r(){for(var t,e,i=0,r="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=function t(e){var i,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e){if(Array.isArray(e)){var s=e.length;for(i=0;i<s;i++)e[i]&&(r=t(e[i]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r)}return n}(t))&&(r&&(r+=" "),r+=e);return r}i.d(e,{W:function(){return r}})},4461:function(t,e,i){"use strict";i.d(e,{M:function(){return y}});var r=i(5893),n=i(7294),s=i(910),o=i(7281),a=i(4822),l=i(4048),u=i(7439);class h extends n.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=t instanceof HTMLElement&&t.offsetWidth||0,r=this.props.sizeRef.current;r.height=e.offsetHeight||0,r.width=e.offsetWidth||0,r.top=e.offsetTop,r.left=e.offsetLeft,r.right=i-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:t,isPresent:e,anchorX:i}){let s=(0,n.useId)(),o=(0,n.useRef)(null),a=(0,n.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=(0,n.useContext)(u._);return(0,n.useInsertionEffect)(()=>{let{width:t,height:r,top:n,left:u,right:h}=a.current;if(e||!o.current||!t||!r)return;let d="left"===i?`left: ${u}`:`right: ${h}`;o.current.dataset.motionPopId=s;let c=document.createElement("style");return l&&(c.nonce=l),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
2          [data-motion-pop-id="${s}"] {
3            position: absolute !important;
4            width: ${t}px !important;
5            height: ${r}px !important;
6            ${d}px !important;
7            top: ${n}px !important;
8          }
9        `),()=>{document.head.contains(c)&&document.head.removeChild(c)}},[e]),(0,r.jsx)(h,{isPresent:e,childRef:o,sizeRef:a,children:n.cloneElement(t,{ref:o})})}let c=({children:t,initial:e,isPresent:i,onExitComplete:s,custom:a,presenceAffectsLayout:u,mode:h,anchorX:c})=>{let m=(0,o.h)(p),f=(0,n.useId)(),g=!0,y=(0,n.useMemo)(()=>(g=!1,{id:f,initial:e,isPresent:i,custom:a,onExitComplete:t=>
9{for(let e of(m.set(t,!0),m.values()))if(!e)return;s&&s()},register:t=>(m.set(t,!1),()=>m.delete(t))}),[i,m,s]);return u&&g&&(y={...y}),(0,n.useMemo)(()=>{m.forEach((t,e)=>m.set(e,!1))},[i]),n.useEffect(()=>{i||m.size||!s||s()},[i]),"popLayout"===h&&(t=(0,r.jsx)(d,{isPresent:i,anchorX:c,children:t})),(0,r.jsx)(l.O.Provider,{value:y,children:t})};function p(){return new Map}var m=i(9805);let f=t=>t.key||"";function g(t){let e=[];return n.Children.forEach(t,t=>{(0,n.isValidElement)(t)&&e.push(t)}),e}let y=({children:t,custom:e,initial:i=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:d=!1,anchorX:p="left"})=>{let[y,v]=(0,m.oO)(d),b=(0,n.useMemo)(()=>g(t),[t]),x=d&&!y?[]:b.map(f),w=(0,n.useRef)(!0),k=(0,n.useRef)(b),T=(0,o.h)(()=>new Map),[P,S]=(0,n.useState)(b),[A,M]=(0,n.useState)(b);(0,a.L)(()=>{w.current=!1,k.current=b;for(let t=0;t<A.length;t++){let e=f(A[t]);x.includes(e)?T.delete(e):!0!==T.get(e)&&T.set(e,!1)}},[A,x.length,x.join("-")]);let E=[];if(b!==P){let t=[...b];for(let e=0;e<A.length;e++){let i=A[e],r=f(i);x.includes(r)||(t.splice(e,0,i),E.push(i))}return"wait"===h&&E.length&&(t=E),M(g(t)),S(b),null}let{forceRender:V}=(0,n.useContext)(s.p);return(0,r.jsx)(r.Fragment,{children:A.map(t=>{let n=f(t),s=(!d||!!y)&&(b===A||x.includes(n));return(0,r.jsx)(c,{isPresent:s,initial:(!w.current||!!i)&&void 0,custom:e,presenceAffectsLayout:u,mode:h,onExitComplete:s?void 0:()=>{if(!T.has(n))return;T.set(n,!0);let t=!0;T.forEach(e=>{e||(t=!1)}),t&&(V?.(),M(k.current),d&&v?.(),l&&l())},anchorX:p,children:t},n)})})}},9805:function(t,e,i){"use strict";i.d(e,{oO:function(){return s}});var r=i(7294),n=i(4048);function s(t=!0){let e=(0,r.useContext)(n.O);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:o}=e,a=(0,r.useId)();(0,r.useEffect)(()=>{if(t)return o(a)},[t]);let l=(0,r.useCallback)(()=>t&&s&&s(a),[a,s,t]);return!i&&s?[!1,l]:[!0]}},910:function(t,e,i){"use strict";i.d(e,{p:function(){return r}});let r=(0,i(7294).createContext)({})},7439:function(t,e,i){"use strict";i.d(e,{_:function(){return r}});let r=(0,i(7294).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},4048:function(t,e,i){"use strict";i.d(e,{O:function(){return r}});let r=(0,i(7294).createContext)(null)},760:function(t,e,i){"use strict";let r;function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function s(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function o(t,e,i,r){if("function"==typeof e){let[n,o]=s(r);e=e(void 0!==i?i:t.custom,n,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,o]=s(r);e=e(void 0!==i?i:t.custom,n,o)}return e}function a(t,e,i){let r=t.getProps();return o(r,e,void 0!==i?i:r.custom,t)}i.d(e,{E:function(){return sA}});let l=t=>Array.isArray(t),u=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],h={value:null,addProjectionMetrics:null},d={};function c(t,e){let i=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=u.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,r=new Set,n=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(d.schedule(e),t()),l++,e(a)}let d={schedule:(t,e=!1,s=!1)=>{let a=s&&n?i:r;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{r.delete(t),o.delete(t)},process:t=>{if(a=t,n){s=!0;return}n=!0,[i,r]=[r,i],i.forEach(u),e&&h.value&&h.value.frameloop[e].push(l),l=0,i.clear(),n=!1,s&&(s=!1,d.process(t))}};return d}(s,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:p,update:m,preRender:f,render:g,postRender:y}=o,v=()=>{let s=d.useManualTiming?n.timestamp:performance.now();i=!1,d.useManualTiming||(n.delta=r?1e3/60:Math.max(Math.min(s-n.timestamp,40),1)),n.timestamp=s,n.isProcessing=!0,a.process(n),l.process(n),c.process(n),p.process(n),m.process(n),f.process(n),g.process(n),y.process(n),n.isProcessing=!1,i&&e&&(r=!1,t(v))},b=()=>{i=!0,r=!0,n.isProcessing||t(v)};return{schedule:u.reduce((t,e)=>{let r=o[e];return t[e]=(t,e=!1,n=!1)=>(i||b(),r.schedule(t,e,n)),t},{}),cancel:t=>{for(let e=0;e<u.length;e++)o[u[e]].cancel(t)},state:n,steps:o}}let p=t=>t,{schedule:m,cancel:f,state:g,steps:y}=c("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:p,!0);function v(){r=void 0}let b={now:()=>(void 0===r&&b.set(g.isProcessing||d.useManualTiming?g.timestamp:performance.now()),r),set:t=>{r=t,queueMicrotask(v)}};function x(t,e){-1===t.indexOf(e)&&t.push(e)}function w(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class k{constructor(){this.subscriptions=[]}add(t){return x(this.subscriptions,t),()=>w(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](t,e,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let T=t=>!isNaN(parseFloat(t)),P={current:void 0};class S{constructor(t,e={}){this.version="__VERSION__",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=b.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty();e&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=b.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=T(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new k);let i=this.events[t].add(e);return"change"===t?()=>{i(),m.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return P.current&&P.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=b.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function A(t,e){return new S(t,e)}let M=t=>!!(t&&t.getVelocity);function E(t,e){let i=t.getValue("willChange");if(M(i)&&i.add)return i.add(e);if(!i&&d.WillChange){let i=new d.WillChange("auto");
9t.addValue("willChange",i),i.add(e)}}let V=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),C="data-"+V("framerAppearId"),D=t=>null!==t,R=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],j=new Set(R),L={type:"spring",stiffness:500,damping:25,restSpeed:10},F=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),B={type:"keyframes",duration:.8},O={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},I=(t,{keyframes:e})=>e.length>2?B:j.has(t)?t.startsWith("scale")?F(e[1]):L:O;function z(t,e){return t?.[e]??t?.default??t}let U=t=>1e3*t,$=t=>t/1e3,N={layout:0,mainThread:0,waapi:0},W=t=>e=>"string"==typeof e&&e.startsWith(t),Y=W("--"),H=W("var(--"),X=t=>!!H(t)&&_.test(t.split("/*")[0].trim()),_=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,G=(t,e,i)=>i>e?e:i<t?t:i,K={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},q={...K,transform:t=>G(0,1,t)},Z={...K,default:1},J=t=>Math.round(1e5*t)/1e5,Q=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,te=(t,e)=>i=>!!("string"==typeof i&&tt.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),ti=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[n,s,o,a]=r.match(Q);return{[t]:parseFloat(n),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tr=t=>G(0,255,t),tn={...K,transform:t=>Math.round(tr(t))},ts={test:te("rgb","red"),parse:ti("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+tn.transform(t)+", "+tn.transform(e)+", "+tn.transform(i)+", "+J(q.transform(r))+")"},to={test:te("#"),parse:function(t){let e="",i="",r="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}},transform:ts.transform},ta=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tl=ta("deg"),tu=ta("%"),th=ta("px"),td=ta("vh"),tc=ta("vw"),tp={...tu,parse:t=>tu.parse(t)/100,transform:t=>tu.transform(100*t)},tm={test:te("hsl","hue"),parse:ti("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+tu.transform(J(e))+", "+tu.transform(J(i))+", "+J(q.transform(r))+")"},tf={test:t=>ts.test(t)||to.test(t)||tm.test(t),parse:t=>ts.test(t)?ts.parse(t):tm.test(t)?tm.parse(t):to.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?ts.transform(t):tm.transform(t)},tg=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ty="number",tv="color",tb=/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 tx(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},n=[],s=0,o=e.replace(tb,t=>(tf.test(t)?(r.color.push(s),n.push(tv),i.push(tf.parse(t))):t.startsWith("var(")?(r.var.push(s),n.push("var"),i.push(t)):(r.number.push(s),n.push(ty),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:r,types:n}}function tw(t){return tx(t).values}function tk(t){let{split:e,types:i}=tx(t),r=e.length;return t=>{let n="";for(let s=0;s<r;s++)if(n+=e[s],void 0!==t[s]){let e=i[s];e===ty?n+=J(t[s]):e===tv?n+=tf.transform(t[s]):n+=t[s]}return n}}let tT=t=>"number"==typeof t?0:t,tP={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(Q)?.length||0)+(t.match(tg)?.length||0)>0},parse:tw,createTransformer:tk,getAnimatableNone:function(t){let e=tw(t);return tk(t)(e.map(tT))}};function tS(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function tA(t,e){return i=>i>0?e:t}let tM=(t,e,i)=>t+(e-t)*i,tE=()=>{},tV=()=>{},tC=(t,e,i)=>{let r=t*t,n=i*(e*e-r)+r;return n<0?0:Math.sqrt(n)},tD=[to,ts,tm],tR=t=>tD.find(e=>e.test(t));function tj(t){let e=tR(t);if(tE(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tm&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let n=0,s=0,o=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,a=2*i-r;n=tS(a,r,t+1/3),s=tS(a,r,t),o=tS(a,r,t-1/3)}else n=s=o=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(i)),i}let tL=(t,e)=>{let i=tj(t),r=tj(e);if(!i||!r)return tA(t,e);let n={...i};return t=>(n.red=tC(i.red,r.red,t),n.green=tC(i.green,r.green,t),n.blue=tC(i.blue,r.blue,t),n.alpha=tM(i.alpha,r.alpha,t),ts.transform(n))},tF=new Set(["none","hidden"]),tB=(t,e)=>i=>e(t(i)),tO=(...t)=>t.reduce(tB);function tI(t,e){return i=>tM(t,e,i)}function tz(t){return"number"==typeof t?tI:"string"==typeof t?X(t)?tA:tf.test(t)?tL:tN:Array.isArray(t)?tU:"object"==typeof t?tf.test(t)?tL:t$:tA}function tU(t,e){let i=[...t],r=i.length,n=t.map((t,i)=>tz(t)(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=n[e](t);return i}}function t$(t,e){let i={...t,...e},r={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(r[n]=tz(t[n])(t[n],e[n]));return t=>{for(let e in r)i[e]=r[e](t);return i}}let tN=(t,e)=>{let i=tP.createTransformer(e),r=tx(t),n=tx(e);return r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length?tF.has(t)&&!n.values.length||tF.has(e)&&!r.values.length?tF.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:tO(tU(function(t,e){let i=[],r={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let s=e.types[n],o=t.indexes[s][r[s]],a=t.values[o]??0;i[n]=a,r[s]++}
9return i}(r,n),n.values),i):(tE(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tA(t,e))};function tW(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?tM(t,e,i):tz(t)(t,e)}let tY=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>m.update(e,t),stop:()=>f(e),now:()=>g.isProcessing?g.timestamp:b.now()}},tH=(t,e,i=10)=>{let r="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)r+=t(e/(n-1))+", ";return`linear(${r.substring(0,r.length-2)})`};function tX(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function t_(t,e,i){var r,n;let s=Math.max(e-5,0);return r=i-t(s),(n=e-s)?1e3/n*r:0}let tG={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};function tK(t,e){return t*Math.sqrt(1-e*e)}let tq=["duration","bounce"],tZ=["stiffness","damping","mass"];function tJ(t,e){return e.some(e=>void 0!==t[e])}function tQ(t=tG.visualDuration,e=tG.bounce){let i;let r="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:s}=r,o=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:d,duration:c,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:tG.velocity,stiffness:tG.stiffness,damping:tG.damping,mass:tG.mass,isResolvedFromDuration:!1,...t};if(!tJ(t,tZ)&&tJ(t,tq)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),r=i*i,n=2*G(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:tG.mass,stiffness:r,damping:n}}else{let i=function({duration:t=tG.duration,bounce:e=tG.bounce,velocity:i=tG.velocity,mass:r=tG.mass}){let n,s;tE(t<=U(tG.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=G(tG.minDamping,tG.maxDamping,o),t=G(tG.minDuration,tG.maxDuration,$(t)),o<1?(n=e=>{let r=e*o,n=r*t;return .001-(r-i)/tK(e,o)*Math.exp(-n)},s=e=>{let r=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=tK(Math.pow(e,2),o);return(r*i+i-s)*Math.exp(-r)*(-n(e)+.001>0?-1:1)/a}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(n,s,5/t);if(t=U(t),isNaN(a))return{stiffness:tG.stiffness,damping:tG.damping,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:tG.mass}).isResolvedFromDuration=!0}}return e}({...r,velocity:-$(r.velocity||0)}),f=p||0,g=h/(2*Math.sqrt(u*d)),y=a-o,v=$(Math.sqrt(u/d)),b=5>Math.abs(y);if(n||(n=b?tG.restSpeed.granular:tG.restSpeed.default),s||(s=b?tG.restDelta.granular:tG.restDelta.default),g<1){let t=tK(v,g);i=e=>a-Math.exp(-g*v*e)*((f+g*v*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-v*t)*(y+(f+v*y)*t);else{let t=v*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*v*e),r=Math.min(t*e,300);return a-i*((f+g*v*y)*Math.sinh(r)+t*y*Math.cosh(r))/t}}let x={calculatedDuration:m&&c||null,next:t=>{let e=i(t);if(m)l.done=t>=c;else{let r=0===t?f:0;g<1&&(r=0===t?U(f):t_(i,t,e));let o=Math.abs(r)<=n,u=Math.abs(a-e)<=s;l.done=o&&u}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(tX(x),2e4),e=tH(e=>x.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return x}function t0({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c;let p=t[0],m={done:!1,value:p},f=t=>void 0!==a&&t<a||void 0!==l&&t>l,g=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,y=i*e,v=p+y,b=void 0===o?v:o(v);b!==v&&(y=b-p);let x=t=>-y*Math.exp(-t/r),w=t=>b+x(t),k=t=>{let e=x(t),i=w(t);m.done=Math.abs(e)<=u,m.value=m.done?b:i},T=t=>{f(m.value)&&(d=t,c=tQ({keyframes:[m.value,g(m.value)],velocity:t_(w,t,m.value),damping:n,stiffness:s,restDelta:u,restSpeed:h}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,k(t),T(t)),void 0!==d&&t>=d)?c.next(t-d):(e||k(t),m)}}}tQ.applyToOptions=t=>{let e=function(t,e=100,i){let r=i({...t,keyframes:[0,e]}),n=Math.min(tX(r),2e4);return{type:"keyframes",ease:t=>r.next(n*t).value/e,duration:$(n)}}(t,100,tQ);return t.ease=e.ease,t.duration=U(e.duration),t.type="keyframes",t};let t1=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r},t2=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function t5(t,e,i,r){if(t===e&&i===r)return p;let n=e=>
9(function(t,e,i,r,n){let s,o;let a=0;do(s=t2(o=e+(i-e)/2,r,n)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:t2(n(t),e,r)}let t3=t5(.42,0,1,1),t9=t5(0,0,.58,1),t4=t5(.42,0,.58,1),t8=t=>Array.isArray(t)&&"number"!=typeof t[0],t6=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,t7=t=>e=>1-t(1-e),et=t5(.33,1.53,.69,.99),ee=t7(et),ei=t6(ee),er=t=>(t*=2)<1?.5*ee(t):.5*(2-Math.pow(2,-10*(t-1))),en=t=>1-Math.sin(Math.acos(t)),es=t7(en),eo=t6(en),ea=t=>Array.isArray(t)&&"number"==typeof t[0],el={linear:p,easeIn:t3,easeInOut:t4,easeOut:t9,circIn:en,circInOut:eo,circOut:es,backIn:ee,backInOut:ei,backOut:et,anticipate:er},eu=t=>"string"==typeof t,eh=t=>{if(ea(t)){tV(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,r,n]=t;return t5(e,i,r,n)}return eu(t)?(tV(void 0!==el[t],`Invalid easing type '${t}'`),el[t]):t};function ed({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){let n=t8(r)?r.map(eh):eh(r),s={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:r,mixer:n}={}){let s=t.length;if(tV(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let r=[],n=i||d.mix||tW,s=t.length-1;for(let i=0;i<s;i++){let s=n(t[i],t[i+1]);e&&(s=tO(Array.isArray(e)?e[i]||p:e,s)),r.push(s)}return r}(e,r,n),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let r=0;if(l>1)for(;r<t.length-2&&!(i<t[r+1]);r++);let n=t1(t[r],t[r+1],i);return a[r](n)};return i?e=>u(G(t[0],t[s-1],e)):u}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let n=t1(0,e,r);t.push(tM(i,1,n))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(n)?n:e.map(()=>n||t4).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}let ec=t=>null!==t;function ep(t,{repeat:e,repeatType:i="loop"},r,n=1){let s=t.filter(ec),o=n<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==r?r:s[o]}let em={decay:t0,inertia:t0,tween:ed,keyframes:ed,spring:tQ};function ef(t){"string"==typeof t.type&&(t.type=em[t.type])}class eg{constructor(){this.count=0,this.updateFinished()}get finished(){return this._finished}updateFinished(){this.count++,this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let ey=t=>t/100;class ev extends eg{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;if(t&&t.updatedAt!==b.now()&&this.tick(b.now()),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()},N.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;ef(t);let{type:e=ed,repeat:i=0,repeatDelay:r=0,repeatType:n,velocity:s=0}=t,{keyframes:o}=t,a=e||ed;a!==ed&&"number"!=typeof o[0]&&(this.mixKeyframes=tO(ey,tW(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===n&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=tX(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(i+1)-r,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:r,mixKeyframes:n,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:c,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let v=this.currentTime,b=i;if(h){let t=Math.min(this.currentTime,r)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,h+1))%2&&("reverse"===d?(i=1-i,c&&(i-=c/o)):"mirror"===d&&(b=s)),v=G(0,1,i)*o}let x=y?{done:!1,value:u[0]}:b.next(v);n&&(x.value=n(x.value));let{done:w}=x;
9y||null===a||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return k&&p!==t0&&(x.value=ep(u,this.options,f,this.speed)),m&&m(x.value),k&&this.finish(),x}then(t,e){return this.finished.then(t,e)}get duration(){return $(this.calculatedDuration)}get time(){return $(this.currentTime)}set time(t){t=U(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(b.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=$(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=tY,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=i??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(b.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown()}teardown(){this.notifyFinished(),this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,N.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let eb=t=>180*t/Math.PI,ex=t=>ek(eb(Math.atan2(t[1],t[0]))),ew={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:ex,rotateZ:ex,skewX:t=>eb(Math.atan(t[1])),skewY:t=>eb(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},ek=t=>((t%=360)<0&&(t+=360),t),eT=t=>
9Math.sqrt(t[0]*t[0]+t[1]*t[1]),eP=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),eS={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eT,scaleY:eP,scale:t=>(eT(t)+eP(t))/2,rotateX:t=>ek(eb(Math.atan2(t[6],t[5]))),rotateY:t=>ek(eb(Math.atan2(-t[2],t[0]))),rotateZ:ex,rotate:ex,skewX:t=>eb(Math.atan(t[4])),skewY:t=>eb(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function eA(t){return t.includes("scale")?1:0}function eM(t,e){let i,r;if(!t||"none"===t)return eA(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=eS,r=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=ew,r=e}if(!r)return eA(e);let s=i[e],o=r[1].split(",").map(eV);return"function"==typeof s?s(o):o[s]}let eE=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return eM(i,e)};function eV(t){return parseFloat(t.trim())}let eC=t=>t===K||t===th,eD=new Set(["x","y","z"]),eR=R.filter(t=>!eD.has(t)),ej={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>eM(e,"x"),y:(t,{transform:e})=>eM(e,"y")};ej.translateX=ej.x,ej.translateY=ej.y;let eL=new Set,eF=!1,eB=!1,eO=!1;function eI(){if(eB){let t=Array.from(eL).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return eR.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(i.startsWith("scale")?1:0))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}eB=!1,eF=!1,eL.forEach(t=>t.complete(eO)),eL.clear()}function ez(){eL.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(eB=!0)})}class eU{constructor(t,e,i,r,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(eL.add(this),eF||(eF=!0,m.read(ez),m.resolveKeyframes(eI))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;if(null===t[0]){let n=r?.get(),s=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let r=i.readValue(e,s);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=s),r&&void 0===n&&r.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),eL.delete(this)}cancel(){"scheduled"===this.state&&(eL.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let e$=t=>t.startsWith("--");function eN(t){let e;return()=>(void 0===e&&(e=t()),e)}let eW=eN(()=>void 0!==window.ScrollTimeline),eY={},eH=function(t,e){let i=eN(t);return()=>eY[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),eX=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,e_={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eX([0,.65,.55,1]),circOut:eX([.55,0,1,.45]),backIn:eX([.31,.01,.66,-.59]),backOut:eX([.33,1.53,.69,.99])};function eG(t){return"function"==typeof t&&"applyToOptions"in t}class eK extends eg{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:r,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=t,tV("string"!=typeof t.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let l=function({type:t,...e}){return eG(t)&&eH()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:r=0,duration:n=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let d={[e]:i};l&&(d.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?eH()?tH(e,i):"ease-out":ea(e)?eX(e):Array.isArray(e)?e.map(e=>t(e,i)||e_.easeOut):e_[e]}(a,n);Array.isArray(c)&&(d.easing=c),h.value&&N.waapi++;let p={delay:r,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(p.pseudoElement=u);let m=t.animate(d,p);return h.value&&m.finished.finally(()=>{N.waapi--}),m}(e,i,r,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=ep(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):e$(i)?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}a?.(),this.notifyFinished()},this.animation.oncancel=()=>this.notifyFinished()}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return $(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get time(){return $(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=U(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&eW())?(this.animation.timeline=t,p):e(this)}}let eq={anticipate:er,backInOut:ei,circInOut:eo};class eZ extends eK{constructor(t){"string"==typeof t.ease&&t.ease in eq&&(t.ease=eq[t.ease]),ef(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:r,element:n,...s}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let o=new ev({...s,autoplay:!1}),a=U(this.finishedTime??this.time);e.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}let eJ=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tP.test(t)||"0"===t)&&!t.startsWith("url(")),eQ=new Set(["opacity","clipPath","filter","transform"]),e0=eN(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class e1 extends eg{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=b.now();let d={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:n,repeatType:s,name:a,motionValue:l,element:u,...h},c=u?.KeyframeResolver||eU;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,r){this.keyframeResolver=void 0;let{name:n,type:s,velocity:o,delay:a,isHandoff:l,onUpdate:u}=i;
9this.resolvedAt=b.now(),!function(t,e,i,r){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=eJ(n,e),a=eJ(s,e);return tE(o===a,`You are trying to animate ${e} from "${n}" to "${s}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||eG(i))&&r)}(t,n,s,o)&&((d.instantAnimations||!a)&&u?.(ep(t,i,e)),t[0]=t[t.length-1],i.duration=0,i.repeat=0);let h={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},c=!l&&function(t){let{motionValue:e,name:i,repeatDelay:r,repeatType:n,damping:s,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return e0()&&i&&eQ.has(i)&&("transform"!==i||!l)&&!a&&!r&&"mirror"!==n&&0!==s&&"inertia"!==o}(h)?new eZ({...h,element:h.motionValue.owner.current}):new ev(h);c.finished.then(()=>this.notifyFinished()).catch(p),this.pendingTimeline&&(this.stopTimeline=c.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=c}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eO=!0,ez(),eI(),eO=!1),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(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let e2=(t,e,i,r={},n,s)=>o=>{let a=z(r,t)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u-=U(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&Object.assign(h,I(t,h)),h.duration&&(h.duration=U(h.duration)),h.repeatDelay&&(h.repeatDelay=U(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0!==h.delay||(c=!0)),(d.instantAnimations||d.skipAnimations)&&(c=!0,h.duration=0,h.delay=0),h.allowFlatten=!a.type&&!a.ease,c&&!s&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},r){let n=t.filter(D),s=e&&"loop"!==i&&e%2==1?0:n.length-1;return n[s]}(h.keyframes,a);if(void 0!==t){m.update(()=>{h.onUpdate(t),h.onComplete()});return}}return new e1(h)},e5=new Set(["width","height","top","left","right","bottom",...R]);function e3(t,e,{delay:i=0,transitionOverride:r,type:n}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:o,...u}=e;r&&(s=r);let h=[],d=n&&t.animationState&&t.animationState.getState()[n];for(let e in u){let r=t.getValue(e,t.latestValues[e]??null),n=u[e];if(void 0===n||d&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(d,e))continue;let o={delay:i,...z(s||{},e)},a=r.get();if(void 0!==a&&!r.isAnimating&&!Array.isArray(n)&&n===a&&!o.velocity)continue;let l=!1;if(window.MotionHandoffAnimation){let i=t.props[C];if(i){let t=window.MotionHandoffAnimation(i,e,m);null!==t&&(o.startTime=t,l=!0)}}E(t,e),r.start(e2(e,r,n,t.shouldReduceMotion&&e5.has(e)?{type:!1}:o,t,l));let c=r.animation;c&&h.push(c)}return o&&Promise.all(h).then(()=>{m.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:r={},...n}=a(t,e)||{};for(let e in n={...n,...i}){var s;let i=l(s=n[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,A(i))}}(t,o)})}),h}function e9(t,e,i={}){let r=a(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let s=r?()=>Promise.all(e3(t,r,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=n;
9return function(t,e,i=0,r=0,n=1,s){let o=[],a=(t.variantChildren.size-1)*r,l=1===n?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(e4).forEach((t,r)=>{t.notify("AnimationStart",e),o.push(e9(t,e,{...s,delay:i+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+r,o,a,i)}:()=>Promise.resolve(),{when:l}=n;if(!l)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===l?[s,o]:[o,s];return t().then(()=>e())}}function e4(t,e){return t.sortNodePosition(e)}function e8(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}function e6(t){return"string"==typeof t||Array.isArray(t)}let e7=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],it=["initial",...e7],ie=it.length,ii=[...e7].reverse(),ir=e7.length;function is(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function io(){return{animate:is(!0),whileInView:is(),whileHover:is(),whileTap:is(),whileDrag:is(),whileFocus:is(),exit:is()}}class ia{constructor(t){this.isMounted=!1,this.node=t}update(){}}class il extends ia{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>e9(t,e,i)));else if("string"==typeof e)r=e9(t,e,i);else{let n="function"==typeof e?a(t,e,i.custom):e;r=Promise.all(e3(t,n,i))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=io(),r=!0,s=e=>(i,r)=>{let n=a(t,r,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...r}=n;i={...i,...r,...e}}return i};function o(o){let{props:u}=t,h=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<ie;t++){let r=it[t],n=e.props[r];(e6(n)||!1===n)&&(i[r]=n)}return i}(t.parent)||{},d=[],c=new Set,p={},m=1/0;for(let e=0;e<ir;e++){var f;let a=ii[e],g=i[a],y=void 0!==u[a]?u[a]:h[a],v=e6(y),b=a===o?g.isActive:null;!1===b&&(m=e);let x=y===h[a]&&y!==u[a]&&v;if(x&&r&&t.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...p},!g.isActive&&null===b||!y&&!g.prevProp||n(y)||"boolean"==typeof y)continue;let w=(f=g.prevProp,"string"==typeof y?y!==f:!!Array.isArray(y)&&!e8(y,f)),k=w||a===o&&g.isActive&&!x&&v||e>m&&v,T=!1,P=Array.isArray(y)?y:[y],S=P.reduce(s(a),{});!1===b&&(S={});let{prevResolvedValues:A={}}=g,M={...A,...S},E=e=>{k=!0,c.has(e)&&(T=!0,c.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in M){let e=S[t],i=A[t];if(!p.hasOwnProperty(t))(l(e)&&l(i)?e8(e,i):e===i)?void 0!==e&&c.has(t)?E(t):g.protectedKeys[t]=!0:null!=e?E(t):c.add(t)}g.prevProp=y,g.prevResolvedValues=S,g.isActive&&(p={...p,...S}),r&&t.blockInitialAnimation&&(k=!1);let V=!(x&&w)||T;k&&V&&d.push(...P.map(t=>({animation:t,options:{type:a}})))}if(c.size){let e={};if("boolean"!=typeof u.initial){let i=a(t,Array.isArray(u.initial)?u.initial[0]:u.initial);i&&i.transition&&(e.transition=i.transition)}c.forEach(i=>{let r=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=r??null}),d.push({animation:e})}let g=!!d.length;return r&&(!1===u.initial||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(g=!1),r=!1,g?e(d):Promise.resolve()}return{animateChanges:o,setActive:function(e,r){if(i[e].isActive===r)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,r)),i[e].isActive=r;let n=o(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=io(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();n(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let iu=0;class ih extends ia{constructor(){super(...arguments),this.id=iu++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>
9{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}function id(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}let ic=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ip(t){return{point:{x:t.pageX,y:t.pageY}}}let im=t=>e=>ic(e)&&t(e,ip(e));function ig(t,e,i,r){return id(t,e,im(i),r)}function iy({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function iv(t){return t.max-t.min}function ib(t,e,i,r=.5){t.origin=r,t.originPoint=tM(e.min,e.max,t.origin),t.scale=iv(i)/iv(e),t.translate=tM(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function ix(t,e,i,r){ib(t.x,e.x,i.x,r?r.originX:void 0),ib(t.y,e.y,i.y,r?r.originY:void 0)}function iw(t,e,i){t.min=i.min+e.min,t.max=t.min+iv(e)}function ik(t,e,i){t.min=e.min-i.min,t.max=t.min+iv(e)}function iT(t,e,i){ik(t.x,e.x,i.x),ik(t.y,e.y,i.y)}let iP=()=>({translate:0,scale:1,origin:0,originPoint:0}),iS=()=>({x:iP(),y:iP()}),iA=()=>({min:0,max:0}),iM=()=>({x:iA(),y:iA()});function iE(t){return[t("x"),t("y")]}function iV(t){return void 0===t||1===t}function iC({scale:t,scaleX:e,scaleY:i}){return!iV(t)||!iV(e)||!iV(i)}function iD(t){return iC(t)||iR(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iR(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function ij(t,e,i,r,n){return void 0!==n&&(t=r+n*(t-r)),r+i*(t-r)+e}function iL(t,e=0,i=1,r,n){t.min=ij(t.min,e,i,r,n),t.max=ij(t.max,e,i,r,n)}function iF(t,{x:e,y:i}){iL(t.x,e.translate,e.scale,e.originPoint),iL(t.y,i.translate,i.scale,i.originPoint)}function iB(t,e){t.min=t.min+e,t.max=t.max+e}function iO(t,e,i,r,n=.5){let s=tM(t.min,t.max,n);iL(t,e,i,s,r)}function iI(t,e){iO(t.x,e.x,e.scaleX,e.scale,e.originX),iO(t.y,e.y,e.scaleY,e.scale,e.originY)}function iz(t,e){return iy(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let iU=({current:t})=>t?t.ownerDocument.defaultView:null;function i$(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let iN=(t,e)=>Math.abs(t-e);class iW{constructor(t,e,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=iX(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(iN(t.x,e.x)**2+iN(t.y,e.y)**2)>=3);if(!r&&!n)return;let{point:s}=i,{timestamp:o}=g;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iY(e,this.transformPagePoint),m.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=iX("pointercancel"===t.type?this.lastMoveEventInfo:iY(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),r&&r(t,s)},!ic(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=r||window;let s=iY(ip(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=g;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,iX(s,this.history)),this.removeListeners=tO(ig(this.contextWindow,"pointermove",this.handlePointerMove),ig(this.contextWindow,"pointerup",this.handlePointerUp),ig(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),f(this.updatePoint)}}function iY(t,e){return e?{point:e(t.point)}:t}function iH(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iX({point:t},e){return{point:t,delta:iH(t,i_(e)),offset:iH(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,r=null,n=i_(t);for(;i>=0&&(r=t[i],!(n.timestamp-r.timestamp>U(.1)));)i--;if(!r)return{x:0,y:0};let s=$(n.timestamp-r.timestamp);if(0===s)return{x:0,y:0};let o={x:(n.x-r.x)/s,y:(n.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function i_(t){return t[t.length-1]}function iG(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function iK(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function iq(t,e,i){return{min:iZ(t,e),max:iZ(t,i)}}function iZ(t,e){return"number"==typeof t?t:t[e]||0}let iJ={x:!1,y:!1},iQ=new WeakMap;class i0{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iM(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new iW(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(ip(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?iJ[i]?null:(iJ[i]=!0,()=>{iJ[i]=!1}):iJ.x||iJ.y?null:(iJ.x=iJ.y=!0,()=>{iJ.x=iJ.y=!1}),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iE(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tu.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];if(r){let t=iv(r);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),n&&m.postRender(()=>n(t,e)),E(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>iE(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:iU(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:n}=this.getProps();n&&m.postRender(()=>n(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!i1(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?tM(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?tM(i,t,r.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&i$(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:r,right:n}){return{x:iG(t.x,i,n),y:iG(t.y,e,r)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iq(t,"left","right"),y:iq(t,"top","bottom")}}(e),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&iE(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!i$(e))return!1;let r=e.current;tV(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;
9let s=function(t,e,i){let r=iz(t,i),{scroll:n}=e;return n&&(iB(r.x,n.offset.x),iB(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),o={x:iK((t=n.layout.layoutBox).x,s.x),y:iK(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=iy(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iE(o=>{if(!i1(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return E(this.visualElement,t),i.start(e2(t,i,0,e,this.visualElement,!1))}stopAnimation(){iE(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iE(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iE(e=>{let{drag:i}=this.getProps();if(!i1(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[e];n.set(t[e]-tM(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!i$(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};iE(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();r[t]=function(t,e){let i=.5,r=iv(t),n=iv(e);return n>r?i=t1(e.min,e.max-r,t.min):r>n&&(i=t1(t.min,t.max-n,e.min)),G(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iE(e=>{if(!i1(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];i.set(tM(n,s,r[e]))})}addListeners(){if(!this.visualElement.current)return;iQ.set(this.visualElement,this);let t=ig(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();i$(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),m.read(e);let n=id(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iE(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),r(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function i1(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class i2 extends ia{constructor(t){super(t),this.removeGroupControls=p,this.removeListeners=p,this.controls=new i0(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||p}unmount(){this.removeGroupControls(),this.removeListeners()}}let i5=t=>(e,i)=>{t&&m.postRender(()=>t(e,i))};class i3 extends ia{constructor(){super(...arguments),this.removePointerDownListener=p}onPointerDown(t){this.session=new iW(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iU(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:i5(t),onStart:i5(e),onMove:i,onEnd:(t,e)=>{delete this.session,r&&m.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=ig(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var i9,i4,i8,i6=i(5893),i7=i(7294),rt=i(9805),re=i(910);let ri=(0,i7.createContext)({}),rr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let rs={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!th.test(t))return t;t=parseFloat(t)}let i=rn(t,e.target.x),r=rn(t,e.target.y);return`${i}% ${r}%`}},ro={},{schedule:ra,cancel:rl}=c(queueMicrotask,!1);class ru extends i7.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=t;!function(t){for(let e in t)ro[e]=t[e],Y(e)&&(ro[e].isCSSVariable=!0)}(rd),n&&(e.group&&e.group.add(n),i&&i.register&&r&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),rr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:n}=this.props,{projection:s}=i;return s&&(s.isPresent=n,r||t.layoutDependency!==e||void 0===e||t.isPresent!==n?s.willUpdate():this.safeToRemove(),t.isPresent===n||(n?s.promote():s.relegate()||m.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ra.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rh(t){let[e,i]=(0,rt.oO)(),r=(0,i7.useContext)(re.p);return(0,i6.jsx)(ru,{...t,layoutGroup:r,switchLayoutGroup:(0,i7.useContext)(ri),isPresent:e,safeToRemove:i})}let rd={borderRadius:{...rs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rs,borderTopRightRadius:rs,borderBottomLeftRadius:rs,borderBottomRightRadius:rs,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=tP.parse(t);if(r.length>5)return t;let n=tP.createTransformer(t),s="number"!=typeof r[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+s]/=o,r[1+s]/=a;let l=tM(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}},rc=(t,e)=>t.depth-e.depth;class rp{constructor(){this.children=[],this.isDirty=!1}add(t){x(this.children,t),this.isDirty=!0}remove(t){w(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rc),this.isDirty=!1,this.children.forEac
9h(t)}}function rm(t){return M(t)?t.get():t}let rf=["TopLeft","TopRight","BottomLeft","BottomRight"],rg=rf.length,ry=t=>"string"==typeof t?parseFloat(t):t,rv=t=>"number"==typeof t||th.test(t);function rb(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rx=rk(0,.5,es),rw=rk(.5,.95,p);function rk(t,e,i){return r=>r<t?0:r>e?1:i(t1(t,e,r))}function rT(t,e){t.min=e.min,t.max=e.max}function rP(t,e){rT(t.x,e.x),rT(t.y,e.y)}function rS(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rA(t,e,i,r,n){return t-=e,t=r+1/i*(t-r),void 0!==n&&(t=r+1/n*(t-r)),t}function rM(t,e,[i,r,n],s,o){!function(t,e=0,i=1,r=.5,n,s=t,o=t){if(tu.test(e)&&(e=parseFloat(e),e=tM(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=tM(s.min,s.max,r);t===s&&(a-=e),t.min=rA(t.min,e,i,a,n),t.max=rA(t.max,e,i,a,n)}(t,e[i],e[r],e[n],e.scale,s,o)}let rE=["x","scaleX","originX"],rV=["y","scaleY","originY"];function rC(t,e,i,r){rM(t.x,e,rE,i?i.x:void 0,r?r.x:void 0),rM(t.y,e,rV,i?i.y:void 0,r?r.y:void 0)}function rD(t){return 0===t.translate&&1===t.scale}function rR(t){return rD(t.x)&&rD(t.y)}function rj(t,e){return t.min===e.min&&t.max===e.max}function rL(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rF(t,e){return rL(t.x,e.x)&&rL(t.y,e.y)}function rB(t){return iv(t.x)/iv(t.y)}function rO(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rI{constructor(){this.members=[]}add(t){x(this.members,t),t.scheduleRender()}remove(t){if(w(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rz={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},rU=["","X","Y","Z"],r$={visibility:"hidden"},rN=0;function rW(t,e,i,r){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),r&&(r[t]=0))}function rY({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=rN++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,h.value&&(rz.nodes=rz.calculatedTargetDeltas=rz.calculatedProjections=0),this.nodes.forEach(r_),this.nodes.forEach(r0),this.nodes.forEach(r1),this.nodes.forEach(rG),h.addProjectionMetrics&&h.addProjectionMetrics(rz)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rp)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new k),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:i,layout:r,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||i)&&(this.isLayoutDirty=!0),t){let i;let r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=b.now(),r=({timestamp:e})=>{let n=e-i;n>=250&&(f(r),t(n-250))};return m.setup(r,!0),()=>f(r)}(r,0),rr.hasAnimatedSinceResize&&(rr.hasAnimatedSinceResize=!1,this.nodes.forEac
9h(rQ))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||n.getDefaultTransition()||r8,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!rF(this.targetLayout,r),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...z(s,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||rQ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),f(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(r2),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let r=i.props[C];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",m,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rq);return}this.isUpdating||this.nodes.forEach(rZ),this.isUpdating=!1,this.nodes.forEach(rJ),this.nodes.forEach(rH),this.nodes.forEach(rX),this.clearAllSnapshots();let t=b.now();g.delta=G(0,1e3/60,t-g.timestamp),g.timestamp=t,g.isProcessing=!0,y.update.process(g),y.preRender.process(g),y.render.process(g),g.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ra.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rK),this.sharedNodes.forEach(r5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,m.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){m.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||iv(this.snapshot.measuredBox.x)||iv(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iM(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=r(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rR(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;t&&this.instance&&(e||iD(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);
9return t&&(r=this.removeTransform(r)),nt((e=r).x),nt(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return iM();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ni))){let{scroll:t}=this.root;t&&(iB(e.x,t.offset.x),iB(e.y,t.offset.y))}return e}removeElementScroll(t){let e=iM();if(rP(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let r=this.path[i],{scroll:n,options:s}=r;r!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&rP(e,t),iB(e.x,n.offset.x),iB(e.y,n.offset.y))}return e}applyTransform(t,e=!1){let i=iM();rP(i,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&iI(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),iD(r.latestValues)&&iI(i,r.latestValues)}return iD(this.latestValues)&&iI(i,this.latestValues),i}removeTransform(t){let e=iM();rP(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!iD(i.latestValues))continue;iC(i.latestValues)&&i.updateSnapshot();let r=iM();rP(r,i.measurePageBox()),rC(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return iD(this.latestValues)&&rC(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==g.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:n}=this.options;if(this.layout&&(r||n)){if(this.resolvedRelativeTargetAt=g.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iM(),this.relativeTargetOrigin=iM(),iT(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rP(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=iM(),this.targetWithTransforms=iM()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,o,a;this.forceRelativeParentToResolveTarget(),s=this.target,o=this.relativeTarget,a=this.relativeParent.target,iw(s.x,o.x,a.x),iw(s.y,o.y,a.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rP(this.target,this.layout.layoutBox),iF(this.target,this.targetDelta)):rP(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iM(),this.relativeTargetOrigin=iM(),iT(this.relativeTargetOrigin,this.target,t.target),rP(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}h.value&&rz.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||iC(this.parent.latestValues)||iR(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
9if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===g.timestamp&&(i=!1),i)return;let{layout:r,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||n))return;rP(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,r=!1){let n,s;let o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&iI(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,iF(t,s)),r&&iD(n.latestValues)&&iI(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=iM());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rS(this.prevProjectionDelta.x,this.projectionDelta.x),rS(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ix(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&rO(this.projectionDelta.x,this.prevProjectionDelta.x)&&rO(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),h.value&&rz.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iS(),this.projectionDelta=iS(),this.projectionDeltaWithTransform=iS()}setAnimationOrigin(t,e=!1){let i;let r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},o=iS();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iM(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(r4));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(r3(o.x,t.x,r),r3(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m;iT(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,r9(p.x,m.x,a.x,r),r9(p.y,m.y,a.y,r),i&&(u=this.relativeTarget,c=i,rj(u.x,c.x)&&rj(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=iM()),rP(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,r,n,s){n?(t.opacity=tM(0,i.opacity??1,rx(r)),t.opacityExit=tM(e.opacity??1,0,rw(r))):s&&(t.opacity=tM(e.opacity??1,i.opacity??1,r));for(let n=0;n<rg;n++){let s=`border${rf[n]}Radius`,o=rb(e,s),a=rb(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rv(o)===rv(a)?(t[s]=Math.max(tM(ry(o),ry(a),r),0),(tu.test(a)||tu.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=tM(e.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(f(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=m.update(()=>{rr.hasAnimatedSinceResize=!0,N.layout++,this.currentAnimation=function(t,e,
9i){let r=M(0)?0:A(0);return r.start(e2("",r,1e3,i)),r.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{N.layout--},onComplete:()=>{N.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:r,latestValues:n}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&ne(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||iM();let e=iv(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=iv(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}rP(e,i),iI(e,n),ix(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rI),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
9return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let r={};i.z&&rW("z",t,r,this.animationValues);for(let e=0;e<rU.length;e++)rW(`rotate${rU[e]}`,t,r,this.animationValues),rW(`skew${rU[e]}`,t,r,this.animationValues);for(let e in t.render(),r)t.setStaticValue(e,r[e]),this.animationValues&&(this.animationValues[e]=r[e]);t.scheduleRender()}getProjectionStyles(t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return r$;let e={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.opacity="",e.pointerEvents=rm(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none",e;let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=rm(t?.pointerEvents)||""),this.hasProjected&&!iD(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let n=r.animationValues||r.latestValues;this.applyTransformsToTarget(),e.transform=function(t,e,i){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((n||s||o)&&(r=`translate3d(${n}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:s,skewX:o,skewY:a}=i;t&&(r=`perspective(${t}px) ${r}`),e&&(r+=`rotate(${e}deg) `),n&&(r+=`rotateX(${n}deg) `),s&&(r+=`rotateY(${s}deg) `),o&&(r+=`skewX(${o}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,n),i&&(e.transform=i(n,e.transform));let{x:s,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.origin}% ${100*o.origin}% 0`,r.animationValues?e.opacity=r===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:e.opacity=r===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,ro){if(void 0===n[t])continue;let{correct:i,applyTo:s,isCSSVariable:o}=ro[t],a="none"===e.transform?n[t]:i(n[t],r);if(s){let t=s.length;for(let i=0;i<t;i++)e[s[i]]=a}else o?this.options.visualElement.renderState.vars[t]=a:e[t]=a}return this.options.layoutId&&(e.pointerEvents=r===this?rm(t?.pointerEvents)||"":"none"),e}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(rq),this.root.sharedNodes.clear()}}}function rH(t){t.updateLayout()}function rX(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:r}=t.layout,{animationType:n}=t.options,s=e.source!==t.layout.source;"size"===n?iE(t=>{let r=s?e.measuredBox[t]:e.layoutBox[t],n=iv(r);r.min=i[t].min,r.max=r.min+n}):ne(n,e.layoutBox,i)&&iE(r=>{let n=s?e.measuredBox[r]:e.layoutBox[r],o=iv(i[r]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=iS();ix(o,i,e.layoutBox);let a=iS();s?ix(a,t.applyTransform(r,!0),e.measuredBox):ix(a,i,e.layoutBox);let l=!rR(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let o=iM();iT(o,e.layoutBox,n.layoutBox);let a=iM();iT(a,i,s.layoutBox),rF(o,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function r_(t){h.value&&rz.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
9isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rG(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rK(t){t.clearSnapshot()}function rq(t){t.clearMeasurements()}function rZ(t){t.isLayoutDirty=!1}function rJ(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rQ(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function r0(t){t.resolveTargetDelta()}function r1(t){t.calcProjection()}function r2(t){t.resetSkewAndRotation()}function r5(t){t.removeLeadSnapshot()}function r3(t,e,i){t.translate=tM(e.translate,0,i),t.scale=tM(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function r9(t,e,i,r){t.min=tM(e.min,i.min,r),t.max=tM(e.max,i.max,r)}function r4(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let r8={duration:.45,ease:[.4,0,.1,1]},r6=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),r7=r6("applewebkit/")&&!r6("chrome/")?Math.round:p;function nt(t){t.min=r7(t.min),t.max=r7(t.max)}function ne(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rB(e)-rB(i)))}function ni(t){return t!==t.root&&t.scroll?.wasRoot}let nr=rY({attachResizeListener:(t,e)=>id(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nn={current:void 0},ns=rY({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!nn.current){let t=new nr({});t.mount(window),t.setOptions({layoutScroll:!0}),nn.current=t}return nn.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function no(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),r=new AbortController;return[i,{passive:!0,...e,signal:r.signal},()=>r.abort()]}function na(t){return!("touch"===t.pointerType||iJ.x||iJ.y)}function nl(t,e,i){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=r["onHover"+i];n&&m.postRender(()=>n(e,ip(e)))}class nu extends ia{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,n,s]=no(t,i),o=t=>{if(!na(t))return;let{target:i}=t,r=e(i,t);if("function"!=typeof r||!i)return;let s=t=>{na(t)&&(r(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,n)};return r.forEach(t=>{t.addEventListener("pointerenter",o,n)}),s}(t,(t,e)=>(nl(this.node,e,"Start"),t=>nl(this.node,t,"End"))))}unmount(){}}class nh extends ia{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tO(id(this.node.current,"focus",()=>this.onFocus()),id(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let nd=(t,e)=>!!e&&(t===e||nd(t,e.parentElement)),nc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),np=new WeakSet;function nm(t){return e=>{"Enter"===e.key&&t(e)}}function nf(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let ng=(t,e)=>{let i=t.currentTarget;if(!i)return;let r=nm(()=>{if(np.has(i))return;nf(i,"down");let t=nm(()=>{nf(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>nf(i,"cancel"),e)});i.addEventListener("keydown",r,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),e)};function ny(t){return ic(t)&&!(iJ.x||iJ.y)}function nv(t,e,i){let{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=r["onTap"+("End"===i?"":i)];n&&m.postRender(()=>n(e,ip(e)))}class nb extends ia{mount(){let{current:t}=this.node;
9t&&(this.unmount=function(t,e,i={}){let[r,n,s]=no(t,i),o=t=>{let r=t.currentTarget;if(!ny(t)||np.has(r))return;np.add(r);let s=e(r,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),np.has(r)&&np.delete(r),ny(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,r===window||r===document||i.useGlobalTarget||nd(r,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return r.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),t instanceof HTMLElement&&(t.addEventListener("focus",t=>ng(t,n)),nc.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(nv(this.node,e,"Start"),(t,{success:e})=>nv(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let nx=new WeakMap,nw=new WeakMap,nk=t=>{let e=nx.get(t.target);e&&e(t)},nT=t=>{t.forEach(nk)},nP={some:0,all:1};class nS extends ia{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:r="some",once:n}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof r?r:nP[r]};return function(t,e,i){let r=function({root:t,...e}){let i=t||document;nw.has(i)||nw.set(i,{});let r=nw.get(i),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(nT,{root:t,...e})),r[n]}(e);return nx.set(t,i),r.observe(t),()=>{nx.delete(t),r.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,n&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),s=e?i:r;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let nA=(0,i7.createContext)({strict:!1});var nM=i(7439);let nE=(0,i7.createContext)({});function nV(t){return n(t.animate)||it.some(e=>e6(t[e]))}function nC(t){return!!(nV(t)||t.variants)}function nD(t){return Array.isArray(t)?t.join(" "):t}var nR=i(8269);let nj={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"]},nL={};for(let t in nj)nL[t]={isEnabled:e=>nj[t].some(t=>!!e[t])};let nF=Symbol.for("motionComponentSymbol");var nB=i(4048),nO=i(4822);function nI(t,{layout:e,layoutId:i}){return j.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!ro[t]||"opacity"===t)}let nz=(t,e)=>e&&"number"==typeof t?e.transform(t):t,nU={...K,transform:Math.round},n$={borderWidth:th,borderTopWidth:th,borderRightWidth:th,borderBottomWidth:th,borderLeftWidth:th,borderRadius:th,radius:th,borderTopLeftRadius:th,borderTopRightRadius:th,borderBottomRightRadius:th,borderBottomLeftRadius:th,width:th,maxWidth:th,height:th,maxHeight:th,top:th,right:th,bottom:th,left:th,padding:th,paddingTop:th,paddingRight:th,paddingBottom:th,paddingLeft:th,margin:th,marginTop:th,marginRight:th,marginBottom:th,marginLeft:th,backgroundPositionX:th,backgroundPositionY:th,rotate:tl,rotateX:tl,rotateY:tl,rotateZ:tl,scale:Z,scaleX:Z,scaleY:Z,scaleZ:Z,skew:tl,skewX:tl,skewY:tl,distance:th,translateX:th,translateY:th,translateZ:th,x:th,y:th,z:th,perspective:th,transformPerspective:th,opacity:q,originX:tp,originY:tp,originZ:th,zIndex:nU,fillOpacity:q,strokeOpacity:q,numOctaves:nU},nN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nW=R.length;function nY(t,e,i){let{style:r,vars:n,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(j.has(t)){o=!0;continue}if(Y(t)){n[t]=i;continue}{let e=nz(i,n$[t]);t.startsWith("origin")?(a=!0,s[t]=e):r[t]=e}}
9if(!e.transform&&(o||i?r.transform=function(t,e,i){let r="",n=!0;for(let s=0;s<nW;s++){let o=R[s],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===(o.startsWith("scale")?1:0):0===parseFloat(a))||i){let t=nz(a,n$[o]);if(!l){n=!1;let e=nN[o]||o;r+=`${e}(${t}) `}i&&(e[o]=t)}}return r=r.trim(),i?r=i(e,n?"":r):n&&(r="none"),r}(e,t.transform,i):r.transform&&(r.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;r.transformOrigin=`${t} ${e} ${i}`}}let nH=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function nX(t,e,i){for(let r in e)M(e[r])||nI(r,i)||(t[r]=e[r])}let n_=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 nG(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||n_.has(t)}let nK=t=>!nG(t);try{(i9=require("@emotion/is-prop-valid").default)&&(nK=t=>t.startsWith("on")?!nG(t):i9(t))}catch{}let nq=["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 nZ(t){if("string"!=typeof t||t.includes("-"));else if(nq.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let nJ={offset:"stroke-dashoffset",array:"stroke-dasharray"},nQ={offset:"strokeDashoffset",array:"strokeDasharray"};function n0(t,{attrX:e,attrY:i,attrScale:r,pathLength:n,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(nY(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=h?.transformBox??"fill-box",delete d.transformBox),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==r&&(d.scale=r),void 0!==n&&function(t,e,i=1,r=0,n=!0){t.pathLength=1;let s=n?nJ:nQ;t[s.offset]=th.transform(-r);let o=th.transform(e),a=th.transform(i);t[s.array]=`${o} ${a}`}(d,n,s,o,!1)}let n1=()=>({...nH(),attrs:{}}),n2=t=>"string"==typeof t&&"svg"===t.toLowerCase();var n5=i(7281);let n3=t=>(e,i)=>{let r=(0,i7.useContext)(nE),s=(0,i7.useContext)(nB.O),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,r,s){return{latestValues:function(t,e,i,r){let s={},a=r(t,{});for(let t in a)s[t]=rm(a[t]);let{initial:l,animate:u}=t,h=nV(t),d=nC(t);e&&d&&!h&&!1!==t.inherit&&(void 0===l&&(l=e.initial),void 0===u&&(u=e.animate));let c=!!i&&!1===i.initial,p=(c=c||!1===l)?u:l;if(p&&"boolean"!=typeof p&&!n(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let r=o(t,e[i]);if(r){let{transitionEnd:t,transition:e,...i}=r;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,r,s,t),renderState:e()}})(t,e,r,s);return i?a():(0,n5.h)(a)};function n9(t,e,i){let{style:r}=t,n={};for(let s in r)(M(r[s])||e.style&&M(e.style[s])||nI(s,t)||i?.getValue(s)?.liveStyle!==void 0)&&(n[s]=r[s]);return n}let n4={useVisualState:n3({scrapeMotionValuesFromProps:n9,createRenderState:nH})};function n8(t,e,i){let r=n9(t,e,i);for(let i in t)(M(t[i])||M(e[i]))&&(r[-1!==R.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}let n6={useVisualState:n3({scrapeMotionValuesFromProps:n8,createRenderState:n1})},n7={current:null},st={current:!1},se=new WeakMap,si=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),sr=t=>/^0[^.\s]+$/u.test(t),sn=t=>e=>e.test(t),ss=[K,th,tu,tl,tc,td,{test:t=>"auto"===t,parse:t=>t}],so=t=>ss.find(sn(t)),sa=[...ss,tf,tP],sl=t=>sa.find(sn(t)),su=new Set(["brightness","contrast","saturate","opacity"]);function sh(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(Q)||[];if(!r)return t;let n=i.replace(r,""),s=su.has(e)?1:0;return r!==i&&(s*=100),e+"("+s+n+")"}let sd=/\b([a-z-]*)\(.*?\)/gu,sc={...tP,getAnimatableNone:t=>{let e=t.match(sd);return e?e.map(sh).join(" "):t}},sp={...n$,color:tf,backgroundColor:tf,outlineColor:tf,fill:tf,stroke:tf,borderColor:tf,borderTopColor:tf,borderRightColor:tf,borderBottomColor:tf,borderLeftColor:tf,filter:sc,WebkitFilter:sc},sm=t=>sp[t];function sf(t,e){let i=sm(t);return i!==sc&&(i=tP),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let sg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];
9class sy{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:n,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eU,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=()=>{let t=b.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,m.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!n,this.isControllingVariants=nV(e),this.isVariantNode=nC(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==a[t]&&M(e)&&e.set(a[t],!1)}}mount(t){this.current=t,se.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),st.current||function(){if(st.current=!0,nR.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>n7.current=t.matches;t.addListener(e),e()}else n7.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||n7.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),f(this.notifyUpdate),f(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=j.has(t);r&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&m.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in nL){let e=nL[t];if(!e)continue;let{isEnabled:i,Feature:r}=e;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iM()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<sg.length;e++){let i=sg[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,i){for(let r in e){let n=e[r],s=i[r];if(M(n))t.addValue(r,n);else if(M(s))t.addValue(r,A(n,{owner:t}));else if(s!==n){if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(r);t.addValue(r,A(void 0!==e?e:n,{owner:t}))}}}for(let r in i)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
9addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=A(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(si(i)||sr(i))?i=parseFloat(i):!sl(i)&&tP.test(e)&&(i=sf(t,e)),this.setBaseTarget(t,M(i)?i.get():i)),M(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let r=o(this.props,i,this.presenceContext?.custom);r&&(e=r[t])}if(i&&void 0!==e)return e;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||M(r)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new k),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}let sv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,sb=new Set(["auto","none","0"]);class sx extends eU{constructor(t,e,i,r,n){super(t,e,i,r,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let r=t[i];if("string"==typeof r&&X(r=r.trim())){let n=function t(e,i,r=1){tV(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,s]=function(t){let e=sv.exec(t);if(!e)return[,];let[,i,r,n]=e;return[`--${i??r}`,n]}(e);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);if(o){let t=o.trim();return si(t)?parseFloat(t):t}return X(s)?t(s,i,r+1):s}(r,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!e5.has(i)||2!==t.length)return;let[r,n]=t,s=so(r),o=so(n);if(s!==o){if(eC(s)&&eC(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else ej[i]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var r;(null===t[e]||("number"==typeof(r=t[e])?0===r:null===r||"none"===r||"0"===r||sr(r)))&&i.push(e)}i.length&&function(t,e,i){let r,n=0;for(;n<t.length&&!r;){let e=t[n];"string"==typeof e&&!sb.has(e)&&tx(e).values.length&&(r=t[n]),n++}if(r&&i)for(let n of e)t[n]=sf(i,r)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ej[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let r=e[e.length-1];void 0!==r&&t.getValue(i,r).jump(r,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let r=t.getValue(e);r&&r.jump(this.measuredOrigin,!1);let n=i.length-1,s=i[n];i[n]=ej[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
9h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}class sw extends sy{constructor(){super(...arguments),this.KeyframeResolver=sx}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;M(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function sk(t,{style:e,vars:i},r,n){for(let s in Object.assign(t.style,e,n&&n.getProjectionStyles(r)),i)t.style.setProperty(s,i[s])}class sT extends sw{constructor(){super(...arguments),this.type="html",this.renderInstance=sk}readValueFromInstance(t,e){if(j.has(e))return eE(t,e);{let i=window.getComputedStyle(t),r=(Y(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return iz(t,e)}build(t,e,i){nY(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return n9(t,e,i)}}let sP=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"]);class sS extends sw{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iM}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(j.has(e)){let t=sm(e);return t&&t.default||0}return e=sP.has(e)?e:V(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return n8(t,e,i)}build(t,e,i){n0(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,r){!function(t,e,i,r){for(let i in sk(t,e,void 0,r),e.attrs)t.setAttribute(sP.has(i)?i:V(i),e.attrs[i])}(t,e,0,r)}mount(t){this.isSVGTag=n2(t.tagName),super.mount(t)}}let sA=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,r)=>"create"===r?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}((i4={animation:{Feature:il},exit:{Feature:ih},inView:{Feature:nS},tap:{Feature:nb},focus:{Feature:nh},hover:{Feature:nu},pan:{Feature:i3},drag:{Feature:i2,ProjectionNode:ns,MeasureLayout:rh},layout:{ProjectionNode:ns,MeasureLayout:rh}},i8=(t,e)=>nZ(t)?new sS(e):new sT(e,{allowProjection:t!==i7.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:r,Component:n}){function s(t,s){var o;let a;let l={...(0,i7.useContext)(nM._),...t,layoutId:function({layoutId:t}){let e=(0,i7.useContext)(re.p).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:u}=l,h=function(t){let{initial:e,animate:i}=function(t,e){if(nV(t)){let{initial:e,animate:i}=t;return{initial:!1===e||e6(e)?e:void 0,animate:e6(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,i7.useContext)(nE));return(0,i7.useMemo)(()=>({initial:e,animate:i}),[nD(e),nD(i)])}(t),d=r(t,u);if(!u&&nR.j){(0,i7.useContext)(nA).strict;let t=function(t){let{drag:e,layout:i}=nL;if(!e&&!i)return{};let r={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);a=t.MeasureLayout,h.visualElement=function(t,e,i,r,n){let{visualElement:s}=(0,i7.useContext)(nE),o=(0,i7.useContext)(nA),a=(0,i7.useContext)(nB.O),l=(0,i7.useContext)(nM._).reducedMotion,u=(0,i7.useRef)(null);r=r||o.renderer,!u.current&&r&&(u.current=r(t,{visualState:e,parent:s,props:i,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));let h=u.current,d=(0,i7.useContext)(ri);h&&!h.projection&&n&&("html"===h.type||"svg"===h.type)&&function(t,e,i,r){let{layoutId:n,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!o||a&&i$(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:u})}(u.current,i,n,d);let c=(0,i7.useRef)(!1);(0,i7.useInsertionEffect)(()=>{h&&c.current&&h.update(i,a)});
9let p=i[C],m=(0,i7.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,nO.L)(()=>{h&&(c.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),ra.render(h.render),m.current&&h.animationState&&h.animationState.animateChanges())}),(0,i7.useEffect)(()=>{h&&(!m.current&&h.animationState&&h.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1))}),h}(n,d,l,e,t.ProjectionNode)}return(0,i6.jsxs)(nE.Provider,{value:h,children:[a&&h.visualElement?(0,i6.jsx)(a,{visualElement:h.visualElement,...l}):null,i(n,t,(o=h.visualElement,(0,i7.useCallback)(t=>{t&&d.onMount&&d.onMount(t),o&&(t?o.mount(t):o.unmount()),s&&("function"==typeof s?s(t):i$(s)&&(s.current=t))},[o])),d,u,h.visualElement)]})}t&&function(t){for(let e in t)nL[e]={...nL[e],...t[e]}}(t),s.displayName=`motion.${"string"==typeof n?n:`create(${n.displayName??n.name??""})`}`;let o=(0,i7.forwardRef)(s);return o[nF]=n,o}({...nZ(t)?n6:n4,preloadedFeatures:i4,useRender:function(t=!1){return(e,i,r,{latestValues:n},s)=>{let o=(nZ(e)?function(t,e,i,r){let n=(0,i7.useMemo)(()=>{let i=n1();return n0(i,e,n2(r),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};nX(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i={},r=function(t,e){let i=t.style||{},r={};return nX(r,i,t),Object.assign(r,function({transformTemplate:t},e){return(0,i7.useMemo)(()=>{let i=nH();return nY(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),r}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=r,i})(i,n,s,e),a=function(t,e,i){let r={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(nK(n)||!0===i&&nG(n)||!e&&!nG(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}(i,"string"==typeof e,t),l=e!==i7.Fragment?{...a,...o,ref:r}:{},{children:u}=i,h=(0,i7.useMemo)(()=>M(u)?u.get():u,[u]);return(0,i7.createElement)(e,{...l,children:h})}}(e),createVisualElement:i8,Component:t})}))},8269:function(t,e,i){"use strict";i.d(e,{j:function(){return r}});let r="undefined"!=typeof window},7281:function(t,e,i){"use strict";i.d(e,{h:function(){return n}});var r=i(7294);function n(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},4822:function(t,e,i){"use strict";i.d(e,{L:function(){return n}});var r=i(7294);let n=i(8269).j?r.useLayoutEffect:r.useEffect},8388:function(t,e,i){"use strict";i.d(e,{m6:function(){return tu}});let r=t=>{let e=a(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:t=>{let i=t.split("-");return""===i[0]&&1!==i.length&&i.shift(),n(i,e)||o(t)},getConflictingClassGroupIds:(t,e)=>{let n=i[t]||[];return e&&r[t]?[...n,...r[t]]:n}}},n=(t,e)=>{if(0===t.length)return e.classGroupId;let i=t[0],r=e.nextPart.get(i),s=r?n(t.slice(1),r):void 0;if(s)return s;if(0===e.validators.length)return;let o=t.join("-");return e.validators.find(({validator:t})=>t(o))?.classGroupId},s=/^\[(.+)\]$/,o=t=>{if(s.test(t)){let e=s.exec(t)[1],i=e?.substring(0,e.indexOf(":"));if(i)return"arbitrary.."+i}},a=t=>{let{theme:e,classGroups:i}=t,r={nextPart:new Map,validators:[]};for(let t in i)l(i[t],r,t,e);return r},l=(t,e,i,r)=>{t.forEach(t=>{if("string"==typeof t){(""===t?e:u(e,t)).classGroupId=i;return}if("function"==typeof t){if(h(t)){l(t(r),e,i,r);return}e.validators.push({validator:t,classGroupId:i});return}Object.entries(t).forEach(([t,n])=>{l(n,u(e,t),i,r)})})},u=(t,e)=>{let i=t;return e.split("-").forEach(t=>{i.nextPart.has(t)||i.nextPart.set(t,{nextPart:new Map,validators:[]}),i=i.nextPart.get(t)}),i},h=t=>t.isThemeGetter,d=t=>{if(t<1)return{get:()=>void 0,set:()=>{}};let e=0,i=new Map,r=new Map,n=(n,s)=>{i.set(n,s),++e>t&&(e=0,r=i,i=new Map)};return{get(t){let e=i.get(t);return void 0!==e?e:void 0!==(e=r.get(t))?(n(t,e),e):void 0},set(t,e){i.has(t)?i.set(t,e):n(t,e)}}},c=t=>{let{prefix:e,experimentalParseClassName:i}=t,r=t=>{let e;let i=[],r=0,n=0,s=0;for(let o=0;o<t.length;o++){let a=t[o];if(0===r&&0===n){if(":"===a){i.push(t.slice(s,o)),s=o+1;continue}if("/"===a){e=o;continue}}"["===a?r++:"]"===a?r--:"("===a?n++:")"===a&&n--}let o=0===i.length?t:t.substring(s),a=p(o);return{modifiers:i,hasImportantModifier:a!==o,baseClassName:a,maybePostfixModifierPosition:e&&e>s?e-s:void 0}};if(e){let t=e+":",i=r;r=e=>e.startsWith(t)?i(e.substring(t.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:e,maybePostfixModifierPosition:void 0}}if(i){let t=r;r=e=>i({className:e,parseClassName:t})}return r},p=t=>t.endsWith("!")?t.substring(0,t.length-1):t.startsWith("!")?t.substring(1):t,m=t=>{let e=Object.fromEntries(t.orderSensitiveModifiers.map(t=>[t,!0]));return t=>{if(t.length<=1)return t;let i=[],r=[];return t.forEach(t=>{"["===t[0]||e[t]?(i.push(...r.sort(),t),r=[]):r.push(t)}),i.push(...r.sort()),i}},f=t=>({cache:d(t.cacheSize),parseClassName:c(t),sortModifiers:m(t),...r(t)}),g=/\s+/,y=(t,e)=>{let{parseClassName:i,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:s}=e,o=[],a=t.trim().split(g),l="";for(let t=a.length-1;t>=0;t-=1){let e=a[t],{isExternal:u,modifiers:h,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:p}=i(e);if(u){l=e+(l.length>0?" "+l:l);continue}let m=!!p,f=r(m?c.substring(0,p):c);if(!f){if(!m||!(f=r(c))){l=e+(l.length>0?" "+l:l);continue}m=!1}let g=s(h).join(":"),y=d?g+"!":g,v=y+f;if(o.includes(v))continue;o.push(v);let b=n(f,m);for(let t=0;t<b.length;++t){let e=b[t];o.push(y+e)}l=e+(l.length>0?" "+l:l)}return l};function v(){let t,e,i=0,r="";for(;i<arguments.length;)(t=arguments[i++])&&(e=b(t))&&(r&&(r+=" "),r+=e);return r}let b=t=>{let e;if("string"==typeof t)return t;let i="";for(let r=0;r<t.length;r++)t[r]&&(e=b(t[r]))&&(i&&(i+=" "),i+=e);return i},x=t=>{let e=e=>e[t]||[];return e.isThemeGetter=!0,e},w=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,k=/^\((?:(\w[\w-]*):)?(.+)\)$/i,T=/^\d+\/\d+$/,P=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,S=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,A=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,M=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,E=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,V=t=>T.test(t),C=t=>!!t&&!Number.isNaN(Number(t)),D=t=>!!t&&Number.isInteger(Number(t)),R=t=>t.endsWith("%")&&C(t.slice(0,-1)),j=t=>P.test(t),L=()=>!0,F=t=>S.test(t)&&!A.test(t),B=()=>!1,O=t=>M.test(t),I=t=>E.test(t),z=t=>!$(t)&&!_(t),U=t=>tt(t,tn,B),$=t=>w.test(t),N=t=>tt(t,ts,F),W=t=>tt(t,to,C),Y=t=>
9tt(t,ti,B),H=t=>tt(t,tr,I),X=t=>tt(t,tl,O),_=t=>k.test(t),G=t=>te(t,ts),K=t=>te(t,ta),q=t=>te(t,ti),Z=t=>te(t,tn),J=t=>te(t,tr),Q=t=>te(t,tl,!0),tt=(t,e,i)=>{let r=w.exec(t);return!!r&&(r[1]?e(r[1]):i(r[2]))},te=(t,e,i=!1)=>{let r=k.exec(t);return!!r&&(r[1]?e(r[1]):i)},ti=t=>"position"===t||"percentage"===t,tr=t=>"image"===t||"url"===t,tn=t=>"length"===t||"size"===t||"bg-size"===t,ts=t=>"length"===t,to=t=>"number"===t,ta=t=>"family-name"===t,tl=t=>"shadow"===t,tu=function(t,...e){let i,r,n;let s=function(a){return r=(i=f(e.reduce((t,e)=>e(t),t()))).cache.get,n=i.cache.set,s=o,o(a)};function o(t){let e=r(t);if(e)return e;let s=y(t,i);return n(t,s),s}return function(){return s(v.apply(null,arguments))}}(()=>{let t=x("color"),e=x("font"),i=x("text"),r=x("font-weight"),n=x("tracking"),s=x("leading"),o=x("breakpoint"),a=x("container"),l=x("spacing"),u=x("radius"),h=x("shadow"),d=x("inset-shadow"),c=x("text-shadow"),p=x("drop-shadow"),m=x("blur"),f=x("perspective"),g=x("aspect"),y=x("ease"),v=x("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...w(),_,$],T=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],S=()=>[_,$,l],A=()=>[V,"full","auto",...S()],M=()=>[D,"none","subgrid",_,$],E=()=>["auto",{span:["full",D,_,$]},D,_,$],F=()=>[D,"auto",_,$],B=()=>["auto","min","max","fr",_,$],O=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],tt=()=>["auto",...S()],te=()=>[V,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],ti=()=>[t,_,$],tr=()=>[...w(),q,Y,{position:[_,$]}],tn=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ts=()=>["auto","cover","contain",Z,U,{size:[_,$]}],to=()=>[R,G,N],ta=()=>["","none","full",u,_,$],tl=()=>["",C,G,N],tu=()=>["solid","dashed","dotted","double"],th=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],td=()=>[C,R,q,Y],tc=()=>["","none",m,_,$],tp=()=>["none",C,_,$],tm=()=>["none",C,_,$],tf=()=>[C,_,$],tg=()=>[V,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[j],breakpoint:[j],color:[L],container:[j],"drop-shadow":[j],ease:["in","out","in-out"],font:[z],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[j],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[j],shadow:[j],spacing:["px",C],text:[j],"text-shadow":[j],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",V,$,_,g]}],container:["container"],columns:[{columns:[C,$,_,a]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}
vendor: 15,947 bytes, line 9
9],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[D,"auto",_,$]}],basis:[{basis:[V,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[C,V,"auto","initial","none",$]}],grow:[{grow:["",C,_,$]}],shrink:[{shrink:["",C,_,$]}],order:[{order:[D,"first","last","none",_,$]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...O(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...O()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:tt()}],mx:[{mx:tt()}],my:[{my:tt()}],ms:[{ms:tt()}],me:[{me:tt()}],mt:[{mt:tt()}],mr:[{mr:tt()}],mb:[{mb:tt()}],ml:[{ml:tt()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[a,"screen",...te()]}],"min-w":[{"min-w":[a,"screen","none",...te()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...te()]}],h:[{h:["screen",...te()]}],"min-h":[{"min-h":["screen","none",...te()]}],"max-h":[{"max-h":["screen",...te()]}],"font-size":[{text:["base",i,G,N]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,_,W]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",R,$]}],"font-family":[{font:[K,$,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,_,$]}],"line-clamp":[{"line-clamp":[C,"none",_,W]}],leading:[{leading:[s,...S()]}],"list-image":[{"list-image":["none",_,$]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_,$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ti()}],"text-color":[{text:ti()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...tu(),"wavy"]}],"text-decoration-thickness":[{decoration:[C,"from-font","auto",_,N]}],"text-decoration-color":[{decoration:ti()}],"underline-offset":[{"underline-offset":[C,"auto",_,$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_,$]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_,$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:tr()}],"bg-repeat":[{bg:tn()}],"bg-size":[{bg:ts()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},D,_,$],radial:["",_,$],conic:[D,_,$]},J,H]}],"bg-color":[{bg:ti()}],"gradient-from-pos":[{from:to()}],"gradient-via-pos":[{via:to()}],"gradient-to-pos":[{to:to()}],"gradient-from":[{from:ti()}],"gradient-via":[{via:ti()}],"gradient-to":[{to:ti()}],rounded:[{rounded:ta()}],"rounded-s":[{"rounded-s":ta()}],"rounded-e":[{"rounded-e":ta()}],"rounded-t":[{"rounded-t":ta()}],"rounded-r":[{"rounded-r":ta()}],"rounded-b":[{"rounded-b":ta()}],"rounded-l":[{"rounded-l":ta()}],"rounded-ss":[{"rounded-ss":ta()}],"rounded-se":[{"rounded-se":ta()}],"rounded-ee":[{"rounded-ee":ta()}],"rounded-es":[{"rounded-es":ta()}],"rounded-tl":[{"rounded-tl":ta()}],"rounded-tr":[{"rounded-tr":ta()}],"rounded-br":[{"rounded-br":ta()}],"rounded-bl":[{"rounded-bl":ta()}],"border-w":[{border:tl()}],"border-w-x":[{"border-x":tl()}],"border-w-y":[{"border-y":tl()}],"border-w-s":[{"border-s":tl()}],"border-w-e":[{"border-e":tl()}],"border-w-t":[{"border-t":tl()}],"border-w-r":[{"border-r":tl()}],"border-w-b":[{"border-b":tl()}],"border-w-l":[{"border-l":tl()}],"divide-x":[{"divide-x":tl()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":tl()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...tu(),"hidden","none"]}],"divide-style":[{divide:[...tu(),"hidden","none"]}],"border-color":[{border:ti()}],"border-color-x":[{"border-x":ti()}],"border-color-y":[{"border-y":ti()}],"border-color-s":[{"border-s":ti()}],"border-color-e":[{"border-e":ti()}],"border-color-t":[{"border-t":ti()}],"border-color-r":[{"border-r":ti()}],"border-color-b":[{"border-b":ti()}],"border-color-l":[{"border-l":ti()}],"divide-color":[{divide:ti()}],"outline-style":[{outline:[...tu(),"none","hidden"]}],"outline-offset":[{"outline-offset":[C,_,$]}],"outline-w":[{outline:["",C,G,N]}],"outline-color":[{outline:ti()}],shadow:[{shadow:["","none",h,Q,X]}],"shadow-color":[{shadow:ti()}],"inset-shadow":[{"inset-shadow":["none",d,Q,X]}],"inset-shadow-color":[{"inset-shadow":ti()}],"ring-w":[{ring:tl()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ti()}],"ring-offset-w":[{"ring-offset":[C,N]}],"ring-offset-color":[{"ring-offset":ti()}],"inset-ring-w":[{"inset-ring":tl()}],"inset-ring-color":[{"inset-ring":ti()}],"text-shadow":[{"text-shadow":["none",c,Q,X]}],"text-shadow-color":[{"text-shadow":ti()}],opacity:[{opacity:[C,_,$]}],"mix-blend":[{"mix-blend":[...th(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":th()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[C]}],"mask-image-linear-from-pos":[{"mask-linear-from":td()}],"mask-image-linear-to-pos":[{"mask-linear-to":td()}],"mask-image-linear-from-color":[{"mask-linear-from":ti()}],"mask-image-linear-to-color":[{"mask-linear-to":ti()}],"mask-image-t-from-pos":[{"mask-t-from":td()}],"mask-image-t-to-pos":[{"mask-t-to":td()}],"mask-image-t-from-color":[{"mask-t-from":ti()}],"mask-image-t-to-color":[{"mask-t-to":ti()}],"mask-image-r-from-pos":[{"mask-r-from":td()}],"mask-image-r-to-pos":[{"mask-r-to":td()}],"mask-image-r-from-color":[{"mask-r-from":ti()}],"mask-image-r-to-color":[{"mask-r-to":ti()}],"mask-image-b-from-pos":[{"mask-b-from":td()}],"mask-image-b-to-pos":[{"mask-b-to":td()}],"mask-image-b-from-color":[{"mask-b-from":ti()}],"mask-image-b-to-color":[{"mask-b-to":ti()}],"mask-image-l-from-pos":[{"mask-l-from":td()}],"mask-image-l-to-pos":[{"mask-l-to":td()}],"mask-image-l-from-color":[{"mask-l-from":ti()}],"mask-image-l-to-color":[{"mask-l-to":ti()}],"mask-image-x-from-pos":[{"mask-x-from":td()}],"mask-image-x-to-pos":[{"mask-x-to":td()}],"mask-image-x-from-color":[{"mask-x-from":ti()}],"mask-image-x-to-color":[{"mask-x-to":ti()}],"mask-image-y-from-pos":[{"mask-y-from":td()}],"mask-image-y-to-pos":[{"mask-y-to":td()}],"mask-image-y-from-color":[{"mask-y-from":ti()}],"mask-image-y-to-color":[{"mask-y-to":ti()}],"mask-image-radial":[{"mask-radial":[_,$]}],"mask-image-radial-from-pos":[{"mask-radial-from":td()}],"mask-image-radial-to-pos":[{"mask-radial-to":td()}],"mask-image-radial-from-color":[{"mask-radial-from":ti()}],"mask-image-radial-to-color":[{"mask-radial-to":ti()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[C]}],"mask-image-conic-from-pos":[{"mask-conic-from":td()}],"mask-image-conic-to-pos":[{"mask-conic-to":td()}],"mask-image-conic-from-color":[{"mask-conic-from":ti()}],"mask-image-conic-to-color":[{"mask-conic-to":ti()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:tr()}],"mask-repeat":[{mask:tn()}],"mask-size":[{mask:ts()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_,$]}],filter:[{filter:["","none",_,$]}],blur:[{blur:tc()}],brightness:[{brightness:[C,_,$]}],contrast:[{contrast:[C,_,$]}],"drop-shadow":[{"drop-shadow":["","none",p,Q,X]}],"drop-shadow-color":[{"drop-shadow":ti()}],grayscale:[{grayscale:["",C,_,$]}],"hue-rotate":[{"hue-rotate":[C,_,$]}],invert:[{invert:["",C,_,$]}],saturate:[{saturate:[C,_,$]}],sepia:[{sepia:["",C,_,$]}],"backdrop-filter":[{"backdrop-filter":["","none",_,$]}],"backdrop-blur":[{"backdrop-blur":tc()}],"backdrop-brightness":[{"backdrop-brightness":[C,_,$]}],"backdrop-contrast":[{"backdrop-contrast":[C,_,$]}],"backdrop-grayscale":[{"backdrop-grayscale":["",C,_,$]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C,_,$]}],"backdrop-invert":[{"backdrop-invert":["",C,_,$]}],"backdrop-opacity":[{"backdrop-opacity":[C,_,$]}],"backdrop-saturate":[{"backdrop-saturate":[C,_,$]}],"backdrop-sepia":[{"backdrop-sepia":["",C,_,$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_,$]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[C,"initial",_,$]}],ease:[{ease:["linear","initial",y,_,$]}],delay:[{delay:[C,_,$]}],animate:[{animate:["none",v,_,$]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,_,$]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:tp()}],"rotate-x":[{"rotate-x":tp()}],"rotate-y":[{"rotate-y":tp()}],"rotate-z":[{"rotate-z":tp()}],scale:[{scale:tm()}],"scale-x":[{"scale-x":tm()}],"scale-y":[{"scale-y":tm()}],"scale-z":[{"scale-z":tm()}],"scale-3d":["scale-3d"],skew:[{skew:tf()}],"skew-x":[{"skew-x":tf()}],"skew-y":[{"skew-y":tf()}],transform:[{transform:[_,$,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:tg()}],"translate-x":[{"translate-x":tg()}],"translate-y":[{"translate-y":tg()}],"translate-z":[{"translate-z":tg()}],"translate-none":["translate-none"],accent:[{accent:ti()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ti()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_,$]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_,$]}],fill:[{fill:["none",...ti()]}],"stroke-w":[{stroke:[C,G,N,W]}],stroke:[{stroke:["none",...ti()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.