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

AltStyle によって変換されたページ (->オリジナル) /