Files

1 line
133 KiB
Plaintext

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5014],{9111:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(66909);function s(t,e,i,s){if(!t||s===i||null==s||!e)return;let r=(0,n.DT)(e),{name:a,...o}=t;o.path||(o.path=""!==r?r:"/");let l=`${a}=${s};`;for(let[t,e]of Object.entries(o))l+=`${"maxAge"===t?"max-age":t}`,"boolean"!=typeof e&&(l+="="+e),l+=";";document.cookie=l}},14762:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(68148).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},15097:(t,e,i)=>{i.d(e,{default:()=>u});var n=i(51193),s=i(99018),r=i(66724),a=i(7283),o=i(9111),l=i(45704),u=(0,r.forwardRef)(function(t,e){let{href:i,locale:r,localeCookie:u,onClick:h,prefetch:c,...d}=t,p=(0,a.Ym)(),f=null!=r&&r!==p,m=(0,s.usePathname)();return f&&(c=!1),(0,l.jsx)(n,{ref:e,href:i,hrefLang:f?r:void 0,onClick:function(t){(0,o.A)(u,m,p,r),h&&h(t)},prefetch:c,...d})})},15515:(t,e,i)=>{i.d(e,{E:()=>g});var n=i(74725),s=i(83712),r=i(96328),a=i(44825),o=class extends a.Q{constructor(t={}){super(),this.config=t,this.#t=new Map}#t;build(t,e,i){let r=e.queryKey,a=e.queryHash??(0,n.F$)(r,e),o=this.get(a);return o||(o=new s.X({client:t,queryKey:r,queryHash:a,options:t.defaultQueryOptions(e),state:i,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){let e=this.#t.get(t.queryHash);e&&(t.destroy(),e===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){r.jG.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,n.MK)(e,t))}findAll(t={}){let e=this.getAll();return Object.keys(t).length>0?e.filter(e=>(0,n.MK)(t,e)):e}notify(t){r.jG.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){r.jG.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){r.jG.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},l=i(45985),u=i(41293),h=class extends l.k{#e;#i;#n;constructor(t){super(),this.mutationId=t.mutationId,this.#i=t.mutationCache,this.#e=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#s({type:"continue"})};this.#n=(0,u.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#s({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#s({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});let i="pending"===this.state.status,n=!this.#n.canStart();try{if(i)e();else{this.#s({type:"pending",variables:t,isPaused:n}),await this.#i.config.onMutate?.(t,this);let e=await this.options.onMutate?.(t);e!==this.state.context&&this.#s({type:"pending",context:e,variables:t,isPaused:n})}let s=await this.#n.start();return await this.#i.config.onSuccess?.(s,t,this.state.context,this),await this.options.onSuccess?.(s,t,this.state.context),await this.#i.config.onSettled?.(s,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(s,null,t,this.state.context),this.#s({type:"success",data:s}),s}catch(e){try{throw await this.#i.config.onError?.(e,t,this.state.context,this),await this.options.onError?.(e,t,this.state.context),await this.#i.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,e,t,this.state.context),e}finally{this.#s({type:"error",error:e})}}finally{this.#i.runNext(this)}}#s(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),r.jG.batch(()=>{this.#e.forEach(e=>{e.onMutationUpdate(t)}),this.#i.notify({mutation:this,type:"updated",action:t})})}},c=class extends a.Q{constructor(t={}){super(),this.config=t,this.#r=new Set,this.#a=new Map,this.#o=0}#r;#a;#o;build(t,e,i){let n=new h({mutationCache:this,mutationId:++this.#o,options:t.defaultMutationOptions(e),state:i});return this.add(n),n}add(t){this.#r.add(t);let e=d(t);if("string"==typeof e){let i=this.#a.get(e);i?i.push(t):this.#a.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#r.delete(t)){let e=d(t);if("string"==typeof e){let i=this.#a.get(e);if(i)if(i.length>1){let e=i.indexOf(t);-1!==e&&i.splice(e,1)}else i[0]===t&&this.#a.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){let e=d(t);if("string"!=typeof e)return!0;{let i=this.#a.get(e),n=i?.find(t=>"pending"===t.state.status);return!n||n===t}}runNext(t){let e=d(t);if("string"!=typeof e)return Promise.resolve();{let i=this.#a.get(e)?.find(e=>e!==t&&e.state.isPaused);return i?.continue()??Promise.resolve()}}clear(){r.jG.batch(()=>{this.#r.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#r.clear(),this.#a.clear()})}getAll(){return Array.from(this.#r)}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,n.nJ)(e,t))}findAll(t={}){return this.getAll().filter(e=>(0,n.nJ)(t,e))}notify(t){r.jG.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){let t=this.getAll().filter(t=>t.state.isPaused);return r.jG.batch(()=>Promise.all(t.map(t=>t.continue().catch(n.lQ))))}};function d(t){return t.options.scope?.id}var p=i(58159),f=i(28118);function m(t){return{onFetch:(e,i)=>{let s=e.options,r=e.fetchOptions?.meta?.fetchMore?.direction,a=e.state.data?.pages||[],o=e.state.data?.pageParams||[],l={pages:[],pageParams:[]},u=0,h=async()=>{let i=!1,h=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(e.signal.aborted?i=!0:e.signal.addEventListener("abort",()=>{i=!0}),e.signal)})},c=(0,n.ZM)(e.options,e.fetchOptions),d=async(t,s,r)=>{if(i)return Promise.reject();if(null==s&&t.pages.length)return Promise.resolve(t);let a={client:e.client,queryKey:e.queryKey,pageParam:s,direction:r?"backward":"forward",meta:e.options.meta};h(a);let o=await c(a),{maxPages:l}=e.options,u=r?n.ZZ:n.y9;return{pages:u(t.pages,o,l),pageParams:u(t.pageParams,s,l)}};if(r&&a.length){let t="backward"===r,e={pages:a,pageParams:o},i=(t?function(t,{pages:e,pageParams:i}){return e.length>0?t.getPreviousPageParam?.(e[0],e,i[0],i):void 0}:y)(s,e);l=await d(e,i,t)}else{let e=t??a.length;do{let t=0===u?o[0]??s.initialPageParam:y(s,l);if(u>0&&null==t)break;l=await d(l,t),u++}while(u<e)}return l};e.options.persister?e.fetchFn=()=>e.options.persister?.(h,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},i):e.fetchFn=h}}}function y(t,{pages:e,pageParams:i}){let n=e.length-1;return e.length>0?t.getNextPageParam(e[n],e,i[n],i):void 0}var g=class{#l;#i;#u;#h;#c;#d;#p;#f;constructor(t={}){this.#l=t.queryCache||new o,this.#i=t.mutationCache||new c,this.#u=t.defaultOptions||{},this.#h=new Map,this.#c=new Map,this.#d=0}mount(){this.#d++,1===this.#d&&(this.#p=p.m.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#l.onFocus())}),this.#f=f.t.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#l.onOnline())}))}unmount(){this.#d--,0===this.#d&&(this.#p?.(),this.#p=void 0,this.#f?.(),this.#f=void 0)}isFetching(t){return this.#l.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#i.findAll({...t,status:"pending"}).length}getQueryData(t){let e=this.defaultQueryOptions({queryKey:t});return this.#l.get(e.queryHash)?.state.data}ensureQueryData(t){let e=this.defaultQueryOptions(t),i=this.#l.build(this,e),s=i.state.data;return void 0===s?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime((0,n.d2)(e.staleTime,i))&&this.prefetchQuery(e),Promise.resolve(s))}getQueriesData(t){return this.#l.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,i){let s=this.defaultQueryOptions({queryKey:t}),r=this.#l.get(s.queryHash),a=r?.state.data,o=(0,n.Zw)(e,a);if(void 0!==o)return this.#l.build(this,s).setData(o,{...i,manual:!0})}setQueriesData(t,e,i){return r.jG.batch(()=>this.#l.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,i)]))}getQueryState(t){let e=this.defaultQueryOptions({queryKey:t});return this.#l.get(e.queryHash)?.state}removeQueries(t){let e=this.#l;r.jG.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){let i=this.#l;return r.jG.batch(()=>(i.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){let i={revert:!0,...e};return Promise.all(r.jG.batch(()=>this.#l.findAll(t).map(t=>t.cancel(i)))).then(n.lQ).catch(n.lQ)}invalidateQueries(t,e={}){return r.jG.batch(()=>(this.#l.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.jG.batch(()=>this.#l.findAll(t).filter(t=>!t.isDisabled()).map(t=>{let e=t.fetch(void 0,i);return i.throwOnError||(e=e.catch(n.lQ)),"paused"===t.state.fetchStatus?Promise.resolve():e}))).then(n.lQ)}fetchQuery(t){let e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);let i=this.#l.build(this,e);return i.isStaleByTime((0,n.d2)(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(n.lQ).catch(n.lQ)}fetchInfiniteQuery(t){return t.behavior=m(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(n.lQ).catch(n.lQ)}ensureInfiniteQueryData(t){return t.behavior=m(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return f.t.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#l}getMutationCache(){return this.#i}getDefaultOptions(){return this.#u}setDefaultOptions(t){this.#u=t}setQueryDefaults(t,e){this.#h.set((0,n.EN)(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){let e=[...this.#h.values()],i={};return e.forEach(e=>{(0,n.Cp)(t,e.queryKey)&&Object.assign(i,e.defaultOptions)}),i}setMutationDefaults(t,e){this.#c.set((0,n.EN)(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){let e=[...this.#c.values()],i={};return e.forEach(e=>{(0,n.Cp)(t,e.mutationKey)&&Object.assign(i,e.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;let e={...this.#u.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=(0,n.F$)(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===n.hT&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#u.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#l.clear(),this.#i.clear()}}},16902:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(68148).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},18267:(t,e,i)=>{i.d(e,{default:()=>r});var n=i(7283),s=i(45704);function r(t){let{locale:e,...i}=t;if(!e)throw Error(void 0);return(0,s.jsx)(n.Dk,{locale:e,...i})}},23757:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(66724).createContext)({})},26927:(t,e,i)=>{i.d(e,{default:()=>s.a});var n=i(49780),s=i.n(n)},28730:(t,e,i)=>{i.d(e,{xQ:()=>r});var n=i(66724),s=i(81221);function r(t=!0){let e=(0,n.useContext)(s.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:a,register:o}=e,l=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return o(l)},[t]);let u=(0,n.useCallback)(()=>t&&a&&a(l),[l,a,t]);return!i&&a?[!1,u]:[!0]}},31133:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(68148).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},40476:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(66724).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},43411:(t,e,i)=>{i.d(e,{U:()=>r});var n=i(67124),s=i(71728);function r(){if(s.r.current=!0,n.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>s.O.current=t.matches;t.addListener(e),e()}else s.O.current=!1}},44926:(t,e,i)=>{i.d(e,{E:()=>s});var n=i(66724);let s=i(67124).B?n.useLayoutEffect:n.useEffect},46292:(t,e,i)=>{i.d(e,{FD:()=>g,MY:()=>r,PJ:()=>a,Wl:()=>l,XP:()=>c,_x:()=>s,bL:()=>d,po:()=>u,ql:()=>h,wO:()=>o,yL:()=>v});var n=i(90798);function s(t){return("object"==typeof t?null==t.host&&null==t.hostname:!/^[a-z]+:/i.test(t))&&!function(t){let e="object"==typeof t?t.pathname:t;return null!=e&&!e.startsWith("/")}(t)}function r(t,e){return t.replace(RegExp(`^${e}`),"")||"/"}function a(t,e){let i=t;return/^\/(\?.*)?$/.test(e)&&(e=e.slice(1)),i+=e}function o(t,e){return e===t||e.startsWith(`${t}/`)}function l(t,e,i){return"string"==typeof t?t:t[e]||i}function u(t){let e=function(){try{return"true"===n.env._next_intl_trailing_slash}catch{return!1}}();if("/"!==t){let i=t.endsWith("/");e&&!i?t+="/":!e&&i&&(t=t.slice(0,-1))}return t}function h(t,e){let i=u(t),n=u(e);return(function(t){let e=t.replace(/\[\[(\.\.\.[^\]]+)\]\]/g,"?(.*)").replace(/\[(\.\.\.[^\]]+)\]/g,"(.+)").replace(/\[([^\]]+)\]/g,"([^/]+)");return RegExp(`^${e}$`)})(i).test(n)}function c(t,e){return"never"!==e.mode&&e.prefixes?.[t]||d(t)}function d(t){return"/"+t}function p(t){return t.includes("[[...")}function f(t){return t.includes("[...")}function m(t){return t.includes("[")}function y(t,e){let i=t.split("/"),n=e.split("/"),s=Math.max(i.length,n.length);for(let t=0;t<s;t++){let e=i[t],s=n[t];if(!e&&s)return -1;if(e&&!s)return 1;if(e||s){if(!m(e)&&m(s))return -1;if(m(e)&&!m(s))return 1;if(!f(e)&&f(s))return -1;if(f(e)&&!f(s))return 1;if(!p(e)&&p(s))return -1;if(p(e)&&!p(s))return 1}}return 0}function g(t){return t.sort(y)}function v(t){return"function"==typeof t.then}},49780:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return v},handleClientScriptLoad:function(){return m},initScriptLoader:function(){return y}});let n=i(68313),s=i(63858),r=i(45704),a=n._(i(71397)),o=s._(i(66724)),l=i(73015),u=i(70379),h=i(95151),c=new Map,d=new Set,p=t=>{if(a.default.preinit){t.forEach(t=>{a.default.preinit(t,{as:"style"})});return}{let e=document.head;t.forEach(t=>{let i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.href=t,e.appendChild(i)})}},f=t=>{let{src:e,id:i,onLoad:n=()=>{},onReady:s=null,dangerouslySetInnerHTML:r,children:a="",strategy:o="afterInteractive",onError:l,stylesheets:h}=t,f=i||e;if(f&&d.has(f))return;if(c.has(e)){d.add(f),c.get(e).then(n,l);return}let m=()=>{s&&s(),d.add(f)},y=document.createElement("script"),g=new Promise((t,e)=>{y.addEventListener("load",function(e){t(),n&&n.call(this,e),m()}),y.addEventListener("error",function(t){e(t)})}).catch(function(t){l&&l(t)});r?(y.innerHTML=r.__html||"",m()):a?(y.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",m()):e&&(y.src=e,c.set(e,g)),(0,u.setAttributesFromProps)(y,t),"worker"===o&&y.setAttribute("type","text/partytown"),y.setAttribute("data-nscript",o),h&&p(h),document.body.appendChild(y)};function m(t){let{strategy:e="afterInteractive"}=t;"lazyOnload"===e?window.addEventListener("load",()=>{(0,h.requestIdleCallback)(()=>f(t))}):f(t)}function y(t){t.forEach(m),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(t=>{let e=t.id||t.getAttribute("src");d.add(e)})}function g(t){let{id:e,src:i="",onLoad:n=()=>{},onReady:s=null,strategy:u="afterInteractive",onError:c,stylesheets:p,...m}=t,{updateScripts:y,scripts:g,getIsSsr:v,appDir:x,nonce:b}=(0,o.useContext)(l.HeadManagerContext),w=(0,o.useRef)(!1);(0,o.useEffect)(()=>{let t=e||i;w.current||(s&&t&&d.has(t)&&s(),w.current=!0)},[s,e,i]);let P=(0,o.useRef)(!1);if((0,o.useEffect)(()=>{if(!P.current){if("afterInteractive"===u)f(t);else if("lazyOnload"===u)"complete"===document.readyState?(0,h.requestIdleCallback)(()=>f(t)):window.addEventListener("load",()=>{(0,h.requestIdleCallback)(()=>f(t))});P.current=!0}},[t,u]),("beforeInteractive"===u||"worker"===u)&&(y?(g[u]=(g[u]||[]).concat([{id:e,src:i,onLoad:n,onReady:s,onError:c,...m}]),y(g)):v&&v()?d.add(e||i):v&&!v()&&f(t)),x){if(p&&p.forEach(t=>{a.default.preinit(t,{as:"style"})}),"beforeInteractive"===u)if(!i)return m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,r.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...m,id:e}])+")"}});else return a.default.preload(i,m.integrity?{as:"script",integrity:m.integrity,nonce:b,crossOrigin:m.crossOrigin}:{as:"script",nonce:b,crossOrigin:m.crossOrigin}),(0,r.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([i,{...m,id:e}])+")"}});"afterInteractive"===u&&i&&a.default.preload(i,m.integrity?{as:"script",integrity:m.integrity,nonce:b,crossOrigin:m.crossOrigin}:{as:"script",nonce:b,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let v=g;("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},51265:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(68148).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},57969:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(68148).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},58192:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(68148).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},62847:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(68148).A)("menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},63959:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(68148).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},66909:(t,e,i)=>{i.d(e,{DT:()=>l,FP:()=>a,TK:()=>s,Zn:()=>r,aM:()=>o,x3:()=>u});var n=i(46292);function s(t){return"string"==typeof t?{pathname:t}:t}function r(t){let e=new URLSearchParams;for(let[i,n]of Object.entries(t))Array.isArray(n)?n.forEach(t=>{e.append(i,String(t))}):e.set(i,String(n));return"?"+e.toString()}function a({pathname:t,locale:e,params:i,pathnames:s,query:a}){function o(t){let e=s[t];return e||(e=t),e}function l(t,s){let o=(0,n.Wl)(t,e,s);return i&&Object.entries(i).forEach(([t,e])=>{let i,n;Array.isArray(e)?(i=`(\\[)?\\[...${t}\\](\\])?`,n=e.map(t=>String(t)).join("/")):(i=`\\[${t}\\]`,n=String(e)),o=o.replace(RegExp(i,"g"),n)}),o=o.replace(/\[\[\.\.\..+\]\]/g,""),o=(0,n.po)(o),a&&(o+=r(a)),o}if("string"==typeof t)return l(o(t),t);{let{pathname:e,...i}=t;return{...i,pathname:l(o(e),e)}}}function o(t,e,i){let s=(0,n.FD)(Object.keys(i)),r=decodeURI(e);for(let e of s){let s=i[e];if("string"==typeof s){if((0,n.ql)(s,r))return e}else if((0,n.ql)((0,n.Wl)(s,t,e),r))return e}return e}function l(t,e=window.location.pathname){return"/"===t?e:e.replace(t,"")}function u(t,e,i,s){let r,{mode:a}=i.localePrefix;return void 0!==s?r=s:(0,n._x)(t)&&("always"===a?r=!0:"as-needed"===a&&(r=i.domains?!i.domains.some(t=>t.defaultLocale===e):e!==i.defaultLocale)),r?(0,n.PJ)((0,n.XP)(e,i.localePrefix),t):t}},67124:(t,e,i)=>{i.d(e,{B:()=>n});let n="undefined"!=typeof window},69920:(t,e,i)=>{i.d(e,{N:()=>g});var n=i(45704),s=i(66724),r=i(23757),a=i(82141),o=i(44926),l=i(81221),u=i(40476);class h extends s.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=t instanceof HTMLElement&&t.offsetWidth||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function c(t){let{children:e,isPresent:i,anchorX:r}=t,a=(0,s.useId)(),o=(0,s.useRef)(null),l=(0,s.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=(0,s.useContext)(u.Q);return(0,s.useInsertionEffect)(()=>{let{width:t,height:e,top:n,left:s,right:u}=l.current;if(i||!o.current||!t||!e)return;o.current.dataset.motionPopId=a;let h=document.createElement("style");return c&&(h.nonce=c),document.head.appendChild(h),h.sheet&&h.sheet.insertRule('\n [data-motion-pop-id="'.concat(a,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n ").concat("left"===r?"left: ".concat(s):"right: ".concat(u),"px !important;\n top: ").concat(n,"px !important;\n }\n ")),()=>{document.head.contains(h)&&document.head.removeChild(h)}},[i]),(0,n.jsx)(h,{isPresent:i,childRef:o,sizeRef:l,children:s.cloneElement(e,{ref:o})})}let d=t=>{let{children:e,initial:i,isPresent:r,onExitComplete:o,custom:u,presenceAffectsLayout:h,mode:d,anchorX:f}=t,m=(0,a.M)(p),y=(0,s.useId)(),g=!0,v=(0,s.useMemo)(()=>(g=!1,{id:y,initial:i,isPresent:r,custom:u,onExitComplete:t=>{for(let e of(m.set(t,!0),m.values()))if(!e)return;o&&o()},register:t=>(m.set(t,!1),()=>m.delete(t))}),[r,m,o]);return h&&g&&(v={...v}),(0,s.useMemo)(()=>{m.forEach((t,e)=>m.set(e,!1))},[r]),s.useEffect(()=>{r||m.size||!o||o()},[r]),"popLayout"===d&&(e=(0,n.jsx)(c,{isPresent:r,anchorX:f,children:e})),(0,n.jsx)(l.t.Provider,{value:v,children:e})};function p(){return new Map}var f=i(28730);let m=t=>t.key||"";function y(t){let e=[];return s.Children.forEach(t,t=>{(0,s.isValidElement)(t)&&e.push(t)}),e}let g=t=>{let{children:e,custom:i,initial:l=!0,onExitComplete:u,presenceAffectsLayout:h=!0,mode:c="sync",propagate:p=!1,anchorX:g="left"}=t,[v,x]=(0,f.xQ)(p),b=(0,s.useMemo)(()=>y(e),[e]),w=p&&!v?[]:b.map(m),P=(0,s.useRef)(!0),T=(0,s.useRef)(b),A=(0,a.M)(()=>new Map),[S,M]=(0,s.useState)(b),[C,E]=(0,s.useState)(b);(0,o.E)(()=>{P.current=!1,T.current=b;for(let t=0;t<C.length;t++){let e=m(C[t]);w.includes(e)?A.delete(e):!0!==A.get(e)&&A.set(e,!1)}},[C,w.length,w.join("-")]);let k=[];if(b!==S){let t=[...b];for(let e=0;e<C.length;e++){let i=C[e],n=m(i);w.includes(n)||(t.splice(e,0,i),k.push(i))}return"wait"===c&&k.length&&(t=k),E(y(t)),M(b),null}let{forceRender:D}=(0,s.useContext)(r.L);return(0,n.jsx)(n.Fragment,{children:C.map(t=>{let e=m(t),s=(!p||!!v)&&(b===C||w.includes(e));return(0,n.jsx)(d,{isPresent:s,initial:(!P.current||!!l)&&void 0,custom:i,presenceAffectsLayout:h,mode:c,onExitComplete:s?void 0:()=>{if(!A.has(e))return;A.set(e,!0);let t=!0;A.forEach(e=>{e||(t=!1)}),t&&(null==D||D(),E(T.current),p&&(null==x||x()),u&&u())},anchorX:g,children:t},e)})})}},70379:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"setAttributesFromProps",{enumerable:!0,get:function(){return r}});let i={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function s(t){return["async","defer","noModule"].includes(t)}function r(t,e){for(let[r,a]of Object.entries(e)){if(!e.hasOwnProperty(r)||n.includes(r)||void 0===a)continue;let o=i[r]||r.toLowerCase();"SCRIPT"===t.tagName&&s(o)?t[o]=!!a:t.setAttribute(o,String(a)),(!1===a||"SCRIPT"===t.tagName&&s(o)&&(!a||"false"===a))&&(t.setAttribute(o,""),t.removeAttribute(o))}}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},71728:(t,e,i)=>{i.d(e,{O:()=>n,r:()=>s});let n={current:null},s={current:!1}},72680:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(68148).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},73812:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(68148).A)("search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},74788:(t,e,i)=>{i.d(e,{I:()=>a});var n=i(66724),s=i(43411),r=i(71728);function a(){r.r.current||(0,s.U)();let[t]=(0,n.useState)(r.O.current);return t}},76479:(t,e,i)=>{i.d(e,{E:()=>n});var n=function(){return null}},81221:(t,e,i)=>{i.d(e,{t:()=>n});let n=(0,i(66724).createContext)(null)},82141:(t,e,i)=>{i.d(e,{M:()=>s});var n=i(66724);function s(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},84405:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(68148).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},86166:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(68148).A)("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]])},92922:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(68148).A)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},93559:(t,e,i)=>{let n;function s(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function r(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function a(t,e,i,n){if("function"==typeof e){let[s,a]=r(n);e=e(void 0!==i?i:t.custom,s,a)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,a]=r(n);e=e(void 0!==i?i:t.custom,s,a)}return e}function o(t,e,i){let n=t.getProps();return a(n,e,void 0!==i?i:n.custom,t)}function l(t,e){return t?.[e]??t?.default??t}i.d(e,{P:()=>rA});let u=t=>t,h={},c=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],d={value:null,addProjectionMetrics:null};function p(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=c.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,r=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){a.has(e)&&(h.schedule(e),t()),l++,e(o)}let h={schedule:(t,e=!1,r=!1)=>{let o=r&&s?i:n;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(o=t,s){r=!0;return}s=!0,[i,n]=[n,i],i.forEach(u),e&&d.value&&d.value.frameloop[e].push(l),l=0,i.clear(),s=!1,r&&(r=!1,h.process(t))}};return h}(r,e?i:void 0),t),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:p,update:f,preRender:m,render:y,postRender:g}=a,v=()=>{let r=h.useManualTiming?s.timestamp:performance.now();i=!1,h.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(r-s.timestamp,40),1)),s.timestamp=r,s.isProcessing=!0,o.process(s),l.process(s),u.process(s),p.process(s),f.process(s),m.process(s),y.process(s),g.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(v))},x=()=>{i=!0,n=!0,s.isProcessing||t(v)};return{schedule:c.reduce((t,e)=>{let n=a[e];return t[e]=(t,e=!1,s=!1)=>(i||x(),n.schedule(t,e,s)),t},{}),cancel:t=>{for(let e=0;e<c.length;e++)a[c[e]].cancel(t)},state:s,steps:a}}let{schedule:f,cancel:m,state:y,steps:g}=p("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:u,!0),v=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],x=new Set(v),b=new Set(["width","height","top","left","right","bottom",...v]);function w(t,e){-1===t.indexOf(e)&&t.push(e)}function P(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class T{constructor(){this.subscriptions=[]}add(t){return w(this.subscriptions,t),()=>P(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function A(){n=void 0}let S={now:()=>(void 0===n&&S.set(y.isProcessing||h.useManualTiming?y.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(A)}},M=t=>!isNaN(parseFloat(t)),C={current:void 0};class E{constructor(t,e={}){this.version="__VERSION__",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=S.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty();e&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=S.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=M(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new T);let i=this.events[t].add(e);return"change"===t?()=>{i(),f.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return C.current&&C.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=S.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function k(t,e){return new E(t,e)}let D=t=>Array.isArray(t),V=t=>!!(t&&t.getVelocity);function R(t,e){let i=t.getValue("willChange");if(V(i)&&i.add)return i.add(e);if(!i&&h.WillChange){let i=new h.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let j=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),O="data-"+j("framerAppearId"),L=(t,e)=>i=>e(t(i)),F=(...t)=>t.reduce(L),I=(t,e,i)=>i>e?e:i<t?t:i,B=t=>1e3*t,q=t=>t/1e3,U={layout:0,mainThread:0,waapi:0},N=()=>{},_=()=>{},$=t=>e=>"string"==typeof e&&e.startsWith(t),W=$("--"),H=$("var(--"),Q=t=>!!H(t)&&z.test(t.split("/*")[0].trim()),z=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,K={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},Y={...K,transform:t=>I(0,1,t)},X={...K,default:1},G=t=>Math.round(1e5*t)/1e5,Z=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,J=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tt=(t,e)=>i=>!!("string"==typeof i&&J.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),te=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,a,o]=n.match(Z);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},ti=t=>I(0,255,t),tn={...K,transform:t=>Math.round(ti(t))},ts={test:tt("rgb","red"),parse:te("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tn.transform(t)+", "+tn.transform(e)+", "+tn.transform(i)+", "+G(Y.transform(n))+")"},tr={test:tt("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:ts.transform},ta=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),to=ta("deg"),tl=ta("%"),tu=ta("px"),th=ta("vh"),tc=ta("vw"),td={...tl,parse:t=>tl.parse(t)/100,transform:t=>tl.transform(100*t)},tp={test:tt("hsl","hue"),parse:te("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+tl.transform(G(e))+", "+tl.transform(G(i))+", "+G(Y.transform(n))+")"},tf={test:t=>ts.test(t)||tr.test(t)||tp.test(t),parse:t=>ts.test(t)?ts.parse(t):tp.test(t)?tp.parse(t):tr.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?ts.transform(t):tp.transform(t)},tm=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ty="number",tg="color",tv=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function tx(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,a=e.replace(tv,t=>(tf.test(t)?(n.color.push(r),s.push(tg),i.push(tf.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(ty),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:a,indexes:n,types:s}}function tb(t){return tx(t).values}function tw(t){let{split:e,types:i}=tx(t),n=e.length;return t=>{let s="";for(let r=0;r<n;r++)if(s+=e[r],void 0!==t[r]){let e=i[r];e===ty?s+=G(t[r]):e===tg?s+=tf.transform(t[r]):s+=t[r]}return s}}let tP=t=>"number"==typeof t?0:t,tT={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(Z)?.length||0)+(t.match(tm)?.length||0)>0},parse:tb,createTransformer:tw,getAnimatableNone:function(t){let e=tb(t);return tw(t)(e.map(tP))}};function tA(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function tS(t,e){return i=>i>0?e:t}let tM=(t,e,i)=>t+(e-t)*i,tC=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},tE=[tr,ts,tp],tk=t=>tE.find(e=>e.test(t));function tD(t){let e=tk(t);if(N(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tp&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;s=tA(o,n,t+1/3),r=tA(o,n,t),a=tA(o,n,t-1/3)}else s=r=a=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*a),alpha:n}}(i)),i}let tV=(t,e)=>{let i=tD(t),n=tD(e);if(!i||!n)return tS(t,e);let s={...i};return t=>(s.red=tC(i.red,n.red,t),s.green=tC(i.green,n.green,t),s.blue=tC(i.blue,n.blue,t),s.alpha=tM(i.alpha,n.alpha,t),ts.transform(s))},tR=new Set(["none","hidden"]);function tj(t,e){return i=>tM(t,e,i)}function tO(t){return"number"==typeof t?tj:"string"==typeof t?Q(t)?tS:tf.test(t)?tV:tI:Array.isArray(t)?tL:"object"==typeof t?tf.test(t)?tV:tF:tS}function tL(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>tO(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function tF(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=tO(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let tI=(t,e)=>{let i=tT.createTransformer(e),n=tx(t),s=tx(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?tR.has(t)&&!s.values.length||tR.has(e)&&!n.values.length?function(t,e){return tR.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):F(tL(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],a=t.indexes[r][n[r]],o=t.values[a]??0;i[s]=o,n[r]++}return i}(n,s),s.values),i):(N(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tS(t,e))};function tB(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?tM(t,e,i):tO(t)(t,e)}let tq=t=>{let e=({timestamp:e})=>t(e);return{start:()=>f.update(e,!0),stop:()=>m(e),now:()=>y.isProcessing?y.timestamp:S.now()}},tU=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=t(e/(s-1))+", ";return`linear(${n.substring(0,n.length-2)})`};function tN(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function t_(t,e,i){var n,s;let r=Math.max(e-5,0);return n=i-t(r),(s=e-r)?1e3/s*n:0}let t$={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function tW(t,e){return t*Math.sqrt(1-e*e)}let tH=["duration","bounce"],tQ=["stiffness","damping","mass"];function tz(t,e){return e.some(e=>void 0!==t[e])}function tK(t=t$.visualDuration,e=t$.bounce){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:r}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=function(t){let e={velocity:t$.velocity,stiffness:t$.stiffness,damping:t$.damping,mass:t$.mass,isResolvedFromDuration:!1,...t};if(!tz(t,tQ)&&tz(t,tH))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*I(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:t$.mass,stiffness:n,damping:s}}else{let i=function({duration:t=t$.duration,bounce:e=t$.bounce,velocity:i=t$.velocity,mass:n=t$.mass}){let s,r;N(t<=B(t$.maxDuration),"Spring duration must be 10 seconds or less");let a=1-e;a=I(t$.minDamping,t$.maxDamping,a),t=I(t$.minDuration,t$.maxDuration,q(t)),a<1?(s=e=>{let n=e*a,s=n*t;return .001-(n-i)/tW(e,a)*Math.exp(-s)},r=e=>{let n=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-n),l=tW(Math.pow(e,2),a);return(n*i+i-r)*o*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let o=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=B(t),isNaN(o))return{stiffness:t$.stiffness,damping:t$.damping,duration:t};{let e=Math.pow(o,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:t$.mass}).isResolvedFromDuration=!0}return e}({...n,velocity:-q(n.velocity||0)}),m=p||0,y=h/(2*Math.sqrt(u*c)),g=o-a,v=q(Math.sqrt(u/c)),x=5>Math.abs(g);if(s||(s=x?t$.restSpeed.granular:t$.restSpeed.default),r||(r=x?t$.restDelta.granular:t$.restDelta.default),y<1){let t=tW(v,y);i=e=>o-Math.exp(-y*v*e)*((m+y*v*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===y)i=t=>o-Math.exp(-v*t)*(g+(m+v*g)*t);else{let t=v*Math.sqrt(y*y-1);i=e=>{let i=Math.exp(-y*v*e),n=Math.min(t*e,300);return o-i*((m+y*v*g)*Math.sinh(n)+t*g*Math.cosh(n))/t}}let b={calculatedDuration:f&&d||null,next:t=>{let e=i(t);if(f)l.done=t>=d;else{let n=0===t?m:0;y<1&&(n=0===t?B(m):t_(i,t,e));let a=Math.abs(o-e)<=r;l.done=Math.abs(n)<=s&&a}return l.value=l.done?o:e,l},toString:()=>{let t=Math.min(tN(b),2e4),e=tU(e=>b.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return b}function tY({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],f={done:!1,value:p},m=t=>void 0!==o&&t<o||void 0!==l&&t>l,y=t=>void 0===o?l:void 0===l?o:Math.abs(o-t)<Math.abs(l-t)?o:l,g=i*e,v=p+g,x=void 0===a?v:a(v);x!==v&&(g=x-p);let b=t=>-g*Math.exp(-t/n),w=t=>x+b(t),P=t=>{let e=b(t),i=w(t);f.done=Math.abs(e)<=u,f.value=f.done?x:i},T=t=>{m(f.value)&&(c=t,d=tK({keyframes:[f.value,y(f.value)],velocity:t_(w,t,f.value),damping:s,stiffness:r,restDelta:u,restSpeed:h}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,P(t),T(t)),void 0!==c&&t>=c)?d.next(t-c):(e||P(t),f)}}}tK.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(tN(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:q(s)}}(t,100,tK);return t.ease=e.ease,t.duration=B(e.duration),t.type="keyframes",t};let tX=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tG(t,e,i,n){if(t===e&&i===n)return u;let s=e=>(function(t,e,i,n,s){let r,a,o=0;do(r=tX(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++o<12);return a})(e,0,1,t,i);return t=>0===t||1===t?t:tX(s(t),e,n)}let tZ=tG(.42,0,1,1),tJ=tG(0,0,.58,1),t0=tG(.42,0,.58,1),t1=t=>Array.isArray(t)&&"number"!=typeof t[0],t2=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,t5=t=>e=>1-t(1-e),t4=tG(.33,1.53,.69,.99),t6=t5(t4),t3=t2(t6),t9=t=>(t*=2)<1?.5*t6(t):.5*(2-Math.pow(2,-10*(t-1))),t7=t=>1-Math.sin(Math.acos(t)),t8=t5(t7),et=t2(t7),ee=t=>Array.isArray(t)&&"number"==typeof t[0],ei={linear:u,easeIn:tZ,easeInOut:t0,easeOut:tJ,circIn:t7,circInOut:et,circOut:t8,backIn:t6,backInOut:t3,backOut:t4,anticipate:t9},en=t=>"string"==typeof t,es=t=>{if(ee(t)){_(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,s]=t;return tG(e,i,n,s)}return en(t)?(_(void 0!==ei[t],`Invalid easing type '${t}'`),ei[t]):t},er=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function ea({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let s=t1(n)?n.map(es):es(n),r={done:!1,value:e[0]},a=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(_(r===e.length,"Both input and output ranges must be the same length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],s=i||h.mix||tB,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);e&&(r=F(Array.isArray(e)?e[i]||u:e,r)),n.push(r)}return n}(e,n,s),l=o.length,c=i=>{if(a&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=er(t[n],t[n+1],i);return o[n](s)};return i?e=>c(I(t[0],t[r-1],e)):c}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=er(0,e,n);t.push(tM(i,1,s))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(s)?s:e.map(()=>s||t0).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(r.value=a(e),r.done=e>=t,r)}}let eo=t=>null!==t;function el(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(eo),a=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return a&&void 0!==n?n:r[a]}let eu={decay:tY,inertia:tY,tween:ea,keyframes:ea,spring:tK};function eh(t){"string"==typeof t.type&&(t.type=eu[t.type])}class ec{constructor(){this.count=0,this.updateFinished()}get finished(){return this._finished}updateFinished(){this.count++,this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let ed=t=>t/100;class ep extends ec{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;if(t&&t.updatedAt!==S.now()&&this.tick(S.now()),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()},U.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;eh(t);let{type:e=ea,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:a}=t,o=e||ea;o!==ea&&"number"!=typeof a[0]&&(this.mixKeyframes=F(ed,tB(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===s&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=tN(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:s,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:c,repeatDelay:d,type:p,onUpdate:f,finalKeyframe:m}=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 y=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let v=this.currentTime,x=i;if(h){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,h+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/a)):"mirror"===c&&(x=r)),v=I(0,1,i)*a}let b=g?{done:!1,value:u[0]}:x.next(v);s&&(b.value=s(b.value));let{done:w}=b;g||null===o||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return P&&p!==tY&&(b.value=el(u,this.options,m,this.speed)),f&&f(b.value),P&&this.finish(),b}then(t,e){return this.finished.then(t,e)}get duration(){return q(this.calculatedDuration)}get time(){return q(this.currentTime)}set time(t){t=B(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)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(S.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=q(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=tq,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=i??n),"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(S.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown()}teardown(){this.notifyFinished(),this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,U.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),t.observe(this)}}let ef=t=>180*t/Math.PI,em=t=>eg(ef(Math.atan2(t[1],t[0]))),ey={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:em,rotateZ:em,skewX:t=>ef(Math.atan(t[1])),skewY:t=>ef(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},eg=t=>((t%=360)<0&&(t+=360),t),ev=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),ex=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),eb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ev,scaleY:ex,scale:t=>(ev(t)+ex(t))/2,rotateX:t=>eg(ef(Math.atan2(t[6],t[5]))),rotateY:t=>eg(ef(Math.atan2(-t[2],t[0]))),rotateZ:em,rotate:em,skewX:t=>ef(Math.atan(t[4])),skewY:t=>ef(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ew(t){return+!!t.includes("scale")}function eP(t,e){let i,n;if(!t||"none"===t)return ew(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=eb,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=ey,n=e}if(!n)return ew(e);let r=i[e],a=n[1].split(",").map(eA);return"function"==typeof r?r(a):a[r]}let eT=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return eP(i,e)};function eA(t){return parseFloat(t.trim())}let eS=t=>t===K||t===tu,eM=new Set(["x","y","z"]),eC=v.filter(t=>!eM.has(t)),eE={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>eP(e,"x"),y:(t,{transform:e})=>eP(e,"y")};eE.translateX=eE.x,eE.translateY=eE.y;let ek=new Set,eD=!1,eV=!1,eR=!1;function ej(){if(eV){let t=Array.from(ek).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return eC.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}eV=!1,eD=!1,ek.forEach(t=>t.complete(eR)),ek.clear()}function eO(){ek.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(eV=!0)})}class eL{constructor(t,e,i,n,s,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ek.add(this),eD||(eD=!0,f.read(eO),f.resolveKeyframes(ej))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ek.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ek.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let eF=t=>t.startsWith("--");function eI(t){let e;return()=>(void 0===e&&(e=t()),e)}let eB=eI(()=>void 0!==window.ScrollTimeline),eq={},eU=function(t,e){let i=eI(t);return()=>eq[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),eN=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,e_={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eN([0,.65,.55,1]),circOut:eN([.55,0,1,.45]),backIn:eN([.31,.01,.66,-.59]),backOut:eN([.33,1.53,.69,.99])};function e$(t){return"function"==typeof t&&"applyToOptions"in t}class eW extends ec{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,_("string"!=typeof t.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let l=function({type:t,...e}){return e$(t)&&eU()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?eU()?tU(e,i):"ease-out":ee(e)?eN(e):Array.isArray(e)?e.map(e=>t(e,i)||e_.easeOut):e_[e]}(o,s);Array.isArray(c)&&(h.easing=c),d.value&&U.waapi++;let p={delay:n,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};u&&(p.pseudoElement=u);let f=t.animate(h,p);return d.value&&f.finished.finally(()=>{U.waapi--}),f}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=el(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,i){eF(e)?t.style.setProperty(e,i):t.style[e]=i}(e,i,t),this.animation.cancel()}o?.(),this.notifyFinished()},this.animation.oncancel=()=>this.notifyFinished()}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"===t||"finished"===t||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return q(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get time(){return q(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=B(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&eB())?(this.animation.timeline=t,u):e(this)}}let eH={anticipate:t9,backInOut:t3,circInOut:et};class eQ extends eW{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in eH&&(t.ease=eH[t.ease])}(t),eh(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let a=new ep({...r,autoplay:!1}),o=B(this.finishedTime??this.time);e.setWithVelocity(a.sample(o-10).value,a.sample(o).value,10),a.stop()}}let ez=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tT.test(t)||"0"===t)&&!t.startsWith("url(")),eK=new Set(["opacity","clipPath","filter","transform"]),eY=eI(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class eX extends ec{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation?(this._animation.stop(),this.stopTimeline?.()):this.keyframeResolver?.cancel()},this.createdAt=S.now();let c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:o,motionValue:l,element:u,...h},d=u?.KeyframeResolver||eL;this.keyframeResolver=new d(a,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:s,type:r,velocity:a,delay:o,isHandoff:l,onUpdate:c}=i;this.resolvedAt=S.now(),!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=ez(s,e),o=ez(r,e);return N(a===o,`You are trying to animate ${e} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`),!!a&&!!o&&(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||e$(i))&&n)}(t,s,r,a)&&((h.instantAnimations||!o)&&c?.(el(t,i,e)),t[0]=t[t.length-1],i.duration=0,i.repeat=0);let d={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:a}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return eY()&&i&&eK.has(i)&&("transform"!==i||!l)&&!o&&!n&&"mirror"!==s&&0!==r&&"inertia"!==a}(d)?new eQ({...d,element:d.motionValue.owner.current}):new ep(d);p.finished.then(()=>this.notifyFinished()).catch(u),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(eR=!0,eO(),ej(),eR=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this.animation.cancel()}}let eG=t=>null!==t,eZ={type:"spring",stiffness:500,damping:25,restSpeed:10},eJ=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),e0={type:"keyframes",duration:.8},e1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e2=(t,{keyframes:e})=>e.length>2?e0:x.has(t)?t.startsWith("scale")?eJ(e[1]):eZ:e1,e5=(t,e,i,n={},s,r)=>a=>{let o=l(n,t)||{},u=o.delay||n.delay||0,{elapsed:c=0}=n;c-=B(u);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-c,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(o)&&Object.assign(d,e2(t,d)),d.duration&&(d.duration=B(d.duration)),d.repeatDelay&&(d.repeatDelay=B(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(d.duration=0,0!==d.delay||(p=!0)),(h.instantAnimations||h.skipAnimations)&&(p=!0,d.duration=0,d.delay=0),d.allowFlatten=!o.type&&!o.ease,p&&!r&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let s=t.filter(eG),r=e&&"loop"!==i&&e%2==1?0:s.length-1;return s[r]}(d.keyframes,o);if(void 0!==t){f.update(()=>{d.onUpdate(t),d.onComplete()});return}}return new eX(d)};function e4(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:a,...u}=e;n&&(r=n);let h=[],c=s&&t.animationState&&t.animationState.getState()[s];for(let e in u){let n=t.getValue(e,t.latestValues[e]??null),s=u[e];if(void 0===s||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let a={delay:i,...l(r||{},e)},o=n.get();if(void 0!==o&&!n.isAnimating&&!Array.isArray(s)&&s===o&&!a.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let i=t.props[O];if(i){let t=window.MotionHandoffAnimation(i,e,f);null!==t&&(a.startTime=t,d=!0)}}R(t,e),n.start(e5(e,n,s,t.shouldReduceMotion&&b.has(e)?{type:!1}:a,t,d));let p=n.animation;p&&h.push(p)}return a&&Promise.all(h).then(()=>{f.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=o(t,e)||{};for(let e in s={...s,...i}){var r;let i=D(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,k(i))}}(t,a)})}),h}function e6(t,e,i={}){let n=o(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(e4(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=s;return function(t,e,i=0,n=0,s=1,r){let a=[],o=(t.variantChildren.size-1)*n,l=1===s?(t=0)=>t*n:(t=0)=>o-t*n;return Array.from(t.variantChildren).sort(e3).forEach((t,n)=>{t.notify("AnimationStart",e),a.push(e6(t,e,{...r,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(a)}(t,e,r+n,a,o,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([r(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then(()=>e())}}function e3(t,e){return t.sortNodePosition(e)}function e9(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function e7(t){return"string"==typeof t||Array.isArray(t)}let e8=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],it=["initial",...e8],ie=it.length,ii=[...e8].reverse(),is=e8.length;function ir(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ia(){return{animate:ir(!0),whileInView:ir(),whileHover:ir(),whileTap:ir(),whileDrag:ir(),whileFocus:ir(),exit:ir()}}class io{constructor(t){this.isMounted=!1,this.node=t}update(){}}class il extends io{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 n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>e6(t,e,i)));else if("string"==typeof e)n=e6(t,e,i);else{let s="function"==typeof e?o(t,e,i.custom):e;n=Promise.all(e4(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=ia(),n=!0,r=e=>(i,n)=>{let s=o(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function a(a){let{props:l}=t,u=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<ie;t++){let n=it[t],s=e.props[n];(e7(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},h=[],c=new Set,d={},p=1/0;for(let e=0;e<is;e++){var f,m;let o=ii[e],y=i[o],g=void 0!==l[o]?l[o]:u[o],v=e7(g),x=o===a?y.isActive:null;!1===x&&(p=e);let b=g===u[o]&&g!==l[o]&&v;if(b&&n&&t.manuallyAnimateOnMount&&(b=!1),y.protectedKeys={...d},!y.isActive&&null===x||!g&&!y.prevProp||s(g)||"boolean"==typeof g)continue;let w=(f=y.prevProp,"string"==typeof(m=g)?m!==f:!!Array.isArray(m)&&!e9(m,f)),P=w||o===a&&y.isActive&&!b&&v||e>p&&v,T=!1,A=Array.isArray(g)?g:[g],S=A.reduce(r(o),{});!1===x&&(S={});let{prevResolvedValues:M={}}=y,C={...M,...S},E=e=>{P=!0,c.has(e)&&(T=!0,c.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=S[t],i=M[t];if(d.hasOwnProperty(t))continue;let n=!1;(D(e)&&D(i)?e9(e,i):e===i)?void 0!==e&&c.has(t)?E(t):y.protectedKeys[t]=!0:null!=e?E(t):c.add(t)}y.prevProp=g,y.prevResolvedValues=S,y.isActive&&(d={...d,...S}),n&&t.blockInitialAnimation&&(P=!1);let k=!(b&&w)||T;P&&k&&h.push(...A.map(t=>({animation:t,options:{type:o}})))}if(c.size){let e={};if("boolean"!=typeof l.initial){let i=o(t,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(e.transition=i.transition)}c.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),h.push({animation:e})}let y=!!h.length;return n&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(y=!1),n=!1,y?e(h):Promise.resolve()}return{animateChanges:a,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=a(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=ia(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();s(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let iu=0;class ih extends io{constructor(){super(...arguments),this.id=iu++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let ic={x:!1,y:!1};function id(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let ip=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function im(t){return{point:{x:t.pageX,y:t.pageY}}}let iy=t=>e=>ip(e)&&t(e,im(e));function ig(t,e,i,n){return id(t,e,iy(i),n)}function iv({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function ix(t){return t.max-t.min}function ib(t,e,i,n=.5){t.origin=n,t.originPoint=tM(e.min,e.max,t.origin),t.scale=ix(i)/ix(e),t.translate=tM(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function iw(t,e,i,n){ib(t.x,e.x,i.x,n?n.originX:void 0),ib(t.y,e.y,i.y,n?n.originY:void 0)}function iP(t,e,i){t.min=i.min+e.min,t.max=t.min+ix(e)}function iT(t,e,i){t.min=e.min-i.min,t.max=t.min+ix(e)}function iA(t,e,i){iT(t.x,e.x,i.x),iT(t.y,e.y,i.y)}let iS=()=>({translate:0,scale:1,origin:0,originPoint:0}),iM=()=>({x:iS(),y:iS()}),iC=()=>({min:0,max:0}),iE=()=>({x:iC(),y:iC()});function ik(t){return[t("x"),t("y")]}function iD(t){return void 0===t||1===t}function iV({scale:t,scaleX:e,scaleY:i}){return!iD(t)||!iD(e)||!iD(i)}function iR(t){return iV(t)||ij(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ij(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function iO(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function iL(t,e=0,i=1,n,s){t.min=iO(t.min,e,i,n,s),t.max=iO(t.max,e,i,n,s)}function iF(t,{x:e,y:i}){iL(t.x,e.translate,e.scale,e.originPoint),iL(t.y,i.translate,i.scale,i.originPoint)}function iI(t,e){t.min=t.min+e,t.max=t.max+e}function iB(t,e,i,n,s=.5){let r=tM(t.min,t.max,s);iL(t,e,i,r,n)}function iq(t,e){iB(t.x,e.x,e.scaleX,e.scale,e.originX),iB(t.y,e.y,e.scaleY,e.scale,e.originY)}function iU(t,e){return iv(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let iN=({current:t})=>t?t.ownerDocument.defaultView:null;function i_(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let i$=(t,e)=>Math.abs(t-e);class iW{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=iz(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(i$(t.x,e.x)**2+i$(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=y;this.history.push({...n,timestamp:s});let{onStart:r,onMove:a}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iH(e,this.transformPagePoint),f.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=iz("pointercancel"===t.type?this.lastMoveEventInfo:iH(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!ip(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let r=iH(im(t),this.transformPagePoint),{point:a}=r,{timestamp:o}=y;this.history=[{...a,timestamp:o}];let{onSessionStart:l}=e;l&&l(t,iz(r,this.history)),this.removeListeners=F(ig(this.contextWindow,"pointermove",this.handlePointerMove),ig(this.contextWindow,"pointerup",this.handlePointerUp),ig(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),m(this.updatePoint)}}function iH(t,e){return e?{point:e(t.point)}:t}function iQ(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iz({point:t},e){return{point:t,delta:iQ(t,iK(e)),offset:iQ(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=iK(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>B(.1)));)i--;if(!n)return{x:0,y:0};let r=q(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let a={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,.1)}}function iK(t){return t[t.length-1]}function iY(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 iX(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function iG(t,e,i){return{min:iZ(t,e),max:iZ(t,i)}}function iZ(t,e){return"number"==typeof t?t:t[e]||0}let iJ=new WeakMap;class i0{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iE(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new iW(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(im(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(ic[t])return null;else return ic[t]=!0,()=>{ic[t]=!1};return ic.x||ic.y?null:(ic.x=ic.y=!0,()=>{ic.x=ic.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ik(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tl.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=ix(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&f.postRender(()=>s(t,e)),R(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(n&&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}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&r(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>ik(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:iN(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:s}=this.getProps();s&&f.postRender(()=>s(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!i1(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?tM(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?tM(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.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,n=this.constraints;t&&i_(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:iY(t.x,i,s),y:iY(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iG(t,"left","right"),y:iG(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ik(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!i_(e))return!1;let n=e.current;_(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=function(t,e,i){let n=iU(t,i),{scroll:s}=e;return s&&(iI(n.x,s.offset.x),iI(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),a={x:iX((t=s.layout.layoutBox).x,r.x),y:iX(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}}(a));this.hasMutatedConstraints=!!t,t&&(a=iv(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(ik(a=>{if(!i1(a,e,this.currentDirection))return;let l=o&&o[a]||{};r&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return R(this.visualElement,t),i.start(e5(t,i,0,e,this.visualElement,!1))}stopAnimation(){ik(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ik(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){ik(e=>{let{drag:i}=this.getProps();if(!i1(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e];s.set(t[e]-tM(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!i_(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};ik(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=ix(t),s=ix(e);return s>n?i=er(e.min,e.max-n,t.min):n>s&&(i=er(t.min,t.max-s,e.min)),I(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),ik(e=>{if(!i1(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set(tM(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;iJ.set(this.visualElement,this);let t=ig(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();i_(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),f.read(e);let s=id(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ik(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:a}}}function i1(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class i2 extends io{constructor(t){super(t),this.removeGroupControls=u,this.removeListeners=u,this.controls=new i0(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||u}unmount(){this.removeGroupControls(),this.removeListeners()}}let i5=t=>(e,i)=>{t&&f.postRender(()=>t(e,i))};class i4 extends io{constructor(){super(...arguments),this.removePointerDownListener=u}onPointerDown(t){this.session=new iW(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iN(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:i5(t),onStart:i5(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&f.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=ig(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var i6,i3,i9=i(45704);let{schedule:i7}=p(queueMicrotask,!1);var i8=i(66724),nt=i(28730),ne=i(23757);let ni=(0,i8.createContext)({}),nn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ns(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nr={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tu.test(t))return t;else t=parseFloat(t);let i=ns(t,e.target.x),n=ns(t,e.target.y);return`${i}% ${n}%`}},na={};class no extends i8.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;for(let t in nu)na[t]=nu[t],W(t)&&(na[t].isCSSVariable=!0);s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),nn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent===s||(s?r.promote():r.relegate()||f.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),i7.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nl(t){let[e,i]=(0,nt.xQ)(),n=(0,i8.useContext)(ne.L);return(0,i9.jsx)(no,{...t,layoutGroup:n,switchLayoutGroup:(0,i8.useContext)(ni),isPresent:e,safeToRemove:i})}let nu={borderRadius:{...nr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nr,borderTopRightRadius:nr,borderBottomLeftRadius:nr,borderBottomRightRadius:nr,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tT.parse(t);if(n.length>5)return t;let s=tT.createTransformer(t),r=+("number"!=typeof n[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+r]/=a,n[1+r]/=o;let l=tM(a,o,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}},nh=(t,e)=>t.depth-e.depth;class nc{constructor(){this.children=[],this.isDirty=!1}add(t){w(this.children,t),this.isDirty=!0}remove(t){P(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nh),this.isDirty=!1,this.children.forEach(t)}}function nd(t){return V(t)?t.get():t}let np=["TopLeft","TopRight","BottomLeft","BottomRight"],nf=np.length,nm=t=>"string"==typeof t?parseFloat(t):t,ny=t=>"number"==typeof t||tu.test(t);function ng(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nv=nb(0,.5,t8),nx=nb(.5,.95,u);function nb(t,e,i){return n=>n<t?0:n>e?1:i(er(t,e,n))}function nw(t,e){t.min=e.min,t.max=e.max}function nP(t,e){nw(t.x,e.x),nw(t.y,e.y)}function nT(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nA(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function nS(t,e,[i,n,s],r,a){!function(t,e=0,i=1,n=.5,s,r=t,a=t){if(tl.test(e)&&(e=parseFloat(e),e=tM(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=tM(r.min,r.max,n);t===r&&(o-=e),t.min=nA(t.min,e,i,o,s),t.max=nA(t.max,e,i,o,s)}(t,e[i],e[n],e[s],e.scale,r,a)}let nM=["x","scaleX","originX"],nC=["y","scaleY","originY"];function nE(t,e,i,n){nS(t.x,e,nM,i?i.x:void 0,n?n.x:void 0),nS(t.y,e,nC,i?i.y:void 0,n?n.y:void 0)}function nk(t){return 0===t.translate&&1===t.scale}function nD(t){return nk(t.x)&&nk(t.y)}function nV(t,e){return t.min===e.min&&t.max===e.max}function nR(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nj(t,e){return nR(t.x,e.x)&&nR(t.y,e.y)}function nO(t){return ix(t.x)/ix(t.y)}function nL(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nF{constructor(){this.members=[]}add(t){w(this.members,t),t.scheduleRender()}remove(t){if(P(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nI={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},nB=["","X","Y","Z"],nq={visibility:"hidden"},nU=0;function nN(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function n_({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=nU++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,d.value&&(nI.nodes=nI.calculatedTargetDeltas=nI.calculatedProjections=0),this.nodes.forEach(nH),this.nodes.forEach(nZ),this.nodes.forEach(nJ),this.nodes.forEach(nQ),d.addProjectionMetrics&&d.addProjectionMetrics(nI)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new nc)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new T),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=S.now(),n=({timestamp:s})=>{let r=s-i;r>=250&&(m(n),t(r-e))};return f.setup(n,!0),()=>m(n)}(n,250),nn.hasAnimatedSinceResize&&(nn.hasAnimatedSinceResize=!1,this.nodes.forEach(nG))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||n6,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),u=!this.targetLayout||!nj(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...l(r,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||nG(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}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(),m(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(n0),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 n=i.props[O];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",f,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nK);return}this.isUpdating||this.nodes.forEach(nY),this.isUpdating=!1,this.nodes.forEach(nX),this.nodes.forEach(n$),this.nodes.forEach(nW),this.clearAllSnapshots();let t=S.now();y.delta=I(0,1e3/60,t-y.timestamp),y.timestamp=t,y.isProcessing=!0,g.update.process(y),g.preRender.process(y),g.render.process(y),y.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,i7.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nz),this.sharedNodes.forEach(n1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,f.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){f.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||ix(this.snapshot.measuredBox.x)||ix(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iE(),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=n(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(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nD(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||iR(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),n7((e=n).x),n7(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return iE();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(st))){let{scroll:t}=this.root;t&&(iI(e.x,t.offset.x),iI(e.y,t.offset.y))}return e}removeElementScroll(t){let e=iE();if(nP(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&nP(e,t),iI(e.x,s.offset.x),iI(e.y,s.offset.y))}return e}applyTransform(t,e=!1){let i=iE();nP(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&iq(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),iR(n.latestValues)&&iq(i,n.latestValues)}return iR(this.latestValues)&&iq(i,this.latestValues),i}removeTransform(t){let e=iE();nP(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!iR(i.latestValues))continue;iV(i.latestValues)&&i.updateSnapshot();let n=iE();nP(n,i.measurePageBox()),nE(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return iR(this.latestValues)&&nE(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!==y.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:n,layoutId:s}=this.options;if(this.layout&&(n||s)){if(this.resolvedRelativeTargetAt=y.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iE(),this.relativeTargetOrigin=iE(),iA(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),nP(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=iE(),this.targetWithTransforms=iE()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var r,a,o;this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,o=this.relativeParent.target,iP(r.x,a.x,o.x),iP(r.y,a.y,o.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nP(this.target,this.layout.layoutBox),iF(this.target,this.targetDelta)):nP(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iE(),this.relativeTargetOrigin=iE(),iA(this.relativeTargetOrigin,this.target,t.target),nP(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}d.value&&nI.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||iV(this.parent.latestValues)||ij(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)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===y.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;nP(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let s,r,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){r=(s=i[o]).projectionDelta;let{visualElement:a}=s.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&iq(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,iF(t,r)),n&&iR(s.latestValues)&&iq(t,s.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=iE());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nT(this.prevProjectionDelta.x,this.projectionDelta.x),nT(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iw(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&nL(this.projectionDelta.x,this.prevProjectionDelta.x)&&nL(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),d.value&&nI.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iM(),this.projectionDelta=iM(),this.projectionDeltaWithTransform=iM()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},a=iM();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=iE(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(n4));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(n2(a.x,t.x,n),n2(a.y,t.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f,m,y;if(iA(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=o,y=n,n5(p.x,f.x,m.x,y),n5(p.y,f.y,m.y,y),i&&(u=this.relativeTarget,d=i,nV(u.x,d.x)&&nV(u.y,d.y)))this.isProjectionDirty=!1;i||(i=iE()),nP(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=tM(0,i.opacity??1,nv(n)),t.opacityExit=tM(e.opacity??1,0,nx(n))):r&&(t.opacity=tM(e.opacity??1,i.opacity??1,n));for(let s=0;s<nf;s++){let r=`border${np[s]}Radius`,a=ng(e,r),o=ng(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||ny(a)===ny(o)?(t[r]=Math.max(tM(nm(a),nm(o),n),0),(tl.test(o)||tl.test(a))&&(t[r]+="%")):t[r]=o)}(e.rotate||i.rotate)&&(t.rotate=tM(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(m(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=f.update(()=>{nn.hasAnimatedSinceResize=!0,U.layout++,this.currentAnimation=function(t,e,i){let n=V(0)?0:k(t);return n.start(e5("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{U.layout--},onComplete:()=>{U.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&n8(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||iE();let e=ix(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=ix(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nP(e,i),iq(e,s),iw(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nF),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 n=this.getStack();n&&n.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 n={};i.z&&nN("z",t,n,this.animationValues);for(let e=0;e<nB.length;e++)nN(`rotate${nB[e]}`,t,n,this.animationValues),nN(`skew${nB[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return nq;let e={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.opacity="",e.pointerEvents=nd(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none",e;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=nd(t?.pointerEvents)||""),this.hasProjected&&!iR(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let s=n.animationValues||n.latestValues;this.applyTransformsToTarget(),e.transform=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,a=i?.z||0;if((s||r||a)&&(n=`translate3d(${s}px, ${r}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:a,skewY:o}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),i&&(e.transform=i(s,e.transform));let{x:r,y:a}=this.projectionDelta;for(let t in e.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,n.animationValues?e.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:e.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,na){if(void 0===s[t])continue;let{correct:i,applyTo:r,isCSSVariable:a}=na[t],o="none"===e.transform?s[t]:i(s[t],n);if(r){let t=r.length;for(let i=0;i<t;i++)e[r[i]]=o}else a?this.options.visualElement.renderState.vars[t]=o:e[t]=o}return this.options.layoutId&&(e.pointerEvents=n===this?nd(t?.pointerEvents)||"":"none"),e}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(nK),this.root.sharedNodes.clear()}}}function n$(t){t.updateLayout()}function nW(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;"size"===s?ik(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=ix(n);n.min=i[t].min,n.max=n.min+s}):n8(s,e.layoutBox,i)&&ik(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],a=ix(i[n]);s.max=s.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=iM();iw(a,i,e.layoutBox);let o=iM();r?iw(o,t.applyTransform(n,!0),e.measuredBox):iw(o,i,e.layoutBox);let l=!nD(a),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=iE();iA(a,e.layoutBox,s.layoutBox);let o=iE();iA(o,i,r.layoutBox),nj(a,o)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function nH(t){d.value&&nI.nodes++,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 nQ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nz(t){t.clearSnapshot()}function nK(t){t.clearMeasurements()}function nY(t){t.isLayoutDirty=!1}function nX(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function nG(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nZ(t){t.resolveTargetDelta()}function nJ(t){t.calcProjection()}function n0(t){t.resetSkewAndRotation()}function n1(t){t.removeLeadSnapshot()}function n2(t,e,i){t.translate=tM(e.translate,0,i),t.scale=tM(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function n5(t,e,i,n){t.min=tM(e.min,i.min,n),t.max=tM(e.max,i.max,n)}function n4(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let n6={duration:.45,ease:[.4,0,.1,1]},n3=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),n9=n3("applewebkit/")&&!n3("chrome/")?Math.round:u;function n7(t){t.min=n9(t.min),t.max=n9(t.max)}function n8(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nO(e)-nO(i)))}function st(t){return t!==t.root&&t.scroll?.wasRoot}let se=n_({attachResizeListener:(t,e)=>id(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),si={current:void 0},sn=n_({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!si.current){let t=new se({});t.mount(window),t.setOptions({layoutScroll:!0}),si.current=t}return si.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function ss(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function sr(t){return!("touch"===t.pointerType||ic.x||ic.y)}function sa(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&f.postRender(()=>s(e,im(e)))}class so extends io{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=ss(t,i),a=t=>{if(!sr(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let r=t=>{sr(t)&&(n(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,s)};return n.forEach(t=>{t.addEventListener("pointerenter",a,s)}),r}(t,(t,e)=>(sa(this.node,e,"Start"),t=>sa(this.node,t,"End"))))}unmount(){}}class sl extends io{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=F(id(this.node.current,"focus",()=>this.onFocus()),id(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let su=(t,e)=>!!e&&(t===e||su(t,e.parentElement)),sh=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),sc=new WeakSet;function sd(t){return e=>{"Enter"===e.key&&t(e)}}function sp(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let sf=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=sd(()=>{if(sc.has(i))return;sp(i,"down");let t=sd(()=>{sp(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sp(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function sm(t){return ip(t)&&!(ic.x||ic.y)}function sy(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&f.postRender(()=>s(e,im(e)))}class sg extends io{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=ss(t,i),a=t=>{let n=t.currentTarget;if(!sm(t)||sc.has(n))return;sc.add(n);let r=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),sc.has(n)&&sc.delete(n),sm(t)&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||su(n,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{if((i.useGlobalTarget?window:t).addEventListener("pointerdown",a,s),t instanceof HTMLElement)t.addEventListener("focus",t=>sf(t,s)),!sh.has(t.tagName)&&-1===t.tabIndex&&!t.hasAttribute("tabindex")&&(t.tabIndex=0)}),r}(t,(t,e)=>(sy(this.node,e,"Start"),(t,{success:e})=>sy(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let sv=new WeakMap,sx=new WeakMap,sb=t=>{let e=sv.get(t.target);e&&e(t)},sw=t=>{t.forEach(sb)},sP={some:0,all:1};class sT extends io{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:s}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:sP[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;sx.has(i)||sx.set(i,{});let n=sx.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(sw,{root:t,...e})),n[s]}(e);return sv.set(t,i),n.observe(t),()=>{sv.delete(t),n.unobserve(t)}}(this.node.current,r,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let sA=(0,i8.createContext)({strict:!1});var sS=i(40476);let sM=(0,i8.createContext)({});function sC(t){return s(t.animate)||it.some(e=>e7(t[e]))}function sE(t){return!!(sC(t)||t.variants)}function sk(t){return Array.isArray(t)?t.join(" "):t}var sD=i(67124);let sV={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},sR={};for(let t in sV)sR[t]={isEnabled:e=>sV[t].some(t=>!!e[t])};let sj=Symbol.for("motionComponentSymbol");var sO=i(81221),sL=i(44926);function sF(t,{layout:e,layoutId:i}){return x.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!na[t]||"opacity"===t)}let sI=(t,e)=>e&&"number"==typeof t?e.transform(t):t,sB={...K,transform:Math.round},sq={borderWidth:tu,borderTopWidth:tu,borderRightWidth:tu,borderBottomWidth:tu,borderLeftWidth:tu,borderRadius:tu,radius:tu,borderTopLeftRadius:tu,borderTopRightRadius:tu,borderBottomRightRadius:tu,borderBottomLeftRadius:tu,width:tu,maxWidth:tu,height:tu,maxHeight:tu,top:tu,right:tu,bottom:tu,left:tu,padding:tu,paddingTop:tu,paddingRight:tu,paddingBottom:tu,paddingLeft:tu,margin:tu,marginTop:tu,marginRight:tu,marginBottom:tu,marginLeft:tu,backgroundPositionX:tu,backgroundPositionY:tu,rotate:to,rotateX:to,rotateY:to,rotateZ:to,scale:X,scaleX:X,scaleY:X,scaleZ:X,skew:to,skewX:to,skewY:to,distance:tu,translateX:tu,translateY:tu,translateZ:tu,x:tu,y:tu,z:tu,perspective:tu,transformPerspective:tu,opacity:Y,originX:td,originY:td,originZ:tu,zIndex:sB,fillOpacity:Y,strokeOpacity:Y,numOctaves:sB},sU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sN=v.length;function s_(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,a=!1,o=!1;for(let t in e){let i=e[t];if(x.has(t)){a=!0;continue}if(W(t)){s[t]=i;continue}{let e=sI(i,sq[t]);t.startsWith("origin")?(o=!0,r[t]=e):n[t]=e}}if(!e.transform&&(a||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r<sN;r++){let a=v[r],o=t[a];if(void 0===o)continue;let l=!0;if(!(l="number"==typeof o?o===+!!a.startsWith("scale"):0===parseFloat(o))||i){let t=sI(o,sq[a]);if(!l){s=!1;let e=sU[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),o){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin=`${t} ${e} ${i}`}}let s$=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sW(t,e,i){for(let n in e)V(e[n])||sF(n,i)||(t[n]=e[n])}let sH=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function sQ(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||sH.has(t)}let sz=t=>!sQ(t);try{!function(t){t&&(sz=e=>e.startsWith("on")?!sQ(e):t(e))}(require("@emotion/is-prop-valid").default)}catch{}let sK=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function sY(t){if("string"!=typeof t||t.includes("-"));else if(sK.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let sX={offset:"stroke-dashoffset",array:"stroke-dasharray"},sG={offset:"strokeDashoffset",array:"strokeDasharray"};function sZ(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...o},l,u,h){if(s_(t,o,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?sX:sG;t[r.offset]=tu.transform(-n);let a=tu.transform(e),o=tu.transform(i);t[r.array]=`${a} ${o}`}(c,s,r,a,!1)}let sJ=()=>({...s$(),attrs:{}}),s0=t=>"string"==typeof t&&"svg"===t.toLowerCase();var s1=i(82141);let s2=t=>(e,i)=>{let n=(0,i8.useContext)(sM),r=(0,i8.useContext)(sO.t),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,r){return{latestValues:function(t,e,i,n){let r={},o=n(t,{});for(let t in o)r[t]=nd(o[t]);let{initial:l,animate:u}=t,h=sC(t),c=sE(t);e&&c&&!h&&!1!==t.inherit&&(void 0===l&&(l=e.initial),void 0===u&&(u=e.animate));let d=!!i&&!1===i.initial,p=(d=d||!1===l)?u:l;if(p&&"boolean"!=typeof p&&!s(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let n=a(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=d?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(i,n,r,t),renderState:e()}})(t,e,n,r);return i?o():(0,s1.M)(o)};function s5(t,e,i){let{style:n}=t,s={};for(let r in n)(V(n[r])||e.style&&V(e.style[r])||sF(r,t)||i?.getValue(r)?.liveStyle!==void 0)&&(s[r]=n[r]);return s}let s4={useVisualState:s2({scrapeMotionValuesFromProps:s5,createRenderState:s$})};function s6(t,e,i){let n=s5(t,e,i);for(let i in t)(V(t[i])||V(e[i]))&&(n[-1!==v.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}let s3={useVisualState:s2({scrapeMotionValuesFromProps:s6,createRenderState:sJ})},s9=t=>e=>e.test(t),s7=[K,tu,tl,to,tc,th,{test:t=>"auto"===t,parse:t=>t}],s8=t=>s7.find(s9(t)),rt=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),re=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ri=t=>/^0[^.\s]+$/u.test(t),rn=new Set(["brightness","contrast","saturate","opacity"]);function rs(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(Z)||[];if(!n)return t;let s=i.replace(n,""),r=+!!rn.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let rr=/\b([a-z-]*)\(.*?\)/gu,ra={...tT,getAnimatableNone:t=>{let e=t.match(rr);return e?e.map(rs).join(" "):t}},ro={...sq,color:tf,backgroundColor:tf,outlineColor:tf,fill:tf,stroke:tf,borderColor:tf,borderTopColor:tf,borderRightColor:tf,borderBottomColor:tf,borderLeftColor:tf,filter:ra,WebkitFilter:ra},rl=t=>ro[t];function ru(t,e){let i=rl(t);return i!==ra&&(i=tT),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let rh=new Set(["auto","none","0"]);class rc extends eL{constructor(t,e,i,n,s){super(t,e,i,n,s,!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 n=t[i];if("string"==typeof n&&Q(n=n.trim())){let s=function t(e,i,n=1){_(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[s,r]=function(t){let e=re.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let a=window.getComputedStyle(i).getPropertyValue(s);if(a){let t=a.trim();return rt(t)?parseFloat(t):t}return Q(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!b.has(i)||2!==t.length)return;let[n,s]=t,r=s8(n),a=s8(s);if(r!==a)if(eS(r)&&eS(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else eE[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||ri(n)))&&i.push(e)}if(i.length){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!rh.has(e)&&tx(e).values.length&&(n=t[s]),s++}if(n&&e)for(let s of i)t[s]=ru(e,n)}}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eE[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=eE[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let rd=[...s7,tf,tT],rp=t=>rd.find(s9(t));var rf=i(43411),rm=i(71728);let ry=new WeakMap,rg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class rv{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eL,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=S.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,f.render(this.render,!1,!0))};let{latestValues:o,renderState:l}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=sC(e),this.isVariantNode=sE(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==o[t]&&V(e)&&e.set(o[t],!1)}}mount(t){this.current=t,ry.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),rm.r.current||(0,rf.U)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rm.O.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),m(this.notifyUpdate),m(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=x.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&f.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),r(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in sR){let e=sR[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iE()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<rg.length;e++){let i=rg[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if(V(s))t.addValue(n,s);else if(V(r))t.addValue(n,k(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,k(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=k(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(rt(i)||ri(i))?i=parseFloat(i):!rp(i)&&tT.test(e)&&(i=ru(t,e)),this.setBaseTarget(t,V(i)?i.get():i)),V(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=a(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||V(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new T),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class rx extends rv{constructor(){super(...arguments),this.KeyframeResolver=rc}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;V(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function rb(t,{style:e,vars:i},n,s){for(let r in Object.assign(t.style,e,s&&s.getProjectionStyles(n)),i)t.style.setProperty(r,i[r])}class rw extends rx{constructor(){super(...arguments),this.type="html",this.renderInstance=rb}readValueFromInstance(t,e){if(x.has(e))return eT(t,e);{let i=window.getComputedStyle(t),n=(W(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return iU(t,e)}build(t,e,i){s_(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return s5(t,e,i)}}let rP=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class rT extends rx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iE}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(x.has(e)){let t=rl(e);return t&&t.default||0}return e=rP.has(e)?e:j(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return s6(t,e,i)}build(t,e,i){sZ(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in rb(t,e,void 0,n),e.attrs)t.setAttribute(rP.has(i)?i:j(i),e.attrs[i])}mount(t){this.isSVGTag=s0(t.tagName),super.mount(t)}}let rA=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((i6={animation:{Feature:il},exit:{Feature:ih},inView:{Feature:sT},tap:{Feature:sg},focus:{Feature:sl},hover:{Feature:so},pan:{Feature:i4},drag:{Feature:i2,ProjectionNode:sn,MeasureLayout:nl},layout:{ProjectionNode:sn,MeasureLayout:nl}},i3=(t,e)=>sY(t)?new rT(e):new rw(e,{allowProjection:t!==i8.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:s,useRender:r,useVisualState:a,Component:o}=t;function l(t,e){var i,n,l;let u,h={...(0,i8.useContext)(sS.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,i8.useContext)(ne.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:c}=h,d=function(t){let{initial:e,animate:i}=function(t,e){if(sC(t)){let{initial:e,animate:i}=t;return{initial:!1===e||e7(e)?e:void 0,animate:e7(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,i8.useContext)(sM));return(0,i8.useMemo)(()=>({initial:e,animate:i}),[sk(e),sk(i)])}(t),p=a(t,c);if(!c&&sD.B){n=0,l=0,(0,i8.useContext)(sA).strict;let t=function(t){let{drag:e,layout:i}=sR;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(h);u=t.MeasureLayout,d.visualElement=function(t,e,i,n,s){let{visualElement:r}=(0,i8.useContext)(sM),a=(0,i8.useContext)(sA),o=(0,i8.useContext)(sO.t),l=(0,i8.useContext)(sS.Q).reducedMotion,u=(0,i8.useRef)(null);n=n||a.renderer,!u.current&&n&&(u.current=n(t,{visualState:e,parent:r,props:i,presenceContext:o,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:l}));let h=u.current,c=(0,i8.useContext)(ni);h&&!h.projection&&s&&("html"===h.type||"svg"===h.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!a||o&&i_(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(u.current,i,s,c);let d=(0,i8.useRef)(!1);(0,i8.useInsertionEffect)(()=>{h&&d.current&&h.update(i,o)});let p=i[O],f=(0,i8.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,sL.E)(()=>{h&&(d.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),i7.render(h.render),f.current&&h.animationState&&h.animationState.animateChanges())}),(0,i8.useEffect)(()=>{h&&(!f.current&&h.animationState&&h.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),f.current=!1))}),h}(o,p,h,s,t.ProjectionNode)}return(0,i9.jsxs)(sM.Provider,{value:d,children:[u&&d.visualElement?(0,i9.jsx)(u,{visualElement:d.visualElement,...h}):null,r(o,t,(i=d.visualElement,(0,i8.useCallback)(t=>{t&&p.onMount&&p.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):i_(e)&&(e.current=t))},[i])),p,c,d.visualElement)]})}n&&function(t){for(let e in t)sR[e]={...sR[e],...t[e]}}(n),l.displayName="motion.".concat("string"==typeof o?o:"create(".concat(null!==(i=null!==(e=o.displayName)&&void 0!==e?e:o.name)&&void 0!==i?i:"",")"));let u=(0,i8.forwardRef)(l);return u[sj]=o,u}({...sY(t)?s3:s4,preloadedFeatures:i6,useRender:function(t=!1){return(e,i,n,{latestValues:s},r)=>{let a=(sY(e)?function(t,e,i,n){let s=(0,i8.useMemo)(()=>{let i=sJ();return sZ(i,e,s0(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};sW(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return sW(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,i8.useMemo)(()=>{let i=s$();return s_(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,s,r,e),o=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(sz(s)||!0===i&&sQ(s)||!e&&!sQ(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(i,"string"==typeof e,t),l=e!==i8.Fragment?{...o,...a,ref:n}:{},{children:u}=i,h=(0,i8.useMemo)(()=>V(u)?u.get():u,[u]);return(0,i8.createElement)(e,{...l,children:h})}}(e),createVisualElement:i3,Component:t})}))},95151:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return i}});let i="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(t){let e=Date.now();return self.setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(t){return clearTimeout(t)};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}}]);