PageSourceSearch

https://luneresearch.com/_next/static/immutable/chunks/0up_qf_ng5nm9.js

js luneresearch.com collected 2026-09-24 14:15:46 UTC 97,297 bytes, 3 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0d0e1-21ee-7cc2-8253-771e3c7e0ca0")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,317751,346974,58345,465939,444113,63209,t=>{"use strict";let e,i;var s=t.i(619273),n=t.i(175555),r=t.i(540143),o=t.i(814448),a=t.i(915823),l=t.i(114272),h=class extends a.Subscribable{#t;#e;#i;constructor(t={}){super(),this.config=t,this.#t=new Set,this.#e=new Map,this.#i=0}build(t,e,i){let s=new l.Mutation({client:t,mutationCache:this,mutationId:++this.#i,options:t.defaultMutationOptions(e),state:i});return this.add(s),s}add(t){this.#t.add(t);let e=u(t);if("string"==typeof e){let i=this.#e.get(e);i?i.push(t):this.#e.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#t.delete(t)){let e=u(t);if("string"==typeof e){let i=this.#e.get(e);if(i)if(i.length>1){let e=i.indexOf(t);-1!==e&&i.splice(e,1)}else i[0]===t&&this.#e.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){let e=u(t);if("string"!=typeof e)return!0;{let i=this.#e.get(e)?.find(t=>"pending"===t.state.status);return!i||i===t}}runNext(t){let e=u(t);return"string"==typeof e?this.#e.get(e)?.find(e=>
1e!==t&&e.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){r.notifyManager.batch(()=>{this.#t.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,s.matchMutation)(e,t))}findAll(t={}){return this.getAll().filter(e=>(0,s.matchMutation)(t,e))}notify(t){r.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){let t=this.getAll().filter(t=>t.state.isPaused);return r.notifyManager.batch(()=>Promise.all(t.map(t=>t.continue().catch(s.noop))))}};function u(t){return t.options.scope?.id}t.s(["MutationCache",0,h],346974);var c=a,d=t.i(286491),m=class extends c.Subscribable{#s;constructor(t={}){super(),this.config=t,this.#s=new Map}build(t,e,i){let n=e.queryKey,r=e.queryHash??(0,s.hashQueryKeyByOptions)(n,e),o=this.get(r);return o||(o=new d.Query({client:t,queryKey:n,queryHash:r,options:t.defaultQueryOptions(e),state:i,defaultOptions:t.getQueryDefaults(n)}),this.add(o)),o}add(t){this.#s.has(t.queryHash)||(this.#s.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){this.#s.get(t.queryHash)===t&&(t.destroy(),this.#s.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){r.notifyManager.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#s.get(t)}getAll(){return[...this.#s.values()]}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,s.matchQuery)(e,t))}findAll(t={}){let e=this.getAll();return Object.keys(t).length>0?e.filter(e=>(0,s.matchQuery)(t,e)):e}notify(t){r.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){r.notifyManager.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){r.notifyManager.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}};t.s(["QueryCache",0,m],58345);var p=class{#n;#r;#o;#a;#l;#h;#u;#c;constructor(t={}){this.#n=t.queryCache||new m,this.#r=t.mutationCache||new h,this.#o=t.defaultOptions||{},this.#a=new Map,this.#l=new Map,this.#h=0}mount(){this.#h++,1===this.#h&&(this.#u=n.focusManager.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#n.onFocus())}),this.#c=o.onlineManager.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#n.onOnline())}))}unmount(){this.#h--,0===this.#h&&(this.#u?.(),this.#u=void 0,this.#c?.(),this.#c=void 0)}isFetching(t){return this.#n.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#r.findAll({...t,status:"pending"}).length}getQueryData(t){let e=this.defaultQueryOptions({queryKey:t});return this.#n.get(e.queryHash)?.state.data}ensureQueryData(t){let e=this.defaultQueryOptions(t),i=this.#n.build(this,e),n=i.state.data;return void 0===n?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime((0,s.resolveQueryValue)(e.staleTime,i))&&this.prefetchQuery(e),Promise.resolve(n))}getQueriesData(t){return this.#n.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,i){let n=this.defaultQueryOptions({queryKey:t}),r=this.#n.get(n.queryHash)?.state.data,o=(0,s.functionalUpdate)(e,r);if(void 0!==o)return this.#n.build(this,n).setData(o,{...i,manual:!0})}setQueriesData(t,e,i){return r.notifyManager.batch(()=>this.#n.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,i)]))}getQueryState(t){let e=this.defaultQueryOptions({queryKey:t});return this.#n.get(e.queryHash)?.state}removeQueries(t){let e=this.#n;r.notifyManager.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){let i=this.#n;return r.notifyManager.batch(()=>{let s=i.findAll(t),n=new Set(s);return s.forEach(t=>{t.reset()}),this.refetchQueries({type:"active",predicate:t=>n.has(t)},e)})}cancelQueries(t,e={}){let i={revert:!0,...e};return Promise.all(r.notifyManager.batch(()=>this.#n.findAll(t).map(t=>t.cancel(i)))).then(s.noop).catch(s.noop)}invalidateQueries(t,e={}){return r.notifyManager.batch(()=>(this.#n.findAll(t).forEach(t=>{t.invalidate()}),t?.refetchType==="none")?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e))}refetchQueries(t,e={}){let i={...e,cancelRefetch:e.cancelRefetch??!0};return Promise.all(r.notifyManager.batch(()=>this.#n.findAll(t).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,i);return i.throwOnError||(e=e.catch(s.noop)),"paused"===t.state.fetchStatus?Promise.resolve():e}))).then(s.noop)}async query(t){let e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);let i=this.#n.build(this,e),n=i.isStaleByTime((0,s.resolveQueryValue)(e.staleTime,i))?await i.fetch(e):i.state.data,r=e.select;return r?r(n):n}fetchQuery(t){let e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);let i=this.#n.build(this,e);return i.isStaleByTime((0,s.resolveQueryValue)(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(s.noop).catch(s.noop)}infiniteQuery(t){return t._type="infinite",this.query(t)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(s.noop).catch(s.noop)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return o.onlineManager.isOnline()?this.#r.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#n}getMutationCache(){return this.#r}getDefaultOptions(){return this.#o}setDefaultOptions(t){this.#o=t}setQueryDefaults(t,e){this.#a.set((0,s.hashKey)(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){let e=[...this.#a.values()],i={};
1return e.forEach(e=>{(0,s.partialMatchKey)(t,e.queryKey)&&Object.assign(i,e.defaultOptions)}),i}setMutationDefaults(t,e){this.#l.set((0,s.hashKey)(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){let e=[...this.#l.values()],i={};return e.forEach(e=>{(0,s.partialMatchKey)(t,e.mutationKey)&&Object.assign(i,e.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;let e={...this.#o.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=(0,s.hashQueryKeyByOptions)(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===s.skipToken&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#o.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#n.clear(),this.#r.clear()}};t.s(["QueryClient",0,p],317751);class f{constructor(t){this.isMounted=!1,this.node=t}update(){}}var y=t.i(260830),v=t.i(130162),g=t.i(287022);function x(t){return[t("x"),t("y")]}function T({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}var P=t.i(100706);function w(t){return void 0===t||1===t}function b({scale:t,scaleX:e,scaleY:i}){return!w(t)||!w(e)||!w(i)}function S(t){return b(t)||A(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function A(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function D(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function M(t,e=0,i=1,s,n){t.min=D(t.min,e,i,s,n),t.max=D(t.max,e,i,s,n)}function E(t,{x:e,y:i}){M(t.x,e.translate,e.scale,e.originPoint),M(t.y,i.translate,i.scale,i.originPoint)}function C(t,e){t.min+=e,t.max+=e}function V(t,e,i,s,n=.5){let r=(0,P.mixNumber)(t.min,t.max,n);M(t,e,i,r,s)}function k(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function R(t,e,i){let s=i??t;V(t.x,k(e.x,s.x),e.scaleX,e.scale,e.originX),V(t.y,k(e.y,s.y),e.scaleY,e.scale,e.originY)}function L(t,e){return T(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}var O=t.i(846791),B=t.i(83411);function j(t,e){let i=t.getValue("willChange");if((0,B.isMotionValue)(i)&&i.add)return i.add(e);if(!i&&O.MotionGlobalConfig.WillChange){let i=new O.MotionGlobalConfig.WillChange("auto");t.addValue("willChange",i),i.add(e)}}var F=t.i(763074),I=t.i(496173);let U=(...t)=>t.reduce((t,e)=>i=>e(t(i)));var q=t.i(476959),N=t.i(560720),Q=t.i(965566),z=t.i(19928),K=t.i(279444),H=t.i(569577),W=t.i(463011),G=t.i(22660);function $(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var Y=t.i(766820);function X(t,e){return i=>i>0?e:t}let _=(t,e,i)=>{let s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},Z=[W.hex,Y.rgba,G.hsla];function J(t){let e=Z.find(e=>e.test(t));if(!e)return(0,Q.warning)(!1,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!1;let i=e.parse(t);return e===G.hsla&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let n=0,r=0,o=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,a=2*i-s;n=$(a,s,t+1/3),r=$(a,s,t),o=$(a,s,t-1/3)}else n=r=o=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*o),alpha:s}}(i)),i}let tt=(t,e)=>{let i=J(t),s=J(e);if(!i||!s)return X(t,e);let n={...i};return t=>(n.red=_(i.red,s.red,t),n.green=_(i.green,s.green,t),n.blue=_(i.blue,s.blue,t),n.alpha=(0,P.mixNumber)(i.alpha,s.alpha,t),Y.rgba.transform(n))},te=new Set(["none","hidden"]);function ti(t,e){return i=>(0,P.mixNumber)(t,e,i)}function ts(t){return"number"==typeof t?ti:"string"==typeof t?(0,z.isCSSVariableToken)(t)?X:K.color.test(t)?tt:to:Array.isArray(t)?tn:"object"==typeof t?K.color.test(t)?tt:tr:X}function tn(t,e){let i=[...t],s=i.length,n=t.map((t,i)=>ts(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=n[e](t);return i}}function tr(t,e){let i={...t,...e},s={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(s[n]=ts(t[n])(t[n],e[n]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let to=(t,e)=>{let i=H.complex.createTransformer(e),s=(0,H.analyseComplexValue)(t),n=(0,H.analyseComplexValue)(e);if(!(s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length))return(0,Q.warning)(!0,`Complex values '${t}' and '${e}
1' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),X(t,e);if(te.has(t)&&!n.values.length||te.has(e)&&!s.values.length)return te.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return U(tn(function(t,e){let i=[],s={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let r=e.types[n],o=t.indexes[r][s[r]],a=t.values[o]??0;i[n]=a,s[r]++}return i}(s,n),n.values),i)},ta=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function tl(t,e,i){if("number"==typeof t&&"number"==typeof e&&"number"==typeof i)return(0,P.mixNumber)(t,e,i);if("string"==typeof t&&"string"==typeof e){let i=function(t,e){let i=ta.exec(t);if(!i)return;let s=ta.exec(e);if(!s||i[2]!==s[2])return;let n=i[2],r=parseFloat(i[1]),o=parseFloat(s[1]);return t=>(0,N.sanitize)((0,P.mixNumber)(r,o,t))+n}(t,e);if(i)return i}return ts(t)(t,e)}let th=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>g.frame.update(e,t),stop:()=>(0,g.cancelFrame)(e),now:()=>g.frameData.isProcessing?g.frameData.timestamp:I.time.now()}};var tu=t.i(756512);function tc(t,e=50,i=2e4,s){let n=0,r=t.next(n);for(s?.push(r.value);!r.done&&n<i;)n+=e,r=t.next(n),s?.push(r.value);return n>=i?1/0:n}let td=.01,tm=2,tp=.005,tf=.5;function ty(t,e){return t*Math.sqrt(1-e*e)}let tv=["duration","bounce"],tg=["stiffness","damping","mass"];function tx(t,e){return e.some(e=>void 0!==t[e])}function tT(t=.3,e=.3){let i,s,n,r="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,o=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],l={done:!1,value:o},{stiffness:h,damping:u,mass:c,duration:d,velocity:m,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!tx(t,tg)&&tx(t,tv))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,n=2*(0,q.clamp)(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:n}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:s=1}){let n,r;(0,Q.warning)(t<=(0,F.secondsToMilliseconds)(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=(0,q.clamp)(.05,1,o),t=(0,q.clamp)(.01,10,(0,F.millisecondsToSeconds)(t)),o<1?(n=e=>{let s=e*o,n=s*t;return .001-(s-i)/ty(e,o)*Math.exp(-n)},r=e=>{let s=e*o*t,r=o*o*e*e*t,a=Math.exp(-s),l=ty(e*e,o);return(s*i+i-r)*a*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(n,r,5/t);if(t=(0,F.secondsToMilliseconds)(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=a*a*s;return{stiffness:e,damping:2*o*Math.sqrt(s*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-(0,F.millisecondsToSeconds)(r.velocity||0)}),f=u/(2*Math.sqrt(h*c)),y=(0,F.millisecondsToSeconds)(Math.sqrt(h/c)),v=f*y,g={target:a,delta:a-o,velocity:m||0,restSpeed:0,restDelta:0},x=()=>{let t=5>Math.abs(g.delta);g.restSpeed=r.restSpeed||(t?td:tm),g.restDelta=r.restDelta||(t?tp:tf)};if(x(),f<1){let t=ty(y,f),e={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};n=()=>{e.A=(g.velocity+v*g.delta)/t,e.sinC=v*e.A+g.delta*t,e.cosC=v*g.delta-e.A*t};let r=i=>{i!==e.t&&(e.t=i,e.env=Math.exp(-v*i),e.sin=Math.sin(t*i),e.cos=Math.cos(t*i))};i=t=>(r(t),g.target-e.env*(e.A*e.sin+g.delta*e.cos)),s=t=>(r(t),e.env*(e.sinC*e.sin+e.cosC*e.cos))}else if(1===f){i=t=>g.target-Math.exp(-y*t)*(g.delta+(g.velocity+y*g.delta)*t);let t={C:0};n=()=>{t.C=g.velocity+y*g.delta},s=e=>Math.exp(-y*e)*(y*t.C*e-g.velocity)}else{let t=y*Math.sqrt(f*f-1);i=e=>{let i=Math.exp(-v*e),s=Math.min(t*e,300);return g.target-i*((g.velocity+v*g.delta)*Math.sinh(s)+t*g.delta*Math.cosh(s))/t};let e={P:0,sinh:0,cosh:0};n=()=>{e.P=(g.velocity+v*g.delta)/t,e.sinh=v*e.P-g.delta*t,e.cosh=v*g.delta-e.P*t},s=i=>{let s=Math.exp(-v*i),n=Math.min(t*i,300);return s*(e.sinh*Math.sinh(n)+e.cosh*Math.cosh(n))}}n();let T=!tx(r,tg)&&tx(r,tv),P=p&&d||null,w={calculatedDuration:P,retarget:(t,e)=>{g.target=t[t.length-1],g.delta=g.target-t[0],g.velocity=T?0:-(0,F.millisecondsToSeconds)(e),r.restSpeed&&r.restDelta||x(),w.calculatedDuration=P,l.done=!1,n()},velocity:t=>(0,F.secondsToMilliseconds)(s(t)),next:t=>{let e=i(t);return p?l.done=t>=d:l.done=Math.abs((0,F.secondsToMilliseconds)(s(t)))<=g.restSpeed&&Math.abs(g.target-e)<=g.restDelta,l.value=l.done?g.target:e,l},toString:()=>{let t=Math.min(tc(w),2e4),e=(0,tu.generateLinearEasing)(e=>w.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return w}function tP({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let c,d,m=t[0],p={done:!1,value:m},f=i*e,y=m+f,v=void 0===o?y:o(y);v!==y&&(f=v-m);let g=t=>-f*Math.exp(-t/s),x=t=>{let e=g(t);p.done=Math.abs(e)<=h,p.value=p.done?v:v+e},T=t=>{let e;if((e=p.value)<a||e>l){var i;c=t,d=tT({keyframes:[p.value,(i=p.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:-g(t)/s*1e3,damping:n,stiffness:r,restDelta:h,restSpeed:u})}};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,x(t),T(t)),void 0!==c&&t>=c)?d.next(t-c):(e||x(t),p)}}}tT.applyToOptions=t=>{let e=function(t,e=100,i){let s=i({...t,keyframes:[0,e]}),n=Math.min(tc(s),2e4);return{type:"keyframes",ease:t=>s.next(n*t).value/e,duration:(0,F.millisecondsToSeconds)(n)}}(t,100,tT);return t.ease=e.ease,t.duration=(0,F.secondsToMilliseconds)(e.duration),t.type="keyframes",t};
1let tw=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tb(t,e,i,s){return t===e&&i===s?y.noop:n=>0===n||1===n?n:tw(function(t,e,i,s,n){let r,o,a=0;do(r=tw(o=e+(i-e)/2,s,n)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12)return o}(n,0,1,t,i),e,s)}let tS=tb(.42,0,1,1),tA=tb(0,0,.58,1),tD=tb(.42,0,.58,1),tM=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tE=t=>e=>1-t(1-e),tC=tb(.33,1.53,.69,.99),tV=tE(tC),tk=tM(tV),tR=t=>t>=1?1:(t*=2)<1?.5*tV(t):.5*(2-Math.pow(2,-10*(t-1))),tL=t=>1-Math.sin(Math.acos(t)),tO=tE(tL),tB=tM(tL);var tj=t.i(960855);let tF={linear:y.noop,easeIn:tS,easeInOut:tD,easeOut:tA,circIn:tL,circInOut:tB,circOut:tO,backIn:tV,backInOut:tk,backOut:tC,anticipate:tR},tI=t=>{if((0,tj.isBezierDefinition)(t)){(0,Q.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,s,n]=t;return tb(e,i,s,n)}return"string"==typeof t?((0,Q.invariant)(void 0!==tF[t],`Invalid easing type '${t}'`,"invalid-easing-type"),tF[t]):t},tU=(t,e,i)=>{let s=e-t;return s?(i-t)/s:1};function tq({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var n;let r,o=Array.isArray(s)&&"number"!=typeof s[0]?s.map(tI):tI(s),a={done:!1,value:e[0]};if(2===e.length&&!Array.isArray(o)&&(!i||2!==i.length||0===i[0]&&1===i[1])){let[i,s]=e,n=i===s?void 0:(O.MotionGlobalConfig.mix||tl)(i,s);return{calculatedDuration:t,next:e=>(a.value=n?n(o(t>0?(0,q.clamp)(0,1,e/t):1)):s,a.done=e>=t,a)}}let l=function(t,e,{clamp:i=!0,ease:s,mixer:n}={}){let r=t.length;if((0,Q.invariant)(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let s=[],n=i||O.MotionGlobalConfig.mix||tl,r=t.length-1;for(let i=0;i<r;i++){let r=n(t[i],t[i+1]);e&&(r=U(Array.isArray(e)?e[i]||y.noop:e,r)),s.push(r)}return s}(e,s,n),l=a.length,h=i=>{if(o&&i<t[0])return e[0];let s=0;if(l>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let n=tU(t[s],t[s+1],i);return a[s](n)};return i?e=>h((0,q.clamp)(t[0],t[r-1],e)):h}((n=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let n=tU(0,e,s);t.push((0,P.mixNumber)(i,1,n))}}(r=[0],e.length-1),r),n.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||tD).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}var tN=t.i(325791),tQ=t.i(414229);let tz={decay:tP,inertia:tP,tween:tq,keyframes:tq,spring:tT};function tK(t){"string"==typeof t.type&&(t.type=tz[t.type])}var tH=t.i(349404),tW=t.i(779294);let tG=t=>t/100;class t$ extends tW.WithPromise{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==I.time.now()&&this.tick(I.time.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause(),(0,tH.notifyAnimationStart)(this,this.options)}initAnimation(){let{options:t}=this;tK(t);let{type:e=tq,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:r=0}=t,{keyframes:o}=t,a=e||tq;a!==tq&&"number"!=typeof o[0]&&(this.mixKeyframes=U(tG,tl(o[0],o[1])),o=[0,100]);let l=a(o===t.keyframes?t:{...t,keyframes:o});"mirror"===n&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=tc(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:s,totalDuration:n,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return s.next(0);let{delay:h=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:m,type:p,onUpdate:f,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-h*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>n;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let x=this.currentTime,T=s;if(c){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===d?(i=1-i,m&&(i-=m/a)):"mirror"===d&&(T=o)),x=(0,q.clamp)(0,1,i)*a}g?(this.delayState.value=u[0],i=this.delayState):i=T.next(x),r&&!g&&(i.value=r(i.value));let{done:P}=i;g||null===l||(P=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return w&&p!==tP&&(i.value=(0,tQ.getFinalKeyframe)(u,this.options,y,this.speed)),f&&f(i.value),w&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return(0,F.millisecondsToSeconds)(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,F.millisecondsToSeconds)(t)}get time(){return(0,F.millisecondsToSeconds)(this.currentTime)}set time(t){t=(0,F.secondsToMilliseconds)(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}
1getGeneratorVelocity(){return function(t,e,i=0){var s,n;let r;return e<=0?i:t.velocity?t.velocity(e):(s=e=>t.next(e).value,n=t.next(e).value,r=Math.max(e-5,0),(0,tN.velocityPerSecond)(n-s(r),e-r))}(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(I.time.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=(0,F.millisecondsToSeconds)(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=th,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"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(I.time.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}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){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}var tY=t.i(921012),tX=t.i(794581),t_=t.i(368e3);let tZ={anticipate:tR,backInOut:tk,circInOut:tB};class tJ extends t_.NativeAnimation{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in tZ&&(t.ease=tZ[t.ease])}(t),tK(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:s,element:n,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new t$({...r,autoplay:!1}),a=Math.max(10,I.time.now()-this.startTime),l=(0,q.clamp)(0,10,a-10),h=o.sample(a).value,{name:u}=this.options;n&&u&&(0,tX.setStyle)(n,u,h),e.setWithVelocity(o.sample(Math.max(0,a-l)).value,h,l),o.stop()}}var t0=t.i(997307);let t1=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(H.complex.test(t)||"0"===t)&&!t.startsWith("url("));function t5(t){t.duration=0,t.type="keyframes"}var t2=tW,t9=t.i(260900),t3=t.i(962118);let t4=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,t7=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),t6=(0,t9.memo)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class t8 extends t2.WithPromise{constructor(t){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=I.time.now();const{keyframes:e,name:i,motionValue:s,element:n}=t;t.autoplay??(t.autoplay=!0),t.delay??(t.delay=0),t.type??(t.type="keyframes"),t.repeat??(t.repeat=0),t.repeatDelay??(t.repeatDelay=0),t.repeatType??(t.repeatType="loop");const r=n?.KeyframeResolver||tY.KeyframeResolver;this.keyframeResolver=new r(e,(e,i,s)=>this.onKeyframesResolved(e,i,t,!s),i,s,n),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){let n;this.keyframeResolver=void 0;let{name:r,type:o,velocity:a,delay:l,isHandoff:h,onUpdate:u}=i;this.resolvedAt=I.time.now();let c=!0;!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=t1(n,e),a=t1(r,e);return o&&a?function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||(0,t0.isGenerator)(i))&&s:(o!==a&&(0,Q.warning)(!1,`You are trying to animate ${e} from "${n}" to "${r}". "${o?r:n}" is not an animatable value.`,"value-not-animatable"),!1)}(t,r,o,a)&&(c=!1,(O.MotionGlobalConfig.instantAnimations||!l)&&u?.((0,tQ.getFinalKeyframe)(t,i,e)),t[0]=t[t.length-1],t5(i),i.repeat=0);let d=s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,{onComplete:m}=i;if(i.startTime??(i.startTime=d),i.finalKeyframe=e,i.keyframes=t,i.onComplete=()=>{m?.(),this.notifyFinished()},c&&!h&&function(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:r,type:o,keyframes:a}=t;if(!i||!(t3.acceleratedValues.has(i)||t7.has(i)))return!1;let l=e?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;
1let{onUpdate:h,transformTemplate:u}=e.owner.getProps();return t6()&&(t3.acceleratedValues.has(i)||t7.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&t4.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!u)&&!h&&!s&&"mirror"!==n&&0!==r&&"inertia"!==o}(i)){i.element=i.motionValue?.owner?.current;try{n=new tJ(i)}catch{n=new t$(i)}}else n=new t$(i);this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this._animation.finished:super.finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,tY.flushKeyframeResolvers)()),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(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function et(t,e){if(t?.inherit&&e){let{inherit:i,...s}=t;return{...e,...s}}return t}function ee(t,e){let i=t?.[e]??t?.default??t;return i!==t?et(i,t):i}var ei=t.i(157788);let es={type:"spring",stiffness:500,damping:25,restSpeed:10},en={type:"keyframes",duration:.8},er={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eo=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),ea=(t,e,i,s={},n,r)=>o=>{let a=ee(s,t)||{},l=a.delay||s.delay||0,{elapsed:h=0}=s;h-=(0,F.secondsToMilliseconds)(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:n};!function(t){for(let e in t)if(!eo.has(e))return!0;return!1}(a)&&Object.assign(u,((t,{keyframes:e})=>e.length>2?en:ei.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:es:er)(t,u)),u.duration&&(u.duration=(0,F.secondsToMilliseconds)(u.duration)),u.repeatDelay&&(u.repeatDelay=(0,F.secondsToMilliseconds)(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let c=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(t5(u),0===u.delay&&(c=!0)),(O.MotionGlobalConfig.instantAnimations||O.MotionGlobalConfig.skipAnimations||n?.shouldSkipAnimations||a.skipAnimations)&&(c=!0,t5(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,c&&!r&&void 0!==e.get()){let t=(0,tQ.getFinalKeyframe)(u.keyframes,a);if(void 0!==t)return void g.frame.update(()=>{u.onUpdate(t),u.onComplete()})}return a.isSync?new t$(u):new t8(u)};function el(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i,s)}let eh={x:!1,y:!1};var eu=t.i(265091);function ec(t){return t.max-t.min}function ed(t,e,i,s=.5){t.origin=s,t.originPoint=(0,P.mixNumber)(e.min,e.max,t.origin),t.scale=ec(i)/ec(e),t.translate=(0,P.mixNumber)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function em(t,e,i,s){ed(t.x,e.x,i.x,s?s.originX:void 0),ed(t.y,e.y,i.y,s?s.originY:void 0)}function ep(t,e,i,s=0){t.min=(s?(0,P.mixNumber)(i.min,i.max,s):i.min)+e.min,t.max=t.min+ec(e)}function ef(t,e,i,s=0){let n=s?(0,P.mixNumber)(i.min,i.max,s):i.min;t.min=e.min-n,t.max=t.min+ec(e)}function ey(t,e,i,s){ef(t.x,e.x,i.x,s?.x),ef(t.y,e.y,i.y,s?.y)}var ev=t.i(642824);function eg(t){return(0,ev.isObject)(t)&&"ownerSVGElement"in t}function ex(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);let n=i?.[t]??s.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(t=>null!=t)}let eT=new WeakMap,eP=(t,e,i)=>(s,n)=>n&&n[0]?n[0][t+"Size"]:eg(s)&&"getBBox"in s?s.getBBox()[e]:s[i],ew=eP("inl
1ine","width","offsetWidth"),eb=eP("block","height","offsetHeight");function eS({target:t,borderBoxSize:e}){eT.get(t)?.forEach(i=>{i(t,{get width(){return ew(t,e)},get height(){return eb(t,e)}})})}function eA(t){t.forEach(eS)}let eD=new Set;function eM(t,s){let n;return"function"==typeof t?(eD.add(t),i||(i=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};eD.forEach(e=>e(t))},window.addEventListener("resize",i)),()=>{eD.delete(t),eD.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!e&&"u">typeof ResizeObserver&&(e=new ResizeObserver(eA)),(n=ex(t)).forEach(t=>{let i=eT.get(t);i||(i=new Set,eT.set(t,i)),i.add(s),e?.observe(t)}),()=>{n.forEach(t=>{let i=eT.get(t);i?.delete(s),i?.size||e?.unobserve(t)})})}let eE=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),eC=new Set(["INPUT","SELECT","TEXTAREA"]),eV=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ek(t){return{point:{x:t.pageX,y:t.pageY}}}function eR(t,e,i,s){return el(t,e,t=>eV(t)&&i(t,ek(t)),s)}let eL=({current:t})=>t?t.ownerDocument.defaultView:null;var eO=t.i(325522);let eB=(t,e)=>Math.abs(t-e),ej=new Set(["auto","scroll"]);class eF{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=eI(this.lastRawMoveEventInfo,this.transformPagePoint));let i=eq(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(eB(t.x,e.x)**2+eB(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:r}=i,{timestamp:o}=g.frameData;this.history.push({...r,timestamp:o});let{onStart:a,onMove:l}=this.handlers;s||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=eI(e,this.transformPagePoint),g.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=eq("pointercancel"===t.type?this.lastMoveEventInfo:eI(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!eV(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const a=eI(ek(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=g.frameData;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,eq(a,this.history));const c={passive:!0,capture:!0};this.removeListeners=U(eR(this.contextWindow,"pointermove",this.handlePointerMove,c),eR(this.contextWindow,"pointerup",this.handlePointerUp,c),eR(this.contextWindow,"pointercancel",this.handlePointerUp,c)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(ej.has(t.overflowX)||ej.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:s.x-e.x,y:s.y-e.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,s),g.frame.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,g.cancelFrame)(this.updatePoint)}}function eI(t,e){return e?{point:e(t.point)}:t}function eU(t,e){return{x:t.x-e.x,y:t.y-e.y}}function eq({point:t},e){return{point:t,delta:eU(t,eN(e)),offset:eU(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,s=eN(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>(0,F.secondsToMilliseconds)(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&s.timestamp-i.timestamp>
12*(0,F.secondsToMilliseconds)(.1)&&(i=t[1]);let n=(0,F.millisecondsToSeconds)(s.timestamp-i.timestamp);if(0===n)return{x:0,y:0};let r={x:(s.x-i.x)/n,y:(s.y-i.y)/n};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function eN(t){return t[t.length-1]}function eQ(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function ez(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function eK(t,e,i){return{min:eH(t,e),max:eH(t,i)}}function eH(t,e){return"number"==typeof t?t:t[e]||0}let eW=new WeakMap;class eG{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=(0,v.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=t=>{e&&this.snapToCursor(ek(t).point),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(eh[t])return null;else return eh[t]=!0,()=>{eh[t]=!1};return eh.x||eh.y?null:(eh.x=eh.y=!0,()=>{eh.x=eh.y=!1})}(i),!this.openDragLock))return;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),x(t=>{let e=this.getAxisMotionValue(t).get()||0;if(eu.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=ec(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&g.frame.update(()=>n(t,e),!1,!0),j(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&g.frame.update(()=>r(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new eF(t,{onSessionStart:n,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:eL(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:r}=s;this.startAnimation(r);let{onDragEnd:o}=this.getProps();o&&g.frame.postRender(()=>o(i,s))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!eY(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,P.mixNumber)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,P.mixNumber)(i,t,s.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),n.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&(0,eO.isRefObject)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:eQ(t.x,i,n),y:eQ(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:eK(t,"left","right"),y:eK(t,"top","bottom")}}(e),s!==this.constraints&&!(0,eO.isRefObject)(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&x(t=>{var e,s;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],n={},void 0!==s.min&&(n.min=s.min-e.min),void 0!==s.max&&(n.max=s.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,eO.isRefObject)(e))return!1;let s=e.current;(0,Q.invariant)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;n.root&&(n.root.scroll=void 0,n.root.updateScroll());
1let r=function(t,e,i){let s=L(t,i),{scroll:n}=e;return n&&(C(s.x,n.offset.x),C(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:ez(t.x,r.x),y:ez(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=T(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(x(o=>{if(!eY(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===r||r===o)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return j(this.visualElement,t),i.start(ea(t,i,0,e,this.visualElement,!1))}stopAnimation(){x(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){x(e=>{let{drag:i}=this.getProps();if(!eY(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:r}=s.layout.layoutBox[e],o=n.get()||0;n.set(t[e]-(0,P.mixNumber)(i,r,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,eO.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};x(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let r,o,a,l=e.get();s[t]=(i={min:l,max:l},n=this.constraints[t],r=.5,o=ec(i),(a=ec(n))>o?r=tU(n.min,n.max-o,i.min):o>a&&(r=tU(i.min,i.max-a,n.min)),(0,q.clamp)(0,1,r))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),x(e=>{if(!eY(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:r}=this.constraints[e];i.set((0,P.mixNumber)(n,r,s[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;eW.set(this.visualElement,this);let e=this.visualElement.current,i=eR(e,"pointerdown",t=>{let{drag:i,dragListener:s=!0}=this.getProps(),n=t.target,r=n!==e&&(eC.has(n.tagName)||!0===n.isContentEditable);i&&s&&!r&&this.start(t)}),s=()=>{var i,s,n;let r,o,{dragConstraints:a}=this.getProps();(0,eO.isRefObject)(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,s=a.current,r=eM(i,e$(n=()=>this.scalePositionWithinConstraints())),o=eM(s,e$(n)),t=()=>{r(),o()}))},{projection:n}=this.visualElement,r=n.addEventListener("measure",s);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),g.frame.read(s);let o=el(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(x(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),r(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:o}}}function e$(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function eY(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let eX=t=>(e,i)=>{t&&g.frame.update(()=>t(e,i),!1,!0)};var e_=t.i(843476);let eZ={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var eJ=t.i(560140),e0=t.i(271645),e1=t.i(464978),e5=t.i(231178),e2=t.i(104035);let e9=!1;class e3 extends e0.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),e9&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),eZ.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,{projection:r}=i;return r&&(r.isPresent=n,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),e9=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?r.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?r.promote():r.relegate()||g.frame.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),eJ.microtask.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;e9=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function e4(t){let[e,i]=(0,e1.usePresence)(),s=(0,e0.useContext)(e5.LayoutGroupContext);return(0,e_.jsx)(e3,{...t,layoutGroup:s,switchLayoutGroup:(0,e0.useContext)(e2.SwitchLayoutGroupContext),isPresent:e,safeToRemove:i})}var e7=t.i(570596),e6=t.i(486427),e8=t.i(535043);function it(t){return t.props[e8.optimizedAppearDataAttribute]}var ie=t.i(924463),ii=t.i(733871),is=t.i(895051);let ir=is.cornerRadiusProps.length,io=t=>"string"==typeof t?parseFloat(t):t,ia=t=>"number"==typeof t||eu.px.test(t);function il(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let ih=ic(0,.5,tO),iu=ic(.5,.95,y.noop);function ic(t,e,i){return s=>s<t?0:s>e?1:i(tU(t,e,s))}function id(t,e){t.min=e.min,t.max=e.max}function im(t,e){id(t.x,e.x),id(t.y,e.y)}function ip(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function iy(t,e,i,s,n){return t-=e,t=s+1/i*(t-s),void 0!==n&&(t=s+1/n*(t-s)),t}function iv(t,e,[i,s,n],r,o){!function(t,e=0,i=1,s=.5,n,r=t,o=t){if(eu.percent.test(e)&&(e=parseFloat(e),e=(0,P.mixNumber)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,P.mixNumber)(r.min,r.max,s);t===r&&(a-=e),t.min=iy(t.min,e,i,a,n),t.max=iy(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,r,o)}let ig=["x","scaleX","originX"],ix=["y","scaleY","originY"];function iT(t,e,i,s){iv(t.x,e,ig,i?i.x:void 0,s?s.x:void 0),iv(t.y,e,ix,i?i.y:void 0,s?s.y:void 0)}function iP(t){return 0===t.translate&&1===t.scale}function iw(t){return iP(t.x)&&iP(t.y)}function ib(t,e){return t.min===e.min&&t.max===e.max}function iS(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function iA(t,e){return iS(t.x,e.x)&&iS(t.y,e.y)}function iD(t){return ec(t.x)/ec(t.y)}function iM(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var iE=t.i(133887);class iC{constructor(){this.members=[]}add(t){(0,iE.addUniqueItem)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let s=i.instance;s&&!1!==s.isConnected||i.snapshot||((0,iE.removeItem)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,iE.removeItem)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
1}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:s}=i.options,{layoutDependency:n}=t.options;(void 0===s||s!==n)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let iV=(t,e)=>t.depth-e.depth;class ik{constructor(){this.children=[],this.isDirty=!1}add(t){(0,iE.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,iE.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(iV),this.isDirty=!1,this.children.forEach(t)}}let iR=["","X","Y","Z"],iL=0;function iO(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function iB({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=iL++,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.layoutVersion=0,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(iI),this.nodes.forEach(iG),this.nodes.forEach(i$),this.nodes.forEach(iU)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new ik)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new e7.SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=eg(e)&&!(eg(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;g.frame.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==s){let e,r;s=t,this.root.updateBlockedByResize=!0,i&&i(),e=I.time.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&((0,g.cancelFrame)(r),n())},g.frame.setup(r,!0),i=()=>(0,g.cancelFrame)(r),eZ.hasAnimatedSinceResize&&(eZ.hasAnimatedSinceResize=!1,this.nodes.forEach(iW))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||i0,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!iA(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...ee(r,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h,e.path)}else e||iW(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,g.cancelFrame)(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.forEac
1h(iY),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=it(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",g.frame,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(iQ),this.nodes.forEach(iN);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(iz);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(iK),this.nodes.forEach(iH),this.nodes.forEach(ij),this.nodes.forEach(iF)):this.nodes.forEach(iz),this.clearAllSnapshots();let t=I.time.now();g.frameData.delta=(0,q.clamp)(0,1e3/60,t-g.frameData.timestamp),g.frameData.timestamp=t,g.frameData.isProcessing=!0,g.frameSteps.update.process(g.frameData),g.frameSteps.preRender.process(g.frameData),g.frameSteps.render.process(g.frameData),g.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eJ.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iq),this.sharedNodes.forEach(iX)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,g.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){g.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||ec(this.snapshot.measuredBox.x)||ec(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=(0,v.createBox)()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!iw(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||S(this.latestValues)||r)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),i2((e=s).x),i2(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,v.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(i3))){let{scroll:t}=this.root;t&&(C(e.x,t.offset.x),C(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,v.createBox)();if(im(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:r}=s;s!==this.root&&n&&r.layoutScroll&&(n.wasRoot&&im(e,t),C(e.x,n.offset.x),C(e.y,n.offset.y))}return e}applyTransform(t,e=!1,i){let s=i||(0,v.createBox)();im(s,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(C(s.x,-i.scroll.offset.x),C(s.y,-i.scroll.offset.y)),S(i.latestValues)&&R(s,i.latestValues,i.layout?.layoutBox)}return S(this.latestValues)&&R(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(t){let e=(0,v.createBox)();im(e,t);for(let t=0;t<this.path.length;t++){let i,s=this.path[t];S(s.latestValues)&&(s.instance&&(b(s.latestValues)&&s.updateSnapshot(),im(i=(0,v.createBox)(),s.measurePageBox())),iT(e,s.latestValues,s.snapshot?.layoutBox,i))}return S(this.latestValues)&&iT(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==g.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:n}=this.options;if(!this.layout||!(s||n))return;this.resolvedRelativeTargetAt=g.frameData.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,v.createBox)(),this.targetWithTransforms=(0,v.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,h;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,h=this.options.layoutAnchor||void 0,ep(o.x,a.x,l.x,h?.x),ep(o.y,a.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):im(this.target,this.layout.layoutBox),E(this.target,this.targetDelta)):im(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||b(this.parent.latestValues)||A(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,v.createBox)(),this.relativeTargetOrigin=(0,v.createBox)(),ey(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),im(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===g.frameData.timestamp&&(i=!1),i)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;im(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,s=!1){let n,r,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(C(t.x,-n.scroll.offset.x),C(t.y,-n.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,E(t,r)),s&&S(n.latestValues)&&R(t,n.latestValues,n.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,v.createBox)());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(ip(this.prevProjectionDelta.x,this.projectionDelta.x),ip(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),em(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&iM(this.projectionDelta.x,this.prevProjectionDelta.x)&&iM(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,v.createDelta)(),this.projectionDelta=(0,v.createDelta)(),this.projectionDeltaWithTransform=(0,v.createDelta)()}setAnimationOrigin(t,e=!1,i){let s,n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},a=(0,v.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=(0,v.createBox)(),h=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(h&&!c&&!0===this.options.crossfade&&!this.path.some(iJ));this.animationProgress=0;let m=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,n=m?.(i);if(n?(a.x.translate=n.x,a.x.scale=(0,P.mixNumber)(t.x.scale,1,i),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=n.y,a.y.scale=(0,P.mixNumber)(t.y.scale,1,i),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(i_(a.x,t.x,i),i_(a.y,t.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,p,f,y,g,x;ey(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,y=this.relativeTargetOrigin,g=l,x=i,iZ(f.x,y.x,g.x,x),iZ(f.y,y.y,g.y,x),s&&(u=this.relativeTarget,p=s,ib(u.x,p.x)&&ib(u.y,p.y))&&(this.isProjectionDirty=!1),s||(s=(0,v.createBox)()),im(s,this.relativeTarget)}h&&(this.animationValues=o,function(t,e,i,s,n,r){n?(t.opacity=(0,P.mixNumber)(0,i.opacity??1,ih(s)),t.opacityExit=(0,P.mixNumber)(e.opacity??1,0,iu(s))):r&&(t.opacity=(0,P.mixNumber)(e.opacity??1,i.opacity??1,s));for(let n=0;n<ir;n++){let r=is.cornerRadiusProps[n],o=il(e,r),a=il(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||ia(o)===ia(a)?(t[r]=Math.max((0,P.mixNumber)(io(o),io(a),s),0),(eu.percent.test(a)||eu.percent.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,P.mixNumber)(e.rotate||0,i.rotate||0,s))}(o,r,this.latestValues,i,d,c)),n&&void 0!==n.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=n.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,g.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=g.frame.update(()=>{var e,i,s;let n;eZ.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=(0,e6.motionValue)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],s={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(n=(0,B.isMotionValue)(e)?e:(0,e6.motionValue)(e)).start(ea("",n,i,s)),n.animation),(0,tH.notifyLayoutAnimationStart)(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,layout:i,latestValues:s}=t,{target:n}=t;
1if(e&&n&&i){if(this!==t&&this.layout&&i&&i9(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||(0,v.createBox)();let e=ec(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let i=ec(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}im(e,n),R(e,s),em(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new iC),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&iO("z",t,s,this.animationValues);for(let e=0;e<iR.length;e++)iO(`rotate${iR[e]}`,t,s,this.animationValues),iO(`skew${iR[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=(0,ii.resolveMotionValue)(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,ii.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!S(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let s="",n=t.x.translate/e.x,r=t.y.translate/e.y,o=i?.z||0;if((n||r||o)&&(s=`translate3d(${n}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:n,rotateX:r,rotateY:o,skewX:a,skewY:l}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotate(${n}deg) `),r&&(s+=`rotateX(${r}deg) `),o&&(s+=`rotateY(${o}deg) `),a&&(s+=`skewX(${a}deg) `),l&&(s+=`skewY(${l}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(r=i(n,r)),t.transform=r;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,s.animationValues?t.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,ie.scaleCorrectors){if
1(void 0===n[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=ie.scaleCorrectors[e],l="none"===r?n[e]:i(n[e],s);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=s===this?(0,ii.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(iN),this.root.sharedNodes.clear()}}}function ij(t){t.updateLayout()}function iF(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,r=e.source!==t.layout.source;if("size"===n)x(t=>{let s=r?e.measuredBox[t]:e.layoutBox[t],n=ec(s);s.min=i[t].min,s.max=s.min+n});else if("x"===n||"y"===n){let t="x"===n?"y":"x";id(r?e.measuredBox[t]:e.layoutBox[t],i[t])}else i9(n,e.layoutBox,i)&&x(s=>{let n=r?e.measuredBox[s]:e.layoutBox[s],o=ec(i[s]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=(0,v.createDelta)();em(o,i,e.layoutBox);let a=(0,v.createDelta)();r?em(a,t.applyTransform(s,!0),e.measuredBox):em(a,i,e.layoutBox);let l=!iw(o),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let o=t.options.layoutAnchor||void 0,a=(0,v.createBox)();ey(a,e.layoutBox,n.layoutBox,o);let l=(0,v.createBox)();ey(l,i,r.layoutBox,o),iA(a,l)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function iI(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function iU(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function iq(t){t.clearSnapshot()}function iN(t){t.clearMeasurements()}function iQ(t){t.isLayoutDirty=!0,t.updateLayout()}function iz(t){t.isLayoutDirty=!1}function iK(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function iH(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function iW(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function iG(t){t.resolveTargetDelta()}function i$(t){t.calcProjection()}function iY(t){t.resetSkewAndRotation()}function iX(t){t.removeLeadSnapshot()}function i_(t,e,i){t.translate=(0,P.mixNumber)(e.translate,0,i),t.scale=(0,P.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function iZ(t,e,i,s){t.min=(0,P.mixNumber)(e.min,i.min,s),t.max=(0,P.mixNumber)(e.max,i.max,s)}function iJ(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let i0={duration:.45,ease:[.4,0,.1,1]},i1=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),i5=i1("applewebkit/")&&!i1("chrome/")?Math.round:y.noop;function i2(t){t.min=i5(t.min),t.max=i5(t.max)}function i9(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(iD(e)-iD(i)))}function i3(t){return t!==t.root&&t.scroll?.wasRoot}let i4=iB({attachResizeListener:(t,e)=>el(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),i7={current:void 0},i6=iB({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!i7.current){let t=new i4({});t.mount(window),t.setOptions({layoutScroll:!0}),i7.current=t}return i7.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var i8=t.i(386579);function st(t,e,i){let s=t.getProps();return(0,i8.resolveVariantFromProps)(s,e,void 0!==i?i:s.custom,t)}let se=new Set(["width","height","top","left","right","bottom",...ei.transformPropOrder]),si=t=>Array.isArray(t),ss="u">typeof window;
1function sn(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:r,transitionEnd:o,...a}=e,l=t.getDefaultTransition();r=r?et(r,l):l;let h=r?.reduceMotion,u=r?.skipAnimations;s&&(r=s);let c=[],d=n&&t.animationState&&t.animationState.getState()[n],m=r?.path;for(let e in m&&m.animateVisualElement(t,a,r,i,c),a){let s=t.getValue(e,t.latestValues[e]??null),n=a[e];if(void 0===n||d&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(d,e))continue;let o={delay:i,...ee(r||{},e)};u&&(o.skipAnimations=!0);let l=s.get();if(void 0!==l&&!s.isAnimating()&&!Array.isArray(n)&&n===l&&!o.velocity){g.frame.update(()=>s.set(n));continue}let m=!1;if(ss&&window.MotionHandoffAnimation){let i=it(t);if(i){let t=window.MotionHandoffAnimation(i,e,g.frame);null!==t&&(o.startTime=t,m=!0)}}j(t,e);let p=h??t.shouldReduceMotion;s.start(ea(e,s,n,p&&se.has(e)?{type:!1}:o,t,m));let f=s.animation;f&&c.push(f)}if(o){let e=()=>g.frame.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:s={},...n}=st(t,e)||{};for(let e in n={...n,...i}){var r;let i=si(r=n[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,e6.motionValue)(i))}}(t,o)});c.length?Promise.all(c).then(e):e()}return c}function sr(t,e,i,s=0,n=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*s;return"function"==typeof i?i(r,o):1===n?r*s:a-r*s}function so(t,e,i={}){let s=st(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let r=s?()=>Promise.all(sn(t,s,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=n;return function(t,e,i=0,s=0,n=0,r=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(so(l,e,{...o,delay:i+("function"==typeof s?0:s)+sr(t.variantChildren,l,s,n,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,s,r,o,a,i)}:()=>Promise.resolve(),{when:a}=n;if(!a)return Promise.all([r(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[r,o]:[o,r];return t().then(()=>e())}}var sa=t.i(732525),sl=t.i(706840);let sh=sl.variantProps.length;var su=t.i(885983);function sc(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}let sd=[...sl.variantPriorityOrder].reverse(),sm=sl.variantPriorityOrder.length;function sp(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sf(){return{animate:sp(!0),whileInView:sp(),whileHover:sp(),whileTap:sp(),whileDrag:sp(),whileFocus:sp(),exit:sp()}}let sy=0;function sv(t,e){let i=ex(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function sg(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&g.frame.postRender(()=>n(e,ek(e)))}var sx=t.i(772846);let sT=(t,e)=>!!e&&(t===e||sT(t,e.parentElement)),sP=new WeakSet;function sw(t){return e=>{"Enter"===e.key&&t(e)}}function sb(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function sS(t){return eV(t)&&!(eh.x||eh.y)}let sA=new WeakSet;function sD(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&g.frame.postRender(()=>n(e,ek(e)))}let sM=new WeakMap,sE=new WeakMap,sC=t=>{let e=sM.get(t.target);e&&e(t)},sV=t=>{t.forEach(sC)},sk={some:0,all:1};var sR=t.i(203973);let sL=[t.i(76307).number,eu.px,eu.percent,eu.degrees,eu.vw,eu.vh,{test:t=>"auto"===t,parse:t=>t}],sO=t=>sL.find(e=>e.test(t));var sB=t.i(172590);let sj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var sF=tY,sI=t.i(547507),sU=t.i(775554);let sq=new Set(["auto","none","0"]);var sN=t.i(44493);class sQ extends sF.KeyframeResolver{constructor(t,e,i,s,n){super(t,e,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&(s=s.trim(),(0,z.isCSSVariableToken)(s))){let n=function t(e,i,s=1){(0,Q.invariant)(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,r]=function(t){let e=sj.exec(t);if(!e)return[,];let[,i,s,n]=e;return[`--${i??s}`,n]}(e);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);
1if(o){let t=o.trim();return(0,sB.isNumericalString)(t)?parseFloat(t):t}return(0,z.isCSSVariableToken)(r)?t(r,i,s+1):r}(s,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!se.has(i)||2!==t.length)return;let[s,n]=t;if("number"==typeof s&&"number"==typeof n)return;let r=sO(s),o=sO(n);if((0,z.containsCSSVariable)(s)!==(0,z.containsCSSVariable)(n)&&sN.positionalValues[i]){this.needsMeasurement=!0;return}if(r!==o)if((0,sN.isNumOrPxType)(r)&&(0,sN.isNumOrPxType)(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else sN.positionalValues[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var s;(null===t[e]||("number"==typeof(s=t[e])?0===s:null===s||"none"===s||"0"===s||(0,sI.isZeroValueString)(s)))&&i.push(e)}i.length&&function(t,e,i){let s,n=0;for(;n<t.length&&!s;){let e=t[n];"string"==typeof e&&!sq.has(e)&&(0,H.hasComplexValues)(e)&&(s=t[n]),n++}if(s&&i)for(let n of e)t[n]!==s&&(t[n]=(0,sU.getAnimatableNone)(i,s))}(t,i,e)}measure(){let{element:t,name:e}=this;return sN.positionalValues[e](window.getComputedStyle(t.current),()=>t.measureViewportBox())}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&this.motionValue?.jump(s,!1)}measureEndState(){let{element:t,unresolvedKeyframes:e}=this;if(!t||!t.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let i=e.length-1,s=e[i];e[i]=this.measure(),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}var sz=t.i(617218);class sK extends sz.VisualElement{constructor(){super(...arguments),this.KeyframeResolver=sQ}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,B.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}var sH=t.i(793787),sW=t.i(181261);let sG=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"]);var s$=t.i(399951);function sY(t,{style:e,vars:i},s,n){let r,o=t.style;for(r in e)o[r]=e[r];for(r in n?.applyProjectionStyles(o,s),i)o.setProperty(r,i[r])}var sX=t.i(767926);class s_ extends sK{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=v.createBox}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(ei.transformProps.has(e)){let t=(0,sR.getDefaultValueType)(e);return t&&t.default||0}if(sW.cssStyleProperties.includes(e)){let i=getComputedStyle(t)[e];if("string"==typeof i&&i)return i.trim()}return e=sG.has(e)?e:(0,sH.camelToDash)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return(0,sX.scrapeMotionValuesFromProps)(t,e,i)}build(t,e,i){(0,sW.buildSVGAttrs)(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){for(let i in sY(t,e,void 0,s),e.attrs)t.setAttribute(sG.has(i)?i:(0,sH.camelToDash)(i),e.attrs[i])}mount(t){this.isSVGTag=(0,s$.isSVGTag)(t.tagName),super.mount(t)}}var sZ=t.i(381296),sJ=t.i(544947),s0=t.i(984049);class s1 extends sK{constructor(){super(...arguments),this.type="html",this.renderInstance=sY}mount(t){(0,Q.invariant)(!!t.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(t)}readValueFromInstance(t,e){if(ei.transformProps.has(e))return this.projection?.isProjecting?(0,sZ.defaultTransformValue)(e):(0,sZ.readTransformValue)(t,e);{let i=window.getComputedStyle(t),s=((0,z.isCSSVariableName)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return L(t,e)}build(t,e,i){(0,sJ.buildHTMLStyles)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,s0.scrapeMotionValuesFromProps)(t,e,i)}}var s5=t.i(944966);t.s(["domMax",0,{renderer:(t,e)=>e.isSVG??(0,s5.isSVGComponent)(t)?new s_(e):new s1(e,{allowProjection:t!==e0.Fragment}),animation:{Feature:class extends f{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>so(t,e,i)));else if("string"==typeof e)s=so(t,e,i);else{let n="function"==typeof e?st(t,e,i.custom):e;s=Promise.all(sn(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=sf(),s=!0,n=!1,r=e=>(i,s)=>{let n=st(t,s,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function o(o){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<sh;t++){let s=sl.variantProps[t],n=e.props[s];((0,sa.isVariantLabel)(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},h=[],u=new Set,c={},d=1/0;for(let e=0;e<sm;e++){var m,p;let f=sd[e],y=i[f],v=void 0!==a[f]?a[f]:l[f],g=(0,sa.isVariantLabel)(v),x=f===o?y.isActive:null;!1===x&&(d=e);let T=v===l[f]&&v!==a[f]&&g;if(T&&(s||n)&&t.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...c},!y.isActive&&null===x||!v&&!y.prevProp||(0,su.isAnimationControls)(v)||"boolean"==typeof v)continue;if("exit"===f&&y.isActive&&!0!==x){y.prevResolvedValues&&(c={...c,...y.prevResolvedValues});continue}let P=(m=y.prevProp,"string"==typeof(p=v)?p!==m:!!Array.isArray(p)&&!sc(p,m)),w=P||f===o&&y.isActive&&!T&&g||e>d&&g,b=!1,S=Array.isArray(v)?v:[v],A=S.reduce(r(f),{});!1===x&&(A={});let{prevResolvedValues:D={}}=y,M={...D,...A},E=e=>{w=!0,u.has(e)&&(b=!0,u.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in M){let e=A[t],i=D[t];if(!c.hasOwnProperty(t))(si(e)&&si(i)?!sc(e,i)||P:e!==i)?null!=e?E(t):u.add(t):void 0!==e&&u.has(t)?E(t):y.protectedKeys[t]=!0}y.prevProp=v,y.prevResolvedValues=A,y.isActive&&(c={...c,...A}),(s||n)&&t.blockInitialAnimation&&(w=!1);let C=T&&P,V=!C||b;w&&V&&h.push(...S.map(e=>{let i={type:f};if("string"==typeof e&&(s||n)&&!C&&t.manuallyAnimateOnMount&&t.parent){let{parent:s}=t,n=st(s,e);if(s.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=sr(s.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=st(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),h.push({animation:e})}let f=!!h.length;return s&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),s=!1,n=!1,f?e(h):Promise.resolve()}return{animateChanges:o,setActive:function(e,s){if(i[e].isActive===s)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,s)),i[e].isActive=s;let n=o(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=sf(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,su.isAnimationControls)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends f{constructor(){super(...arguments),this.id=sy++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=st(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...s}=i;for(let t in s)this.node.getValue(t)?.jump(s[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends f{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:r="some",once:o}=i,a={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:sk[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=e?i:s;n&&n(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;sE.has(i)||sE.set(i,{});let s=sE.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(sV,{root:t,...e})),s[n]}(a),sM.set(t,l),e.observe(t),()=>{sM.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends f{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[s,n,r]=sv(t,i),o=t=>{let s=t.currentTarget;if(!sS(t)||sA.has(t))return;sP.add(s),i.stopPropagation&&sA.add(t);let r=e(s,t),o={...n,capture:!0},a=(t,e)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",h,o),sP.has(s)&&sP.delete(s),sS(t)&&"function"==typeof r&&r(t,{success:e})},l=t=>{a(t,s===window||s===document||i.useGlobalTarget||sT(s,t.target))},h=t=>{a(t,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",h,o)};return s.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),(0,sx.isHTMLElement)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=sw(()=>
1{if(sP.has(i))return;sb(i,"down");let t=sw(()=>{sb(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sb(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,n)),eE.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(sD(this.node,e,"Start"),(t,{success:e})=>sD(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends f{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=U(el(this.node.current,"focus",()=>this.onFocus()),el(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends f{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,r]=sv(t,i);return s.forEach(t=>{let i,s=!1,r=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{s=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),r&&(r=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(s){r=!0;return}o(t)}};t.addEventListener("pointerenter",s=>{if("touch"===s.pointerType||eh.x||eh.y)return;r=!1;let o=e(t,s);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,n))},n),t.addEventListener("pointerdown",()=>{s=!0,window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",a,n)},n)}),r}(t,(t,e)=>(sg(this.node,e,"Start"),t=>sg(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends f{constructor(){super(...arguments),this.removePointerDownListener=y.noop}onPointerDown(t){this.session=new eF(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eL(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:eX(t),onStart:eX(e),onMove:eX(i),onEnd:(t,e)=>{delete this.session,s&&g.frame.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=eR(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 f{constructor(t){super(t),this.removeGroupControls=y.noop,this.removeListeners=y.noop,this.controls=new eG(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||y.noop}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:i6,MeasureLayout:e4},layout:{ProjectionNode:i6,MeasureLayout:e4}}],465939);var s2=t.i(648070),s9=t.i(513565);function s3(t){return"function"==typeof t}t.s(["LazyMotion",0,function({children:t,features:e,strict:i=!1}){let[,s]=(0,e0.useState)(!s3(e)),n=(0,e0.useRef)(void 0);if(!s3(e)){let{renderer:t,...i}=e;n.current=t,(0,s9.loadFeatures)(i)}return(0,e0.useEffect)(()=>{s3(e)&&e().then(({renderer:t,...e})=>{(0,s9.loadFeatures)(e),n.current=t,s(!0)})},[]),(0,e_.jsx)(s2.LazyContext.Provider,{value:{renderer:n.current,strict:i},children:t})}],444113);var s4=t.i(737806),s7=t.i(947414);t.s(["MotionConfig",0,function({children:t,...e}){let i=(0,e0.useContext)(s4.MotionConfigContext);(e={...i,...e}).transition=et(e.transition,i.transition),e.isStatic=(0,s7.useConstant)(()=>e.isStatic);let s=(0,e0.useMemo)(()=>e,[JSON.stringify(e.transition),e.transformPagePoint,e.reducedMotion,e.skipAnimations,e.isValidProp]);return(0,e_.jsx)(s4.MotionConfigContext.Provider,{value:s,children:t})}],63209)},175696,t=>{"use strict";var e=t.i(861745),i=t.i(843476);t.s(["default",0,function({locale:t,...s}){if(!t)throw Error(void 0);return(0,i.jsx)(e.IntlProvider,{locale:t,...s})}])}]);
2
3//# chunkId=01a0d0e1-21ee-7cc2-8253-771e3c7e0ca0

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.