PageSourceSearch

https://tscneww.netlify.app/assets/animation-CPHBv_yq.js

js tscneww.netlify.app collected 2026-10-03 11:32:26 UTC 126,070 bytes, 1 lines download raw bytes

vendor: 5,396 bytes, line 1
1import{r as t}from"./vendor-BEmX_Svj.js";var e={exports:{}},n={},i=t,s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(t,e,n){var i,o={},u=null,c=null;for(i in void 0!==n&&(u=""+n),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(c=e.ref),e)r.call(e,i)&&!l.hasOwnProperty(i)&&(o[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps)void 0===o[i]&&(o[i]=e[i]);return{$$typeof:s,type:t,key:u,ref:c,props:o,_owner:a.current}}n.Fragment=o,n.jsx=u,n.jsxs=u,e.exports=n;var c=e.exports;const h=t.createContext({});function d(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}const p="undefined"!=typeof window,m=p?t.useLayoutEffect:t.useEffect,f=t.createContext(null);function g(t,e){-1===t.indexOf(e)&&t.push(e)}function y(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const v=(t,e,n)=>n>e?e:n<t?t:n;const x={},w=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function T(t){return"object"==typeof t&&null!==t}const P=t=>/^0[^.\s]+$/u.test(t);function S(t){let e;return()=>(void 0===e&&(e=t()),e)}const b=t=>t,E=(t,e)=>n=>e(t(n)),A=(...t)=>t.reduce(E),C=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i};class M{constructor(){this.subscriptions=[]}add(t){return g(this.subscriptions,t),()=>y(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const V=t=>1e3*t,D=t=>t/1e3;function k(t,e){return e?t*(1e3/e):0}const R=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function L(t,e,n,i){if(t===e&&n===i)return b;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=R(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:R(s(t),e,i)}const j=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,B=t=>e=>1-t(1-e),F=L(.33,1.53,.69,.99),O=B(F),I=j(O),U=t=>(t*=2)<1?.5*O(t):.5*(2-Math.pow(2,-10*(t-1))),W=t=>1-Math.sin(Math.acos(t)),N=B(W),$=j(W),z=L(.42,0,1,1),X=L(0,0,.58,1),Y=L(.42,0,.58,1),H=t=>Array.isArray(t)&&"number"==typeof t[0],K={linear:b,easeIn:z,easeInOut:Y,easeOut:X,circIn:W,circInOut:$,circOut:N,backIn:O,backInOut:I,backOut:F,anticipate:U},_=t=>{if(H(t)){t.length;const[e,n,i,s]=t;return L(e,n,i,s)}return"string"==typeof t?K[t]:t},G=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function q(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=G.reduce((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,i=!1,s=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(r)}const l={schedule:(t,s=!1,r=!1)=>{const a=r&&i?e:n;return s&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{r=t,i?s=!0:(i=!0,[e,n]=[n,e],e.forEach(a),e.clear(),i=!1,s&&(s=!1,l.process(t)))}};return l}(o),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:d,render:p,postRender:m}=r,f=()=>{const o=x.useManualTiming?s.timestamp:performance.now();n=!1,x.useManualTiming||(s.delta=i?1e3/60:Math.max(Math.min(o-s.timestamp,40),1)),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),h.process(s),d.process(s),p.process(s),m.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(f))};return{schedule:G.reduce((e,o)=>{const a=r[o];return e[o]=(e,o=!1,r=!1)=>(n||(n=!0,i=!0,s.isProcessing||t(f)),a.schedule(e,o,r)),e},{}),cancel:t=>{for(let e=0;e<G.length;e++)r[G[e]].cancel(t)},state:s,steps:r}}const{schedule:Z,cancel:J,state:Q,steps:tt}=q("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:b,!0);let et;function nt(){et=void 0}const it={now:()=>(void 0===et&&it.set(Q.isProcessing||x.useManualTiming?Q.timestamp:performance.now()),et),set:t=>{et=t,queueMicrotask(nt)}},st=t=>e=>"string"==typeof e&&e.startsWith(t),ot=st("--"),rt=st("var(--"),at=t=>!!rt(t)&&lt.test(t.split("/*")[0].trim()),lt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ut={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},ct={...ut,transform:t=>v(0,1,t)},ht={...ut,default:1},dt=t=>Math.round(1e5*t)/1e5,pt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const mt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ft=(t,e)=>n=>Boolean("string"==typeof n&&mt.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),gt=(t,e,n)=>i=>{if("string"!=typeof i)return i;const[s,o,r,a]=i.match(pt);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},yt={...ut,transform:t=>Math.round((t=>v(0,255,t))(t))},vt={test:ft("rgb","red"),parse:gt("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+yt.transform(t)+", "+yt.transform(e)+", "+yt.transform(n)+", "+dt(ct.transform(i))+")"};const xt={test:ft("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alph
1a:s?parseInt(s,16)/255:1}},transform:vt.transform},wt=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Tt=wt("deg"),Pt=wt("%"),St=wt("px"),bt=wt("vh"),Et=wt("vw"),At=(()=>({...Pt,parse:t=>Pt.parse(t)/100,transform:t=>Pt.transform(100*t)}))(),Ct={test:ft("hsl","hue"),parse:gt("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Pt.transform(dt(e))+", "+Pt.transform(dt(n))+", "+dt(ct.transform(i))+")"},Mt={test:t=>vt.test(t)||xt.test(t)||Ct.test(t),parse:t=>vt.test(t)?vt.parse(t):Ct.test(t)?Ct.parse(t):xt.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?vt.transform(t):Ct.transform(t),getAnimatableNone:t=>{const e=Mt.parse(t);return e.alpha=0,Mt.transform(e)}},Vt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const Dt="number",kt="color",Rt=/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 Lt(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const r=e.replace(Rt,t=>(Mt.test(t)?(i.color.push(o),s.push(kt),n.push(Mt.parse(t))):t.startsWith("var(")?(i.var.push(o),s.push("var"),n.push(t)):(i.number.push(o),s.push(Dt),n.push(parseFloat(t))),++o,"${}")).split("${}");return{values:n,split:r,indexes:i,types:s}}function jt(t){return Lt(t).values}function Bt(t){const{split:e,types:n}=Lt(t),i=e.length;return t=>{let s="";for(let o=0;o<i;o++)if(s+=e[o],void 0!==t[o]){const e=n[o];s+=e===Dt?dt(t[o]):e===kt?Mt.transform(t[o]):t[o]}return s}}const Ft=t=>"number"==typeof t?0:Mt.test(t)?Mt.getAnimatableNone(t):t;const Ot={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(pt))?void 0:e.length)||0)+((null==(n=t.match(Vt))?void 0:n.length)||0)>0},parse:jt,createTransformer:Bt,getAnimatableNone:function(t){const e=jt(t);return Bt(t)(e.map(Ft))}};function It(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Ut(t,e){return n=>n>0?e:t}const Wt=(t,e,n)=>t+(e-t)*n,Nt=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},$t=[xt,vt,Ct];function zt(t){const e=(n=t,$t.find(t=>t.test(n)));var n;if(!Boolean(e))return!1;let i=e.parse(t);return e===Ct&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,o=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=It(a,i,t+1/3),o=It(a,i,t),r=It(a,i,t-1/3)}else s=o=r=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*r),alpha:i}}(i)),i}const Xt=(t,e)=>{const n=zt(t),i=zt(e);if(!n||!i)return Ut(t,e);const s={...n};return t=>(s.red=Nt(n.red,i.red,t),s.green=Nt(n.green,i.green,t),s.blue=Nt(n.blue,i.blue,t),s.alpha=Wt(n.alpha,i.alpha,t),vt.transform(s))},Yt=new Set(["none","hidden"]);function Ht(t,e){return n=>Wt(t,e,n)}function Kt(t){return"number"==typeof t?Ht:"string"==typeof t?at(t)?Ut:Mt.test(t)?Xt:qt:Array.isArray(t)?_t:"object"==typeof t?Mt.test(t)?Xt:Gt:Ut}function _t(t,e){const n=[...t],i=n.length,s=t.map((t,n)=>Kt(t)(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}}function Gt(t,e){const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=Kt(t[s])(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const qt=(t,e)=>{const n=Ot.createTransformer(e),i=Lt(t),s=Lt(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?Yt.has(t)&&!s.values.length||Yt.has(e)&&!i.values.length?function(t,e){return Yt.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):A(_t(function(t,e){const n=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],r=t.indexes[o][i[o]],a=t.values[r]??0;n[s]=a,i[o]++}return n}(i,s),s.values),n):Ut(t,e)};function Zt(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return Wt(t,e,n);return Kt(t)(t,e)}const Jt=t=>{const e=({timestamp:e})=>t(e);return{start:(t=!0)=>Z.update(e,t),stop:()=>J(e),now:()=>Q.isProcessing?Q.timestamp:it.now()}},Qt=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let o=0;o<s;o++)i+=Math.round(1e4*t(o/(s-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},te=2e4;function ee(t){let e=0;let n=t.next(e);for(;!n.done&&e<te;)e+=50,n=t.next(e);return e>=te?1/0:e}function ne(t,e,n){const i=Math.max(e-5,0);return k(n-t(i),e-i)}const ie=100,se=10,oe=1,re=0,ae=800,le=.3,ue=.3,ce={granular:.01,default:2},he={granular:.005,default:.5},de=.01,pe=10,me=.05,fe=1,ge=.001;function ye({duration:t=ae,bounce:e=le,velocity:n=re,mass:i=oe}){let s,o,r=1-e;r=v(me,fe,r),t=v(de,pe,D(t)),r<1?(s=e=>{const i=e*r,s=i*t,o=i-n,a=xe(e,r),l=Math.exp(-s);return ge-o/a*l},o=e=>{const i=e*r*t,o=i*n+n,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-i),u=xe(Math.pow(e,2),r);return(-s(e)+ge>0?-1:1)*((o-a)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let s=1;s<ve;s++)i-=t(i)/e(i);return i}(s,o,5/t);if(t=V(t),isNaN(a))return{stiffness:ie,damping:se,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*r*Math.sqrt(i*e),duration:t}}}const ve=12;function xe(t,e){return t*Math.sqrt(1-e*e)}const we=["duration","bounce"],Te=["stiffness","damping","mass"];function Pe(t,e){return e.some(e=>void 0!==t[e])}function Se(t=ue,e=le){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:re,stiffness:ie,damping:se,mass:oe,isResolvedFromDuration:!1,...t};if(!Pe(t,Te)&&Pe(t,we))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),s=i*i,o=2*v(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:oe,stiffness:s,damping:o}}else{const n=ye(t);e={...e,...n,mass:oe},e.isResolvedFromDuration=!0}return e}({...n,velocity:-D(n.velocity||0)}),m=d||0,f=u/(2*Math.sqrt(l*c)),g=r-o,y=D(Math.sqrt(l/c)),x=Math.abs(g)<5;let w;if(i||(i=x?ce.granular:ce.default),s||(s=x?he.granular:he.default),f<1){const t=xe(y,f);w=e=>{const n=Math.exp(-f*y*e);return r-n*((m+f*y*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}}else if(1===f)w=t=>r-Math.exp(-y*t)*(g+(m+y*g)*t);else{const t=y*Math.sqrt(f*f-1);w=e=>{const n=Math.exp(-f*y*e),i=Math.min(t*e,300);return r-n*((m+f*y*g)*Math.sinh(i)+t*g*Math.cosh(i))/t}}
vendor: 10,977 bytes, line 1
1const T={calculatedDuration:p&&h||null,next:t=>{const e=w(t);if(p)a.done=t>=h;else{let n=0===t?m:0;f<1&&(n=0===t?V(m):ne(w,t,e));const o=Math.abs(n)<=i,l=Math.abs(r-e)<=s;a.done=o&&l}return a.value=a.done?r:e,a},toString:()=>{const t=Math.min(ee(T),te),e=Qt(e=>T.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return T}function be({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],d={done:!1,value:h},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let m=n*e;const f=h+m,g=void 0===r?f:r(f);g!==f&&(m=g-h);const y=t=>-m*Math.exp(-t/i),v=t=>g+y(t),x=t=>{const e=y(t),n=v(t);d.done=Math.abs(e)<=u,d.value=d.done?g:n};let w,T;const P=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(w=t,T=Se({keyframes:[d.value,p(d.value)],velocity:ne(v,t,d.value),damping:s,stiffness:o,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return T||void 0!==w||(e=!0,x(t),P(t)),void 0!==w&&t>=w?T.next(t-w):(!e&&x(t),d)}}}function Ee(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(e.length,1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,n){const i=[],s=n||x.mix||Zt,o=t.length-1;for(let r=0;r<o;r++){let n=s(t[r],t[r+1]);if(e){const t=Array.isArray(e)?e[r]||b:e;n=A(t,n)}i.push(n)}return i}(e,i,s),l=a.length,u=n=>{if(r&&n<t[0])return e[0];let i=0;if(l>1)for(;i<t.length-2&&!(n<t[i+1]);i++);const s=C(t[i],t[i+1],n);return a[i](s)};return n?e=>u(v(t[0],t[o-1],e)):u}function Ae(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=C(0,e,i);t.push(Wt(n,1,s))}}(e,t.length-1),e}function Ce({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(_):_(i),o={done:!1,value:e[0]},r=function(t,e){return t.map(t=>t*e)}(n&&n.length===e.length?n:Ae(e),t),a=Ee(r,e,{ease:Array.isArray(s)?s:(l=e,u=s,l.map(()=>u||Y).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}Se.applyToOptions=t=>{const e=function(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(ee(i),te);return{type:"keyframes",ease:t=>i.next(s*t).value/e,duration:D(s)}}(t,100,Se);return t.ease=e.ease,t.duration=V(e.duration),t.type="keyframes",t};const Me=t=>null!==t;function Ve(t,{repeat:e,repeatType:n="loop"},i,s=1){const o=t.filter(Me),r=s<0||e&&"loop"!==n&&e%2==1?0:o.length-1;return r&&void 0!==i?i:o[r]}const De={decay:be,inertia:be,tween:Ce,keyframes:Ce,spring:Se};function ke(t){"string"==typeof t.type&&(t.type=De[t.type])}class Re{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const Le=t=>t/100;class je extends Re{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var t,e;const{motionValue:n}=this.options;n&&n.updatedAt!==it.now()&&this.tick(it.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null==(e=(t=this.options).onStop)||e.call(t))},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){const{options:t}=this;ke(t);const{type:e=Ce,repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:r}=t;const a=e||Ce;a!==Ce&&"number"!=typeof r[0]&&(this.mixKeyframes=A(Le,Zt(r[0],r[1])),r=[0,100]);const l=a({...t,keyframes:r});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...r].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=ee(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:n,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:r,calculatedDuration:a}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:u,repeat:c,repeatType:h,repeatDelay:d,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-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let x=this.currentTime,w=n;if(c){const t=Math.min(this.currentTime,i)/r;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,c+1);Boolean(e%2)&&("reverse"===h?(n=1-n,d&&(n-=d/r)):"mirror"===h&&(w=o)),x=v(0,1,n)*r}const T=y?{done:!1,value:u[0]}:w.next(x);s&&(T.value=s(T.value));let{done:P}=T;y||null===a||(P=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return S&&p!==be&&(T.value=Ve(u,this.options,f,this.speed)),m&&m(T.value),S&&this.finish(),T}then(t,e){return this.finished.then(t,e)}get duration(){return D(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+D(t)}get time(){return D(this.currentTime)}set time(t){var e;t=V(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),null==(e=this.driver)||e.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(it.now());const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=D(this.currentTime))}play(){var t,e;if(this.isStopped)return;const{driver:n=Jt,startTime:i}=this.options;this.driver||(this.driver=n(t=>this.tick(t))),null==(e=(t=this.options).onPlay)||e.call(t);const s=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=s):null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime||(this.startTime=i??s),"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(it.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,e;this.notifyFinished(),this.teardown(),this.state="finished",null==(e=(t=this.options).onComplete)||e.call(t)}cancel(){var t,e;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(e=(t=this.options).onCancel)||e.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(e=this.driver)||e.stop(),t.observe(this)}}const Be=t=>180*t/Math.PI,Fe=t=>{const e=Be(Math.atan2(t[1],t[0]));return Ie(e)},Oe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Fe,rotateZ:Fe,skewX:t=>Be(Math.atan(t[1])),skewY:t=>Be(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ie=t=>((t%=360)<0&&(t+=360),t),Ue=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),We=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Ne={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ue,scaleY:We,scale:t=>(Ue(t)+We(t))/2,rotateX:t=>Ie(Be(Math.atan2(t[6],t[5]))),rotateY:t=>Ie(Be(Math.atan2(-t[2],t[0]))),rotateZ:Fe,rotate:Fe,skewX:t=>Be(Math.atan(t[4])),skewY:t=>Be(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function $e(t){return t.includes("scale")?1:0}function ze(t,e){if(!t||"none"===t)return $e(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(n)i=Ne,s=n;else{const e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=Oe,s=e}if(!s)return $e(e);const o=i[e],r=s[1].split(",").map(Xe);return"function"==typeof o?o(r):r[o]}function Xe(t){return parseFloat(t.trim())}const Ye=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],He=(()=>new Set(Ye))(),Ke=t=>t===ut||t===St,_e=new Set(["x","y","z"]),Ge=Ye.filter(t=>!_e.has(t));const qe={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>ze(e,"x"),y:(t,{transform:e})=>ze(e,"y")};qe.translateX=qe.x,qe.translateY=qe.y;const Ze=new Set;let Je=!1,Qe=!1,tn=!1;function en(){if(Qe){const t=Array.from(Ze).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{const e=function(t){const e=[];return Ge.forEach(n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=n.get(t);e&&e.forEach(([e,n])=>{var i;null==(i=t.getValue(e))||i.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}Qe=!1,Je=!1,Ze.forEach(t=>t.complete(tn)),Ze.clear()}function nn(){Ze.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Qe=!0)})}class sn{constructor(t,e,n,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Ze.add(this),Je||(Je=!0,Z.read(nn),Z.resolveKeyframes(en))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(null===t[0]){const s=null==i?void 0:i.get(),o=t[t.length-1];if(void 0!==s)t[0]=s;else if(n&&e){const i=n.readValue(e,o);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===s&&i.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),Ze.delete(this)}cancel(){"scheduled"===this.state&&(Ze.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const on=S(()=>void 0!==window.ScrollTimeline),rn={};function an(t,e){const n=S(t);return()=>rn[e]??n()}const ln=an(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),un=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,cn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:un([0,.65,.55,1]),circOut:un([.55,0,1,.45]),backIn:un([.31,.01,.66,-.59]),backOut:un([.33,1.53,.69,.99])};function hn(t,e){return t?"function"==typeof t?ln()?Qt(t,e):"ease-out":H(t)?un(t):Array.isArray(t)?t.map(t=>hn(t,e)||cn.easeOut):cn[t]:void 0}function dn(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[e]:n};l&&(c.offset=l);const h=hn(a,s);Array.isArray(h)&&(c.easing=h);const d={delay:i,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"};u&&(d.pseudoElement=u);return t.animate(c,d)}function pn(t){return"function"==typeof t&&"applyToOptions"in t}class mn extends Re{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:n,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:r,onComplete:a}=t;this.isPseudoElement=Boolean(s),this.allowFlatten=o,this.options=t,t.type;const l=function({type:t,...e}){return pn(t)&&ln()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=dn(e,n,i,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const t=Ve(i,this.options,r,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,n){(t=>t.startsWith("--"))(e)?t.style.setProperty(e,n):t.style[e]=n}(e,n,t),this.animation.cancel()}null==a||a(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,e;null==(e=(t=this.animation).finish)||e.call(t)}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,e;this.isPseudoElement||null==(e=(t=this.animation).commitStyles)||e.call(t)}get duration(){var t,e;const n=(null==(e=null==(t=this.animation.effect)?void 0:t.getComputedTiming)?void 0:e.call(t).duration)||0;return D(Number(n))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+D(t)}get time(){return D(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=V(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}){var n;return this.allowFlatten&&(null==(n=this.animation.effect)||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&on()?(this.animation.timeline=t,b):e(this)}}const fn={anticipate:U,backInOut:I,circInOut:$};function gn(t){"string"==typeof t.ease&&t.ease in fn&&(t.ease=fn[t.ease])}class yn extends mn{constructor(t){gn(t),ke(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:e,onUpdate:n,onComplete:i,element:s,...o}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);const r=new je({...o,autoplay:!1}),a=V(this.finishedTime??this.time);e.setWithVelocity(r.sample(a-10).value,r.sample(a).value,10),r.stop()}}const vn=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Ot.test(t)&&"0"!==t||t.startsWith("url(")));function xn(t){t.duration=0,t.type="keyframes"}const wn=new Set(["opacity","clipPath","filter","transform"]),Tn=S(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class Pn extends Re{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:r,name:a,motionValue:l,element:u,...c}){var h;
1super(),this.stop=()=>{var t,e;this._animation&&(this._animation.stop(),null==(t=this.stopTimeline)||t.call(this)),null==(e=this.keyframeResolver)||e.cancel()},this.createdAt=it.now();const d={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:s,repeatType:o,name:a,motionValue:l,element:u,...c},p=(null==u?void 0:u.KeyframeResolver)||sn;this.keyframeResolver=new p(r,(t,e,n)=>this.onKeyframesResolved(t,e,d,!n),a,l,u),null==(h=this.keyframeResolver)||h.scheduleResolve()}onKeyframesResolved(t,e,n,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:r,delay:a,isHandoff:l,onUpdate:u}=n;this.resolvedAt=it.now(),function(t,e,n,i){const s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],r=vn(s,e),a=vn(o,e);return!(!r||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||pn(n))&&i)}(t,s,o,r)||(!x.instantAnimations&&a||null==u||u(Ve(t,n,e)),t[0]=t[t.length-1],xn(n),n.repeat=0);const c={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...n,keyframes:t},h=!l&&function(t){var e;const{motionValue:n,name:i,repeatDelay:s,repeatType:o,damping:r,type:a}=t;if(!((null==(e=null==n?void 0:n.owner)?void 0:e.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return Tn()&&i&&wn.has(i)&&("transform"!==i||!u)&&!l&&!s&&"mirror"!==o&&0!==r&&"inertia"!==a}(c)?new yn({...c,element:c.motionValue.owner.current}):new je(c);h.finished.then(()=>this.notifyFinished()).catch(b),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||(null==(t=this.keyframeResolver)||t.resume(),tn=!0,nn(),en(),tn=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),null==(t=this.keyframeResolver)||t.cancel()}}const Sn=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function bn(t,e,n=1){const[i,s]=function(t){const e=Sn.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return w(t)?parseFloat(t):t}return at(s)?bn(s,e,n+1):s}function En(t,e){return(null==t?void 0:t[e])??(null==t?void 0:t.default)??t}const An=new Set(["width","height","top","left","right","bottom",...Ye]),Cn=t=>e=>e.test(t),Mn=[ut,St,Pt,Tt,Et,bt,{test:t=>"auto"===t,parse:t=>t}],Vn=t=>Mn.find(Cn(t));function Dn(t){return"number"==typeof t?0===t:null===t||("none"===t||"0"===t||P(t))}const kn=new Set(["brightness","contrast","saturate","opacity"]);function Rn(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(pt)||[];if(!i)return t;const s=n.replace(i,"");let o=kn.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const Ln=/\b([a-z-]*)\(.*?\)/gu,jn={...Ot,getAnimatableNone:t=>{const e=t.match(Ln);return e?e.map(Rn).join(" "):t}},Bn={...ut,transform:Math.round},Fn={borderWidth:St,borderTopWidth:St,borderRightWidth:St,borderBottomWidth:St,borderLeftWidth:St,borderRadius:St,radius:St,borderTopLeftRadius:St,borderTopRightRadius:St,borderBottomRightRadius:St,borderBottomLeftRadius:St,width:St,maxWidth:St,height:St,maxHeight:St,top:St,right:St,bottom:St,left:St,padding:St,paddingTop:St,paddingRight:St,paddingBottom:St,paddingLeft:St,margin:St,marginTop:St,marginRight:St,marginBottom:St,marginLeft:St,backgroundPositionX:St,backgroundPositionY:St,...{rotate:Tt,rotateX:Tt,rotateY:Tt,rotateZ:Tt,scale:ht,scaleX:ht,scaleY:ht,scaleZ:ht,skew:Tt,skewX:Tt,skewY:Tt,distance:St,translateX:St,translateY:St,translateZ:St,x:St,y:St,z:St,perspective:St,transformPerspective:St,opacity:ct,originX:At,originY:At,originZ:St},zIndex:Bn,fillOpacity:ct,strokeOpacity:ct,numOctaves:Bn},On={...Fn,color:Mt,backgroundColor:Mt,outlineColor:Mt,fill:Mt,stroke:Mt,borderColor:Mt,borderTopColor:Mt,borderRightColor:Mt,borderBottomColor:Mt,borderLeftColor:Mt,filter:jn,WebkitFilter:jn},In=t=>On[t];function Un(t,e){let n=In(t);return n!==jn&&(n=Ot),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
vendor: 1,655 bytes, line 1
1const Wn=new Set(["auto","none","0"]);class Nn extends sn{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let n=t[a];if("string"==typeof n&&(n=n.trim(),at(n))){const i=bn(n,e.current);void 0!==i&&(t[a]=i),a===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!An.has(n)||2!==t.length)return;const[i,s]=t,o=Vn(i),r=Vn(s);if(o!==r)if(Ke(o)&&Ke(r))for(let a=0;a<t.length;a++){const e=t[a];"string"==typeof e&&(t[a]=parseFloat(e))}else qe[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let i=0;i<t.length;i++)(null===t[i]||Dn(t[i]))&&n.push(i);n.length&&function(t,e,n){let i,s=0;for(;s<t.length&&!i;){const e=t[s];"string"==typeof e&&!Wn.has(e)&&Lt(e).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=Un(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=qe[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){var t;const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,r=i[o];i[o]=qe[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}function $n(t,e,n){if(t instanceof EventTarget)return[t];if("string"==typeof t){const e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}const zn=(t,e)=>e&&"number"==typeof t?e.transform(t):t;function Xn(t){return T(t)&&"offsetHeight"in t}const Yn={current:void 0};class Hn{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{var e;const n=it.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(null==(e=this.events.change)||e.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=it.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}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 M);const n=this.events[t].add(e);return"change"===t?()=>{n(),Z.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;null==(t=this.events.change)||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Yn.current&&Yn.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=it.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return k(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}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(){var t,e;null==(t=this.dependents)||t.clear(),null==(e=this.events.destroy)||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Kn(t,e){return new Hn(t,e)}const{schedule:_n}=q(queueMicrotask,!1),Gn={x:!1,y:!1};function qn(){return Gn.x||Gn.y}function Zn(t,e){const n=$n(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function Jn(t){return!("touch"===t.pointerType||qn())}const Qn=(t,e)=>!!e&&(t===e||Qn(t,e.parentElement)),ti=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,ei=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const ni=new WeakSet;function ii(t){return e=>{"Enter"===e.key&&t(e)}}function si(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function oi(t){return ti(t)&&!qn()}function ri(t,e,n={}){const[i,s,o]=Zn(t,n),r=t=>{const i=t.currentTarget;if(!oi(t))return;ni.add(i);const o=e(i,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),ni.has(i)&&ni.delete(i),oi(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{r(t,i===window||i===document||n.useGlobalTarget||Qn(i,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return i.forEach(t=>{var e;(n.useGlobalTarget?window:t).addEventListener("pointerdown",r,s),Xn(t)&&(t.addEventListener("focus",t=>((t,e)=>{const n=t.currentTarget;if(!n)return;const i=ii(()=>
1{if(ni.has(n))return;si(n,"down");const t=ii(()=>{si(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>si(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)})(t,s)),e=t,ei.has(e.tagName)||-1!==e.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}function ai(t){return T(t)&&"ownerSVGElement"in t}const li=new WeakMap;let ui;const ci=(t,e,n)=>(i,s)=>s&&s[0]?s[0][t+"Size"]:ai(i)&&"getBBox"in i?i.getBBox()[e]:i[n],hi=ci("inline","width","offsetWidth"),di=ci("block","height","offsetHeight");function pi({target:t,borderBoxSize:e}){var n;null==(n=li.get(t))||n.forEach(n=>{n(t,{get width(){return hi(t,e)},get height(){return di(t,e)}})})}function mi(t){t.forEach(pi)}function fi(t,e){ui||"undefined"!=typeof ResizeObserver&&(ui=new ResizeObserver(mi));const n=$n(t);return n.forEach(t=>{let n=li.get(t);n||(n=new Set,li.set(t,n)),n.add(e),null==ui||ui.observe(t)}),()=>{n.forEach(t=>{const n=li.get(t);null==n||n.delete(e),(null==n?void 0:n.size)||null==ui||ui.unobserve(t)})}}const gi=new Set;let yi;function vi(t){return gi.add(t),yi||(yi=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};gi.forEach(e=>e(t))},window.addEventListener("resize",yi)),()=>{gi.delete(t),gi.size||"function"!=typeof yi||(window.removeEventListener("resize",yi),yi=void 0)}}function xi(t,e){let n;const i=()=>{const{currentTime:i}=e,s=(null===i?0:i.value)/100;n!==s&&t(s),n=s};return Z.preUpdate(i,!0),()=>J(i)}const wi=t=>Boolean(t&&t.getVelocity),Ti=[...Mn,Mt,Ot],Pi=t.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Si(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}function bi(...e){return t.useCallback(function(...t){return e=>{let n=!1;const i=t.map(t=>{const i=Si(t,e);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let e=0;e<i.length;e++){const n=i[e];"function"==typeof n?n():Si(t[e],null)}}}}(...e),e)}class Ei extends t.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=e.offsetParent,n=Xn(t)&&t.offsetWidth||0,i=this.props.sizeRef.current;i.height=e.offsetHeight||0,i.width=e.offsetWidth||0,i.top=e.offsetTop,i.left=e.offsetLeft,i.right=n-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Ai({children:e,isPresent:n,anchorX:i,root:s}){const o=t.useId(),r=t.useRef(null),a=t.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=t.useContext(Pi),u=bi(r,null==e?void 0:e.ref);return t.useInsertionEffect(()=>{const{width:t,height:e,top:u,left:c,right:h}=a.current;if(n||!r.current||!t||!e)return;const d="left"===i?`left: ${c}`:`right: ${h}`;r.current.dataset.motionPopId=o;const p=document.createElement("style");l&&(p.nonce=l);const m=s??document.head;return m.appendChild(p),p.sheet&&p.sheet.insertRule(`\n          [data-motion-pop-id="${o}"] {\n            position: absolute !important;\n            width: ${t}px !important;\n            height: ${e}px !important;\n            ${d}px !important;\n            top: ${u}px !important;\n          }\n        `),()=>{m.contains(p)&&m.removeChild(p)}},[n]),c.jsx(Ei,{isPresent:n,childRef:r,sizeRef:a,children:t.cloneElement(e,{ref:u})})}const Ci=({children:e,initial:n,isPresent:i,onExitComplete:s,custom:o,presenceAffectsLayout:r,mode:a,anchorX:l,root:u})=>{const h=d(Mi),p=t.useId();let m=!0,g=t.useMemo(()=>(m=!1,{id:p,initial:n,isPresent:i,custom:o,onExitComplete:t=>{h.set(t,!0);for(const e of h.values())if(!e)return;s&&s()},register:t=>(h.set(t,!1),()=>h.delete(t))}),[i,h,s]);return r&&m&&(g={...g}),t.useMemo(()=>{h.forEach((t,e)=>h.set(e,!1))},[i]),t.useEffect(()=>{!i&&!h.size&&s&&s()},[i]),"popLayout"===a&&(e=c.jsx(Ai,{isPresent:i,anchorX:l,root:u,children:e})),c.jsx(f.Provider,{value:g,children:e})};function Mi(){return new Map}function Vi(e=!0){const n=t.useContext(f);if(null===n)return[!0,null];const{isPresent:i,onExitComplete:s,register:o}=n,r=t.useId();t.useEffect(()=>{if(e)return o(r)},[e]);const a=t.useCallback(()=>e&&s&&s(r),[r,s,e]);return!i&&s?[!1,a]:[!0]}const Di=t=>t.key||"";function ki(e){const n=[];
1return t.Children.forEach(e,e=>{t.isValidElement(e)&&n.push(e)}),n}const Ri=({children:e,custom:n,initial:i=!0,onExitComplete:s,presenceAffectsLayout:o=!0,mode:r="sync",propagate:a=!1,anchorX:l="left",root:u})=>{const[p,f]=Vi(a),g=t.useMemo(()=>ki(e),[e]),y=a&&!p?[]:g.map(Di),v=t.useRef(!0),x=t.useRef(g),w=d(()=>new Map),[T,P]=t.useState(g),[S,b]=t.useState(g);m(()=>{v.current=!1,x.current=g;for(let t=0;t<S.length;t++){const e=Di(S[t]);y.includes(e)?w.delete(e):!0!==w.get(e)&&w.set(e,!1)}},[S,y.length,y.join("-")]);const E=[];if(g!==T){let t=[...g];for(let e=0;e<S.length;e++){const n=S[e],i=Di(n);y.includes(i)||(t.splice(e,0,n),E.push(n))}return"wait"===r&&E.length&&(t=E),b(ki(t)),P(g),null}const{forceRender:A}=t.useContext(h);return c.jsx(c.Fragment,{children:S.map(t=>{const e=Di(t),h=!(a&&!p)&&(g===S||y.includes(e));return c.jsx(Ci,{isPresent:h,initial:!(v.current&&!i)&&void 0,custom:n,presenceAffectsLayout:o,mode:r,root:u,onExitComplete:h?void 0:()=>{if(!w.has(e))return;w.set(e,!0);let t=!0;w.forEach(e=>{e||(t=!1)}),t&&(null==A||A(),b(x.current),a&&(null==f||f()),s&&s())},anchorX:l,children:t},e)})})},Li=t.createContext({strict:!1}),ji={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"]},Bi={};for(const al in ji)Bi[al]={isEnabled:t=>ji[al].some(e=>!!t[e])};const Fi=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 Oi(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Fi.has(t)}let Ii=t=>!Oi(t);try{"function"==typeof(Ui=require("@emotion/is-prop-valid").default)&&(Ii=t=>t.startsWith("on")?!Oi(t):Ui(t))}catch{}var Ui;const Wi=t.createContext({});function Ni(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function $i(t){return"string"==typeof t||Array.isArray(t)}const zi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xi=["initial",...zi];function Yi(t){return Ni(t.animate)||Xi.some(e=>$i(t[e]))}function Hi(t){return Boolean(Yi(t)||t.variants)}function Ki(e){const{initial:n,animate:i}=function(t,e){if(Yi(t)){const{initial:e,animate:n}=t;return{initial:!1===e||$i(e)?e:void 0,animate:$i(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,t.useContext(Wi));return t.useMemo(()=>({initial:n,animate:i}),[_i(n),_i(i)])}function _i(t){return Array.isArray(t)?t.join(" "):t}const Gi={};function qi(t,{layout:e,layoutId:n}){return He.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!Gi[t]||"opacity"===t)}const Zi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ji=Ye.length;function Qi(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const t=e[l];if(He.has(l))r=!0;else if(ot(l))s[l]=t;else{const e=zn(t,Fn[l]);l.startsWith("origin")?(a=!0,o[l]=e):i[l]=e}}if(e.transform||(r||n?i.transform=function(t,e,n){let i="",s=!0;for(let o=0;o<Ji;o++){const r=Ye[o],a=t[r];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(r.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const t=zn(a,Fn[r]);l||(s=!1,i+=`${Zi[r]||r}(${t}) `),n&&(e[r]=t)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=o;i.transformOrigin=`${t} ${e} ${n}`}}const ts=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function es(t,e,n){for(const i in e)wi(e[i])||qi(i,n)||(t[i]=e[i])}function ns(e,n){const i={};return es(i,e.style||{},e),Object.assign(i,function({transformTemplate:e},n){return t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return Qi(t,n,e),Object.assign({},t.vars,t.style)}
1,[n])}(e,n)),i}function is(t,e){const n={},i=ns(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const ss={offset:"stroke-dashoffset",array:"stroke-dasharray"},os={offset:"strokeDashoffset",array:"strokeDasharray"};function rs(t,{attrX:e,attrY:n,attrScale:i,pathLength:s,pathSpacing:o=1,pathOffset:r=0,...a},l,u,c){if(Qi(t,a,u),l)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:h,style:d}=t;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=(null==c?void 0:c.transformBox)??"fill-box",delete h.transformBox),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==i&&(h.scale=i),void 0!==s&&function(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?ss:os;t[o.offset]=St.transform(-i);const r=St.transform(e),a=St.transform(n);t[o.array]=`${r} ${a}`}(h,s,o,r,!1)}const as=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),ls=t=>"string"==typeof t&&"svg"===t.toLowerCase();function us(e,n,i,s){const o=t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return rs(t,n,ls(s),e.transformTemplate,e.style),{...t.attrs,style:{...t.style}}},[n]);if(e.style){const t={};es(t,e.style,e),o.style={...t,...o.style}}return o}const cs=["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 hs(t){return"string"==typeof t&&!t.includes("-")&&!!(cs.indexOf(t)>-1||/[A-Z]/u.test(t))}function ds(e,n,i,{latestValues:s},o,r=!1){const a=(hs(e)?us:is)(n,s,o,e),l=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"==typeof t.values||(Ii(s)||!0===n&&Oi(s)||!e&&!Oi(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(n,"string"==typeof e,r),u=e!==t.Fragment?{...l,...a,ref:i}
1:{},{children:c}=n,h=t.useMemo(()=>wi(c)?c.get():c,[c]);return t.createElement(e,{...u,children:h})}function ps(t){const e=[{},{}];return null==t||t.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function ms(t,e,n,i){if("function"==typeof e){const[s,o]=ps(i);e=e(void 0!==n?n:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[s,o]=ps(i);e=e(void 0!==n?n:t.custom,s,o)}return e}function fs(t){return wi(t)?t.get():t}function gs(t,e,n,i){const s={},o=i(t,{});for(const d in o)s[d]=fs(o[d]);let{initial:r,animate:a}=t;const l=Yi(t),u=Hi(t);e&&u&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial;c=c||!1===r;const h=c?a:r;if(h&&"boolean"!=typeof h&&!Ni(h)){const e=Array.isArray(h)?h:[h];for(let n=0;n<e.length;n++){const i=ms(t,e[n]);if(i){const{transitionEnd:t,transition:e,...n}=i;for(const i in n){let t=n[i];if(Array.isArray(t)){t=t[c?t.length-1:0]}null!==t&&(s[i]=t)}for(const i in t)s[i]=t[i]}}}return s}const ys=e=>(n,i)=>{const s=t.useContext(Wi),o=t.useContext(f),r=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,s){return{latestValues:gs(n,i,s,t),renderState:e()}}(e,n,s,o);return i?r():d(r)};function vs(t,e,n){var i;const{style:s}=t,o={};for(const r in s)(wi(s[r])||e.style&&wi(e.style[r])||qi(r,t)||void 0!==(null==(i=null==n?void 0:n.getValue(r))?void 0:i.liveStyle))&&(o[r]=s[r]);return o}const xs=ys({scrapeMotionValuesFromProps:vs,createRenderState:ts});function ws(t,e,n){const i=vs(t,e,n);for(const s in t)if(wi(t[s])||wi(e[s])){i[-1!==Ye.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=t[s]}return i}const Ts=ys({scrapeMotionValuesFromProps:ws,createRenderState:as}),Ps=Symbol.for("motionComponentSymbol");function Ss(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function bs(e,n,i){return t.useCallback(t=>{t&&e.onMount&&e.onMount(t),n&&(t?n.mount(t):n.unmount()),i&&("function"==typeof i?i(t):Ss(i)&&(i.current=t))},[n])}const Es=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),As="data-"+Es("framerAppearId"),Cs=t.createContext({});function Ms(e,n,i,s,o){var r,a;const{visualElement:l}=t.useContext(Wi),u=t.useContext(Li),c=t.useContext(f),h=t.useContext(Pi).reducedMotion,d=t.useRef(null);s=s||u.renderer,!d.current&&s&&(d.current=s(e,{visualState:n,parent:l,props:i,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:h}));const p=d.current,g=t.useContext(Cs);!p||p.projection||!o||"html"!==p.type&&"svg"!==p.type||function(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Vs(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:Boolean(r)||a&&Ss(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,crossfade:c,layoutScroll:l,layoutRoot:u})}(d.current,i,o,g);const y=t.useRef(!1);t.useInsertionEffect(()=>{p&&y.current&&p.update(i,c)});const v=i[As],x=t.useRef(Boolean(v)&&!(null==(r=window.MotionHandoffIsComplete)?void 0:r.call(window,v))&&(null==(a=window.MotionHasOptimisedAnimation)?void 0:a.call(window,v)));return m(()=>{p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),x.current&&p.animationState&&p.animationState.animateChanges())}),t.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,v)}),x.current=!1),p.enteringChildren=void 0)}),p}function Vs(t){if(t)return!1!==t.options.allowProjection?t.projection:Vs(t.parent)}function Ds(e,{forwardMotionProps:n=!1}={},i,s){i&&function(t){for(const e in t)Bi[e]={...Bi[e],...t[e]}}(i);const o=hs(e)?Ts:xs;function r(i,r){let a;const l={...t.useContext(Pi),...i,layoutId:ks(i)},{isStatic:u}=l,h=Ki(i),d=o(i,u);if(!u&&p){t.useContext(Li).strict;const n=function(t){const{drag:e,layout:n}=Bi;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}
vendor: 17,601 bytes, line 1
1(l);a=n.MeasureLayout,h.visualElement=Ms(e,d,l,s,n.ProjectionNode)}return c.jsxs(Wi.Provider,{value:h,children:[a&&h.visualElement?c.jsx(a,{visualElement:h.visualElement,...l}):null,ds(e,i,bs(d,h.visualElement,r),d,u,n)]})}r.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;const a=t.forwardRef(r);return a[Ps]=e,a}function ks({layoutId:e}){const n=t.useContext(h).id;return n&&void 0!==e?n+"-"+e:e}function Rs(t,e){if("undefined"==typeof Proxy)return Ds;const n=new Map,i=(n,i)=>Ds(n,i,t,e);return new Proxy((t,e)=>i(t,e),{get:(s,o)=>"create"===o?i:(n.has(o)||n.set(o,Ds(o,void 0,t,e)),n.get(o))})}function Ls({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function js(t){return void 0===t||1===t}function Bs({scale:t,scaleX:e,scaleY:n}){return!js(t)||!js(e)||!js(n)}function Fs(t){return Bs(t)||Os(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Os(t){return Is(t.x)||Is(t.y)}function Is(t){return t&&"0%"!==t}function Us(t,e,n){return n+e*(t-n)}function Ws(t,e,n,i,s){return void 0!==s&&(t=Us(t,s,i)),Us(t,n,i)+e}function Ns(t,e=0,n=1,i,s){t.min=Ws(t.min,e,n,i,s),t.max=Ws(t.max,e,n,i,s)}function $s(t,{x:e,y:n}){Ns(t.x,e.translate,e.scale,e.originPoint),Ns(t.y,n.translate,n.scale,n.originPoint)}const zs=.999999999999,Xs=1.0000000000001;function Ys(t,e){t.min=t.min+e,t.max=t.max+e}function Hs(t,e,n,i,s=.5){Ns(t,e,n,Wt(t.min,t.max,s),i)}function Ks(t,e){Hs(t.x,e.x,e.scaleX,e.scale,e.originX),Hs(t.y,e.y,e.scaleY,e.scale,e.originY)}function _s(t,e){return Ls(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}const Gs=()=>({x:{min:0,max:0},y:{min:0,max:0}}),qs={current:null},Zs={current:!1};const Js=new WeakMap;const Qs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class to{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=sn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const t=it.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,Z.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.blockInitialAnimation=Boolean(s),this.isControllingVariants=Yi(e),this.isVariantNode=Hi(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const h in c){const t=c[h];void 0!==a[h]&&wi(t)&&t.set(a[h])}}mount(t){var e;this.current=t,Js.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)),Zs.current||function(){if(Zs.current=!0,p)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>qs.current=t.matches;t.addEventListener("change",e),e()}else qs.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||qs.current),null==(e=this.parent)||e.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),J(this.notifyUpdate),J(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),null==(t=this.parent)||t.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=He.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&Z.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),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 Bi){const e=Bi[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const 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):{x:{min:0,max:0},y:{min:0,max:0}}}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 n=0;n<Qs.length;n++){const e=Qs[n];this.propEventSubscriptions[e]&&(this.propEventSubscriptions[e](),delete this.propEventSubscriptions[e]);const i=t["on"+e];i&&(this.propEventSubscriptions[e]=this.on(e,i))}this.prevMotionValues=function(t,e,n){for(const i in e){const s=e[i],o=n[i];if(wi(s))t.addValue(i,s);else if(wi(o))t.addValue(i,Kn(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{const e=t.getStaticValue(i);t.addValue(i,Kn(void 0!==e?e:s,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);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}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const 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 n=this.values.get(t);return void 0===n&&void 0!==e&&(n=Kn(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){let n=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var i;return null!=n&&("string"==typeof n&&(w(n)||P(n))?n=parseFloat(n):(i=n,!Ti.find(Cn(i))&&Ot.test(e)&&(n=Un(t,e))),this.setBaseTarget(t,wi(n)?n.get():n)),wi(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let i;if("string"==typeof n||"object"==typeof n){const s=ms(this.props,n,null==(e=this.presenceContext)?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||wi(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new M),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){_n.render(this.render)}}class eo extends to{constructor(){super(...arguments),this.KeyframeResolver=Nn}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:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;wi(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function no(t,{style:e,vars:n},i,s){const o=t.style;let r;for(r in e)o[r]=e[r];for(r in null==s||s.applyProjectionStyles(o,i),n)o.setProperty(r,n[r])}class io extends eo{constructor(){super(...arguments),this.type="html",this.renderInstance=no}readValueFromInstance(t,e){var n,i;if(He.has(e))return(null==(n=this.projection)?void 0:n.isProjecting)?$e(e):((t,e)=>{const{transform:n="none"}=getComputedStyle(t);return ze(n,e)})(t,e);{const n=(i=t,window.getComputedStyle(i)),s=(ot(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return _s(t,e)}build(t,e,n){Qi(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return vs(t,e,n)}}const so=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 oo extends eo{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Gs}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(He.has(e)){const t=In(e);return t&&t.default||0}return e=so.has(e)?e:Es(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return ws(t,e,n)}build(t,e,n){rs(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){!function(t,e,n,i){no(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(so.has(s)?s:Es(s),e.attrs[s])}(t,e,0,i)}mount(t){this.isSVGTag=ls(t.tagName),super.mount(t)}}const ro=(e,n)=>hs(e)?new oo(n):new io(n,{allowProjection:e!==t.Fragment});function ao(t,e,n){const i=t.getProps();return ms(i,e,void 0!==n?n:i.custom,t)}const lo=t=>Array.isArray(t);function uo(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Kn(n))}function co(t){return lo(t)?t[t.length-1]||0:t}function ho(t,e){const n=ao(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const r in o){uo(t,r,co(o[r]))}}function po(t,e){const n=t.getValue("willChange");if(i=n,Boolean(wi(i)&&i.add))return n.add(e);if(!n&&x.WillChange){const n=new x.WillChange("auto");t.addValue("willChange",n),n.add(e)}var i}function mo(t){return t.props[As]}const fo=t=>null!==t;const go={type:"spring",stiffness:500,damping:25,restSpeed:10},yo={type:"keyframes",duration:.8},vo={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xo=(t,{keyframes:e})=>e.length>2?yo:He.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:go:vo;const wo=(t,e,n,i={},s,o)=>r=>{const a=En(i,t)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u-=V(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(a)||Object.assign(c,xo(t,c)),c.duration&&(c.duration=V(c.duration)),c.repeatDelay&&(c.repeatDelay=V(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(xn(c),0===c.delay&&(h=!0)),(x.instantAnimations||x.skipAnimations)&&(h=!0,xn(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!o&&void 0!==e.get()){const t=function(t,{repeat:e,repeatType:n="loop"}){const i=t.filter(fo);return i[e&&"loop"!==n&&e%2==1?0:i.length-1]}(c.keyframes,a);if(void 0!==t)return void Z.update(()=>{c.onUpdate(t),c.onComplete()})}return a.isSync?new je(c):new Pn(c)};function To({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function Po(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;i&&(o=i);const l=[],u=s&&t.animationState&&t.animationState.getState()[s];for(const c in a){const e=t.getValue(c,t.latestValues[c]??null),i=a[c];if(void 0===i||u&&To(u,c))continue;const s={delay:n,...En(o||{},c)},r=e.get();if(void 0!==r&&!e.isAnimating&&!Array.isArray(i)&&i===r&&!s.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){const e=mo(t);if(e){const t=window.MotionHandoffAnimation(e,c,Z);null!==t&&(s.startTime=t,h=!0)}}po(t,c),e.start(wo(c,e,i,t.shouldReduceMotion&&An.has(c)?{type:!1}:s,t,h));const d=e.animation;d&&l.push(d)}return r&&Promise.all(l).then(()=>{Z.update(()=>{r&&ho(t,r)})}),l}function So(t,e,n,i=0,s=1){const o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),r=t.size,a=(r-1)*i;return"function"==typeof n?n(o,r):1===s?o*i:a-o*i}function bo(t,e,n={}){var i;const s=ao(t,e,"exit"===n.type?null==(i=t.presenceContext)?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const r=s?()=>Promise.all(Po(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:s=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e,n=0,i=0,s=0,o=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(bo(l,e,{...r,delay:n+("function"==typeof i?0:i)+So(t.variantChildren,l,i,s,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,i,s,r,a,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then(()=>e())}return Promise.all([r(),a(n.delay)])}function Eo(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map(e=>bo(t,e,n));i=Promise.all(s)}else if("string"==typeof e)i=bo(t,e,n);else{const s="function"==typeof e?ao(t,e,n.custom):e;i=Promise.all(Po(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}function Ao(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const Co=Xi.length;function Mo(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&Mo(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<Co;n++){const i=Xi[n],s=t.props[i];($i(s)||!1===s)&&(e[i]=s)}return e}const Vo=[...zi].reverse(),Do=zi.length;function ko(t){let e=function(t){return e=>Promise.all(e.map(({animation:e,options:n})=>Eo(t,e,n)))}(t),n=jo(),i=!0;const s=e=>(n,i)=>{var s;const o=ao(t,i,"exit"===e?null==(s=t.presenceContext)?void 0:s.custom:void 0);if(o){const{transition:t,transitionEnd:e,...i}=o;n={...n,...i,...e}}return n};function o(o){const{props:r}=t,a=Mo(t.parent)||{},l=[],u=new Set;let c={},h=1/0;for(let e=0;e<Do;e++){const d=Vo[e],p=n[d],m=void 0!==r[d]?r[d]:a[d],f=$i(m),g=d===o?p.isActive:null;!1===g&&(h=e);let y=m===a[d]&&m!==r[d]&&f;if(y&&i&&t.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...c},!p.isActive&&null===g||!m&&!p.prevProp||Ni(m)||"boolean"==typeof m)continue;const v=Ro(p.prevProp,m);let x=v||d===o&&p.isActive&&!y&&f||e>h&&f,w=!1;const T=Array.isArray(m)?m:[m];let P=T.reduce(s(d),{});!1===g&&(P={});const{prevResolvedValues:S={}}=p,b={...S,...P},E=e=>{x=!0,u.has(e)&&(w=!0,u.delete(e)),p.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in b){const e=P[t],n=S[t];if(c.hasOwnProperty(t))continue;let i=!1;i=lo(e)&&lo(n)?!Ao(e,n):e!==n,i?null!=e?E(t):u.add(t):void 0!==e&&u.has(t)?E(t):p.protectedKeys[t]=!0}p.prevProp=m,p.prevResolvedValues=P,p.isActive&&(c={...c,...P}),i&&t.blockInitialAnimation&&(x=!1);const A=y&&v;x&&(!A||w)&&l.push(...T.map(e=>{const n={type:d};if("string"==typeof e&&i&&!A&&t.manuallyAnimateOnMount&&t.parent){const{parent:i}=t,s=ao(i,e);if(i.enteringChildren&&s){const{delayChildren:e}=s.transition||{};n.delay=So(i.enteringChildren,t,e)}}return{animation:e,options:n}}))}if(u.size){const e={};if("boolean"!=typeof r.initial){const n=ao(t,Array.isArray(r.initial)?r.initial[0]:r.initial);n&&n.transition&&(e.transition=n.transition)}u.forEach(n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=i??null}),l.push({animation:e})}let d=Boolean(l.length);return!i||!1!==r.initial&&r.initial!==r.animate||t.manuallyAnimateOnMount||(d=!1),i=!1,d?e(l):Promise.resolve()}
1return{animateChanges:o,setActive:function(e,i){var s;if(n[e].isActive===i)return Promise.resolve();null==(s=t.variantChildren)||s.forEach(t=>{var n;return null==(n=t.animationState)?void 0:n.setActive(e,i)}),n[e].isActive=i;const r=o(e);for(const t in n)n[t].protectedKeys={};return r},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=jo()}}}function Ro(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!Ao(e,t)}function Lo(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jo(){return{animate:Lo(!0),whileInView:Lo(),whileHover:Lo(),whileTap:Lo(),whileDrag:Lo(),whileFocus:Lo(),exit:Lo()}}class Bo{constructor(t){this.isMounted=!1,this.node=t}update(){}}let Fo=0;const Oo={animation:{Feature:class extends Bo{constructor(t){super(t),t.animationState||(t.animationState=ko(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ni(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}},exit:{Feature:class extends Bo{constructor(){super(...arguments),this.id=Fo++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>{e(this.id)})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};
vendor: 33,074 bytes, line 1
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};function Io(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function Uo(t){return{point:{x:t.pageX,y:t.pageY}}}function Wo(t,e,n,i){return Io(t,e,(t=>e=>ti(e)&&t(e,Uo(e)))(n),i)}function No(t){return t.max-t.min}function $o(t,e,n,i=.5){t.origin=i,t.originPoint=Wt(e.min,e.max,t.origin),t.scale=No(n)/No(e),t.translate=Wt(n.min,n.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 zo(t,e,n,i){$o(t.x,e.x,n.x,i?i.originX:void 0),$o(t.y,e.y,n.y,i?i.originY:void 0)}function Xo(t,e,n){t.min=n.min+e.min,t.max=t.min+No(e)}function Yo(t,e,n){t.min=e.min-n.min,t.max=t.min+No(e)}function Ho(t,e,n){Yo(t.x,e.x,n.x),Yo(t.y,e.y,n.y)}function Ko(t){return[t("x"),t("y")]}const _o=({current:t})=>t?t.ownerDocument.defaultView:null,Go=(t,e)=>Math.abs(t-e);class qo{constructor(t,e,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Qo(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=Go(t.x,e.x),i=Go(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=Q;this.history.push({...i,timestamp:s});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Zo(e,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=Qo("pointercancel"===t.type?this.lastMoveEventInfo:Zo(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!ti(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;const r=Zo(Uo(t),this.transformPagePoint),{point:a}=r,{timestamp:l}=Q;this.history=[{...a,timestamp:l}];const{onSessionStart:u}=e;u&&u(t,Qo(r,this.history)),this.removeListeners=A(Wo(this.contextWindow,"pointermove",this.handlePointerMove),Wo(this.contextWindow,"pointerup",this.handlePointerUp),Wo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),J(this.updatePoint)}}function Zo(t,e){return e?{point:e(t.point)}:t}function Jo(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Qo({point:t},e){return{point:t,delta:Jo(t,er(e)),offset:Jo(t,tr(e)),velocity:nr(e,.1)}}function tr(t){return t[0]}function er(t){return t[t.length-1]}function nr(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=er(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>V(e)));)n--;if(!i)return{x:0,y:0};const o=D(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function ir(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function sr(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}const or=.35;function rr(t,e,n){return{min:ar(t,e),max:ar(t,n)}}function ar(t,e){return"number"==typeof t?t:t[e]||0}const lr=new WeakMap;class ur{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={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:n}={}){const{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;const{dragSnapToOrigin:s}=this.getProps();this.panSession=new qo(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(Uo(t).point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(o=n)||"y"===o?Gn[o]?null:(Gn[o]=!0,()=>{Gn[o]=!1}):Gn.x||Gn.y?null:(Gn.x=Gn.y=!0,()=>{Gn.x=Gn.y=!1}),!this.openDragLock))return;var o;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ko(t=>{let e=this.getAxisMotionValue(t).get()||0;if(Pt.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=No(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e}),s&&Z.postRender(()=>s(t,e)),po(this.visualElement,"transform");const{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>Ko(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,distanceThreshold:n,contextWindow:_o(this.visualElement)})}stop(t,e){const n=t||this.latestPointerEvent,i=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!n)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:r}=this.getProps();r&&Z.postRender(()=>r(n,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!cr(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?Wt(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?Wt(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,s=this.constraints;e&&Ss(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,{top:e,left:n,bottom:i,right:s}){return{x:ir(t.x,n,s),y:ir(t.y,e,i)}}(i.layoutBox,e),this.elastic=function(t=or){return!1===t?t=0:!0===t&&(t=or),{x:rr(t,"left","right"),y:rr(t,"top","bottom")}}(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ko(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!Ss(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=function(t,e,n){const i=_s(t,n),{scroll:s}=e;return s&&(Ys(i.x,s.offset.x),Ys(i.y,s.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:sr(t.x,e.x),y:sr(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=Ls(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=Ko(r=>{if(!cr(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});const u=i?200:1e6,c=i?40:1e7,h={type:"inertia",velocity:n?t[r]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,h)});return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return po(this.visualElement,t),n.start(wo(t,n,0,e,this.visualElement,!1))}stopAnimation(){Ko(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ko(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Ko(e=>{const{drag:n}=this.getProps();if(!cr(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-Wt(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!Ss(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ko(t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=No(t),s=No(e);return s>i?n=C(e.min,e.max-i,t.min):i>s&&(n=C(t.min,t.max-s,e.min)),v(0,1,n)}({min:n,max:n},this.constraints[t])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ko(e=>{if(!cr(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set(Wt(s,o,i[e]))})}addListeners(){if(!this.visualElement.current)return;lr.set(this.visualElement,this);const t=Wo(this.visualElement.current,"pointerdown",t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),e=()=>{const{dragConstraints:t}=this.getProps();Ss(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Z.read(e);const s=Io(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Ko(e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=or,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function cr(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const hr=t=>(e,n)=>{t&&Z.postRender(()=>t(e,n))};const dr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const mr={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!St.test(t))return t;t=parseFloat(t)}return`${pr(t,e.target.x)}% ${pr(t,e.target.y)}%`}},fr={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=Ot.parse(t);if(s.length>5)return i;const o=Ot.createTransformer(t),r="number"!=typeof s[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=l;const u=Wt(a,l,.5);return"number"==typeof s[2+r]&&(s[2+r]/=u),"number"==typeof s[3+r]&&(s[3+r]/=u),o(s)}};let gr=!1;class yr extends t.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;!function(t){for(const e in t)Gi[e]=t[e],ot(e)&&(Gi[e].isCSSVariable=!0)}(xr),s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),gr&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),dr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,{projection:o}=n;return o?(o.isPresent=s,gr=!0,i||t.layoutDependency!==e||void 0===e||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||Z.postRender(()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),_n.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;gr=!0,i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function vr(e){const[n,i]=Vi(),s=t.useContext(h);return c.jsx(yr,{...e,layoutGroup:s,switchLayoutGroup:t.useContext(Cs),isPresent:n,safeToRemove:i})}const xr={borderRadius:{...mr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mr,borderTopRightRadius:mr,borderBottomLeftRadius:mr,borderBottomRightRadius:mr,boxShadow:fr};const wr=(t,e)=>t.depth-e.depth;class Tr{constructor(){this.children=[],this.isDirty=!1}add(t){g(this.children,t),this.isDirty=!0}remove(t){y(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(wr),this.isDirty=!1,this.children.forEach(t)}}const Pr=["TopLeft","TopRight","BottomLeft","BottomRight"],Sr=Pr.length,br=t=>"string"==typeof t?parseFloat(t):t,Er=t=>"number"==typeof t||St.test(t);function Ar(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Cr=Vr(0,.5,N),Mr=Vr(.5,.95,b);function Vr(t,e,n){return i=>i<t?0:i>e?1:n(C(t,e,i))}function Dr(t,e){t.min=e.min,t.max=e.max}function kr(t,e){Dr(t.x,e.x),Dr(t.y,e.y)}function Rr(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Lr(t,e,n,i,s){return t=Us(t-=e,1/n,i),void 0!==s&&(t=Us(t,1/s,i)),t}function jr(t,e,[n,i,s],o,r){!function(t,e=0,n=1,i=.5,s,o=t,r=t){Pt.test(e)&&(e=parseFloat(e),e=Wt(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=Wt(o.min,o.max,i);t===o&&(a-=e),t.min=Lr(t.min,e,n,a,s),t.max=Lr(t.max,e,n,a,s)}(t,e[n],e[i],e[s],e.scale,o,r)}const Br=["x","scaleX","originX"],Fr=["y","scaleY","originY"];function Or(t,e,n,i){jr(t.x,e,Br,n?n.x:void 0,i?i.x:void 0),jr(t.y,e,Fr,n?n.y:void 0,i?i.y:void 0)}function Ir(t){return 0===t.translate&&1===t.scale}function Ur(t){return Ir(t.x)&&Ir(t.y)}function Wr(t,e){return t.min===e.min&&t.max===e.max}function Nr(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function $r(t,e){return Nr(t.x,e.x)&&Nr(t.y,e.y)}function zr(t){return No(t.x)/No(t.y)}function Xr(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Yr{constructor(){this.members=[]}add(t){g(this.members,t),t.scheduleRender()}remove(t){if(y(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex(e=>t===e);if(0===e)return!1;let n;for(let i=e;i>=0;i--){const t=this.members[i];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Hr=["","X","Y","Z"];let Kr=0;function _r(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Gr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=mo(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Z,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Gr(i)}function qr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=Kr++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Qr),this.nodes.forEach(ra),this.nodes.forEach(aa),this.nodes.forEach(ta)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Tr)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new M),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;var n;this.isSVG=ai(e)&&!(ai(n=e)&&"svg"===n.tagName),this.instance=e;const{layoutId:i,layout:s,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let n,i=0;const s=()=>this.root.updateBlockedByResize=!1;Z.read(()=>{i=window.innerWidth}),t(e,()=>{const t=window.innerWidth;t!==i&&(i=t,this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=it.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(J(i),t(o-e))};return Z.setup(i,!0),()=>J(i)}(s,250),dr.hasAnimatedSinceResize&&(dr.hasAnimatedSinceResize=!1,this.nodes.forEach(oa)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const s=this.options.transition||o.getDefaultTransition()||pa,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!$r(this.targetLayout,i),u=!e&&n;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const e={...En(s,"layout"),onPlay:r,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||oa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),J(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(la),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Gr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;s<this.path.length;s++){const t=this.path[s];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(na);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(ia);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sa),this.nodes.forEach(Zr),this.nodes.forEach(Jr)):this.nodes.forEach(ia),this.clearAllSnapshots();const t=it.now();Q.delta=v(0,1e3/60,t-Q.timestamp),Q.timestamp=t,Q.isProcessing=!0,tt.update.process(Q),tt.preRender.process(Q),tt.render.process(Q),Q.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,_n.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ea),this.sharedNodes.forEach(ua)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||No(this.snapshot.measuredBox.x)||No(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){const e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!Ur(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;t&&this.instance&&(e||Fs(this.latestValues)||o)&&(s(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),ga((i=n).x),ga(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const n=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(va))){const{scroll:t}=this.root;t&&(Ys(n.x,t.offset.x),Ys(n.y,t.offset.y))}return n}removeElementScroll(t){var e;const n={x:{min:0,max:0},y:{min:0,max:0}};if(kr(n,t),null==(e=this.scroll)?void 0:e.wasRoot)return n;for(let i=0;i<this.path.length;i++){const e=this.path[i],{scroll:s,options:o}=e;e!==this.root&&s&&o.layoutScroll&&(s.wasRoot&&kr(n,t),Ys(n.x,s.offset.x),Ys(n.y,s.offset.y))}return n}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};kr(n,t);for(let i=0;i<this.path.length;i++){const t=this.path[i];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&Ks(n,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),Fs(t.latestValues)&&Ks(n,t.latestValues)}return Fs(this.latestValues)&&Ks(n,this.latestValues),n}removeTransform(t){const e={x:{min:0,max:0},y:{min:0,max:0}};kr(e,t);for(let n=0;n<this.path.length;n++){const t=this.path[n];if(!t.instance)continue;if(!Fs(t.latestValues))continue;Bs(t.latestValues)&&t.updateSnapshot();const i=Gs();kr(i,t.measurePageBox()),Or(e,t.latestValues,t.snapshot?t.snapshot.layoutBox:void 0,i)}return Fs(this.latestValues)&&Or(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!==Q.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:o}=this.options;if(this.layout&&(s||o)){if(this.resolvedRelativeTargetAt=Q.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ho(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),kr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var r,a,l;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,Xo(r.x,a.x,l.x),Xo(r.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):kr(this.target,this.layout.layoutBox),$s(this.target,this.targetDelta)):kr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ho(this.relativeTargetOrigin,this.target,t.target),kr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!Bs(this.parent.latestValues)&&!Os(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let i=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===Q.timestamp&&(i=!1),i)return;const{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!o)return;kr(this.layoutCorrected,this.layout.layoutBox);const r=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,i=!1){const s=n.length;if(!s)return;let o,r;e.x=e.y=1;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:s}=o.options;s&&s.props.style&&"contents"===s.props.style.display||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ks(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,$s(t,r)),i&&Fs(o.latestValues)&&Ks(t,o.latestValues))}e.x<Xs&&e.x>zs&&(e.x=1),e.y<Xs&&e.y>zs&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(Rr(this.prevProjectionDelta.x,this.projectionDelta.x),Rr(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),zo(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&Xr(this.projectionDelta.x,this.prevProjectionDelta.x)&&Xr(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(da));let h;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,m,f,g;ca(o.x,t.x,n),ca(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ho(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=r,g=n,ha(p.x,m.x,f.x,g),ha(p.y,m.y,f.y,g),h&&(l=this.relativeTarget,d=h,Wr(l.x,d.x)&&Wr(l.y,d.y))&&(this.isProjectionDirty=!1),h||(h={x:{min:0,max:0},y:{min:0,max:0}}),kr(h,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,n,i,s,o){s?(t.opacity=Wt(0,n.opacity??1,Cr(i)),t.opacityExit=Wt(e.opacity??1,0,Mr(i))):o&&(t.opacity=Wt(e.opacity??1,n.opacity??1,i));for(let r=0;r<Sr;r++){const s=`border${Pr[r]}Radius`;let o=Ar(e,s),a=Ar(n,s);
1void 0===o&&void 0===a||(o||(o=0),a||(a=0),0===o||0===a||Er(o)===Er(a)?(t[s]=Math.max(Wt(br(o),br(a),i),0),(Pt.test(a)||Pt.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=Wt(e.rotate||0,n.rotate||0,i))}(s,i,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){var e,n,i;this.notifyListeners("animationStart"),null==(e=this.currentAnimation)||e.stop(),null==(i=null==(n=this.resumingFrom)?void 0:n.currentAnimation)||i.stop(),this.pendingAnimation&&(J(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{dr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Kn(0)),this.currentAnimation=function(t,e,n){const i=wi(t)?t:Kn(t);return i.start(wo("",i,e,n)),i.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{},onComplete:()=>{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);const 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(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&ya(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=No(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=No(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}kr(e,n),Ks(e,s),zo(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Yr);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&_r("z",t,i,this.animationValues);for(let s=0;s<Hr.length;s++)_r(`rotate${Hr[s]}`,t,i,this.animationValues),_r(`skew${Hr[s]}`,t,i,this.animationValues);t.render();for(const s in i)t.setStaticValue(s,i[s]),this.animationValues&&(this.animationValues[s]=i[s]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(t.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=fs(null==e?void 0:e.pointerEvents)||"",void(t.transform=n?n(this.latestValues,""):"none");const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target)return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=fs(null==e?void 0:e.pointerEvents)||""),void(this.hasProjected&&!Fs(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1));t.visibility="";const s=i.animationValues||i.latestValues;this.applyTransformsToTarget();let o=function(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=(null==n?void 0:n.z)||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:s,rotateY:o,skewX:r,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),s&&(i+=`rotateX(${s}deg) `),o&&(i+=`rotateY(${o}deg) `),r&&(i+=`skewX(${r}deg) `),a&&(i+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);n&&(o=n(s,o)),t.transform=o;const{x:r,y:a}=this.projectionDelta;t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,i.animationValues?t.opacity=i===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const l in Gi){if(void 0===s[l])continue;const{correct:e,applyTo:n,isCSSVariable:r}=Gi[l],a="none"===o?s[l]:e(s[l],i);if(n){const e=n.length;for(let i=0;i<e;i++)t[n[i]]=a}
vendor: 5,630 bytes, line 1
1else r?this.options.visualElement.renderState.vars[l]=a:t[l]=a}this.options.layoutId&&(t.pointerEvents=i===this?fs(null==e?void 0:e.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(na),this.root.sharedNodes.clear()}}}function Zr(t){t.updateLayout()}function Jr(t){var e;const n=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;"size"===s?Ko(t=>{const i=o?n.measuredBox[t]:n.layoutBox[t],s=No(i);i.min=e[t].min,i.max=i.min+s}):ya(s,n.layoutBox,e)&&Ko(i=>{const s=o?n.measuredBox[i]:n.layoutBox[i],r=No(e[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)});const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};zo(r,e,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?zo(a,t.applyTransform(i,!0),n.measuredBox):zo(a,e,n.layoutBox);const l=!Ur(r);let u=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r={x:{min:0,max:0},y:{min:0,max:0}};Ho(r,n.layoutBox,s.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Ho(a,e,o.layoutBox),$r(r,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function Qr(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ta(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ea(t){t.clearSnapshot()}function na(t){t.clearMeasurements()}function ia(t){t.isLayoutDirty=!1}function sa(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function oa(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ra(t){t.resolveTargetDelta()}function aa(t){t.calcProjection()}function la(t){t.resetSkewAndRotation()}function ua(t){t.removeLeadSnapshot()}function ca(t,e,n){t.translate=Wt(e.translate,0,n),t.scale=Wt(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ha(t,e,n,i){t.min=Wt(e.min,n.min,i),t.max=Wt(e.max,n.max,i)}function da(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const pa={duration:.45,ease:[.4,0,.1,1]},ma=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),fa=ma("applewebkit/")&&!ma("chrome/")?Math.round:b;function ga(t){t.min=fa(t.min),t.max=fa(t.max)}function ya(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=zr(e),s=zr(n),o=.2,!(Math.abs(i-s)<=o));var i,s,o}function va(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}const xa=qr({attachResizeListener:(t,e)=>Io(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wa={current:void 0},Ta=qr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!wa.current){const t=new xa({});t.mount(window),t.setOptions({layoutScroll:!0}),wa.current=t}return wa.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Pa={pan:{Feature:class extends Bo{constructor(){super(...arguments),this.removePointerDownListener=b}onPointerDown(t){this.session=new qo(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:_o(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:hr(t),onStart:hr(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&Z.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=Wo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Bo{constructor(t){super(t),this.removeGroupControls=b,this.removeListeners=b,this.controls=new ur(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||b}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Ta,MeasureLayout:vr}};function Sa(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);const s=i["onHover"+n];s&&Z.postRender(()=>s(e,Uo(e)))}function ba(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);const s=i["onTap"+("End"===n?"":n)];s&&Z.postRender(()=>s(e,Uo(e)))}const Ea=new WeakMap,Aa=new WeakMap,Ca=t=>{const e=Ea.get(t.target);e&&e(t)}
1,Ma=t=>{t.forEach(Ca)};function Va(t,e,n){const i=function({root:t,...e}){const n=t||document;Aa.has(n)||Aa.set(n,{});const i=Aa.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(Ma,{root:t,...e})),i[s]}(e);return Ea.set(t,n),i.observe(t),()=>{Ea.delete(t),i.unobserve(t)}}const Da={some:0,all:1};const ka=Rs({...Oo,...{inView:{Feature:class extends Bo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:Da[i]};return Va(this.node.current,o,t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Bo{mount(){const{current:t}=this.node;t&&(this.unmount=ri(t,(t,e)=>(ba(this.node,e,"Start"),(t,{success:e})=>ba(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Bo{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=A(Io(this.node.current,"focus",()=>this.onFocus()),Io(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Bo{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){const[i,s,o]=Zn(t,n),r=t=>{if(!Jn(t))return;const{target:n}=t,i=e(n,t);if("function"!=typeof i||!n)return;const o=t=>{Jn(t)&&(i(t),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,s)};return i.forEach(t=>{t.addEventListener("pointerenter",r,s)}),o}(t,(t,e)=>(Sa(this.node,e,"Start"),t=>Sa(this.node,t,"End"))))}unmount(){}}}},...Pa,...{layout:{ProjectionNode:Ta,MeasureLayout:vr}}},ro),Ra={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function La(t,e,n,i){const s=n[e],{length:o,position:r}=Ra[e],a=s.current,l=n.time;s.current=t[`scroll${r}`],s.scrollLength=t[`scroll${o}`]-t[`client${o}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=C(0,s.scrollLength,s.current);const u=i-l;s.velocity=u>50?0:k(s.current-a,u)}const ja={start:0,center:.5,end:1};function Ba(t,e,n=0){let i=0;if(t in ja&&(t=ja[t]),"string"==typeof t){const e=parseFloat(t);t.endsWith("px")?i=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?i=e/100*document.documentElement.clientWidth:t.endsWith("vh")?i=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(i=e*t),n+i}const Fa=[0,0];function Oa(t,e,n,i){let s=Array.isArray(t)?t:Fa,o=0,r=0;return"number"==typeof t?s=[t,t]:"string"==typeof t&&(s=(t=t.trim()).includes(" ")?t.split(" "):[t,ja[t]?t:"0"]),o=Ba(s[0],n,i),r=Ba(s[1],e),o-r}const Ia={All:[[0,0],[1,1]]},Ua={x:0,y:0};function Wa(t,e,n){const{offset:i=Ia.All}=n,{target:s=t,axis:o="y"}=n,r="y"===o?"height":"width",a=s!==t?function(t,e){const n={x:0,y:0};let i=t;for(;i&&i!==e;)if(Xn(i))n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;else if("svg"===i.tagName){const t=i.getBoundingClientRect();i=i.parentElement;const e=i.getBoundingClientRect();n.x+=t.left-e.left,n.y+=t.top-e.top}else{if(!(i instanceof SVGGraphicsElement))break;{const{x:t,y:e}=i.getBBox();n.x+=t,n.y+=e;let s=null,o=i.parentNode;for(;!s;)"svg"===o.tagName&&(s=o),o=i.parentNode;i=s}}return n}(s,t):Ua,l=s===t?{width:t.scrollWidth,height:t.scrollHeight}:function(t){return"getBBox"in t&&"svg"!==t.tagName?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}(s),u={width:t.clientWidth,height:t.clientHeight};e[o].offset.length=0;let c=!e[o].interpolate;const h=i.length;for(let d=0;d<h;d++){const t=Oa(i[d],u[r],l[r],a[o]);
1c||t===e[o].interpolatorOffsets[d]||(c=!0),e[o].offset[d]=t}c&&(e[o].interpolate=Ee(e[o].offset,Ae(i),{clamp:!1}),e[o].interpolatorOffsets=[...e[o].offset]),e[o].progress=v(0,1,e[o].interpolate(e[o].current))}function Na(t,e,n,i={}){return{measure:e=>{!function(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let i=e;for(;i&&i!==t;)n.x.targetOffset+=i.offsetLeft,n.y.targetOffset+=i.offsetTop,i=i.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}(t,i.target,n),function(t,e,n){La(t,"x",e,n),La(t,"y",e,n),e.time=n}(t,n,e),(i.offset||i.target)&&Wa(t,n,i)},notify:()=>e(n)}}const $a=new WeakMap,za=new WeakMap,Xa=new WeakMap,Ya=t=>t===document.scrollingElement?window:t;function Ha(t,{container:e=document.scrollingElement,...n}={}){if(!e)return b;let i=Xa.get(e);i||(i=new Set,Xa.set(e,i));const s=Na(e,t,{time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}},n);if(i.add(s),!$a.has(e)){const t=()=>{for(const t of i)t.measure(Q.timestamp);Z.preUpdate(n)},n=()=>{for(const t of i)t.notify()},s=()=>Z.read(t);$a.set(e,s);const a=Ya(e);window.addEventListener("resize",s,{passive:!0}),e!==document.documentElement&&za.set(e,(r=s,"function"==typeof(o=e)?vi(o):fi(o,r))),a.addEventListener("scroll",s,{passive:!0}),s()}var o,r;const a=$a.get(e);return Z.read(a,!1,!0),()=>{var t;J(a);const n=Xa.get(e);if(!n)return;if(n.delete(s),n.size)return;const i=$a.get(e);$a.delete(e),i&&(Ya(e).removeEventListener("scroll",i),null==(t=za.get(e))||t(),window.removeEventListener("resize",i))}}const Ka=new Map;function _a({source:t,container:e,...n}){const{axis:i}=n;t&&(e=t);const s=Ka.get(e)??new Map;Ka.set(e,s);const o=n.target??"self",r=s.get(o)??{},a=i+(n.offset??[]).join(",");return r[a]||(r[a]=!n.target&&on()?new ScrollTimeline({source:e,axis:i}):function(t){const e={value:0},n=Ha(n=>{e.value=100*n[t.axis].progress},t);return{currentTime:e,cancel:n}}({container:e,...n})),r[a]}function Ga(t,{axis:e="y",container:n=document.scrollingElement,...i}={}){if(!n)return b;const s={axis:e,container:n,...i};return"function"==typeof t?function(t,e){return function(t){return 2===t.length}(t)?Ha(n=>{t(n[e.axis].progress,n)},e):xi(t,_a(e))}(t,s):function(t,e){const n=_a(e);return t.attachTimeline({timeline:e.target?void 0:n,observe:t=>(t.pause(),xi(e=>{t.time=t.iterationDuration*e},n))})}(t,s)}const qa=()=>({scrollX:Kn(0),scrollY:Kn(0),scrollXProgress:Kn(0),scrollYProgress:Kn(0)}),Za=t=>!!t&&!t.current;function Ja({container:e,target:n,...i}={}){const s=d(qa),o=t.useRef(null),r=t.useRef(!1),a=t.useCallback(()=>(o.current=Ga((t,{x:e,y:n})=>{s.scrollX.set(e.current),s.scrollXProgress.set(e.progress),s.scrollY.set(n.current),s.scrollYProgress.set(n.progress)},{...i,container:(null==e?void 0:e.current)||void 0,target:(null==n?void 0:n.current)||void 0}),()=>{var t;null==(t=o.current)||t.call(o)}),[e,n,JSON.stringify(i.offset)]);return m(()=>(r.current=!1,Za(e)||Za(n)?void(r.current=!0):a()),[a]),t.useEffect(()=>r.current?(Za(e),Za(n),a()):void 0,[a]),s}function Qa(e,n){const i=function(e){const n=d(()=>Kn(e)),{isStatic:i}=t.useContext(Pi);if(i){const[,i]=t.useState(e);t.useEffect(()=>n.on("change",i),[])}return n}(n()),s=()=>i.set(n());return s(),m(()=>{const t=()=>Z.preRender(s,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(t=>t()),J(s)}}),i}function tl(t,e,n,i){if("function"==typeof t)return function(t){Yn.current=[],t();const e=Qa(Yn.current,t);return Yn.current=void 0,e}(t);const s="function"==typeof e?e:function(...t){const e=!Array.isArray(t[0]),n=e?0:-1,i=t[0+n],s=Ee(t[1+n],t[2+n],t[3+n]);return e?s(i):s}(e,n,i);return Array.isArray(t)?el(t,s):el([t],([t])=>s(t))}function el(t,e){const n=d(()=>[]);return Qa(t,()=>{n.length=0;const i=t.length;for(let e=0;e<i;e++)n[e]=t[e].get();return e(n)})}function nl(t,e){[...e].reverse().forEach(n=>{const i=t.getVariant(n);
1i&&ho(t,i),t.variantChildren&&t.variantChildren.forEach(t=>{nl(t,e)})})}function il(){const t=new Set,e={subscribe:e=>(t.add(e),()=>{t.delete(e)}),start(e,n){const i=[];return t.forEach(t=>{i.push(Eo(t,e,{transitionOverride:n}))}),Promise.all(i)},set:e=>t.forEach(t=>{!function(t,e){Array.isArray(e)?nl(t,e):"string"==typeof e?nl(t,[e]):ho(t,e)}(t,e)}),stop(){t.forEach(t=>{!function(t){t.values.forEach(t=>t.stop())}(t)})},mount:()=>()=>{e.stop()}};return e}const sl=function(){const t=d(il);return m(t.mount,[]),t},ol={some:0,all:1};function rl(e,{root:n,margin:i,amount:s,once:o=!1,initial:r=!1}={}){const[a,l]=t.useState(r);return t.useEffect(()=>{if(!e.current||o&&a)return;const t={root:n&&n.current||void 0,margin:i,amount:s};return function(t,e,{root:n,margin:i,amount:s="some"}={}){const o=$n(t),r=new WeakMap,a=new IntersectionObserver(t=>{t.forEach(t=>{const n=r.get(t.target);if(t.isIntersecting!==Boolean(n))if(t.isIntersecting){const n=e(t.target,t);"function"==typeof n?r.set(t.target,n):a.unobserve(t.target)}else"function"==typeof n&&(n(t),r.delete(t.target))})},{root:n,rootMargin:i,threshold:"number"==typeof s?s:ol[s]});return o.forEach(t=>a.observe(t)),()=>a.disconnect()}(e.current,()=>(l(!0),o?void 0:()=>l(!1)),t)},[n,e,i,o,s]),a}export{Ri as A,Ja as a,tl as b,sl as c,c as j,ka as m,rl as u};

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.