@wix/interact 2.0.0-rc.2 → 2.0.0-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +129 -31
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/react.js +1 -1
- package/dist/cjs/react.js.map +1 -1
- package/dist/cjs/web.js +1 -1
- package/dist/cjs/web.js.map +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/react.js +2 -2
- package/dist/es/react.js.map +1 -1
- package/dist/es/web.js +9 -9
- package/dist/es/web.js.map +1 -1
- package/dist/index-CKecAdEz.mjs +7348 -0
- package/dist/index-CKecAdEz.mjs.map +1 -0
- package/dist/index-DlTJdKHL.js +18 -0
- package/dist/index-DlTJdKHL.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/core/Interact.d.ts +9 -4
- package/dist/types/core/Interact.d.ts.map +1 -1
- package/dist/types/core/InteractionController.d.ts +7 -2
- package/dist/types/core/InteractionController.d.ts.map +1 -1
- package/dist/types/core/add.d.ts.map +1 -1
- package/dist/types/core/remove.d.ts +1 -1
- package/dist/types/core/remove.d.ts.map +1 -1
- package/dist/types/handlers/animationEnd.d.ts.map +1 -1
- package/dist/types/handlers/click.d.ts.map +1 -1
- package/dist/types/handlers/hover.d.ts.map +1 -1
- package/dist/types/handlers/utilities.d.ts.map +1 -1
- package/dist/types/handlers/viewEnter.d.ts +2 -0
- package/dist/types/handlers/viewEnter.d.ts.map +1 -1
- package/dist/types/react/Interaction.d.ts.map +1 -1
- package/dist/types/types.d.ts +11 -5
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/web/InteractElement.d.ts +3 -1
- package/dist/types/web/InteractElement.d.ts.map +1 -1
- package/docs/README.md +5 -7
- package/package.json +4 -3
- package/rules/Integration.md +87 -39
- package/rules/full-lean.md +63 -7
- package/rules/{viewprogress-rules.md → viewprogress.md} +38 -53
- package/dist/index-C8QxOkui.mjs +0 -7940
- package/dist/index-C8QxOkui.mjs.map +0 -1
- package/dist/index-DEPRHaUt.js +0 -18
- package/dist/index-DEPRHaUt.js.map +0 -1
- /package/rules/{click-rules.md → click.md} +0 -0
- /package/rules/{hover-rules.md → hover.md} +0 -0
- /package/rules/{pointermove-rules.md → pointermove.md} +0 -0
- /package/rules/{scroll-list-rules.md → scroll-list.md} +0 -0
- /package/rules/{viewenter-rules.md → viewenter.md} +0 -0
package/dist/index-DEPRHaUt.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";function gr(t){return[...t.matchAll(/\[([-\w]+)]/g)].map(([e,n])=>n)}function ot(t,e){const n=gr(e);let o=0;return n.length?t.replace(/\[]/g,()=>`[${n[o++]}]`||"[]"):t}function rt(t){"@babel/helpers - typeof";return rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rt(t)}function hr(t,e){if(rt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(rt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function yr(t){var e=hr(t,"string");return rt(e)=="symbol"?e:e+""}function M(t,e,n){return(e=yr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Wt{constructor(e,n){M(this,"animations",void 0),M(this,"options",void 0),M(this,"ready",void 0),M(this,"isCSS",void 0),this.animations=e,this.options=n,this.ready=n?.measured||Promise.resolve(),this.isCSS=e[0]instanceof CSSAnimation}getProgress(){var e;return((e=this.animations[0])==null||(e=e.effect)==null?void 0:e.getComputedTiming().progress)||0}async play(e){await this.ready;for(const n of this.animations)n.play();await Promise.all(this.animations.map(n=>n.ready)),e&&e()}pause(){for(const e of this.animations)e.pause()}async reverse(e){await this.ready;for(const n of this.animations)n.reverse();await Promise.all(this.animations.map(n=>n.ready)),e&&e()}progress(e){for(const n of this.animations){const{activeDuration:o}=n.effect.getComputedTiming(),{delay:r}=n.effect.getTiming();n.currentTime=((r||0)+(o||0))*e}}cancel(){for(const e of this.animations)e.cancel()}setPlaybackRate(e){for(const n of this.animations)n.playbackRate=e}async onFinish(e){try{await Promise.all(this.animations.map(r=>r.finished));const o=this.animations[0];if(o&&!this.isCSS){var n;const r=(n=o.effect)==null?void 0:n.target;if(r){const s=new Event("animationend");r.dispatchEvent(s)}}e()}catch(o){console.warn("animation was interrupted - aborting onFinish callback - ",o)}}get finished(){return Promise.all(this.animations.map(e=>e.finished))}get playState(){var e;return(e=this.animations[0])==null?void 0:e.playState}}const vr=t=>t,$r=t=>1-Math.cos(t*Math.PI/2),wr=t=>Math.sin(t*Math.PI/2),Er=t=>-(Math.cos(Math.PI*t)-1)/2,Or=t=>t**2,_r=t=>1-(1-t)**2,an=t=>t<.5?2*t**2:1-(-2*t+2)**2/2,xr=t=>t**3,br=t=>1-(1-t)**3,Ir=t=>t<.5?4*t**3:1-(-2*t+2)**3/2,Sr=t=>t**4,Pr=t=>1-(1-t)**4,Ar=t=>t<.5?8*t**4:1-(-2*t+2)**4/2,Tr=t=>t**5,kr=t=>1-(1-t)**5,Mr=t=>t<.5?16*t**5:1-(-2*t+2)**5/2,Rr=t=>t===0?0:2**(10*t-10),Fr=t=>t===1?1:1-2**(-10*t),zr=t=>t===0?0:t===1?1:t<.5?2**(20*t-10)/2:(2-2**(-20*t+10))/2,Yr=t=>1-Math.sqrt(1-t**2),Nr=t=>Math.sqrt(1-(t-1)**2),Ht=t=>t<.5?(1-Math.sqrt(1-4*t**2))/2:(Math.sqrt(-(2*t-3)*(2*t-1))+1)/2,Cr=t=>2.70158*t**3-1.70158*t**2,Xr=t=>1+2.70158*(t-1)**3+1.70158*(t-1)**2,Lr=function(t,e){return e===void 0&&(e=1.70158*1.525),t<.5?(2*t)**2*((e+1)*2*t-e)/2:((2*t-2)**2*((e+1)*(t*2-2)+e)+2)/2},Dr={linear:vr,sineIn:$r,sineOut:wr,sineInOut:Er,quadIn:Or,quadOut:_r,quadInOut:an,cubicIn:xr,cubicOut:br,cubicInOut:Ir,quartIn:Sr,quartOut:Pr,quartInOut:Ar,quintIn:Tr,quintOut:kr,quintInOut:Mr,expoIn:Rr,expoOut:Fr,expoInOut:zr,circIn:Yr,circOut:Nr,circInOut:Ht,backIn:Cr,backOut:Xr,backInOut:Lr},j={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",sineIn:"cubic-bezier(0.47, 0, 0.745, 0.715)",sineOut:"cubic-bezier(0.39, 0.575, 0.565, 1)",sineInOut:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",quadIn:"cubic-bezier(0.55, 0.085, 0.68, 0.53)",quadOut:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",quadInOut:"cubic-bezier(0.455, 0.03, 0.515, 0.955)",cubicIn:"cubic-bezier(0.55, 0.055, 0.675, 0.19)",cubicOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",cubicInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",quartIn:"cubic-bezier(0.895, 0.03, 0.685, 0.22)",quartOut:"cubic-bezier(0.165, 0.84, 0.44, 1)",quartInOut:"cubic-bezier(0.77, 0, 0.175, 1)",quintIn:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",quintOut:"cubic-bezier(0.23, 1, 0.32, 1)",quintInOut:"cubic-bezier(0.86, 0, 0.07, 1)",expoIn:"cubic-bezier(0.95, 0.05, 0.795, 0.035)",expoOut:"cubic-bezier(0.19, 1, 0.22, 1)",expoInOut:"cubic-bezier(1, 0, 0, 1)",circIn:"cubic-bezier(0.6, 0.04, 0.98, 0.335)",circOut:"cubic-bezier(0.075, 0.82, 0.165, 1)",circInOut:"cubic-bezier(0.785, 0.135, 0.15, 0.86)",backIn:"cubic-bezier(0.6, -0.28, 0.735, 0.045)",backOut:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",backInOut:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"};function E(t,e,n,o,r){return(r-t)*(o-n)/(e-t)+n}function Vr(t,e){let[n,o]=t,[r,s]=e;return Math.sqrt((r-n)**2+(s-o)**2)}function jr(t,e,n){t===void 0&&(t=[0,0]),e===void 0&&(e=[0,0]);const o=Math.atan2(e[1]-t[1],e[0]-t[0])*180/Math.PI;return(360+n+o)%360}const S=1e-6,Hr={initial:t=>{let{top:e,bottom:n,left:o,right:r}=t;return`${o}% ${e}%, ${r}% ${e}%, ${r}% ${n}%, ${o}% ${n}%`},top:t=>{let{top:e,left:n,right:o,minimum:r}=t;return`${n}% ${e}%, ${o}% ${e}%, ${o}% ${e+r}%, ${n}% ${e+r}%`},right:t=>{let{top:e,bottom:n,right:o,minimum:r}=t;return`${o-r}% ${e}%, ${o}% ${e}%, ${o}% ${n}%, ${o-r}% ${n}%`},center:t=>{let{centerX:e,centerY:n,minimum:o}=t;return`${e-o/2}% ${n-o/2}%, ${e+o/2}% ${n-o/2}%, ${e+o/2}% ${n+o/2}%, ${e-o/2}% ${n+o/2}%`},bottom:t=>{let{bottom:e,left:n,right:o,minimum:r}=t;return`${n}% ${e-r}%, ${o}% ${e-r}%, ${o}% ${e}%, ${n}% ${e}%`},left:t=>{let{top:e,bottom:n,left:o,minimum:r}=t;return`${o}% ${e}%, ${o+r}% ${e}%, ${o+r}% ${n}%, ${o}% ${n}%`},vertical:t=>{let{top:e,bottom:n,left:o,right:r,minimum:s}=t;return`${o}% ${e+s/2}%, ${r}% ${e+s/2}%, ${r}% ${n-s/2}%, ${o}% ${n-s/2}%`},horizontal:t=>{let{top:e,bottom:n,left:o,right:r,minimum:s}=t;return`${o+s/2}% ${e}%, ${r-s/2}% ${e}%, ${r-s/2}% ${n}%, ${o+s/2}% ${n}%`}};function A(t){let{direction:e,scaleX:n=1,scaleY:o=1,minimum:r=0}=t;const s=(1-o)/2*100,a=(1-n)/2*100,i=100+a-(1-n)*100,c=100+s-(1-o)*100,f=(i+a)/2,l=(c+s)/2;return`polygon(${Hr[e]({top:s,bottom:c,left:a,right:i,centerX:f,centerY:l,minimum:r})})`}function L(t,e,n){const o=t.indexOf(e),r=t.length,s=Math.round((n||0)/360*r),a=(o+(r-1)*s)%r;return t[a]}function cn(t,e){const n=t*Math.PI/180,o=Math.cos(n)*e,r=Math.sin(n)*e;return[o,r]}function T(t){return t==="percentage"?"%":t||"px"}function x(t){return t?j[t]||t:j.linear}function Br(t){return t?Dr[t]:void 0}function st(t){if(!j[t])return{in:t,inOut:t,out:t};const e=t.replace(/In|Out/g,"");return e==="linear"?{in:"linear",inOut:"linear",out:"linear"}:{in:`${e}In`,inOut:`${e}InOut`,out:`${e}Out`}}const qr={linear:"linear",easeOut:"ease-out",hardBackOut:"cubic-bezier(0.58, 2.5, 0, 0.95)",elastic:"linear( 0, 0.2178 2.1%, 1.1144 8.49%, 1.2959 10.7%, 1.3463 11.81%, 1.3705 12.94%, 1.3726, 1.3643 14.48%, 1.3151 16.2%, 1.0317 21.81%, 0.941 24.01%, 0.8912 25.91%, 0.8694 27.84%, 0.8698 29.21%, 0.8824 30.71%, 1.0122 38.33%, 1.0357, 1.046 42.71%, 1.0416 45.7%, 0.9961 53.26%, 0.9839 57.54%, 0.9853 60.71%, 1.0012 68.14%, 1.0056 72.24%, 0.9981 86.66%, 1 )",bounce:"linear( 0, 0.0039, 0.0157, 0.0352, 0.0625 9.09%, 0.1407, 0.25, 0.3908, 0.5625, 0.7654, 1, 0.8907, 0.8125 45.45%, 0.7852, 0.7657, 0.7539, 0.75, 0.7539, 0.7657, 0.7852, 0.8125 63.64%, 0.8905, 1 72.73%, 0.9727, 0.9532, 0.9414, 0.9375, 0.9414, 0.9531, 0.9726, 1, 0.9883, 0.9844, 0.9883, 1 )"};function z(t){return t&&qr[t]||"linear"}function Zr(t){const e=t*Math.PI/180,n=Math.round(Math.cos(e)*10)/10,o=Math.round(Math.sin(e)*10)/10,r=Math.sign(n),s=Math.sign(o),a="var(--motion-left, 0px)",i="var(--motion-top, 0px)",c=r?r===-1?`(-1 * ${a} - 100%)`:`(100vw - ${a})`:0,f=s?s===-1?`(-1 * ${i} - 100%)`:`(100vh - ${i})`:0;let l;const u=`calc(${c} / ${n})`,m=`calc(${f} / ${o})`;return n?o?l=`min(${m}, ${u})`:l=u:l=m,{x:`calc(${l} * ${n})`,y:`calc(${l} * ${o})`}}function Gr(t,e){let n=t.offsetLeft,o=t.offsetTop,r=t.offsetParent;for(;r&&!(e&&r===e);)n+=r.offsetLeft,o+=r.offsetTop,r=r.offsetParent;return{left:n,top:o}}const Kr=(t,e,n)=>{const o=t==="top"||t==="left",r=o?e:0,s=o?0:e,a=o?-1:1,i=t==="top"||t==="bottom",c=[],f=[];for(let l=r;l!==s;l+=a){const u=100*((l+a)/e),m=100*(l/e)|0;let p;if(n){const d=o?1+(e-l)/e:1+l/e;p=o?100-(100-u)*d:u*d}else p=u;p|=0,i?(c.push(`0% ${m}%, 100% ${m}%, 100% ${m}%, 0% ${m}%`),f.push(`0% ${m}%, 100% ${m}%, 100% ${p}%, 0% ${p}%`)):(c.push(`${m}% 0%, ${m}% 100%, ${m}% 100%, ${m}% 0%`),f.push(`${m}% 0%, ${m}% 100%, ${p}% 100%, ${p}% 0%`))}return{start:c,end:f}};function Bt(t,e,n,o){const{start:r,end:s}=Kr(t,e,n);return o&&(r.reverse(),s.reverse()),{clipStart:`polygon(${r.join(", ")})`,clipEnd:`polygon(${s.join(", ")})`}}function V(t,e){return e===void 0&&(e=2),parseFloat(t.toFixed(e))}function y(t,e,n,o){return n===void 0&&(n=!1),o===void 0&&(o=""),n?t[e]:`var(${e}${o?`,${o}`:""})`}function I(t,e,n){n===void 0&&(n=!1);const o=t||1,s=V(o/(o+(e||0)));return n?s.toString().replace(/\./g,""):s}class Ur{constructor(e,n,o,r){M(this,"_animation",void 0),M(this,"customEffect",void 0),M(this,"progress",void 0),M(this,"_tickCbId",void 0),M(this,"_finishHandler",void 0);const s=new KeyframeEffect(n,[],{...o,composite:"add"}),{timeline:a}=r;this._animation=new Animation(s,a),this._tickCbId=null,this.progress=null,this.customEffect=i=>e(s.target,i),this._finishHandler=i=>{var c;(c=this.effect.target)!=null&&c.getAnimations().find(f=>f===this._animation)||this.cancel()},this.addEventListener("finish",this._finishHandler),this.addEventListener("remove",this._finishHandler)}_tick(){try{var e;const o=((e=this.effect)==null?void 0:e.getComputedTiming().progress)??null;if(o!==this.progress){var n;(n=this.customEffect)==null||n.call(this,o),this.progress=o}this._tickCbId=requestAnimationFrame(()=>{this._tick()})}catch(o){this._tickCbId=null,console.error(`failed to run customEffect! effectId: ${this.id}, error: ${o instanceof Error?o.message:o}`)}}get currentTime(){return this._animation.currentTime}set currentTime(e){this._animation.currentTime=e}get startTime(){return this._animation.startTime}set startTime(e){this._animation.startTime=e}get playbackRate(){return this._animation.playbackRate}set playbackRate(e){this._animation.playbackRate=e}get id(){return this._animation.id}set id(e){this._animation.id=e}get effect(){return this._animation.effect}set effect(e){this._animation.effect=e}get timeline(){return this._animation.timeline}set timeline(e){this._animation.timeline=e}get finished(){return this._animation.finished}get pending(){return this._animation.pending}get playState(){return this._animation.playState}get ready(){return this._animation.ready}get replaceState(){return this._animation.replaceState}get oncancel(){return this._animation.oncancel}set oncancel(e){this._animation.oncancel=e}get onfinish(){return this._animation.onfinish}set onfinish(e){this._animation.onfinish=e}get onremove(){return this._animation.onremove}set onremove(e){this._animation.onremove=e}play(){this._animation.play(),cancelAnimationFrame(this._tickCbId),this._tickCbId=requestAnimationFrame(()=>this._tick())}pause(){this._animation.pause(),cancelAnimationFrame(this._tickCbId),this._tickCbId=null}cancel(){this.removeEventListener("finish",this._finishHandler),this.removeEventListener("remove",this._finishHandler),this._animation.cancel(),this.customEffect(null),cancelAnimationFrame(this._tickCbId),this._tickCbId=null}commitStyles(){console.warn("CustomEffect animations do not support commitStyles method as they have no style to commit")}finish(){this._animation.finish()}persist(){this._animation.persist()}reverse(){this._animation.reverse()}updatePlaybackRate(e){this._animation.updatePlaybackRate(e)}addEventListener(e,n,o){this._animation.addEventListener(e,n,o)}removeEventListener(e,n,o){this._animation.removeEventListener(e,n,o)}dispatchEvent(e){return this._animation.dispatchEvent(e)}}const Qr={vertical:"rotateX",horizontal:"rotateY"},at=68,Jr={in:{fromValue:-at,toValue:0},out:{fromValue:0,toValue:at},continuous:{fromValue:-at,toValue:at}};function Wr(t){const{direction:e="horizontal",range:n="in"}=t.namedEffect,o=n==="out"?"forwards":n==="in"?"backwards":t.fill,r=Qr[e],{fromValue:s,toValue:a}=Jr[n];return[{...t,fill:o,easing:"linear",keyframes:[{transform:`perspective(500px) translateZ(-300px) ${r}(${s}deg) translateZ(300px) rotate(var(--comp-rotate-z, 0deg))`},{transform:`perspective(500px) translateZ(-300px) ${r}(${a}deg) translateZ(300px) rotate(var(--comp-rotate-z, 0deg))`}]}]}const ae={soft:6,medium:25,hard:50};function ts(t){const{blur:e=6,power:n,range:o="in"}=t.namedEffect,r=n&&ae[n]?ae[n]:e,s=o==="out"?0:r,a=o==="out"?r:0,i="linear",c=o==="out"?"forwards":o==="in"?"backwards":t.fill;return[{...t,fill:c,easing:i,composite:"add",keyframes:[{filter:`blur(${s}px)`},{filter:`blur(${a}px)`}]}]}function es(t){const{opacity:e=0,range:n="in"}=t.namedEffect,o=n==="out",r=o?"var(--comp-opacity, 1)":e,s=o?e:"var(--comp-opacity, 1)",a="linear",i=n==="out"?"forwards":n==="in"?"backwards":t.fill;return[{...t,fill:i,easing:a,keyframes:[{opacity:r},{opacity:s}]}]}const ie={soft:60,medium:120,hard:420},ns={vertical:"rotateX",horizontal:"rotateY"};function os(t){const{rotate:e=240,direction:n="horizontal",power:o,range:r="continuous"}=t.namedEffect,s=ns[n],a=o&&ie[o]?ie[o]:e,i=r==="out"?0:-a,c=r==="in"?0:a,f="linear",l=r==="out"?"forwards":r==="in"?"backwards":t.fill;return[{...t,fill:l,easing:f,keyframes:[{transform:`perspective(800px) ${s}(${i}deg) rotate(var(--comp-rotate-z, 0deg))`},{transform:`perspective(800px) ${s}(${c}deg) rotate(var(--comp-rotate-z, 0deg))`}]}]}const ln=40,B={soft:{scaleFrom:.8,scaleTo:1.2,travelY:0},medium:{scaleFrom:.3,scaleTo:1.7,travelY:.75},hard:{scaleFrom:0,scaleTo:4,travelY:1}},rs={top:[0,-50],"top-right":[50,-50],right:[50,0],"bottom-right":[50,50],bottom:[0,50],"bottom-left":[-50,50],left:[-50,0],"top-left":[-50,-50],center:[0,0]},ss={in:(t,e,n)=>({fromValues:{scale:t,travel:n},toValues:{scale:1,travel:0}}),out:(t,e,n)=>({fromValues:{scale:1,travel:0},toValues:{scale:e,travel:-n}}),continuous:(t,e,n)=>({fromValues:{scale:t,travel:n},toValues:{scale:e,travel:-n}})};function as(t){let{power:e,range:n="in",speed:o=0}=t;const r=e&&B[e]?B[e].travelY:Math.abs(o)*ln;return{start:n==="out"?"0px":`${-r}vh`,end:n==="in"?"0px":`${r}vh`}}function is(t){const{power:e,range:n="in",scale:o=n==="in"?B.hard.scaleFrom:B.hard.scaleTo,direction:r="center",speed:s=0}=t.namedEffect,a="linear",i=n==="out"?"forwards":n==="in"?"backwards":t.fill,{scaleFrom:c,scaleTo:f,travelY:l}=e&&B[e]?B[e]:{scaleFrom:o,scaleTo:o,travelY:s},{fromValues:u,toValues:m}=ss[n](c,f,l*-ln),{start:p,end:d}=as(t.namedEffect),[g,h]=rs[r];return[{...t,fill:i,easing:a,startOffsetAdd:p,endOffsetAdd:d,keyframes:[{transform:`translateY(${u.travel}vh) translate(${g}%, ${h}%) scale(${u.scale}) translate(${-g}%, ${-h}%) rotate(var(--comp-rotate-z, 0))`},{transform:`translateY(${m.travel}vh) translate(${g}%, ${h}%) scale(${m.scale}) translate(${-g}%, ${-h}%) rotate(var(--comp-rotate-z, 0))`}]}]}const fn={soft:{value:150,type:"px"},medium:{value:400,type:"px"},hard:{value:800,type:"px"}},cs={in:(t,e)=>({fromValue:{x:t,y:e},toValue:{x:0,y:0}}),out:(t,e)=>({fromValue:{x:0,y:0},toValue:{x:t,y:e}}),continuous:(t,e)=>({fromValue:{x:t,y:e},toValue:{x:-t,y:-e}})};function ls(t){let{angle:e=210,distance:n={value:400,type:"px"},power:o,range:r="in"}=t;const s=o?fn[o]:n,[,a]=cn(e-90,s.value),i=a<0&&r!=="out"||a>0&&r==="out",c=T(s.type),f=i?`${a}${c}`:"0px",l=i?`${Math.abs(a)}${c}`:"0px";return{start:r==="out"?"0px":f,end:r==="in"?"0px":l}}function fs(t,e,n){const{power:o,distance:r={value:400,type:"px"},angle:s=210,range:a="in"}=t.namedEffect,i=o?fn[o]:r,[c,f]=cn(s-90,i.value),{fromValue:l,toValue:u}=cs[a](Math.round(c),Math.round(f)),m=T(i.type),p="linear",d=a==="out"?"forwards":a==="in"?"backwards":t.fill,{start:g,end:h}=n!=null&&n.ignoreScrollMoveOffsets?{start:"",end:""}:ls(t.namedEffect);return[{...t,fill:d,easing:p,startOffsetAdd:g,endOffsetAdd:h,keyframes:[{transform:`translate(${l.x}${m}, ${l.y}${m}) rotate(var(--comp-rotate-z, 0))`},{transform:`translate(${u.x}${m}, ${u.y}${m}) rotate(var(--comp-rotate-z, 0))`}]}]}const us={left:1,right:-1},ms={left:{startX:"calc(var(--motion-left, calc(100vw - 100%)) * -1 - 100%)",endX:"calc(100vw - var(--motion-left, 0px))"},right:{startX:"calc(100vw - var(--motion-left, 0px))",endX:"calc(var(--motion-left, calc(100vw - 100%)) * -1 - 100%)"}};function ds(t,e){const{distance:n={value:400,type:"px"},direction:o="left",startFromOffScreen:r=!0,range:s="in"}=t.namedEffect,a=n.value*us[o],{startX:i,endX:c}=r?ms[o]:{startX:`${-a}${T(n.type)}`,endX:`${a}${T(n.type)}`},f=s==="out"?0:i,l=s==="in"?0:s==="out"?i:c,u="linear",m=s==="out"?"forwards":s==="in"?"backwards":t.fill;if(r&&e){let p=0;e.measure(d=>{d&&(p=d.getBoundingClientRect().left)}),e.mutate(d=>{d?.style.setProperty("--motion-left",`${p}px`)})}return[{...t,fill:m,easing:u,keyframes:[{transform:`translateX(${f}) rotate(var(--comp-rotate-z, 0))`},{transform:`translateX(${l}) rotate(var(--comp-rotate-z, 0))`}]}]}const un=.5;function ce(t,e){return`${100*t*e}vh`}function ps(t){let{speed:e=un}=t;const n=ce(-.5,e),o=ce(.5,e);return{start:n,end:o}}function gs(t){const{speed:e=un}=t.namedEffect,n=`${-50*e}vh`,o=`${50*e}vh`,r="linear",{start:s,end:a}=ps(t.namedEffect);return[{...t,fill:"both",easing:r,startOffsetAdd:s,endOffsetAdd:a,keyframes:[{transform:`translateY(${n}) rotate(var(--comp-rotate-z, 0))`},{transform:`translateY(${o}) rotate(var(--comp-rotate-z, 0))`}]}]}const hs=["bottom","left","top","right"],mn={top:"bottom",bottom:"top",left:"right",right:"left"},te=A({direction:"initial"});function le(t,e){return e==="out"?te:A({direction:mn[t]})}function fe(t,e){return e==="in"?te:A({direction:e==="out"?mn[t]:t})}function ys(t,e){const{direction:n="bottom",range:o="in"}=t.namedEffect,r="linear",s=o==="out"?"forwards":o==="in"?"backwards":t.fill;let a=le(n,o),i=fe(n,o);e&&e.measure(f=>{if(!f)return;const l=getComputedStyle(f).getPropertyValue("--comp-rotate-z")||"0";e.mutate(()=>{const u=L(hs,n,parseInt(l,10));a=le(u,o),i=fe(u,o),f.style.setProperty("--motion-clip-from",a),f.style.setProperty("--motion-clip-to",i)})});const c=o==="continuous"?[{clipPath:`var(--motion-clip-from, ${a})`},{clipPath:te},{clipPath:`var(--motion-clip-to, ${i})`}]:[{clipPath:`var(--motion-clip-from, ${a})`},{clipPath:`var(--motion-clip-to, ${i})`}];return[{...t,fill:s,easing:r,keyframes:c}]}const bt={diamond:{start:{soft:"polygon(50% 20%, 80% 50%, 50% 80%, 20% 50%)",medium:"polygon(50% 40%, 60% 50%, 50% 60%, 40% 50%)",hard:"polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%)"},end:"polygon(50% -50%, 150% 50%, 50% 150%, -50% 50%)"},window:{start:{soft:"inset(20% round 50% 50% 0% 0%)",medium:"inset(35% round 50% 50% 0% 0%)",hard:"inset(50% round 50% 50% 0% 0%)"},end:"inset(-20% round 50% 50% 0% 0%)"},rectangle:{start:{soft:"inset(20%)",medium:"inset(50%)",hard:"inset(80%)"},end:"inset(0%)"},circle:{start:{soft:"circle(40%)",medium:"circle(25%)",hard:"circle(0%)"},end:"circle(75%)"},ellipse:{start:{soft:"ellipse(50% 50%)",medium:"ellipse(30% 30%)",hard:"ellipse(0% 0%)"},end:"ellipse(75% 75%)"}},vs={diamond:t=>{const e=t/2,n=100-e;return[`polygon(50% ${e}%, ${n}% 50%, 50% ${n}%, ${e}% 50%)`,"polygon(50% -50%, 150% 50%, 50% 150%, -50% 50%)"]},window:t=>[`inset(${t/2}% round 50% 50% 0% 0%)`,"inset(-20% round 50% 50% 0% 0%)"],rectangle:t=>[`inset(${t}%)`,"inset(0%)"],circle:t=>[`circle(${100-t}%)`,"circle(75%)"],ellipse:t=>{const e=50-t/2;return[`ellipse(${e}% ${e}%)`,"ellipse(75% 75%)"]}},it=x("circInOut"),$s={in:(t,e)=>[{clipPath:t,easing:it},{clipPath:e}],out:(t,e)=>[{clipPath:e,easing:it},{clipPath:t}],continuous:(t,e)=>[{clipPath:t,easing:it},{clipPath:e,easing:it},{clipPath:t}]};function ws(t){const{shape:e="circle",power:n,intensity:o=.5,range:r="in"}=t.namedEffect,s=r==="out"?"forwards":r==="in"?"backwards":t.fill,[a,i]=n&&bt[e].start[n]?[bt[e].start[n],bt[e].end]:vs[e](o*100),c=$s[r](a,i);return[{...t,fill:s,easing:"linear",keyframes:c}]}const Es={top:"bottom",right:"left",bottom:"top",left:"right"};function Os(t){const{direction:e="right",shutters:n=12,staggered:o=!0,range:r="in"}=t.namedEffect,s=r==="out"?"forwards":r==="in"?"backwards":t.fill,a=x(r==="in"?"sineIn":"sineOut"),i=Es[e],{clipStart:c,clipEnd:f}=Bt(r==="out"?i:e,n,o),l=r!=="out"?c:f,u=r!=="out"?f:c;let m;if(r==="continuous"){const{clipStart:p,clipEnd:d}=Bt(i,n,o,!0);m=[{clipPath:l,easing:a},{clipPath:u,offset:o?.45:.4,easing:a},{clipPath:u,offset:o?.55:.6,easing:a},{clipPath:d,offset:o?.55:.6,easing:a},{clipPath:p}]}else m=[{clipPath:l,easing:a},{clipPath:u}];return[{...t,fill:s,easing:"linear",keyframes:m}]}const dn=40,yt={soft:{scaleFrom:1.2,scaleTo:.8,travelY:0},medium:{scaleFrom:1.7,scaleTo:.3,travelY:.5},hard:{scaleFrom:3.5,scaleTo:0,travelY:1}},_s={top:[0,-50],"top-right":[50,-50],right:[50,0],"bottom-right":[50,50],bottom:[0,50],"bottom-left":[-50,50],left:[-50,0],"top-left":[-50,-50],center:[0,0]},xs={in:(t,e,n)=>({fromValues:{scale:t,travel:n},toValues:{scale:1,travel:0}}),out:(t,e,n)=>({fromValues:{scale:1,travel:0},toValues:{scale:e,travel:-n}}),continuous:(t,e,n)=>({fromValues:{scale:t,travel:n},toValues:{scale:e,travel:-n}})};function bs(t){let{power:e,range:n="in",speed:o=0}=t;const r=e&&yt[e]?yt[e].travelY:Math.abs(o)*dn;return{start:n==="out"?"0px":`${-r}vh`,end:n==="in"?"0px":`${r}vh`}}function Is(t){const{power:e,range:n="in",scale:o=n==="in"?1.2:.8,direction:r="center",speed:s=0}=t.namedEffect,a=n==="out"?"forwards":n==="in"?"backwards":t.fill,{scaleFrom:i,scaleTo:c,travelY:f}=e&&yt[e]?yt[e]:{scaleFrom:o,scaleTo:o,travelY:s},{fromValues:l,toValues:u}=xs[n](i,c,f*-dn),m="linear",{start:p,end:d}=bs(t.namedEffect),[g,h]=_s[r];return[{...t,fill:a,easing:m,startOffsetAdd:p,endOffsetAdd:d,keyframes:[{transform:`translateY(${l.travel}vh) translate(${g}%, ${h}%) scale(${l.scale}) translate(${-g}%, ${-h}%) rotate(var(--comp-rotate-z, 0))`},{transform:`translateY(${u.travel}vh) translate(${g}%, ${h}%) scale(${u.scale}) translate(${-g}%, ${-h}%) rotate(var(--comp-rotate-z, 0))`}]}]}const ue={soft:{skewX:10},medium:{skewX:17},hard:{skewX:24}},Ss={right:-1,left:1},Ps={in:(t,e,n)=>({fromValues:{skewX:t,startX:e},toValues:{skewX:0,endX:0}}),out:(t,e,n)=>({fromValues:{skewX:0,startX:0},toValues:{skewX:-t,endX:e}}),continuous:(t,e,n)=>({fromValues:{skewX:t,startX:e},toValues:{skewX:-t,endX:n}})},As={left:{startX:"calc(var(--motion-left, calc(100vw - 100%)) * -1 - 100%)",endX:"calc(100vw - var(--motion-left, 0px))"},right:{startX:"calc(100vw - var(--motion-left, 0px))",endX:"calc(var(--motion-left, calc(100vw - 100%)) * -1 - 100%)"}};function Ts(t,e){const{skew:n=10,direction:o="right",power:r,range:s="in"}=t.namedEffect,a="linear",i=s==="out"?"forwards":s==="in"?"backwards":t.fill,c=(r&&ue[r]?ue[r].skewX:n)*Ss[o],{startX:f,endX:l}=As[o],{fromValues:u,toValues:m}=Ps[s](c,f,l);let p=0;return e&&(e.measure(d=>{d&&(p=d.getBoundingClientRect().left)}),e.mutate(d=>{d?.style.setProperty("--motion-left",`${p}px`)})),[{...t,fill:i,easing:a,keyframes:[{transform:`translateX(${u.startX}) skewX(${u.skewX}deg) rotate(var(--comp-rotate-z, 0))`},{transform:`translateX(${m.endX}) skewX(${m.skewX}deg) rotate(var(--comp-rotate-z, 0))`}]}]}const ks=["bottom","left","top","right"],me={top:"bottom",bottom:"top",left:"right",right:"left"},de={top:{x:"0",y:"-100%"},right:{x:"100%",y:"0"},bottom:{x:"0",y:"100%"},left:{x:"-100%",y:"0"}},It=A({direction:"initial"}),Ms={in:(t,e)=>[{clipPath:`var(--motion-clip-from, ${t.from})`,transform:`rotate(var(--comp-rotate-z, 0)) translate(${e.from.x}, ${e.from.y})`},{clipPath:It,transform:"rotate(var(--comp-rotate-z, 0)) translate(0, 0)"}],out:(t,e)=>[{clipPath:It,transform:"rotate(var(--comp-rotate-z, 0)) translate(0, 0)"},{clipPath:`var(--motion-clip-from, ${t.from})`,transform:`rotate(var(--comp-rotate-z, 0)) translate(${e.from.x}, ${e.from.y})`}],continuous:(t,e)=>[{clipPath:`var(--motion-clip-from, ${t.from})`,transform:`rotate(var(--comp-rotate-z, 0)) translate(${e.from.x}, ${e.from.y})`},{clipPath:It,transform:"rotate(var(--comp-rotate-z, 0)) translate(0, 0)"},{clipPath:`var(--motion-clip-to, ${t.to})`,transform:`rotate(var(--comp-rotate-z, 0)) translate(${e.to.x}, ${e.to.y})`}]};function Rs(t,e){const{direction:n="bottom",range:o="in"}=t.namedEffect,r="linear",s=o==="out"?"forwards":o==="in"?"backwards":t.fill,a=me[n],i=Ms[o]({from:A({direction:a}),to:A({direction:n})},{from:de[n],to:de[a]});return e&&e.measure(c=>{if(!c)return;const f=parseInt(getComputedStyle(c).getPropertyValue("--comp-rotate-z")||"0",10);e.mutate(()=>{const l=L(ks,n,f);c.style.setProperty("--motion-clip-from",A({direction:me[l]})),c.style.setProperty("--motion-clip-to",A({direction:l}))})}),[{...t,fill:s,easing:r,keyframes:i}]}const pn=40,vt={soft:{rotationZ:45,travelY:0},medium:{rotationZ:100,travelY:.5},hard:{rotationZ:200,travelY:1}},Fs={in:(t,e)=>({fromValues:{rotationX:-2*t,rotationY:-t,rotationZ:-t,travel:e},toValues:{rotationX:0,rotationY:0,rotationZ:0,travel:0}}),out:(t,e)=>({fromValues:{rotationX:0,rotationY:0,rotationZ:0,travel:0},toValues:{rotationX:t*3,rotationY:t*2,rotationZ:t,travel:-e}}),continuous:(t,e)=>({fromValues:{rotationX:-2*t,rotationY:-t,rotationZ:-t,travel:e},toValues:{rotationX:t*1.8,rotationY:t,rotationZ:2*t,travel:-e}})};function zs(t){let{power:e,range:n="in",speed:o=0}=t;const r=(e&&vt[e]?vt[e].travelY:Math.abs(o))*pn;return{start:n==="out"?"0px":`${-r}vh`,end:n==="in"?"0px":`${r}vh`}}function Ys(t){const{rotate:e=-100,power:n,range:o="in",speed:r=0}=t.namedEffect,s="linear",a=o==="out"?"forwards":o==="in"?"backwards":t.fill,i=n&&vt[n]?vt[n]:{rotationZ:e,travelY:r},{fromValues:c,toValues:f}=Fs[o](i.rotationZ,i.travelY*-pn),{start:l,end:u}=zs(t.namedEffect);return[{...t,fill:a,easing:s,startOffsetAdd:l,endOffsetAdd:u,keyframes:[{transform:`perspective(1000px) translateY(${c.travel}vh) rotateZ(calc(var(--comp-rotate-z, 0deg) + ${c.rotationZ}deg)) rotateY(${c.rotationY}deg) rotateX(${c.rotationX}deg)`},{transform:`perspective(1000px) translateY(${f.travel}vh) rotateZ(calc(var(--comp-rotate-z, 0deg) + ${f.rotationZ}deg)) rotateY(${f.rotationY}deg) rotateX(${f.rotationX}deg)`}]}]}const pe={soft:1,medium:.7,hard:.4},Ns={clockwise:1,"counter-clockwise":-1};function Cs(t){const{spins:e=.15,scale:n=1,direction:o="clockwise",power:r,range:s="in"}=t.namedEffect,a="linear",i=s==="out"?"forwards":s==="in"?"backwards":t.fill,c=Ns[o],f=e*360,l=r&&pe[r]?pe[r]:n,u=s==="in",m=u?-f:s==="out"?0:-f/2,p=u?0:s==="out"?f:f/2;return[{...t,fill:i,easing:a,keyframes:[{transform:`scale(${u?l:1}) rotate(calc(var(--comp-rotate-z, 0deg) + ${m*c}deg))`},{transform:`scale(${u?1:l}) rotate(calc(var(--comp-rotate-z, 0deg) + ${p*c}deg))`}]}]}const ge={soft:{scaleY:1.2,scaleX:.8},medium:{scaleY:1.5,scaleX:.6},hard:{scaleY:2,scaleX:.4}},Xs={in:(t,e)=>[{scale:`${t} ${e}`,translate:`0 ${100*(e-1)}%`},{scale:"1 1",translate:"0 0"}],out:(t,e)=>[{scale:"1 1",translate:"0 0"},{scale:`${t} ${e}`,translate:`0 ${100*(1-e)}%`}],continuous:(t,e)=>[{scale:`${t} ${e}`,translate:`0 ${100*(e-1)}%`,easing:j.backInOut},{scale:"1 1",translate:"0 0",easing:j.backInOut},{scale:`${t} ${e}`,translate:`0 ${100*(1-e)}%`}]},Ls={in:[{opacity:0,offset:0},{opacity:1,offset:.65}],out:[{opacity:1,offset:.35},{opacity:0,offset:1}],continuous:[{opacity:0,offset:0},{opacity:1,offset:.325},{opacity:1,offset:.7},{opacity:0,offset:1}]};function Ds(t){const{power:e,stretch:n=.6,range:o="out"}=t.namedEffect,r=o==="continuous"?"linear":"backInOut",s=o==="out"?"forwards":o==="in"?"backwards":t.fill,{scaleX:a,scaleY:i}=e&&ge[e]?ge[e]:{scaleX:1-n,scaleY:1+n},c=Xs[o](a,i);return[{...t,fill:s,easing:r,keyframes:c},{...t,fill:s,easing:r,keyframes:Ls[o]}]}const Vs=40,[he,ye,ve]=[10,25,25],[$e,we,Ee]=[-1,1,0],Oe={soft:0,medium:.5,hard:1},js={right:1,left:-1},Hs={in:{from:{x:-1,y:-1,z:1,transY:we},to:{x:0,y:0,z:0,transY:Ee}},out:{from:{x:0,y:0,z:0,transY:Ee},to:{x:-1,y:-1,z:1,transY:$e}},continuous:{from:{x:-1,y:-1,z:-1,transY:we},to:{x:1,y:.5,z:1.25,transY:$e}}};function gn(t,e){return(e&&e in Oe?Oe[e]:t)*Vs}function Bs(t){let{power:e,range:n="in",distance:o=0}=t;const r=Math.abs(gn(o,e));return{start:n==="out"?"0px":`${-r}vh`,end:n==="in"?"0px":`${r}vh`}}function qs(t){const{power:e,distance:n=0,range:o="in",direction:r="right"}=t.namedEffect,s="linear",a=o==="out"?"forwards":o==="in"?"backwards":t.fill,{from:i,to:c}=Hs[o],f=js[r],l=Math.abs(i.z)*ve*f*(i.z<0?-1:1),u=Math.abs(c.z)*ve*f*(c.z<0?-1:1),m=gn(n,e),p=m*i.transY,d=m*c.transY,g=i.x*he,h=i.y*ye,v=c.x*he,$=c.y*ye,{start:w,end:O}=Bs(t.namedEffect);return[{...t,fill:a,easing:s,startOffsetAdd:w,endOffsetAdd:O,keyframes:[{transform:`perspective(400px) translateY(${p}vh) rotateX(${g}deg) rotateY(${h}deg)`},{transform:`perspective(400px) translateY(${d}vh) rotateX(${v}deg) rotateY(${$}deg)`}]},{...t,fill:a,easing:j.sineInOut,startOffsetAdd:w,endOffsetAdd:O,composite:"add",keyframes:[{transform:`rotate(calc(var(--comp-rotate-z, 0deg) + ${l}deg))`},{transform:`rotate(calc(var(--comp-rotate-z, 0deg) + ${u}deg))`}]}]}const Zs=45,_e={soft:{scaleFrom:1,scaleTo:1},medium:{scaleFrom:.7,scaleTo:1.3},hard:{scaleFrom:.4,scaleTo:1.6}},Gs={clockwise:1,"counter-clockwise":-1},Ks={left:{startX:"calc(-1 * var(--motion-left, calc(100vw - 100%)) - 100%)",endX:"calc(100vw - var(--motion-left, 0px))"},right:{startX:"calc(100vw - var(--motion-left, 0px))",endX:"calc(-1 * var(--motion-left, calc(100vw - 100%)) - 100%)"}},Us={in:(t,e,n)=>({fromValues:{rotation:-t,scale:e.scaleFrom,translate:n.startX},toValues:{rotation:0,scale:1,translate:"0px"}}),out:(t,e,n)=>({fromValues:{rotation:0,scale:1,translate:"0px"},toValues:{rotation:t,scale:e.scaleFrom,translate:n.endX}}),continuous:(t,e,n)=>({fromValues:{rotation:-t,scale:e.scaleFrom,translate:n.startX},toValues:{rotation:t,scale:e.scaleTo,translate:n.endX}})};function Qs(t,e){const{power:n,spin:o="clockwise",direction:r="right",scale:s=1,range:a="in"}=t.namedEffect,i="linear",c=a==="out"?"forwards":a==="in"?"backwards":t.fill,f=Ks[r],l=Zs*Gs[o],u=n&&_e[n]?_e[n]:{scaleFrom:s,scaleTo:s},{fromValues:m,toValues:p}=Us[a](l,u,f);let d=0;return e&&(e.measure(g=>{g&&(d=g.getBoundingClientRect().left)}),e.mutate(g=>{g?.style.setProperty("--motion-left",`${d}px`)})),[{...t,fill:c,easing:i,keyframes:[{transform:`translateX(${m.translate}) scale(${m.scale}) rotate(calc(var(--comp-rotate-z, 0deg) + ${m.rotation}deg))`},{transform:`translateX(${p.translate}) scale(${p.scale}) rotate(calc(var(--comp-rotate-z, 0deg) + ${p.rotation}deg))`}]}]}const xe={ArcScroll:Wr,BlurScroll:ts,FadeScroll:es,FlipScroll:os,GrowScroll:is,MoveScroll:fs,PanScroll:ds,ParallaxScroll:gs,RevealScroll:ys,ShapeScroll:ws,ShuttersScroll:Os,ShrinkScroll:Is,SkewPanScroll:Ts,SlideScroll:Rs,Spin3dScroll:Ys,SpinScroll:Cs,StretchScroll:Ds,TiltScroll:qs,TurnScroll:Qs},be=80,Js={top:{x:1,y:0,sign:1},right:{x:0,y:1,sign:1},bottom:{x:1,y:0,sign:-1},left:{x:0,y:1,sign:-1}},Ws={soft:"cubicInOut",medium:"quintInOut",hard:"backOut"};function ta(t,e){return vn(t,e),yn(t,!0)}function hn(t){return["motion-fadeIn","motion-arcIn"]}function yn(t,e){e===void 0&&(e=!1);const{power:n,direction:o="right"}=t.namedEffect,[r,s]=hn(),a=n&&Ws[n]||t.easing||"quintInOut",{x:i,y:c,sign:f}=Js[o],l="(-1 * (var(--motion-height, 100vh) * var(--motion-arc-x, 1) + var(--motion-width, 100vw) * var(--motion-arc-y, 0))) / 2",u={"--motion-arc-x":`${i}`,"--motion-arc-y":`${c}`,"--motion-arc-sign":`${f}`};return[{...t,name:r,duration:t.duration*.7,easing:"sineIn",custom:{},keyframes:[{offset:0,opacity:0},{opacity:"var(--comp-opacity, 1)"}]},{...t,name:s,easing:a,custom:u,keyframes:[{offset:S,transform:`perspective(800px) translateZ(calc(${l})) rotateX(calc(${y(u,"--motion-arc-x",e)} * ${y(u,"--motion-arc-sign",e)} * ${be}deg)) rotateY(calc(${y(u,"--motion-arc-y",e)} * ${y(u,"--motion-arc-sign",e)} * ${be}deg)) translateZ(calc(-1 * ${l})) rotate(var(--comp-rotate-z, 0deg))`},{transform:`perspective(800px) translateZ(calc(${l})) rotateX(0deg) rotateY(0deg) translateZ(calc(-1 * ${l})) rotate(var(--comp-rotate-z, 0deg))`}]}]}function vn(t,e){if(e){let n,o;e.measure(r=>{if(!r)return;const s=r.getBoundingClientRect();n=s.width,o=s.height}),e.mutate(r=>{r?.style.setProperty("--motion-height",`${o}px`),r?.style.setProperty("--motion-width",`${n}px`)})}}const ea=Object.freeze(Object.defineProperty({__proto__:null,getNames:hn,prepare:vn,style:yn,web:ta},Symbol.toStringTag,{value:"Module"})),Ie={soft:6,medium:25,hard:50};function $n(t){return["motion-fadeIn","motion-blurIn"]}function na(t){return wn(t,!0)}function wn(t,e){e===void 0&&(e=!1);const{blur:n=6,power:o}=t.namedEffect,[r,s]=$n(),a=t.easing||"linear",c={"--motion-blur":`${o&&Ie[o]?Ie[o]:n}px`};return[{...t,name:r,duration:t.duration*.7,easing:"sineIn",custom:{},keyframes:[{offset:0,opacity:0},{opacity:"var(--comp-opacity, 1)"}]},{...t,name:s,easing:a,composite:"add",custom:c,keyframes:[{filter:`blur(${y(c,"--motion-blur",e)})`},{filter:"blur(0px)"}]}]}const oa=Object.freeze(Object.defineProperty({__proto__:null,getNames:$n,style:wn,web:na},Symbol.toStringTag,{value:"Module"}));function En(t){return["motion-shuttersIn"]}function ra(t){return On(t,!0)}function On(t,e){e===void 0&&(e=!1);const{direction:n="right",shutters:o=12,staggered:r=!0}=t.namedEffect,[s]=En(),{clipStart:a,clipEnd:i}=Bt(n,o,r),c={"--motion-shutters-start":a,"--motion-shutters-end":i},f=x(t.easing||"sineIn");return[{...t,easing:f,name:s,custom:c,keyframes:[{offset:0,opacity:0,easing:"step-end"},{offset:S,opacity:"var(--comp-opacity, 1)",clipPath:y(c,"--motion-shutters-start",e)},{clipPath:y(c,"--motion-shutters-end",e)}]}]}const sa=Object.freeze(Object.defineProperty({__proto__:null,getNames:En,style:On,web:ra},Symbol.toStringTag,{value:"Module"}));function _n(t){return["motion-fadeIn","motion-bounceIn"]}const{in:aa,out:ia}=st("sineIn"),Se=[{offset:S*100,translate:100},{offset:30,translate:0},{offset:42,translate:35},{offset:54,translate:0},{offset:62,translate:21},{offset:74,translate:0},{offset:82,translate:9},{offset:90,translate:0},{offset:95,translate:2},{offset:100,translate:0,isIn:!0}],ca={soft:1,medium:2,hard:3},la={top:{y:-1,x:0,z:0},right:{y:0,x:1,z:0},bottom:{y:1,x:0,z:0},left:{y:0,x:-1,z:0},center:{x:0,y:0,z:-1}};function fa(t){return xn(t,!0)}function xn(t,e){e===void 0&&(e=!1);const{power:n,distanceFactor:o=1,direction:r="bottom"}=t.namedEffect,[s,a]=_n(),i=n&&ca[n]||o,c=r==="center"?"perspective(800px)":" ",{x:f,y:l,z:u}=la[r],m={"--motion-direction-x":f,"--motion-direction-y":l,"--motion-direction-z":u,"--motion-distance-factor":i,"--motion-perspective":c,"--motion-ease-in":x(ia),"--motion-ease-out":x(aa)},p=y(m,"--motion-ease-in",e),d=y(m,"--motion-ease-out",e),g=y(m,"--motion-distance-factor",e),h=y(m,"--motion-perspective",e," "),v=y(m,"--motion-direction-x",e),$=y(m,"--motion-direction-y",e),w=y(m,"--motion-direction-z",e),O=Se.map((b,P)=>{let{offset:k,translate:F}=b;return{offset:k/100,animationTimingFunction:P%2?p:d,transform:`${h.trim()} translate3d(calc(${v} * ${g} * ${F/2}px), calc(${$} * ${g} * ${F/2}px), calc(${w} * ${g} * ${F/2}px)) rotateZ(var(--comp-rotate-z, 0deg))`}});return[{...t,name:s,easing:"quadOut",duration:t.duration*Se[3].offset/100,custom:{},keyframes:[{offset:0,opacity:0},{opacity:"var(--comp-opacity, 1)"}]},{...t,name:a,easing:"linear",custom:m,keyframes:[{offset:0,transform:"perspective(800px) translate3d(0, 0, 0) rotateZ(var(--comp-rotate-z, 0deg))"},...O]}]}const ua=Object.freeze(Object.defineProperty({__proto__:null,getNames:_n,style:xn,web:fa},Symbol.toStringTag,{value:"Module"}));function bn(t){return["motion-curveIn"]}const ma={pseudoRight:{rotationX:"180",rotationY:"0"},right:{rotationX:"0",rotationY:"180"},pseudoLeft:{rotationX:"-180",rotationY:"0"},left:{rotationX:"0",rotationY:"-180"}};function da(t,e){return Sn(t,e),In(t,!0)}function In(t,e){e===void 0&&(e=!1);const{direction:n="right"}=t.namedEffect,[o]=bn(),{rotationX:r,rotationY:s}=ma[n],a={"--motion-rotate-x":`${r}deg`,"--motion-rotate-y":`${s}deg`};return[{...t,name:o,easing:"quadOut",custom:a,keyframes:[{offset:0,opacity:0,easing:"step-end"},{offset:S,opacity:0,transform:`perspective(200px) translateZ(calc(var(--motion-width, 300px) * -3)) rotateX(${y(a,"--motion-rotate-x",e)}) rotateY(${y(a,"--motion-rotate-y",e)}) translateZ(calc(var(--motion-width, 300px) * 3)) rotateZ(var(--comp-rotate-z, 0deg))`},{opacity:"var(--comp-opacity, 1)",transform:"perspective(200px) translateZ(calc(var(--motion-width, 300px) * -3)) rotateX(0deg) rotateY(0deg) translateZ(calc(var(--motion-width, 300px) * 3)) rotateZ(var(--comp-rotate-z, 0deg))"}]}]}function Sn(t,e){if(e){let n;e.measure(o=>{o&&(n=o.getBoundingClientRect().width)}),e.mutate(o=>{o?.style.setProperty("--motion-width",`${n}px`)})}}const pa=Object.freeze(Object.defineProperty({__proto__:null,getNames:bn,prepare:Sn,style:In,web:da},Symbol.toStringTag,{value:"Module"}));function Pn(t){return["motion-circleXIn","motion-circleYIn"]}const ga=45;function ha(t,e){return Tn(t,e),An(t,!0)}function An(t,e){e===void 0&&(e=!1);const{direction:n="right"}=t.namedEffect,[o,r]=Pn(),s=n==="right"?"calc(100vw - var(--motion-left, 0px))":"calc(var(--motion-left, 0px) * -1 - 100%)",a="min(calc(100% * -1.5), max(-300px, calc(100% * -5.5)))",i={"--motion-translate-x":s},c={"--motion-translate-y":a,"--motion-rotate-z":`${(n==="right"?1:-1)*ga}deg`};return[{...t,name:o,easing:"circOut",custom:i,keyframes:[{offset:S,translate:y(i,"--motion-translate-x",e)},{translate:"0"}]},{...t,name:r,easing:"linear",custom:c,keyframes:[{offset:0,opacity:0,easing:"step-end"},{offset:S,opacity:0,transform:`translateY(${y(c,"--motion-translate-y",e)}) rotate(calc(var(--comp-rotate-z, 0deg) + ${y(c,"--motion-rotate-z",e)}))`},{opacity:"var(--comp-opacity, 1)",transform:"translateY(0) rotate(var(--comp-rotate-z, 0deg))"}]}]}function Tn(t,e){if(e){let n=0;e.measure(o=>{o&&(n=o.getBoundingClientRect().left)}),e.mutate(o=>{o?.style.setProperty("--motion-left",`${n}px`)})}}const ya=Object.freeze(Object.defineProperty({__proto__:null,getNames:Pn,prepare:Tn,style:An,web:ha},Symbol.toStringTag,{value:"Module"}));function kn(t){return["motion-fadeIn","motion-dropIn"]}const St={soft:{scale:1.2,ease:"cubicInOut"},medium:{scale:1.6,ease:"quintInOut"},hard:{scale:2,ease:"backOut"}};function va(t){return Mn(t,!0)}function Mn(t,e){e===void 0&&(e=!1);const{power:n,initialScale:o=St.medium.scale}=t.namedEffect,[r,s]=kn(),a=n&&St[n].scale||o,i=n&&St[n].ease||t.easing||"quintInOut",c={"--motion-scale":`${a}`};return[{...t,name:r,easing:"quadOut",duration:t.duration*.8,custom:{},keyframes:[{offset:0,opacity:0},{opacity:"var(--comp-opacity, 1)"}]},{...t,name:s,easing:i,custom:c,keyframes:[{offset:S,scale:y(c,"--motion-scale",e)},{scale:"1"}]}]}const $a=Object.freeze(Object.defineProperty({__proto__:null,getNames:kn,style:Mn,web:va},Symbol.toStringTag,{value:"Module"}));function Rn(t){return["motion-fadeIn","motion-expandIn"]}const Pe={soft:.8,medium:.6,hard:0},wa={top:{x:0,y:-.5},"top-right":{x:.5,y:-.5},right:{x:.5,y:0},"bottom-right":{x:.5,y:.5},bottom:{x:0,y:.5},"bottom-left":{x:-.5,y:.5},left:{x:-.5,y:0},"top-left":{x:-.5,y:-.5},center:{x:0,y:0}};function Ea(t,e){return zn(t,e),Fn(t,!0)}function Fn(t,e){e===void 0&&(e=!1);const{power:n,initialScale:o=0,direction:r="center"}=t.namedEffect,[s,a]=Rn(),i=t.easing||"cubicInOut",c=n&&n in Pe?Pe[n]:o,{x:f,y:l}=wa[r],u={"--motion-translate-x":f,"--motion-translate-y":l,"--motion-scale":c},m=y(u,"--motion-translate-x",e),p=y(u,"--motion-translate-y",e),d=y(u,"--motion-scale",e);return[{...t,name:s,easing:"linear",custom:{},keyframes:[{offset:0,opacity:0},{opacity:"var(--comp-opacity, 1)"}]},{...t,name:a,easing:i,custom:u,keyframes:[{offset:S,transform:`translateX(calc(var(--motion-width, 100%) * ${m})) translateY(calc(var(--motion-height, 100%) * ${p})) scale(${d}) translateX(calc(var(--motion-width, 100%) * -1 * ${m})) translateY(calc(var(--motion-height, 100%) * -1 * ${p})) rotate(var(--comp-rotate-z, 0deg))`},{transform:`translateX(calc(var(--motion-width, 100%) * ${m})) translateY(calc(var(--motion-height, 100%) * ${p})) scale(1) translateX(calc(var(--motion-width, 100%) * -1 * ${m})) translateY(calc(var(--motion-height, 100%) * -1 * ${p})) rotate(var(--comp-rotate-z, 0deg))`}]}]}function zn(t,e){if(e){let n,o;e.measure(r=>{if(!r)return;const s=r.getBoundingClientRect();n=s.width,o=s.height}),e.mutate(r=>{r?.style.setProperty("--motion-width",`${n}px`),r?.style.setProperty("--motion-height",`${o}px`)})}}const Oa=Object.freeze(Object.defineProperty({__proto__:null,getNames:Rn,prepare:zn,style:Fn,web:Ea},Symbol.toStringTag,{value:"Module"}));function Yn(t){return["motion-fadeIn"]}function _a(t){return Nn(t)}function Nn(t){const[e]=Yn();return[{...t,name:e,easing:"sineInOut",keyframes:[{offset:0,opacity:0},{opacity:"var(--comp-opacity, 1)"}]}]}const xa=Object.freeze(Object.defineProperty({__proto__:null,getNames:Yn,style:Nn,web:_a},Symbol.toStringTag,{value:"Module"}));function Cn(t){return["motion-fadeIn","motion-flipIn"]}const ba=["top","right","bottom","left"],Xn={soft:45,medium:90,hard:270};function Ln(t,e){return{x:Ae[t].x*e,y:Ae[t].y*e}}const Ae={top:{x:1,y:0},right:{x:0,y:1},bottom:{x:-1,y:0},left:{x:0,y:-1}};function Ia(t,e){return Vn(t,e),Dn(t)}function Dn(t){const{direction:e="top",power:n,initialRotate:o=90}=t.namedEffect,[r,s]=Cn(),a=n&&Xn[n]||o,i=t.easing||"backOut",c=Ln(e,a),f={"--motion-rotate-x":`${c.x}deg`,"--motion-rotate-y":`${c.y}deg`};return[{...t,easing:"quadOut",name:r,custom:{},keyframes:[{offset:0,opacity:0},{opacity:"var(--comp-opacity, 1)"}]},{...t,easing:i,name:s,custom:f,keyframes:[{offset:S,transform:`perspective(800px) rotate(var(--comp-rotate-z, 0deg)) rotateX(var(--motion-rotate-x , ${f["--motion-rotate-x"]})) rotateY(var(--motion-rotate-y , ${f["--motion-rotate-y"]}))`},{transform:"perspective(800px) rotate(var(--comp-rotate-z, 0deg)) rotateX(0deg) rotateY(0deg)"}]}]}function Vn(t,e){const{direction:n="top",power:o,initialRotate:r=90}=t.namedEffect,s=o&&Xn[o]||r;if(e){let a=n;e.measure(i=>{if(!i)return;const c=getComputedStyle(i).getPropertyValue("--comp-rotate-z")||"0deg";a=L(ba,n,parseInt(c,10))}),e.mutate(i=>{const c=Ln(a,s);i?.style.setProperty("--motion-rotate-x",`${c.x}deg`),i?.style.setProperty("--motion-rotate-y",`${c.y}deg`)})}}const Sa=Object.freeze(Object.defineProperty({__proto__:null,getNames:Cn,prepare:Vn,style:Dn,web:Ia},Symbol.toStringTag,{value:"Module"}));function jn(t){return["motion-floatIn"]}const Pa={top:{dx:0,dy:-1,distance:120},right:{dx:1,dy:0,distance:120},bottom:{dx:0,dy:1,distance:120},left:{dx:-1,dy:0,distance:120}};function Aa(t){return Hn(t,!0)}function Hn(t,e){e===void 0&&(e=!1);const{direction:n="left"}=t.namedEffect,[o]=jn(),r=Pa[n],s=r.dx*r.distance,a=r.dy*r.distance,i={"--motion-translate-x":`${s}px`,"--motion-translate-y":`${a}px`};return[{...t,name:o,easing:"sineInOut",custom:i,keyframes:[{offset:0,opacity:0,easing:"step-end"},{offset:S,opacity:0,transform:`translate(${y(i,"--motion-translate-x",e)}, ${y(i,"--motion-translate-y",e)}) rotate(var(--comp-rotate-z, 0deg))`},{opacity:"var(--comp-opacity, 1)",transform:"translate(0, 0) rotate(var(--comp-rotate-z, 0deg))"}]}]}const Ta=Object.freeze(Object.defineProperty({__proto__:null,getNames:jn,style:Hn,web:Aa},Symbol.toStringTag,{value:"Module"}));function Bn(t){return["motion-fadeIn","motion-foldIn"]}const qn={soft:35,medium:60,hard:90},ka=["top","right","bottom","left"],$t={top:{x:-1,y:0,origin:{x:0,y:-50}},right:{x:0,y:-1,origin:{x:50,y:0}},bottom:{x:1,y:0,origin:{x:0,y:50}},left:{x:0,y:1,origin:{x:-50,y:0}}};function Zn(t,e){return{x:$t[t].x*e,y:$t[t].y*e}}function Ma(t,e){return Kn(t,e),Gn(t)}function Gn(t){const{direction:e="top",power:n,initialRotate:o=90}=t.namedEffect,[r,s]=Bn(),a=t.easing||"backOut",i=n&&qn[n]||o,{x:c,y:f}=$t[e].origin,l=Zn(e,i),u={"--motion-origin-x":`${c}%`,"--motion-origin-y":`${f}%`,"--motion-rotate-x":`${l.x}deg`,"--motion-rotate-y":`${l.y}deg`};return[{...t,easing:"quadOut",name:r,custom:{},keyframes:[{offset:0,opacity:0},{opacity:"var(--comp-opacity, 1)"}]},{...t,easing:a,name:s,custom:u,keyframes:[{offset:S,transform:`rotate(var(--comp-rotate-z, 0deg)) translate(var(--motion-origin-x ,${u["--motion-origin-x"]}), var(--motion-origin-y, ${u["--motion-origin-y"]})) perspective(800px) rotateX(var(--motion-rotate-x, ${u["--motion-rotate-x"]})) rotateY(var(--motion-rotate-y, ${u["--motion-rotate-y"]})) translate(calc(-1 * var(--motion-origin-x ,${u["--motion-origin-x"]})), calc(-1 * var(--motion-origin-y, ${u["--motion-origin-y"]})))`},{transform:`rotate(var(--comp-rotate-z, 0deg)) translate(var(--motion-origin-x ,${u["--motion-origin-x"]}), var(--motion-origin-y, ${u["--motion-origin-y"]})) perspective(800px) rotateX(0deg) rotateY(0deg) translate(calc(-1 * var(--motion-origin-x ,${u["--motion-origin-x"]})), calc(-1 * var(--motion-origin-y, ${u["--motion-origin-y"]})))`}]}]}function Kn(t,e){const{direction:n="top",power:o,initialRotate:r=90}=t.namedEffect,s=o&&qn[o]||r;if(e){let a=n;e.measure(i=>{if(!i)return;const c=getComputedStyle(i).getPropertyValue("--comp-rotate-z")||"0deg";a=L(ka,n,parseInt(c,10))}),e.mutate(i=>{const{origin:c}=$t[a],f=Zn(a,s);i?.style.setProperty("--motion-origin-x",`${c.x}%`),i?.style.setProperty("--motion-origin-y",`${c.y}%`),i?.style.setProperty("--motion-rotate-x",`${f.x}deg`),i?.style.setProperty("--motion-rotate-y",`${f.y}deg`)})}}const Ra=Object.freeze(Object.defineProperty({__proto__:null,getNames:Bn,prepare:Kn,style:Gn,web:Ma},Symbol.toStringTag,{value:"Module"}));function ee(t){return["motion-glideIn"]}const Fa={soft:"cubicInOut",medium:"quintInOut",hard:"backOut"};function Un(t,e){return oe(t,e),ne(t,!0)}function ne(t,e){e===void 0&&(e=!1);const{direction:n=0,distance:o={value:100,type:"percentage"},power:r,startFromOffScreen:s=!1}=t.namedEffect,[a]=ee(),i=n*Math.PI/180,c=T(o.type),f=r&&Fa[r]||t.easing||"quintInOut",{x:l,y:u}=Zr(n),m=s?l:`${Math.sin(i)*o.value|0}${c}`,p=s?u:`${Math.cos(i)*o.value*-1|0}${c}`,d={"--motion-translate-x":`${m}`,"--motion-translate-y":`${p}`};return[{...t,name:a,easing:f,custom:d,keyframes:[{offset:0,opacity:0,easing:"step-end"},{offset:S,opacity:"var(--comp-opacity, 1)",transform:`translate(${y(d,"--motion-translate-x",e)}, ${y(d,"--motion-translate-y",e)}) rotate(var(--comp-rotate-z, 0deg))`},{opacity:"var(--comp-opacity, 1)",transform:"translate(0, 0) rotate(var(--comp-rotate-z, 0deg))"}]}]}function oe(t,e){const{startFromOffScreen:n=!1}=t.namedEffect;if(e&&n){let o=0,r=0;e.measure(s=>{if(!s)return;const{left:a,top:i}=s.getBoundingClientRect();o=a,r=i}),e.mutate(s=>{s?.style.setProperty("--motion-left",`${o}px`),s?.style.setProperty("--motion-top",`${r}px`)})}}const za=Object.freeze(Object.defineProperty({__proto__:null,getNames:ee,prepare:oe,style:ne,web:Un},Symbol.toStringTag,{value:"Module"}));function Qn(t){const e=JSON.parse(JSON.stringify(t)),{direction:n}=e.namedEffect;return e.namedEffect.startFromOffScreen?e.namedEffect.direction=(n??270)-90:typeof n>"u"&&(e.namedEffect.direction=270),e}function Ya(t,e){return Un(Qn(t),e)}function Na(t){return ne(Qn(t))}const Ca=Object.freeze(Object.defineProperty({__proto__:null,getNames:ee,prepare:oe,style:Na,web:Ya},Symbol.toStringTag,{value:"Module"}));function Jn(t){return["motion-fadeIn","motion-growIn"]}const Xa={soft:.8,medium:.6,hard:0};function La(t){return Wn(t,!0)}function Wn(t,e){e===void 0&&(e=!1);const{power:n,initialScale:o=0,distance:r={value:120,type:"percentage"},direction:s=0}=t.namedEffect,[a,i]=Jn(),c=t.easing||"cubicInOut",f=typeof n<"u"?Xa[n]:o,l=s*Math.PI/180,u=T(r.type),m=`${Math.sin(l)*r.value|0}${u}`,p=`${Math.cos(l)*r.value*-1|0}${u}`,d={"--motion-translate-x":`${m}`,"--motion-translate-y":`${p}`,"--motion-scale":`${f}`};return[{...t,easing:c,duration:t.duration*f,name:a,custom:{},keyframes:[{offset:0,opacity:0},{opacity:"var(--comp-opacity, 1)"}]},{...t,easing:c,name:i,custom:d,keyframes:[{offset:S,transform:`translate(${y(d,"--motion-translate-x",e)}, ${y(d,"--motion-translate-y",e)}) rotate(var(--comp-rotate-z, 0deg)) scale(${y(d,"--motion-scale",e)})`},{transform:"translate(0px, 0px) rotate(var(--comp-rotate-z, 0deg)) scale(1)"}]}]}const Da=Object.freeze(Object.defineProperty({__proto__:null,getNames:Jn,style:Wn,web:La},Symbol.toStringTag,{value:"Module"}));function to(t){return["motion-fadeIn","motion-punchIn"]}const Va={"top-left":{y:-1,x:-1},"top-right":{y:-1,x:1},"bottom-right":{y:1,x:1},"bottom-left":{y:1,x:-1},center:{y:0,x:0}},ja={soft:"sineIn",medium:"quadIn",hard:"quintIn"};function Ha(t,e,n){return{x:`calc(var(--motion-width, 100%) * 1.1 / 3 * ${t} * ${n})`,y:`calc(var(--motion-height, 100%) * 1.1 / 3 * ${e} * ${n})`}}function Ba(t,e){return no(t,e),eo(t,!0)}function eo(t,e){e===void 0&&(e=!1);const{direction:n="top-right",power:o="medium"}=t.namedEffect,[r,s]=to(),a=Va[n],i={x:`calc(var(--motion-width, 100%) * 1.1 / 2 * ${a.x})`,y:`calc(var(--motion-height, 100%) * 1.1 / 2 * ${a.y})`},{in:c,out:f}=st(ja[o]),u=[{offset:30,scale:.3,factor:1,ease:"linear"},{offset:45,scale:1.4,factor:-.4,ease:f},{offset:62.65,scale:.8,factor:.2,ease:c},{offset:77.27,scale:1.1,factor:-.1,ease:f},{offset:86.23,scale:.94,factor:.06,ease:c},{offset:91.73,scale:1.03,factor:-.03,ease:f},{offset:95.11,scale:.98,factor:.02,ease:c},{offset:97.18,scale:1.01,factor:-.01,ease:f},{offset:98.45,scale:.99,factor:.01,ease:c},{offset:100,scale:1,factor:0,ease:f}].map(p=>{let{offset:d,scale:g,ease:h,factor:v}=p;const{x:$,y:w}=Ha(a.x,a.y,v);return{offset:d/100,easing:x(h),scale:`${g}`,translate:`${$} ${w}`}}),m={"--motion-translate":`${i.x} ${i.y}`};return[{...t,easing:"cubicIn",duration:t.duration*.3,name:r,custom:{},keyframes:[{offset:0,opacity:0},{opacity:"var(--comp-opacity, 1)"}]},{...t,easing:"linear",name:s,custom:m,keyframes:[{offset:S,translate:y(m,"--motion-translate",e),scale:"0",easing:j.expoIn},...u]}]}function no(t,e){if(e){let n,o;e.measure(r=>{if(!r)return;const s=r.getBoundingClientRect();n=s.width,o=s.height}),e.mutate(r=>{r?.style.setProperty("--motion-width",`${n}px`),r?.style.setProperty("--motion-height",`${o}px`)})}}const qa=Object.freeze(Object.defineProperty({__proto__:null,getNames:to,prepare:no,style:eo,web:Ba},Symbol.toStringTag,{value:"Module"}));function oo(t){return["motion-fadeIn","motion-shapeIn"]}const Za={diamond:{start:"polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%)",end:"polygon(50% -50%, 150% 50%, 50% 150%, -50% 50%)"},window:{start:"inset(50% round 50% 50% 0% 0%)",end:"inset(-20% round 50% 50% 0% 0%)"},rectangle:{start:"inset(50%)",end:"inset(0%)"},circle:{start:"circle(0%)",end:"circle(75%)"},ellipse:{start:"ellipse(0% 0%)",end:"ellipse(75% 75%)"}};function Ga(t){return ro(t,!0)}function ro(t,e){e===void 0&&(e=!1);const{shape:n="rectangle"}=t.namedEffect,[o,r]=oo(),s=t.easing||"cubicInOut",{start:a,end:i}=Za[n],c={"--motion-shape-start":a,"--motion-shape-end":i};return[{...t,name:o,easing:"quadOut",duration:t.duration*.8,custom:{},keyframes:[{offset:0,opacity:0},{opacity:"var(--comp-opacity, 1)"}]},{...t,name:r,easing:s,custom:c,keyframes:[{offset:S,clipPath:y(c,"--motion-shape-start",e)},{clipPath:y(c,"--motion-shape-end",e)}]}]}const Ka=Object.freeze(Object.defineProperty({__proto__:null,getNames:oo,style:ro,web:Ga},Symbol.toStringTag,{value:"Module"}));function so(t){return["motion-revealIn"]}const Ua=["top","right","bottom","left"];function ao(t,e){const n=L(Ua,e,t);return A({direction:n,minimum:0})}function Qa(t,e){return co(t,e),io(t)}function io(t){const{direction:e="left"}=t.namedEffect,[n]=so(),o=t.easing||"cubicInOut",r=ao(0,e),s=A({direction:"initial"});return[{...t,easing:o,name:n,custom:{"--motion-clip-start":r},keyframes:[{offset:0,opacity:0,easing:"step-end"},{offset:S,opacity:"var(--comp-opacity, 1)",clipPath:`var(--motion-clip-start, ${r})`},{clipPath:s}]}]}function co(t,e){const{direction:n="left"}=t.namedEffect;if(e){let o="0deg";e.measure(r=>{r&&(o=getComputedStyle(r).getPropertyValue("--comp-rotate-z")||"0deg")}),e.mutate(r=>{r?.style.setProperty("--motion-clip-start",ao(parseInt(o,10),n))})}}const Ja=Object.freeze(Object.defineProperty({__proto__:null,getNames:so,prepare:co,style:io,web:Qa},Symbol.toStringTag,{value:"Module"}));function lo(t){const{power:e}=t.namedEffect;return e!=="hard"?["motion-slideIn","motion-fadeIn"]:["motion-slideIn"]}const et={top:{dx:0,dy:-1,clip:"bottom"},right:{dx:1,dy:0,clip:"left"},bottom:{dx:0,dy:1,clip:"top"},left:{dx:-1,dy:0,clip:"right"}},Wa=["top","right","bottom","left"],fo={soft:.2,medium:.8,hard:1};function ti(t,e){const n=uo(t);return mo(t,e),n}function uo(t){const{direction:e="left",power:n,initialTranslate:o=1}=t.namedEffect,[r,s]=lo(t),a=t.easing||"cubicInOut",c=100-(n&&fo[n]||o)*100,f=A({direction:e,minimum:c}),l=A({direction:"initial"}),u={"--motion-clip-start":f,"--motion-translate-x":`${et[e].dx*100}%`,"--motion-translate-y":`${et[e].dy*100}%`},m=[{...t,name:r,easing:a,custom:u,keyframes:[{offset:S,opacity:"var(--comp-opacity, 1)",transform:"rotate(var(--comp-rotate-z, 0deg)) translate(var(--motion-translate-x, -100%), var(--motion-translate-y, 0%))",clipPath:`var(--motion-clip-start, ${u["--motion-clip-start"]})`},{transform:"rotate(var(--comp-rotate-z, 0deg)) translate(0px, 0px)",clipPath:l}]}];return n!=="hard"?m.push({...t,easing:"cubicInOut",name:s,custom:{},keyframes:[{offset:0,opacity:0},{opacity:"var(--comp-opacity, 1)"}]}):m[0].keyframes.unshift({offset:0,opacity:0,easing:"step-end"}),m}function mo(t,e){const{direction:n="left",power:o,initialTranslate:r=1}=t.namedEffect,a=100-(o&&fo[o]||r)*100;if(e){let i=0;e.measure(c=>{c&&(i=parseInt(getComputedStyle(c).getPropertyValue("--comp-rotate-z")||"0deg",10))}),e.mutate(c=>{const f=L(Wa,n,i);c?.style.setProperty("--motion-clip-start",A({direction:et[f].clip,minimum:a})),c?.style.setProperty("--motion-translate-x",`${et[f].dx*100}%`),c?.style.setProperty("--motion-translate-y",`${et[f].dy*100}%`)})}}const ei=Object.freeze(Object.defineProperty({__proto__:null,getNames:lo,prepare:mo,style:uo,web:ti},Symbol.toStringTag,{value:"Module"}));function po(t){return["motion-fadeIn","motion-spinIn"]}const ni={soft:1,medium:.6,hard:0},oi={clockwise:-1,"counter-clockwise":1};function ri(t){return go(t,!0)}function go(t,e){e===void 0&&(e=!1);const{direction:n="clockwise",spins:o=.5,initialScale:r=0,power:s}=t.namedEffect,[a,i]=po(),c=t.easing||"cubicInOut",f=typeof s<"u"?ni[s]:r,l=(oi[n]>0?1:-1)*360*o,u={"--motion-scale":`${f}`,"--motion-rotate":`${l}deg`};return[{...t,name:a,easing:"cubicIn",duration:t.duration*f,custom:{},keyframes:[{offset:0,opacity:0},{opacity:"var(--comp-opacity, 1)"}]},{...t,name:i,easing:c,custom:u,keyframes:[{offset:S,scale:y(u,"--motion-scale",e),rotate:y(u,"--motion-rotate",e)},{scale:"1",rotate:"0deg"}]}]}const si=Object.freeze(Object.defineProperty({__proto__:null,getNames:po,style:go,web:ri},Symbol.toStringTag,{value:"Module"}));function ho(t){return["motion-fadeIn","motion-tiltInRotate","motion-tiltInClip"]}const ai={left:30,right:-30},ii=["top","right","bottom","left"];function yo(t){const e=L(ii,"top",t);return A({direction:e,minimum:0})}function ci(t,e){return $o(t,e),vo(t,!0)}function vo(t,e){e===void 0&&(e=!1);const{direction:n="left"}=t.namedEffect,[o,r,s]=ho(),a=t.easing||"cubicOut",i=yo(0),c=ai[n],f=A({direction:"initial"}),l="(var(--motion-height, 200px) / 2)",u={"--motion-rotate-z":`${c}deg`,"--motion-clip-start":i};return[{...t,name:o,duration:t.duration*.2,easing:"cubicOut",custom:{},keyframes:[{offset:0,opacity:0},{opacity:"var(--comp-opacity, 1)"}]},{...t,name:r,easing:a,custom:{},keyframes:[{offset:0,easing:"step-end",transform:"perspective(800px)"},{offset:S,transform:`perspective(800px) translateZ(calc(${l} * -1)) rotateX(-90deg) translateZ(calc${l}) rotate(var(--comp-rotate-z, 0deg))`},{transform:`perspective(800px) translateZ(calc(${l} * -1)) rotateX(0deg) translateZ(calc${l}) rotate(var(--comp-rotate-z, 0deg))`}]},{...t,name:s,easing:a,composite:"add",duration:t.duration*.8,custom:u,keyframes:[{offset:S,clipPath:`var(--motion-clip-start, ${u["--motion-clip-start"]})`,transform:`rotateZ(${y(u,"--motion-rotate-z",e)})`},{clipPath:f,transform:"rotateZ(0deg)"}]}]}function $o(t,e){if(e){let n="0deg";e.measure(o=>{o&&(n=getComputedStyle(o).getPropertyValue("--comp-rotate-z")||"0deg")}),e.mutate(o=>{o?.style.setProperty("--motion-clip-start",yo(parseInt(n,10)))})}}const li=Object.freeze(Object.defineProperty({__proto__:null,getNames:ho,prepare:$o,style:vo,web:ci},Symbol.toStringTag,{value:"Module"}));function wo(t){return["motion-fadeIn","motion-turnIn"]}const Te={soft:"cubicInOut",medium:"quintInOut",hard:"backOut"},ke={"top-left":{angle:-50,x:-50,y:-50},"top-right":{angle:50,x:50,y:-50},"bottom-right":{angle:50,x:50,y:50},"bottom-left":{angle:-50,x:-50,y:50}};function fi(t){return Eo(t,!0)}function Eo(t,e){e===void 0&&(e=!1);const{direction:n="top-left",power:o}=t.namedEffect,[r,s]=wo(),a=o&&Te[o]?Te[o]:t.easing||"backOut",{x:i,y:c}=ke[n],f=ke[n].angle,l={"--motion-origin":`${i}%, ${c}%`,"--motion-origin-invert":`${-i}%, ${-c}%`,"--motion-rotate-z":`${f}deg`},u=y(l,"--motion-origin",e),m=y(l,"--motion-origin-invert",e);return[{...t,name:r,duration:t.duration*.6,easing:"sineIn",custom:{},keyframes:[{offset:0,opacity:0},{opacity:"var(--comp-opacity, 1)"}]},{...t,name:s,easing:a,custom:l,keyframes:[{offset:S,transform:`translate(${u}) rotate(${y(l,"--motion-rotate-z",e)}) translate(${m}) rotate(var(--comp-rotate-z, 0deg))`},{transform:`translate(${u}) rotate(0deg) translate(${m}) rotate(var(--comp-rotate-z, 0deg))`}]}]}const ui=Object.freeze(Object.defineProperty({__proto__:null,getNames:wo,style:Eo,web:fi},Symbol.toStringTag,{value:"Module"}));function Oo(t){return["motion-fadeIn","motion-winkInClip","motion-winkInRotate"]}const qt={vertical:{scaleY:0,scaleX:1},horizontal:{scaleY:1,scaleX:0}},_o=["vertical","horizontal"];function mi(t,e){return bo(t,e),xo(t)}function xo(t){const{direction:e="horizontal"}=t.namedEffect,[n,o,r]=Oo(),s=L(_o,e,0),{scaleX:a,scaleY:i}=qt[s],c=t.easing||"quintInOut",f=A({direction:e,minimum:100}),l=A({direction:"initial"}),u={"--motion-scale-x":a,"--motion-scale-y":i,"--motion-clip-start":f};return[{...t,easing:"quadOut",name:n,custom:{},keyframes:[{offset:0,opacity:0},{opacity:"var(--comp-opacity, 1)"}]},{...t,easing:c,name:o,custom:u,keyframes:[{offset:S,clipPath:`var(--motion-clip-start, ${u["--motion-clip-start"]})`},{clipPath:l}]},{...t,duration:t.duration*.85,easing:c,name:r,custom:u,keyframes:[{offset:S,transform:`rotate(var(--comp-rotate-z, 0deg)) scale(var(--motion-scale-x, ${u["--motion-scale-x"]}), var(--motion-scale-y, ${u["--motion-scale-y"]}))`},{transform:"rotate(var(--comp-rotate-z, 0deg)) scale(1, 1)"}]}]}function bo(t,e){const{direction:n="horizontal"}=t.namedEffect;if(e){let o=qt.horizontal,r=A({direction:"horizontal",minimum:100});e.measure(s=>{if(!s)return;const a=getComputedStyle(s).getPropertyValue("--comp-rotate-z")||"0",i=L(_o,n,parseInt(a,10));o=qt[i],r=A({direction:i,minimum:100})}),e.mutate(s=>{s?.style.setProperty("--motion-clip-start",r),s?.style.setProperty("--motion-scale-x",`${o.scaleX}`),s?.style.setProperty("--motion-scale-y",`${o.scaleY}`)})}}const di=Object.freeze(Object.defineProperty({__proto__:null,getNames:Oo,prepare:bo,style:xo,web:mi},Symbol.toStringTag,{value:"Module"})),Me={ArcIn:ea,BlurIn:oa,ShuttersIn:sa,BounceIn:ua,CurveIn:pa,CircleIn:ya,DropIn:$a,ExpandIn:Oa,FadeIn:xa,FlipIn:Sa,FloatIn:Ta,FoldIn:Ra,GlideIn:za,GlitchIn:Ca,GrowIn:Da,PunchIn:qa,ShapeIn:Ka,RevealIn:Ja,SlideIn:ei,SpinIn:si,TiltIn:li,TurnIn:ui,WinkIn:di},Pt={soft:1,medium:2,hard:3},pi=[{keyframe:0,translateY:0},{keyframe:8.8,translateY:-55},{keyframe:17.6,translateY:-87},{keyframe:26.5,translateY:-98},{keyframe:35.3,translateY:-87},{keyframe:44.1,translateY:-55},{keyframe:53.1,translateY:0},{keyframe:66.2,translateY:-23},{keyframe:81,translateY:0},{keyframe:86.8,translateY:-5},{keyframe:94.1,translateY:0},{keyframe:97.1,translateY:-2},{keyframe:100,translateY:0}];function gi(t,e){return Io(t,!0)}function Io(t,e){e===void 0&&(e=!1);const{power:n="soft",intensity:o}=t.namedEffect,r=t.duration||1,s=t.delay||0,a=I(r,s),[i]=So(t),c=o?E(0,1,Pt.soft,Pt.hard,o):Pt[n],f=x("sineOut"),l={"--motion-bounce-factor":c},u=pi.map(m=>{let{keyframe:p,translateY:d}=m;return{offset:p/100*a,translate:`0px calc(${d/2}px * ${y(l,"--motion-bounce-factor",e)})`,easing:f}});return[{...t,name:i,delay:0,easing:"linear",duration:r+s,custom:l,keyframes:u}]}function So(t){return[`motion-bounce-${I(t.duration,t.delay,!0)}`]}const hi=Object.freeze(Object.defineProperty({__proto__:null,getNames:So,style:Io,web:gi},Symbol.toStringTag,{value:"Module"})),yi={vertical:{x:0,y:1,z:0},horizontal:{x:1,y:0,z:0},center:{x:0,y:0,z:1}},vi=[{translateFactor:1,timeFactor:.25},{translateFactor:-1,timeFactor:.5},{translateFactor:1,timeFactor:.5},{translateFactor:-.7,timeFactor:.5},{translateFactor:.6,timeFactor:.3333}];function $i(t,e){return Po(t,!0)}function Po(t,e){e===void 0&&(e=!1);const{direction:n="vertical",distance:o={value:25,type:"px"}}=t.namedEffect,r=t.easing||"sineInOut",s=t.duration||1,a=t.delay||0,i=3.2*s+a,c=I(s,i-s),[f]=Ao(t),{x:l,y:u,z:m}=yi[n],p=st(r),g={"--motion-breathe-perspective":n==="center"?"perspective(800px)":"","--motion-breathe-distance":`${o.value}${T(o.type||"px")}`,"--motion-breathe-x":l,"--motion-breathe-y":u,"--motion-breathe-z":m},h=`${y(g,"--motion-breathe-x",e)}`,v=`${y(g,"--motion-breathe-y",e)}`,$=`${y(g,"--motion-breathe-z",e)}`,w=`${y(g,"--motion-breathe-perspective",e," ")}`,O=`${y(g,"--motion-breathe-distance",e)}`;let b=0;const P=a?vi.map(k=>{let{translateFactor:F,timeFactor:C}=k;const D=b+C*c;b=D;const tt=`${O} * ${F}`;return{offset:D,easing:x(p.inOut),transform:`${w} translate3d(calc(${h} * ${tt}), calc(${v} * ${tt}), calc(${$} * ${tt})) rotateZ(var(--comp-rotate-z, 0deg))`}}):[{offset:.25,easing:x(p.inOut),transform:`${w} translate3d(calc(${h} * ${O}), calc(${v} * ${O}), calc(${$} * ${O})) rotateZ(var(--comp-rotate-z, 0deg))`},{offset:.75,easing:x(p.in),transform:`${w} translate3d(calc(${h} * -1 * ${O}), calc(${v} * -1 * ${O}), calc(${$} * -1 * ${O})) rotateZ(var(--comp-rotate-z, 0deg))`}];return[{...t,name:f,easing:"linear",delay:0,duration:a?i:s,custom:g,keyframes:[{offset:0,easing:x(p.out),transform:`${w} translate3d(0, 0, 0) rotateZ(var(--comp-rotate-z, 0deg))`},...P,{offset:1,transform:`${w} translate3d(0, 0, 0) rotateZ(var(--comp-rotate-z, 0deg))`}]}]}function Ao(t){return[`motion-breathe-${I(t.duration,t.delay,!0)}`]}const wi=Object.freeze(Object.defineProperty({__proto__:null,getNames:Ao,style:Po,web:$i},Symbol.toStringTag,{value:"Module"})),Ei={RIGHT:"calc(var(--motion-parent-width, 100vw) - var(--motion-left, 0px))",LEFT:"calc(var(--motion-left, 0px) * -1 - var(--motion-width, 100%))",TOP:"calc(var(--motion-top, 0px) * -1 - var(--motion-height, 100%))",BOTTOM:"calc(var(--motion-parent-height, 100vh) - var(--motion-top, 0px))"},{RIGHT:q,LEFT:Z,TOP:G,BOTTOM:K}=Ei,Re={"top-left":{from:`min(${q}, ${K})`,to:`min(calc(${Z} * -1), calc(${G} * -1))`},"top-right":{from:`min(calc(${Z} * -1), ${K})`,to:`min(${q}, calc(${G} * -1))`},"bottom-left":{from:`min(${q}, calc(${G} * -1))`,to:`min(calc(${Z} * -1), ${K})`},"bottom-right":{from:`min(calc(${Z} * -1), calc(${G} * -1))`,to:`min(${q}, ${K})`}},At={left:{from:`${q} 0`,to:`${Z} 0`},right:{from:`${Z} 0`,to:`${q} 0`},top:{from:`0 ${K}`,to:`0 ${G}`},bottom:{from:`0 ${G}`,to:`0 ${K}`}},Oi={left:t=>{let{left:e,width:n,parentWidth:o}=t;return(n+e)/(o+n||1)},right:t=>{let{left:e,width:n,parentWidth:o}=t;return(o-e)/(o+n||1)},bottom:t=>{let{top:e,height:n,parentHeight:o}=t;return(o-e)/(o+n||1)},top:t=>{let{top:e,height:n,parentHeight:o}=t;return(n+e)/(o+n||1)},"bottom-right":t=>{let{left:e,top:n,width:o,height:r,parentWidth:s,parentHeight:a}=t;const i=o+e,c=a-n;return i<c?i/(s+o||1):c/(a+r||1)},"bottom-left":t=>{let{left:e,top:n,width:o,height:r,parentWidth:s,parentHeight:a}=t;const i=s-e,c=a-n;return i<c?i/(s+o||1):c/(a+r||1)},"top-right":t=>{let{left:e,top:n,width:o,height:r,parentWidth:s,parentHeight:a}=t;const i=s-e,c=r+n;return i<c?i/(s+o||1):c/(a+r||1)},"top-left":t=>{let{left:e,top:n,width:o,height:r,parentWidth:s,parentHeight:a}=t;const i=s-e,c=r+n;return i<c?i/(s+o||1):c/(a+r||1)}};function _i(t){const e=Re[t].from,n=Re[t].to,o=t.startsWith("top")?1:-1,r=-o,s=t.endsWith("left")?1:-1,a=-s;return{from:`calc(${e} * ${s}) calc(${e} * ${o})`,to:`calc(${n} * ${a}) calc(${n} * ${r})`}}function xi(t,e){const{direction:n="right"}=t.namedEffect,o=t.duration||1,r=t.delay||0,s=I(o,r),[a]=To(),i={"--motion-left":"0px","--motion-top":"0px","--motion-width":"100%","--motion-height":"100%","--motion-parent-width":"100vw","--motion-parent-height":"100vh"};let c=0,f=0,l=0,u=0,m=0,p=0;return e&&(e.measure(d=>{if(!d)return;const{width:g,height:h}=d.getBoundingClientRect(),v=d.offsetParent,$=v?.getBoundingClientRect()||{},w=Gr(d,v);c=w.left,f=w.top,l=g,u=h,m=$.width,p=$.height}),e.mutate(d=>{d?.style.setProperty("--motion-left",`${c}px`),d?.style.setProperty("--motion-top",`${f}px`),d?.style.setProperty("--motion-width",`${l}px`),d?.style.setProperty("--motion-height",`${u}px`),d?.style.setProperty("--motion-parent-width",`${m}px`),d?.style.setProperty("--motion-parent-height",`${p}px`)})),[{...t,name:a,delay:0,easing:"linear",duration:o+r,custom:i,get keyframes(){const d=Oi[n]({left:c,top:f,width:l,height:u,parentWidth:m,parentHeight:p})*s;let g,h;if(n in At)g=At[n].from,h=At[n].to;else{const v=_i(n);g=v.from,h=v.to}return[{offset:0,translate:"0 0"},{offset:d,translate:h,easing:"step-start"},{offset:d,translate:g},{offset:s,translate:"0 0"},{offset:1,translate:"0 0"}]}}]}function To(t){return["motion-cross"]}const bi=Object.freeze(Object.defineProperty({__proto__:null,getNames:To,web:xi},Symbol.toStringTag,{value:"Module"}));function Ii(t,e){return ko(t)}function ko(t,e){const n=t.duration||1,o=t.delay||0,r=x(t.easing||"cubicInOut"),s=I(n,o),[a]=Mo(t),i=[{offset:0,opacity:1,easing:r},{offset:.5*s,opacity:0,easing:r},{offset:s,opacity:1},{offset:1,opacity:1}];return[{...t,name:a,easing:"linear",delay:0,duration:n+o,keyframes:i}]}function Mo(t){return[`motion-flash-${I(t.duration,t.delay,!0)}`]}const Si=Object.freeze(Object.defineProperty({__proto__:null,getNames:Mo,style:ko,web:Ii},Symbol.toStringTag,{value:"Module"})),Pi={soft:"linear",medium:"quintInOut",hard:"backOut"},Ai={vertical:{x:"1",y:"0"},horizontal:{x:"0",y:"1"}};function Ti(t,e){return Ro(t,!0)}function Ro(t,e){e===void 0&&(e=!1);const{direction:n="horizontal",power:o}=t.namedEffect,r=t.duration||1,s=t.delay||0,a=I(r,s),[i]=Fo(t),c=Ai[n],f=o&&Pi[o]||t.easing||"linear",l={"--motion-rotate-x":c.x,"--motion-rotate-y":c.y},u=`rotate3d(${y(l,"--motion-rotate-x",e)}, ${y(l,"--motion-rotate-y",e)}, 0, 0deg)`,m=`rotate3d(${y(l,"--motion-rotate-x",e)}, ${y(l,"--motion-rotate-y",e)}, 0, 360deg)`;return[{...t,name:i,delay:0,easing:"linear",duration:r+s,custom:l,keyframes:[{offset:0,transform:`perspective(800px) rotateZ(var(--comp-rotate-z, 0deg)) ${u}`,easing:x(f)},{offset:a,transform:`perspective(800px) rotateZ(var(--comp-rotate-z, 0deg)) ${m}`},{offset:1,transform:`perspective(800px) rotateZ(var(--comp-rotate-z, 0deg)) ${m}`}]}]}function Fo(t){return[`motion-flip-${I(t.duration,t.delay,!0)}`]}const ki=Object.freeze(Object.defineProperty({__proto__:null,getNames:Fo,style:Ro,web:Ti},Symbol.toStringTag,{value:"Module"})),Mi={soft:1,medium:2,hard:3},Ri={top:{rotation:{x:1,y:0},origin:{x:0,y:-50}},right:{rotation:{x:0,y:1},origin:{x:50,y:0}},bottom:{rotation:{x:1,y:0},origin:{x:0,y:50}},left:{rotation:{x:0,y:1},origin:{x:-50,y:0}}},Fe=15,Fi=[{fold:1,frameFactor:.25},{fold:-.7,frameFactor:.5},{fold:.6,frameFactor:.5},{fold:-.3,frameFactor:.45},{fold:.2,frameFactor:.4},{fold:-.05,frameFactor:.5},{fold:0,frameFactor:.35}];function zi(t,e){return zo(t,!0)}function zo(t,e){e===void 0&&(e=!1);const{direction:n="top",power:o,angle:r=Fe}=t.namedEffect,s=t.easing||"cubicInOut",a=t.duration||1,i=+(t.delay||0),[c]=Yo(t),f=typeof o>"u",{rotation:l,origin:u}=Ri[n],{x:m,y:p}=u,d=st(f?s:"cubicInOut"),g=f?r:Fe*Mi[o],h=3.2*a+i,v=I(a,h-a);let $=0;const w={"--motion-origin-x":`${m}%`,"--motion-origin-y":`${p}%`,"--motion-rotate-angle":`${g}deg`,"--motion-rotate-x":`${l.x}`,"--motion-rotate-y":`${l.y}`},O=`rotateZ(var(--comp-rotate-z, 0deg)) translateX(${y(w,"--motion-origin-x",e)}) translateY(${y(w,"--motion-origin-y",e)}) perspective(800px)`,b=`translateX(calc(-1 * ${y(w,"--motion-origin-x",e)})) translateY(calc(-1 * ${y(w,"--motion-origin-y",e)}))`,P=C=>`${O} rotateX(calc(${y(w,"--motion-rotate-x",e)} * ${C} * ${g}deg)) rotateY(calc(${y(w,"--motion-rotate-y",e)} * ${C} * ${g}deg)) ${b}`,k=i?Fi.map(C=>{let{fold:D,frameFactor:tt}=C;const se=$+tt*v;return $=se,{offset:se,easing:x("sineInOut"),transform:P(D)}}):[{offset:.25,easing:x(d.inOut),transform:P(1)},{offset:.75,easing:x(d.in),transform:P(-1)}],F=P(0);return[{...t,name:c,easing:"linear",delay:0,duration:i?h:a,custom:w,keyframes:[{offset:0,easing:x(d.out),transform:F},...k,{offset:1,transform:F}]}]}function Yo(t){const e=t.duration||1,n=+(t.delay||0);if(!n)return["motion-fold"];const o=3.2*e+n;return[`motion-fold-${I(e,o-e,!0)}`]}const Yi=Object.freeze(Object.defineProperty({__proto__:null,getNames:Yo,style:zo,web:zi},Symbol.toStringTag,{value:"Module"})),Tt={soft:1,medium:2,hard:4},Ni=[{keyframe:24,skewY:7},{keyframe:38,skewY:-2},{keyframe:58,skewY:4},{keyframe:80,skewY:-2},{keyframe:100,skewY:0}];function Ci(t,e){return No(t,!0)}function No(t,e){e===void 0&&(e=!1);const{power:n,intensity:o=.25}=t.namedEffect,r=t.duration||1,s=t.delay||0,[a]=Co(t),i=I(r,s),c=E(0,1,Tt.soft,Tt.hard,o),l={"--motion-skew-y":n&&Tt[n]||c},u=Ni.map(m=>{let{keyframe:p,skewY:d}=m;return{offset:p/100*i,transform:`rotateZ(var(--comp-rotate-z, 0deg)) skewY(calc(${y(l,"--motion-skew-y",e)} * ${d}deg))`}});return[{...t,name:a,delay:0,easing:"linear",duration:r+s,custom:l,keyframes:u}]}function Co(t){return[`motion-jello-${I(t.duration,t.delay,!0)}`]}const Xi=Object.freeze(Object.defineProperty({__proto__:null,getNames:Co,style:No,web:Ci},Symbol.toStringTag,{value:"Module"})),Li=[{keyframe:17,translate:7},{keyframe:32,translate:25},{keyframe:48,translate:8},{keyframe:56,translate:11},{keyframe:66,translate:25},{keyframe:83,translate:4},{keyframe:100,translate:0}],kt={soft:1,medium:2,hard:4},Di={top:{x:0,y:-1},bottom:{x:0,y:1},right:{x:1,y:0},left:{x:-1,y:0}};function Vi(t,e){return Xo(t,!0)}function Xo(t,e){e===void 0&&(e=!1);const{power:n,intensity:o=.5,direction:r="right"}=t.namedEffect,s=t.duration||1,a=+(t.delay||0),{x:i,y:c}=Di[r],f=I(s,a),[l]=Lo(t),u=E(0,1,kt.soft,kt.hard,o),m=n?kt[n]:u,p={"--motion-translate-x":i*m,"--motion-translate-y":c*m},d=Li.map(g=>{let{keyframe:h,translate:v}=g;const $=`calc(${y(p,"--motion-translate-x",e)} * ${v}px) calc(${y(p,"--motion-translate-y",e)} * ${v}px)`;return{offset:h/100*f,translate:$}});return[{...t,name:l,easing:"linear",delay:0,duration:s+a,custom:p,keyframes:d}]}function Lo(t){return[`motion-poke-${I(t.duration,t.delay,!0)}`]}const ji=Object.freeze(Object.defineProperty({__proto__:null,getNames:Lo,style:Xo,web:Vi},Symbol.toStringTag,{value:"Module"})),Mt={soft:0,medium:.05,hard:.1},ze=[{keyframe:45,scaleX:1.03,scaleY:.93},{keyframe:56,scaleX:.9,scaleY:1.03},{keyframe:66,scaleX:1.02,scaleY:.96},{keyframe:78,scaleX:.98,scaleY:1.02},{keyframe:89,scaleX:1.005,scaleY:.9995},{keyframe:100,scaleX:1,scaleY:1}];function Hi(t,e){return Do(t,!0)}function Do(t,e){e===void 0&&(e=!1);const{power:n,intensity:o=.5}=t.namedEffect,r=t.duration||1,s=t.delay||0,a=I(r,s),[i]=Vo(t),c=E(0,1,Mt.soft,Mt.hard,o),f=typeof n<"u"?Mt[n]:c,l={},u=ze.map((m,p)=>{let{keyframe:d,scaleX:g,scaleY:h}=m;const v=p===ze.length-1,$=p%2===0,w=f*(v?0:$?1:-.5),O=V(g+w,4),b=V(h-w,4),P=`--motion-scale-x-${d}`,k=`--motion-scale-y-${d}`;return l[P]=O,l[k]=b,{offset:d/100*a,transform:`rotateZ(var(--comp-rotate-z, 0deg)) scale(${y(l,P,e)}, ${y(l,k,e)})`}});return[{...t,name:i,easing:"linear",delay:0,duration:r+s,custom:l,keyframes:u}]}function Vo(t){return[`motion-rubber-${I(t.duration,t.delay,!0)}`]}const Bi=Object.freeze(Object.defineProperty({__proto__:null,getNames:Vo,style:Do,web:Hi},Symbol.toStringTag,{value:"Module"})),Rt={soft:0,medium:.06,hard:.12},qi=[{keyframe:27,scale:.96},{keyframe:45,scale:1},{keyframe:72,scale:.93},{keyframe:100,scale:1}];function Zi(t,e){return jo(t,!0)}function jo(t,e){e===void 0&&(e=!1);const{power:n,intensity:o=0}=t.namedEffect,r=t.duration||1,s=t.delay||0,a=I(r,s),[i]=Ho(t),c=E(0,1,Rt.soft,Rt.hard,o),l={"--motion-pulse-offset":typeof n<"u"?Rt[n]:c},u=qi.map(m=>{let{keyframe:p,scale:d}=m;return{offset:p/100*a,transform:`scale(${d<1?`calc(${d} - ${y(l,"--motion-pulse-offset",e)})`:"1"})`}});return a<1&&u.push({offset:1,transform:"scale(1)"}),[{...t,name:i,easing:"linear",delay:0,duration:r+s,custom:l,keyframes:u}]}function Ho(t){return[`motion-pulse-${I(t.duration,t.delay,!0)}`]}const Gi=Object.freeze(Object.defineProperty({__proto__:null,getNames:Ho,style:jo,web:Zi},Symbol.toStringTag,{value:"Module"})),Ki={soft:"linear",medium:"quintInOut",hard:"backOut"},Ui={clockwise:-1,"counter-clockwise":1};function Qi(t,e){return Bo(t,!0)}function Bo(t,e){e===void 0&&(e=!1);const{power:n,direction:o="clockwise"}=t.namedEffect,r=t.duration||1,s=t.delay||0,a=I(r,s),[i]=qo(t),c=n&&Ki[n]||t.easing||"linear",l={"--motion-rotate-start":`calc(var(--comp-rotate-z, 0deg) + ${(Ui[o]>0?1:-1)*360}deg)`};return[{...t,name:i,easing:"linear",delay:0,duration:r+s,custom:l,keyframes:[{offset:0,easing:x(c),rotate:y(l,"--motion-rotate-start",e)},{offset:a,rotate:"var(--comp-rotate-z, 0deg)"}]}]}function qo(t){return[`motion-spin-${I(t.duration,t.delay,!0)}`]}const Ji=Object.freeze(Object.defineProperty({__proto__:null,getNames:qo,style:Bo,web:Qi},Symbol.toStringTag,{value:"Module"})),Wi={soft:1,medium:2,hard:3},tc={top:{x:0,y:-1},right:{x:1,y:0},bottom:{x:0,y:1},left:{x:-1,y:0}},Ye=50,ec=[{factor:1,timeFactor:.25},{factor:-1,timeFactor:.5},{factor:.6,timeFactor:.5},{factor:-.3,timeFactor:.5},{factor:.2,timeFactor:.5},{factor:-.05,timeFactor:.5},{factor:0,timeFactor:.4}];function nc(t,e){return Zo(t,!0)}function Zo(t,e){e===void 0&&(e=!1);const{power:n,swing:o=20,direction:r="top"}=t.namedEffect,s=t.duration||1,a=t.delay||0,i=t.easing||"sineInOut",c=st(i),[f]=Go(t),l=typeof n<"u"?20*Wi[n]:o,{x:u,y:m}=tc[r],p=3.55*s+a,d=I(s,p-s),g={"--motion-swing-deg":`${l}deg`,"--motion-trans-x":`${u*Ye}%`,"--motion-trans-y":`${m*Ye}%`,"--motion-ease-in":x(c.in),"--motion-ease-inout":x(c.inOut),"--motion-ease-out":x(c.out)},h=`translate(${y(g,"--motion-trans-x",e)}, ${y(g,"--motion-trans-y",e)})`,v=`translate(calc(${y(g,"--motion-trans-x",e)} * -1), calc(${y(g,"--motion-trans-y",e)} * -1))`;let $=0;const w=a?ec.map(O=>{let{factor:b,timeFactor:P}=O;const k=$+P*d;return $=k,{offset:k,easing:y(g,"--motion-ease-inout",e),transform:`rotate(var(--comp-rotate-z, 0deg)) ${h} rotate(calc(${y(g,"--motion-swing-deg",e)} * ${b})) ${v}`}}):[{offset:.25,easing:y(g,"--motion-ease-inout",e),transform:`rotate(var(--comp-rotate-z, 0deg)) ${h} rotate(${y(g,"--motion-swing-deg",e)}) ${v}`},{offset:.75,easing:y(g,"--motion-ease-in",e),transform:`rotate(var(--comp-rotate-z, 0deg)) ${h} rotate(calc(${y(g,"--motion-swing-deg",e)} * -1)) ${v}`}];return[{...t,name:f,easing:"linear",delay:0,duration:a?p:s,custom:g,keyframes:[{offset:0,easing:y(g,"--motion-ease-out",e),transform:`rotateZ(var(--comp-rotate-z, 0deg)) ${h} rotate(0deg) ${v}`},...w,{offset:1,transform:`rotateZ(var(--comp-rotate-z, 0deg)) ${h} rotate(0deg) ${v}`}]}]}function Go(t){return[`motion-swing-${I(t.duration,t.delay,!0)}`]}const oc=Object.freeze(Object.defineProperty({__proto__:null,getNames:Go,style:Zo,web:nc},Symbol.toStringTag,{value:"Module"})),Ft={soft:1,medium:2,hard:4},rc=[{keyframe:18,transY:-10,accRotate:10},{keyframe:35,transY:0,accRotate:-18},{keyframe:53,transY:0,accRotate:14},{keyframe:73,transY:0,accRotate:-10},{keyframe:100,transY:0,accRotate:4}];function sc(t,e){return Ko(t,!0)}function Ko(t,e){e===void 0&&(e=!1);const{power:n,intensity:o=.5}=t.namedEffect,r=t.duration||1,s=t.delay||0,a=I(r,s),[i]=Uo(t),c=E(0,1,Ft.soft,Ft.hard,o),f=n&&Ft[n]||c;let l=0;const u={"--motion-wiggle-factor":f},m=rc.map(p=>{let{keyframe:d,transY:g,accRotate:h}=p;const v=d/100*a,$=`calc(var(--comp-rotate-z, 0deg) + ${V(l+h*f)}deg)`,w=`${g*f}px`,O=`--motion-rotate-${d}`,b=`--motion-translate-y-${d}`;return u[O]=$,u[b]=w,l+=h*f,{offset:v,transform:`rotate(${y(u,O,e)}) translateY(${y(u,b,e)})`}});return[{...t,name:i,easing:"linear",delay:0,duration:r+s,custom:u,keyframes:m}]}function Uo(t){return[`motion-wiggle-${I(t.duration,t.delay,!0)}`]}const ac=Object.freeze(Object.defineProperty({__proto__:null,getNames:Uo,style:Ko,web:sc},Symbol.toStringTag,{value:"Module"})),Ne={Bounce:hi,Breathe:wi,Cross:bi,Flash:Si,Flip:ki,Fold:Yi,Jello:Xi,Poke:ji,Rubber:Bi,Pulse:Gi,Spin:Ji,Swing:oc,Wiggle:ac};class Y{constructor(e,n){M(this,"target",void 0),M(this,"options",void 0),M(this,"currentProgress",void 0),this.target=e,this.options=n||{},this.currentProgress={x:.5,y:.5,v:{x:0,y:0},active:!0},this.play()}progress(e){let{x:n,y:o,v:r,active:s}=e;this.currentProgress={x:n,y:o,v:r,active:s},typeof this.options.customEffect=="function"&&this.options.customEffect(this.target,this.currentProgress)}cancel(){this.currentProgress={x:.5,y:.5,v:{x:0,y:0}}}getProgress(){return this.currentProgress}play(){this.options.transition&&this.target&&(this.target.style.transition=this.options.transition)}}function ic(t){return e=>new Y(e,t)}const Ce={soft:{angle:10,easing:"easeOut"},medium:{angle:50,easing:"easeOut"},hard:{angle:85,easing:"easeOut"}};class cc extends Y{progress(e){let{x:n,y:o}=e,r=0,s=0;const{distance:a,invert:i,angle:c,axis:f}=this.options;f!=="vertical"&&(r=E(0,1,-a.value,a.value,n)*i),f!=="horizontal"&&(s=E(0,1,-a.value,a.value,o)*i);const l=E(0,1,-c,c,n)*i,u=T(a.type);this.target.style.transform=`translateX(${r}${u}) translateY(${s}${u}) rotate(calc(${l}deg + var(--comp-rotate-z, 0deg)))`}cancel(){this.target.style.transform="",this.target.style.transition=""}}function lc(t){const{transitionDuration:e,transitionEasing:n}=t,{power:o,inverted:r=!1,distance:s={value:200,type:"px"},angle:a=30,axis:i="both"}=t.namedEffect,c=r?-1:1,f={transition:e?`transform ${e}ms ${z(o?Ce[o].easing:n)}`:"",invert:c,distance:s,angle:o?Ce[o].angle:a,axis:i};return l=>new cc(l,f)}const Xe={soft:{scale:1.2,easing:"easeOut"},medium:{scale:1.6,easing:"easeOut"},hard:{scale:2.4,easing:"easeOut"}};class fc extends Y{progress(e){let{x:n,y:o}=e;const{distance:r,scale:s,invert:a}=this.options,i=E(0,1,-r.value,r.value,n)*a,c=E(0,1,-r.value,r.value,o)*a,f=n<.5?E(0,.5,s,1,n):E(.5,1,1,s,n),l=o<.5?E(0,.5,s,1,o):E(.5,1,1,s,o),u=T(r.type);this.target.style.transform=`translateX(${i}${u}) translateY(${c}${u}) scale(${f}, ${l}) rotate(var(--comp-rotate-z, 0deg))`}cancel(){this.target.style.transform="",this.target.style.transition=""}}function uc(t){const{transitionDuration:e,transitionEasing:n}=t,{power:o,inverted:r=!1,distance:s={value:200,type:"px"},scale:a=1.4}=t.namedEffect,i=r?-1:1,c={transition:e?`transform ${e}ms ${z(o?Xe[o].easing:n)}`:"",invert:i,distance:s,scale:o?Xe[o].scale:a};return f=>new fc(f,c)}const ct={soft:{angle:0,scale:1,easing:"easeOut"},medium:{angle:25,scale:.7,easing:"easeOut"},hard:{angle:65,scale:.25,easing:"easeOut"}};class mc extends Y{progress(e){let{x:n,y:o}=e;const{distance:r,angle:s,scale:a,invert:i,blur:c,perspective:f}=this.options,l=E(0,1,-r.value,r.value,n)*i,u=E(0,1,-r.value,r.value,o)*i,m=n<.5?E(0,.5,a,1,n):E(.5,1,1,a,n),p=o<.5?E(0,.5,a,1,o):E(.5,1,1,a,o),d=Math.min(m,p),g=E(0,1,-s,s,o)*i,h=E(0,1,s,-s,n)*i,v=T(r.type),$=`perspective(${f}px) translateX(${l}${v}) translateY(${u}${v}) scale(${d}, ${d}) rotateX(${g}deg) rotateY(${h}deg) rotate(var(--comp-rotate-z, 0deg))`,w=Vr([.5,.5],[n,o]),b=`blur(${Math.round(E(0,1,0,c,an(w)))}px)`;this.target.style.transform=$,this.target.style.filter=b}cancel(){this.target.style.transform="",this.target.style.filter="",this.target.style.transition=""}}function dc(t){const{transitionDuration:e,transitionEasing:n}=t,{power:o,inverted:r=!1,distance:s={value:80,type:"px"},angle:a=5,scale:i=.3,blur:c=20,perspective:f=600}=t.namedEffect,l=r?-1:1,u={transition:e?`transform ${e}ms ${z(o?ct[o].easing:n)}, filter ${e}ms ${z(o?ct[o].easing:n)}`:"",distance:s,angle:o?ct[o].angle:a,scale:o?ct[o].scale:i,blur:c,perspective:f,invert:l};return m=>new mc(m,u)}const pc={soft:"linear",medium:"easeOut",hard:"hardBackOut"};class gc extends Y{progress(e){let{x:n,y:o}=e;const{invert:r,distance:s,axis:a}=this.options;let i=0,c=0;(a==="both"||a==="horizontal")&&(i=E(0,1,-s.value,s.value,n)*r),(a==="both"||a==="vertical")&&(c=E(0,1,-s.value,s.value,o)*r);const f=T(s.type);this.target.style.transform=`translateX(${i}${f}) translateY(${c}${f}) rotate(var(--comp-rotate-z, 0deg))`}cancel(){this.target.style.transform="",this.target.style.transition=""}}function Qo(t){const{transitionDuration:e,transitionEasing:n}=t,{power:o,inverted:r=!1,distance:s={value:200,type:"px"},axis:a="both"}=t.namedEffect,i=r?-1:1,c={transition:e?`transform ${e}ms ${z(o?pc[o]:n)}`:"",invert:i,distance:s,axis:a};return f=>new gc(f,c)}function hc(t){const{distance:e={value:80,type:"px"}}=t.namedEffect,{transitionEasing:n="elastic"}=t;return Qo({...t,transitionEasing:n,namedEffect:{...t.namedEffect,distance:e}})}const Le={down:{soft:{scale:.85,easing:"easeOut"},medium:{scale:.5,easing:"easeOut"},hard:{scale:0,easing:"easeOut"}},up:{soft:{scale:1.2,easing:"easeOut"},medium:{scale:1.6,easing:"easeOut"},hard:{scale:2.4,easing:"easeOut"}}};class yc extends Y{progress(e){let{x:n,y:o}=e;const{distance:r,scale:s,invert:a,axis:i}=this.options;let c=0,f=0,l=1,u=1;(i==="both"||i==="horizontal")&&(c=E(0,1,-r.value,r.value,n)*a,l=n<.5?E(0,.5,s,1,n):E(.5,1,1,s,n)),(i==="both"||i==="vertical")&&(f=E(0,1,-r.value,r.value,o)*a,u=o<.5?E(0,.5,s,1,o):E(.5,1,1,s,o));const m=s<1?Math.min(l,u):Math.max(l,u),p=T(r.type);this.target.style.transform=`translateX(${c}${p}) translateY(${f}${p}) scale(${m}) rotate(var(--comp-rotate-z, 0deg))`}cancel(){this.target.style.transform="",this.target.style.transition=""}}function vc(t){const{transitionDuration:e,transitionEasing:n}=t,{power:o,scaleDirection:r="down",inverted:s=!1,distance:a={value:80,type:"px"},axis:i="both",scale:c=1.4}=t.namedEffect,f=s?-1:1,l={transition:e?`transform ${e}ms ${z(o?Le[r][o].easing:n)}`:"",invert:f,distance:a,axis:i,scale:o?Le[r][o].scale:c};return u=>new yc(u,l)}const De={soft:{angle:10,easing:"easeOut"},medium:{angle:20,easing:"easeOut"},hard:{angle:45,easing:"easeOut"}};class $c extends Y{progress(e){let{x:n,y:o}=e,r=0,s=0,a=0,i=0;const{distance:c,angle:f,axis:l,invert:u}=this.options;l!=="vertical"&&(r=E(0,1,-c.value,c.value,n)*u,a=E(0,1,f,-f,n)*u),l!=="horizontal"&&(s=E(0,1,-c.value,c.value,o)*u,i=E(0,1,f,-f,o)*u),l==="both"&&(a*=E(0,1,1,-1,Ht(o)),i*=E(0,1,1,-1,Ht(n)));const m=T(c.type),p=`translateX(${r}${m}) translateY(${s}${m}) skew(${a}deg, ${i}deg) rotate(var(--comp-rotate-z, 0deg))`;this.target.style.transform=p}cancel(){this.target.style.transform="",this.target.style.transition=""}}function wc(t){const{transitionDuration:e,transitionEasing:n}=t,{power:o,inverted:r=!1,distance:s={value:200,type:"px"},angle:a=25,axis:i="both"}=t.namedEffect,c=r?-1:1,f={transition:e?`transform ${e}ms ${z(o?De[o].easing:n)}`:"",invert:c,distance:s,angle:o?De[o].angle:a,axis:i};return l=>new $c(l,f)}class Ec extends Y{progress(e){let{x:n,y:o}=e;const{invert:r,axis:s}=this.options,a=jr([.5,.5],[s==="vertical"?0:n,s==="horizontal"?0:o],90)*r;this.target.style.transform=`rotate(calc(${a}deg + var(--comp-rotate-z, 0deg)))`}cancel(){this.target.style.transform="",this.target.style.transition=""}}function Oc(t){const{transitionDuration:e,transitionEasing:n="linear"}=t,{inverted:o=!1,axis:r="both"}=t.namedEffect,s=o?-1:1,a={transition:e?`transform ${e}ms ${z(n)}`:"",invert:s,axis:r};return i=>new Ec(i,a)}const zt={soft:{angle:25,perspective:1e3,easing:"easeOut"},medium:{angle:50,perspective:700,easing:"easeOut"},hard:{angle:85,perspective:300,easing:"easeOut"}},_c={top:[0,-50],bottom:[0,50],right:[50,0],left:[-50,0],"center-horizontal":[0,0],"center-vertical":[0,0]};class xc extends Y{progress(e){let{x:n,y:o}=e,r="rotateX",s=o,a=-1;const{pivotAxis:i,angle:c,invert:f,perspective:l}=this.options;(i==="center-horizontal"||i==="right"||i==="left")&&(r="rotateY",s=n,a=1);const u=E(0,1,-c,c,s)*a*f,[m,p]=_c[i],d=`perspective(${l}px) translateX(${m}%) translateY(${p}%) ${r}(${u}deg) translateX(${-m}%) translateY(${-p}%) rotate(var(--comp-rotate-z, 0deg))`;this.target.style.transform=d}cancel(){this.target.style.transform="",this.target.style.transition=""}}function bc(t){const{transitionDuration:e,transitionEasing:n}=t,{power:o,inverted:r=!1,angle:s=5,perspective:a=800,pivotAxis:i="center-horizontal"}=t.namedEffect,c=r?-1:1,f={transition:e?`transform ${e}ms ${z(o?zt[o].easing:n)}`:"",invert:c,angle:o?zt[o].angle:s,perspective:o?zt[o].perspective:a,pivotAxis:i};return l=>new xc(l,f)}const Yt={soft:{angle:25,perspective:1e3,easing:"easeOut"},medium:{angle:50,perspective:500,easing:"easeOut"},hard:{angle:85,perspective:200,easing:"easeOut"}};class Ic extends Y{progress(e){let{x:n,y:o}=e;const{invert:r,angle:s,perspective:a}=this.options,i=E(0,1,s,-s,o)*r,c=E(0,1,-s,s,n)*r;this.target.style.transform=`perspective(${a}px) rotateX(${i}deg) rotateY(${c}deg) rotate(var(--comp-rotate-z, 0deg))`}cancel(){this.target.style.transform="",this.target.style.transition=""}}function Sc(t){const{transitionDuration:e,transitionEasing:n}=t,{power:o,inverted:r=!1,angle:s=5,perspective:a=800}=t.namedEffect,i=r?-1:1,c={transition:e?`transform ${e}ms ${z(o?Yt[o].easing:n)}`:"",invert:i,angle:o?Yt[o].angle:s,perspective:o?Yt[o].perspective:a};return f=>new Ic(f,c)}const Nt={soft:{angle:25,perspective:1e3,easing:"easeOut"},medium:{angle:50,perspective:500,easing:"easeOut"},hard:{angle:85,perspective:333,easing:"easeOut"}};class Pc extends Y{progress(e){let{x:n,y:o}=e;const{invert:r,distance:s,angle:a,axis:i,perspective:c}=this.options;let f=0,l=0,u=0,m=0;(i==="both"||i==="horizontal")&&(f=E(0,1,-s.value,s.value,n),m=E(0,1,-a,a,n)*r),(i==="both"||i==="vertical")&&(l=E(0,1,-s.value,s.value,o),u=E(0,1,a,-a,o)*r);const p=T(s.type);this.target.style.transform=`perspective(${c}px) translateX(${f}${p}) translateY(${l}${p}) rotateX(${u}deg) rotateY(${m}deg) rotate(var(--comp-rotate-z, 0deg))`}cancel(){this.target.style.transform="",this.target.style.transition=""}}function Ac(t){const{transitionDuration:e,transitionEasing:n}=t,{power:o,inverted:r=!1,distance:s={value:200,type:"px"},angle:a=5,axis:i="both",perspective:c=800}=t.namedEffect,f=r?-1:1,l={transition:e?`transform ${e}ms ${z(o?Nt[o].easing:n)}`:"",invert:f,distance:s,axis:i,angle:o?Nt[o].angle:a,perspective:o?Nt[o].perspective:c};return u=>new Pc(u,l)}const Ve={AiryMouse:lc,BlobMouse:uc,BlurMouse:dc,BounceMouse:hc,CustomMouse:ic,ScaleMouse:vc,SkewMouse:wc,SpinMouse:Oc,SwivelMouse:bc,Tilt3DMouse:Sc,Track3DMouse:Ac,TrackMouse:Qo};function N(t,e,n){e.measure(o=>{o&&(t.compHeight=o.offsetHeight)}),n&&e.mutate(o=>{o?.style.setProperty("--motion-comp-height",`${t.compHeight}px`)})}const Tc=()=>window.document.getElementById("masterPage"),kc=()=>{const t=window.document.getElementById("WIX_ADS");return t?t.offsetHeight:0},Mc=()=>{const t=Tc();return t?t.offsetHeight+kc():0};function Rc(t,e){e.measure(()=>{t.siteHeight=Mc()})}function Jo(t,e){return t>e?0:1/(1-t/e)}function Fc(t,e){const n={compHeight:0};e&&N(n,e);const o="linear",{scale:r=80}=t.namedEffect;return[{...t,easing:o,part:"BG_LAYER",startOffset:{name:"cover",offset:{type:"percentage",value:0}},get startOffsetAdd(){return`calc(50vh + ${Math.round(.5*n.compHeight)}px)`},endOffset:{name:"cover",offset:{type:"percentage",value:0}},get endOffsetAdd(){return`calc(100vh + ${n.compHeight}px)`},keyframes:[{opacity:1},{opacity:0}]},{...t,easing:o,part:"BG_MEDIA",startOffset:{name:"cover",offset:{type:"percentage",value:0}},endOffset:{name:"cover",offset:{type:"percentage",value:0}},get endOffsetAdd(){return`calc(100vh + ${n.compHeight}px)`},keyframes:[{transform:"perspective(100px) translateZ(0px)"},{transform:`perspective(100px) translateZ(${r}px)`}]}]}const zc="sineIn",Yc="sineOut";function Nc(t,e){const n={compHeight:0};e&&N(n,e);const{range:o="in"}=t.namedEffect,r=o==="out";return[{...t,part:"BG_LAYER",easing:r?Yc:zc,startOffset:{name:"cover",offset:{type:"percentage",value:0}},startOffsetAdd:r?"100vh":"0px",endOffset:{name:"cover",offset:{type:"percentage",value:0}},get endOffsetAdd(){return r?`calc(100vh + ${n.compHeight}px)`:`calc(50vh + ${Math.round(.5*n.compHeight)}px)`},keyframes:[{opacity:r?1:0},{opacity:r?0:1}]}]}function Cc(t,e){const n={compHeight:0};e&&N(n,e);const o="sineOut",{scale:r=.7}=t.namedEffect;return[{...t,easing:"linear",part:"BG_LAYER",startOffset:{name:"cover",offset:{type:"percentage",value:0}},startOffsetAdd:"100vh",endOffset:{name:"cover",offset:{type:"percentage",value:0}},get endOffsetAdd(){return`calc(100vh + ${n.compHeight}px)`},keyframes:[{opacity:1},{opacity:0}]},{...t,easing:o,part:"BG_LAYER",startOffset:{name:"cover",offset:{type:"percentage",value:0}},startOffsetAdd:"100vh",endOffset:{name:"cover",offset:{type:"percentage",value:0}},get endOffsetAdd(){return`calc(100vh + ${Math.round(.5*n.compHeight)}px)`},keyframes:[{scale:1},{scale:r}]}]}const Ct=100;function Xc(t,e){const n={compHeight:0};e&&N(n,e,!0);const{stretch:o=1.3,zoom:r=100/6}=t.namedEffect,s=Jo(r,Ct);return[{...t,part:"BG_IMG",easing:"sineOut",startOffset:{name:"cover",offset:{type:"percentage",value:0}},endOffset:{name:"cover",offset:{type:"percentage",value:0}},get endOffsetAdd(){return`calc(100svh + ${n.compHeight}px)`},get keyframes(){return[{transform:"translateY(10svh)"},{transform:`translateY(calc(${parseFloat((-.1*(2-s)).toFixed(2))} * var(--motion-comp-height, ${n.compHeight}px)))`}]}},{...t,part:"BG_IMG",easing:"linear",composite:"add",startOffset:{name:"cover",offset:{type:"percentage",value:0}},endOffset:{name:"cover",offset:{type:"percentage",value:0}},get endOffsetAdd(){return`calc(100svh + ${n.compHeight}px)`},keyframes:[{transform:`scaleY(${o})`},{transform:"scaleY(1)"}]},{...t,part:"BG_IMG",easing:"sineIn",composite:"add",startOffset:{name:"cover",offset:{type:"percentage",value:0}},endOffset:{name:"cover",offset:{type:"percentage",value:0}},get endOffsetAdd(){return`calc(100svh + ${n.compHeight}px)`},keyframes:[{transform:`perspective(${Ct}px) translateZ(0px)`},{transform:`perspective(${Ct}px) translateZ(${parseFloat(r.toFixed(2))}px)`}]}]}function Lc(t,e){const n={compHeight:0};e&&N(n,e);const{direction:o="left",speed:r=.2}=t.namedEffect,s=50*r/(1+r)|0;let a=`${s}%`,i=`-${s}%`;return o==="right"&&([a,i]=[i,a]),[{...t,part:"BG_MEDIA",startOffset:{name:"cover",offset:{type:"percentage",value:0}},endOffset:{name:"cover",offset:{type:"percentage",value:0}},get endOffsetAdd(){return`calc(100vh + ${n.compHeight}px)`},keyframes:[{transform:`translateX(${a})`},{transform:`translateX(${i})`}]}]}function Dc(t,e){const n={compHeight:0};e&&N(n,e,!0);const{speed:o=.2}=t.namedEffect;return[{...t,part:"BG_MEDIA",startOffset:{name:"cover",offset:{type:"percentage",value:0}},endOffset:{name:"cover",offset:{type:"percentage",value:0}},get endOffsetAdd(){return`calc(100svh + ${n.compHeight}px)`},keyframes:[{transform:`translateY(${100*o}svh)`},{transform:`translateY(calc((100% - 200lvh) * ${-o}))`}]}]}function Vc(t,e){const n={compHeight:0};e&&N(n,e);const o="linear",{scale:r=50}=t.namedEffect;return[{...t,easing:o,part:"BG_MEDIA",startOffset:{name:"cover",offset:{type:"percentage",value:0}},endOffset:{name:"cover",offset:{type:"percentage",value:0}},get endOffsetAdd(){return`${n.compHeight}px`},keyframes:[{transform:`perspective(100px) translate3d(0px, -${r/3|0}%, ${r}px)`},{transform:"perspective(100px) translate3d(0px, 0px, 0px)"}]}]}function jc(t,e){return e&&N({compHeight:0},e,!0),[]}function Hc(t){const e="sineOut",{angle:n=22,direction:o="counter-clockwise"}=t.namedEffect;return[{...t,easing:e,part:"BG_MEDIA",startOffset:{name:"cover",offset:{type:"percentage",value:0}},endOffset:{name:"cover",offset:{type:"percentage",value:0}},endOffsetAdd:"100vh",keyframes:[{transform:`rotate(${o==="counter-clockwise"?n:-n}deg)`},{transform:"rotate(0deg)"}]}]}function Bc(t,e){const n={compHeight:0};e&&N(n,e);const{angle:o=20,direction:r="counter-clockwise"}=t.namedEffect;return[{...t,part:"BG_MEDIA",startOffset:{name:"cover",offset:{type:"percentage",value:0}},endOffset:{name:"cover",offset:{type:"percentage",value:0}},get endOffsetAdd(){return`calc(100vh + ${n.compHeight}px)`},keyframes:[{transform:`skewY(${r==="counter-clockwise"?o:-o}deg)`},{transform:`skewY(${r==="counter-clockwise"?-o:o}deg)`}]}]}const lt=100,qc=40,Zc=.375,Gc={in:{easing:"sineIn",fromY:"20svh"},out:{easing:"sineInOut",fromY:"0px"}};function Kc(t,e){const{direction:n="in"}=t.namedEffect,o=n==="in",r={compHeight:0};e&&N(r,e,o);const{easing:s,fromY:a}=Gc[n];let{zoom:i=qc}=t.namedEffect;o||(i*=Zc);const c=V(o?0:i/1.3),f=V(o?i:-i),l=V(Jo(f,lt));return[{...t,part:"BG_MEDIA",easing:"linear",startOffset:{name:"cover",offset:{type:"percentage",value:0}},endOffset:{name:"cover",offset:{type:"percentage",value:0}},keyframes:[{transform:"translate3d(0, 0, 0)"},{transform:"translate3d(0, 0, 0)"}]},{...t,part:"BG_IMG",easing:"linear",startOffset:{name:"cover",offset:{type:"percentage",value:0}},endOffset:{name:"cover",offset:{type:"percentage",value:0}},get endOffsetAdd(){return`calc(100svh + ${r.compHeight}px)`},get keyframes(){const u=o?`calc(-0.2 * var(--motion-comp-height, ${r.compHeight}px) + 0.5 * ${i/lt} * max(0px, 100lvh - var(--motion-comp-height, ${r.compHeight}px)))`:"0px";return[{transform:`translateY(${a})`},{transform:`translateY(calc(${u} * ${l}))`}]}},{...t,easing:s,part:"BG_IMG",composite:o?"add":"replace",startOffset:{name:"cover",offset:{type:"percentage",value:0}},endOffset:{name:"cover",offset:{type:"percentage",value:0}},get endOffsetAdd(){return`calc(100svh + ${r.compHeight}px)`},keyframes:[{transform:`perspective(${lt}px) translateZ(${c}px)`},{transform:`perspective(${lt}px) translateZ(${f}px)`}]}]}function Uc(t,e){const{speed:n=1.5,reverse:o=!1,isPage:r=!1}=t.namedEffect,s={compHeight:0,siteHeight:0};e&&(r?Rc(s,e):N(s,e));let a=-100*(n-1);r||(a=a/n);let i=0;return o&&([a,i]=[i,a]),[{...t,part:"BG_MEDIA",startOffset:{name:r?"contain":"cover",offset:{type:"percentage",value:0}},endOffset:{name:"cover",offset:{type:"percentage",value:0}},get endOffsetAdd(){return r?`${s.siteHeight}px`:`calc(100vh + ${s.compHeight}px)`},keyframes:[{transform:`translateY(${a|0}%)`},{transform:`translateY(${i|0}%)`}]}]}const je={BgCloseUp:Fc,BgFade:Nc,BgFadeBack:Cc,BgFake3D:Xc,BgPan:Lc,BgParallax:Dc,BgPullBack:Vc,BgReveal:jc,BgRotate:Hc,BgSkew:Bc,BgZoom:Kc,ImageParallax:Uc};function Qc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var dt={exports:{}},He=dt.exports,Be;function Jc(){return Be||(Be=1,(function(t){(function(e){var n=function(){},o=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(l){return setTimeout(l,16)};function r(){var l=this;l.reads=[],l.writes=[],l.raf=o.bind(e)}r.prototype={constructor:r,runTasks:function(l){for(var u;u=l.shift();)u()},measure:function(l,u){var m=u?l.bind(u):l;return this.reads.push(m),s(this),m},mutate:function(l,u){var m=u?l.bind(u):l;return this.writes.push(m),s(this),m},clear:function(l){return i(this.reads,l)||i(this.writes,l)},extend:function(l){if(typeof l!="object")throw new Error("expected object");var u=Object.create(this);return c(u,l),u.fastdom=this,u.initialize&&u.initialize(),u},catch:null};function s(l){l.scheduled||(l.scheduled=!0,l.raf(a.bind(null,l)))}function a(l){var u=l.writes,m=l.reads,p;try{n("flushing reads",m.length),l.runTasks(m),n("flushing writes",u.length),l.runTasks(u)}catch(d){p=d}if(l.scheduled=!1,(m.length||u.length)&&s(l),p)if(n("task errored",p.message),l.catch)l.catch(p);else throw p}function i(l,u){var m=l.indexOf(u);return!!~m&&!!l.splice(m,1)}function c(l,u){for(var m in u)u.hasOwnProperty(m)&&(l[m]=u[m])}var f=e.fastdom=e.fastdom||new r;t.exports=f})(typeof window<"u"?window:typeof He<"u"?He:globalThis)})(dt)),dt.exports}var Wc=Jc();const X=Qc(Wc);function Q(t,e){return t?document.getElementById(t):null}function tl(t,e){return t!=null&&t.matches(`[data-motion-part~="${e}"]`)?t:t?.querySelector(`[data-motion-part~="${e}"]`)}function el(t){const e=t.alternate?"alternate":"";return t.reversed?`${e?`${e}-`:""}reverse`:e||"normal"}function Xt(t){return`${t.value}${T(t.type)}`}function qe(t,e,n){return`${t.name||"cover"} ${n&&t.offset.type!=="percentage"?`calc(100% + ${Xt(t.offset)}${e?` + ${e}`:""})`:e?`calc(${Xt(t.offset)} + ${e})`:Xt(t.offset)}`}function nl(t){return{start:qe(t.startOffset,t.startOffsetAdd),end:qe(t.endOffset,t.endOffsetAdd,!0)}}function Wo(t){return e=>X.measure(()=>e(t))}function tr(t){return e=>X.mutate(()=>e(t))}function wt(t){if(t.namedEffect){const e=t.namedEffect.type;if(e in xe)return xe[e];if(e in Me)return Me[e];if(e in Ne)return Ne[e];if(e in Ve)return Ve[e];if(e in je)return je[e]}else if(t.keyframeEffect){const e=o=>{const{name:r,keyframes:s}=o.keyframeEffect;return[{...o,name:r,keyframes:s}]};return{web:e,style:e,getNames:o=>{const{effectId:r}=o,{name:s}=o.keyframeEffect,a=s||r;return a?[a]:[]}}}else if(t.customEffect)return e=>[{...e,keyframes:[]}];return null}function ol(t,e,n){return t.map((o,r)=>{const s={fill:o.fill,easing:x(o.easing),iterations:o.iterations===0?1/0:o.iterations||1,composite:o.composite,direction:el(o)};return er(e)?(s.duration=o.duration,s.delay=o.delay||0):window.ViewTimeline?s.duration="auto":(s.duration=99.99,s.delay=.01),{effect:o,options:s,id:n&&`${n}-${r+1}`,part:o.part}})}function er(t){return!t||t.trigger!=="pointer-move"&&t.trigger!=="view-progress"}function Ze(t,e,n,o,r){if(t){if(er(o)&&(e.duration=e.duration||1,r!=null&&r.reducedMotion))if(e.iterations===1||e.iterations==null)e={...e,duration:1};else return[];let s;return n instanceof HTMLElement&&(s={measure:Wo(n),mutate:tr(n)}),t.web?t.web(e,s,r):t(e,s,r)}return[]}function re(t,e,n,o,r){const s=t instanceof HTMLElement?t:Q(t);if(n?.trigger==="pointer-move"){let m=e;e.customEffect&&(m={...e,namedEffect:{id:"",type:"CustomMouse"}});const p=wt(m);return Ze(p,e,s,n,o)(s)}const a=wt(e),i=Ze(a,e,s,n,o),c=ol(i,n,e.effectId);let f;const l=n?.trigger==="view-progress";l&&window.ViewTimeline&&(f=new ViewTimeline({subject:n.element||Q(n.componentId)}));const u=c.map(m=>{let{effect:p,options:d,id:g,part:h}=m;const v=h?tl(s,h):s,$=new KeyframeEffect(v||null,[],d);X.mutate(()=>{"timing"in p&&$.updateTiming(p.timing),$.setKeyframes(p.keyframes)});const w=l&&f?{timeline:f}:{},O=typeof p.customEffect=="function"?new Ur(p.customEffect,v||null,d,w):new Animation($,w.timeline);if(l)if(f)X.mutate(()=>{const{start:b,end:P}=nl(p);O.rangeStart=b,O.rangeEnd=P,O.play()});else{const{startOffset:b,endOffset:P}=e;X.mutate(()=>{var k,F;const C=p.startOffset||b,D=p.endOffset||P;Object.assign(O,{start:{name:C.name,offset:(k=C.offset)==null?void 0:k.value,add:p.startOffsetAdd},end:{name:D.name,offset:(F=D.offset)==null?void 0:F.value,add:p.endOffsetAdd}})})}return g&&(O.id=g),O});return new Wt(u,{...e,trigger:{...n||{}},measured:new Promise(m=>X.mutate(m))})}function rl(t,e,n){const o=wt(e),r=t instanceof HTMLElement?t:Q(t);if(o&&o.prepare&&r){const s={measure:Wo(r),mutate:tr(r)};o.prepare(e,s)}n&&X.mutate(n)}function sl(t,e){const n=wt(e);if(!n)return null;if(!n.style)return e.effectId&&t?al(t,e.effectId):null;const o=n.getNames(e),r=typeof t=="string"?Q(t):t,s=r?.getAnimations(),a=s?.map(c=>c.animationName)||[],i=[];return o.forEach(c=>{a.includes(c)&&i.push(s?.find(f=>f.animationName===c))}),i!=null&&i.length?new Wt(i):null}function al(t,e){const n=typeof t=="string"?Q(t):t,o=n?.getAnimations().filter(r=>{const s=r.id||r.animationName;return s?s.startsWith(e):!0});return o!=null&&o.length?new Wt(o):null}function nr(t,e,n,o){o===void 0&&(o={});const{disabled:r,allowActiveEvent:s,...a}=o,i=re(t,e,n,a);let c={};if(n.trigger==="view-progress"&&!window.ViewTimeline){const f=n.element||Q(n.componentId),{ready:l}=i;return i.animations.map(u=>({get start(){return u.start},get end(){return u.end},viewSource:f,ready:l,getProgress(){return i.getProgress()},effect(m,p){const{activeDuration:d}=u.effect.getComputedTiming(),{delay:g}=u.effect.getTiming();u.currentTime=((g||0)+(d||0))*p},disabled:r,destroy(){u.cancel()}}))}else if(n.trigger==="pointer-move"){const{centeredToTarget:f,transitionDuration:l,transitionEasing:u}=e;c={target:i.target,centeredToTarget:f,allowActiveEvent:s},e.customEffect&&l&&(c.transitionDuration=l,c.transitionEasing=Br(u))}return{...c,getProgress(){return i.getProgress()},effect(f,l,u,m){i.progress(u?{...l,v:u,active:m}:l)},disabled:r,destroy(){i.cancel()}}}function _t(t,e,n,o){o===void 0&&(o=!1);const r=sl(t,e);return r?(r.ready=new Promise(s=>{rl(t,e,s)}),r):re(t,e,n,{reducedMotion:o})}function Lt(t,e){return e.includes("&")?e.replace(/&/g,t):`${t}${e}`}function il(){return"wi-12343210".replace(/\d/g,t=>String.fromCharCode((+t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+t/4)+97))}function cl({key:t,effectId:e,transition:n,properties:o,childSelector:r="> :first-child",selectorCondition:s}){let a=[];if(n?.styleProperties){const{duration:d,easing:g,delay:h}=n;d&&(n.styleProperties.some($=>$.name.startsWith("--"))?a=[`all ${d}ms ${x(g||"ease")}${h?` ${h}ms`:""}`,"visibility 0s"]:a=n.styleProperties.map($=>`${$.name} ${d}ms ${x(g||"ease")}${h?` ${h}ms`:""}`)),o=n.styleProperties}else a=o?.filter(d=>d.duration).map(d=>`${d.name} ${d.duration}ms ${x(d.easing)||"ease"}${d.delay?` ${d.delay}ms`:""}`)||[];const i=o?.map(d=>`${d.name}: ${d.value};`)||[],c=t.replace(/"/g,"'"),f=`:is(:state(${e}), :--${e}) ${r}`,l=`[data-interact-effect~="${e}"] ${r}`,u=s?Lt(f,s):f,m=s?Lt(l,s):l,p=[`${u},
|
|
2
|
-
${m} {
|
|
3
|
-
${i.join(`
|
|
4
|
-
`)}
|
|
5
|
-
}`];if(a.length){const d=`[data-interact-key="${c}"] ${r}`,g=s?Lt(d,s):d;p.push(`@media (prefers-reduced-motion: no-preference) { ${g} {
|
|
6
|
-
transition: ${a.join(", ")};
|
|
7
|
-
} }`)}return p}function xt(t,e){const n=(t||[]).filter(s=>e[s]?.type==="media"&&e[s].predicate).map(s=>e[s].predicate).join(") and ("),o=n&&`(${n})`;return o&&window.matchMedia(o)}function or(t,e){for(const n of t||[]){const o=e[n];if(o?.type==="selector"&&o.predicate)return o.predicate}}function J(t){if(t.duration)return{id:"",...t};const{rangeStart:e,rangeEnd:n,...o}=t;return{id:"",startOffset:e,endOffset:n,...o}}function R(t,e,n){let o=t.get(e);o||(o=new Set,t.set(e,o)),o.add(n)}function W(t,e){t.get(e)?.forEach(o=>{const{source:r,target:s,cleanup:a}=o;a();const i=r===e?s:r;t.get(i)?.delete(o)}),t.delete(e)}const ll={root:null,rootMargin:"0px 0px -10% 0px",threshold:[0]},Dt={},Et=new WeakMap,pt=new WeakSet,gt=new WeakMap;let rr={};function fl(t){rr=t}function sr(t,e=!1){const n=JSON.stringify({...t,isSafeMode:e});if(Dt[n])return Dt[n];const o=e?ll:{root:null,rootMargin:t.inset?`${t.inset} 0px ${t.inset}`:"0px",threshold:t.threshold},r=new IntersectionObserver(s=>{s.forEach(a=>{const i=a.target;if(!pt.has(i)&&(pt.add(i),t.useSafeViewEnter&&!a.isIntersecting)){X.measure(()=>{const f=a.boundingClientRect.height,l=a.rootBounds?.height;if(!l)return;const u=Array.isArray(t.threshold)?Math.min(...t.threshold):t.threshold;u&&f*u>l&&X.mutate(()=>{r.unobserve(i);const p=sr(t,!0);gt.set(i,p),p.observe(i)})});return}a.isIntersecting&&(Et.get(i)?.forEach(({source:l,handler:u})=>{l===a.target&&u()}),t.type==="once"&&(r.unobserve(a.target),pt.delete(i)))})},o);return Dt[n]=r,r}function ul(t,e,n,o={},{reducedMotion:r,selectorCondition:s}={}){const a=sr({...rr,...o}),i=_t(e,J(n),void 0,r);i?.isCSS&&o.type==="once"&&i.onFinish(()=>{e.dataset.motionEnter="done"});const l={source:t,target:e,handler:()=>{s&&!e.matches(s)||i.play(()=>{i.isCSS||(e.dataset.motionEnter="done")})},cleanup:()=>{(gt.get(t)||a).unobserve(t),i.cancel(),pt.delete(t),gt.delete(t)}};R(Et,t,l),R(Et,e,l),gt.set(t,a),a.observe(t)}function ml(t){W(Et,t)}const Ge={add:ul,remove:ml,setOptions:fl};function ar(t,e){return Object.assign(Object.create(e),t)}function dl(t,e,n,o){let r=t*(1-n)+e*n;if(o){const s=r-t;Math.abs(s)<o&&(r=t+o*Math.sign(s));const a=e-r;if(Math.abs(a)<o)return e}return r}function pl(t){let e=!1;return function(){e||(e=!0,window.requestAnimationFrame(()=>{e=!1,t()}))}}function Ke(t,e){let n=0;return function(){n&&window.clearTimeout(n),n=window.setTimeout(()=>{n=0,t()},e)}}function gl(t,e){const n=t.match(/^calc\s*\(\s*(-?\d+((px)|([lsd]?vh)|([lsd]?vw)))\s*\+\s*(-?\d+((px)|([lsd]?vh)|([lsd]?vw)))\s*\)\s*$/);return Ot(n[1],e)+Ot(n[6],e)}function Ot(t,e){return t?/^-?\d+px$/.test(t)?parseInt(t):/^-?\d+[lsd]?vh$/.test(t)?parseInt(t)*e.viewportHeight/100:/^-?\d+[lsd]?vw$/.test(t)?parseInt(t)*e.viewportWidth/100:/^calc\s*\(\s*-?\d+((px)|([lsd]?vh)|([lsd]?vw))\s*\+\s*-?\d+((px)|([lsd]?vh)|([lsd]?vw))\s*\)\s*$/.test(t)?gl(t,e):parseInt(t)||0:0}function H(t,e,n){const{name:o,offset:r=0}=t,{start:s,end:a}=n,i=a-s,c=r/100;let f,l;return o==="entry"?(f=s-e,l=Math.min(e,i)):o==="entry-crossing"?(f=s-e,l=i):o==="contain"?(f=Math.min(a-e,s),l=Math.abs(e-i)):o==="exit"?(f=Math.max(s,a-e),l=Math.min(e,i)):o==="exit-crossing"?(f=s,l=i):o==="cover"&&(f=s-e,l=i+e),f+c*l|0}function Vt(t,e,n,o,r){let s=0;const a={start:e,end:n};return t.forEach((i,c)=>{s+=i.offset;const f=i.sticky;if(f){if("end"in f&&t[c-1]?.element){const m=((r?i.element.offsetWidth:i.element.offsetHeight)||0)+f.end-o,p=s+m-i.offset,d=p<a.start,g=!d&&p<=n;let h=0;(d||g)&&(h=i.offset,a.end+=h),d&&(a.start+=h)}if("start"in f){const l=s-f.start,u=l<a.start,m=!u&&l<=a.end;let p=0;const d=t[c-1]?.element;if(d){if(u||m){const g=(r?d.offsetWidth:d.offsetHeight)||0,h=i.offset,v=(r?i.element.offsetWidth:i.element.offsetHeight)||0;p=g-(h+v),s+=p,a.end+=p}u&&(a.start+=p)}}}}),a}function hl(t,e,n,o,r,s){const{start:a,end:i,duration:c}=t;let f=a,l=i,u=t.startRange,m=t.endRange,p;if(typeof c=="string"){u={name:c,offset:0},m={name:c,offset:100},f=H(u,n,e),l=H(m,n,e),p=l-f;const d=Vt(s,f,l,n,o);f=d.start,l=d.end}else{if(u||a?.name){u=u||a;const d=Ot(u.add,r),g=H({...u,offset:0},n,e),h=H({...u,offset:100},n,e),v=Vt(s,g,h,n,o);f=v.start+u.offset/100*(v.end-v.start)+d}if(m||i?.name){m=m||i;const d=Ot(m.add,r),g=H({...m,offset:0},n,e),h=H({...m,offset:100},n,e),v=Vt(s,g,h,n,o);l=v.start+m.offset/100*(v.end-v.start)+d}else typeof c=="number"&&(l=f+c)}return!p&&!c&&(p=l-f),{...t,start:f,end:l,startRange:u,endRange:m,duration:p||c}}function yl(t){return t.position==="sticky"}function vl(t,e,n){return t.position==="fixed"&&(!e||e===window.document.body||e===n)}function $l(t,e){return parseInt(e?t.left:t.top)}function wl(t,e){return parseInt(e?t.right:t.bottom)}function El(t,e,n){n&&(t.style.position="static");const o=(e?t.offsetLeft:t.offsetTop)||0;return n&&(t.style.position=null),o}function Ol(t,e){let n;const o=$l(t,e),r=wl(t,e),s=!isNaN(o),a=!isNaN(r);return(s||a)&&(n={},s&&(n.start=o),a&&(n.end=r)),n}function ft(t,e,n,o,r){const s=t[0].viewSource,a=[];let i=(o?s.offsetWidth:s.offsetHeight)||0,c=0,f=s;for(;f;){const u=window.getComputedStyle(f),m=yl(u),p=m?Ol(u,o):void 0,d=El(f,o,m);if((!p||!("end"in p))&&(c+=d),a.push({element:f,offset:d,sticky:p}),f=f.offsetParent,vl(u,f,e))break;if(f===e){a.push({element:f,offset:0});break}}return a.reverse(),t.map(u=>({...hl(u,{start:c,end:c+i},n,o,r,a)}))}const Ue=100,_l={horizontal:!1,observeViewportEntry:!0,viewportRootMargin:"7% 7%",observeViewportResize:!1,observeSourcesResize:!1,observeContentResize:!1};function xl(t,e,n,o){let r=0;return t>=e&&t<=n?r=o?(t-e)/o:1:t>n&&(r=1),r}function Qe(t,e){return t===window?e?window.document.documentElement.clientWidth:window.document.documentElement.clientHeight:e?t.clientWidth:t.clientHeight}function bl(){return{viewportWidth:window.document.documentElement.clientWidth,viewportHeight:window.document.documentElement.clientHeight}}function Il(t){const e=ar(t,_l),n=e.root,o=e.horizontal,r=new WeakMap;let s=Qe(n,o),a,i,c,f,l;const u=[],m=bl();if(e.scenes=Object.values(t.scenes.reduce((g,h,v)=>{const $=h.groupId?`group-${h.groupId}`:String(v);return g[$]?g[$].push(h):g[$]=[h],g},{})).flatMap(g=>(g.every(h=>h.viewSource&&(typeof h.duration=="string"||h.start?.name))?(g=ft(g,n,s,o,m),(e.observeSourcesResize||e.observeContentResize)&&u.push(g)):g.forEach(h=>{h.end==null&&(h.end=h.start+h.duration),h.duration==null&&(h.duration=h.end-h.start)}),g)),e.scenes.forEach((g,h)=>{g.index=h}),u.length){const g=new Map;window.ResizeObserver&&(c=new window.ResizeObserver(function(h){h.forEach(v=>{const $=g.get(v.target),w=ft($,n,s,o,m);w.forEach((O,b)=>{e.scenes[O.index]=w[b]}),u.splice(u.indexOf($),1,w)})}),u.forEach(h=>{c.observe(h[0].viewSource,{box:"border-box"}),g.set(h[0].viewSource,h)}),e.observeContentResize&&e.contentRoot&&new window.ResizeObserver(Ke(()=>{const v=u.map($=>{const w=ft($,n,s,o,m);return w.forEach((O,b)=>{e.scenes[O.index]=w[b]}),w});u.length=0,u.push(...v),u.forEach($=>{g.set($[0].viewSource,$)})},Ue)).observe(e.contentRoot,{box:"border-box"})),e.observeViewportResize&&(f=Ke(function(){s=Qe(n,o);const h=u.map(v=>{const $=ft(v,n,s,o,m);return $.forEach((w,O)=>{e.scenes[w.index]=$[O]}),$});u.length=0,u.push(...h),u.forEach(v=>{g.set(v[0].viewSource,v)})},Ue),n===window?window.addEventListener("resize",f):window.ResizeObserver&&(l=new window.ResizeObserver(f),l.observe(n,{box:"border-box"})))}e.observeViewportEntry&&window.IntersectionObserver&&(i=new window.IntersectionObserver(function(g){g.forEach(h=>{(r.get(h.target)||[]).forEach(v=>{v.disabled=!h.isIntersecting})})},{root:n===window?window.document:n,rootMargin:e.viewportRootMargin,threshold:0}),e.scenes.forEach(g=>{if(g.viewSource){let h=r.get(g.viewSource);h||(h=[],r.set(g.viewSource,h),i.observe(g.viewSource)),h.push(g)}}));function p({p:g,vp:h}){g=+g.toFixed(1);const v=+h.toFixed(4);if(g!==a){for(let $ of e.scenes)if(!$.disabled){const{start:w,end:O,duration:b}=$,P=xl(g,w,O,b);$.effect($,P,v)}a=g}}function d(){e.scenes.forEach(g=>g.destroy?.()),i&&(i.disconnect(),i=null),c&&(c.disconnect(),c=null),f&&(l?(l.disconnect(),l=null):window.removeEventListener("resize",f))}return{tick:p,destroy:d}}const Sl={transitionActive:!1,transitionFriction:.9,transitionEpsilon:1,velocityActive:!1,velocityMax:1};class Pl{constructor(e={}){this.config=ar(e,Sl),this.progress={p:0,prevP:0,vp:0},this.currentProgress={p:0,prevP:0,vp:0},this._lerpFrameId=0,this.effect=null;const n=!this.config.root||this.config.root===window.document.body;this.config.root=n?window:this.config.root,this.config.contentRoot=this.config.contentRoot||(n?window.document.body:this.config.root.firstElementChild),this.config.resetProgress=this.config.resetProgress||this.resetProgress.bind(this),this._measure=this.config.measure||(()=>{const o=this.config.root;this.progress.p=this.config.horizontal?o.scrollX||o.scrollLeft||0:o.scrollY||o.scrollTop||0}),this._trigger=pl(()=>{this._measure?.(),this.tick(!0)})}start(){this.setupEffect(),this.setupEvent(),this.resetProgress(),this.tick()}pause(){this.removeEvent()}resetProgress(e={}){const n=this.config.root,o=e.x||e.x===0?e.x:n.scrollX||n.scrollLeft||0,r=e.y||e.y===0?e.y:n.scrollY||n.scrollTop||0,s=this.config.horizontal?o:r;this.progress.p=s,this.progress.prevP=s,this.progress.vp=0,this.config.transitionActive&&(this.currentProgress.p=s,this.currentProgress.prevP=s,this.currentProgress.vp=0),e&&this.config.root.scrollTo(o,r)}tick(e){const n=this.config.transitionActive;n&&this.lerp();const o=n?this.currentProgress:this.progress;if(this.config.velocityActive){const r=o.p-o.prevP,s=r<0?-1:1;o.vp=Math.min(this.config.velocityMax,Math.abs(r))/this.config.velocityMax*s}this.effect.tick(o),n&&o.p!==this.progress.p&&(e&&this._lerpFrameId&&window.cancelAnimationFrame(this._lerpFrameId),this._lerpFrameId=window.requestAnimationFrame(()=>this.tick())),o.prevP=o.p}lerp(){this.currentProgress.p=dl(this.currentProgress.p,this.progress.p,+(1-this.config.transitionFriction).toFixed(3),this.config.transitionEpsilon)}destroy(){this.pause(),this.removeEffect()}setupEvent(){this.removeEvent(),this.config.root.addEventListener("scroll",this._trigger)}removeEvent(){this.config.root.removeEventListener("scroll",this._trigger)}setupEffect(){this.removeEffect(),this.effect=Il(this.config)}removeEffect(){this.effect&&this.effect.destroy(),this.effect=null}}const Zt=new WeakMap;let ir=()=>({});function Al(t){ir=t}function Tl(t,e,n,o,{reducedMotion:r}){if(r)return;const s={trigger:"view-progress",element:t},a=J(n);let i;if("ViewTimeline"in window){const f=re(e,a,s);f&&(f.play(),i=()=>{f.ready.then(()=>{f.cancel()})})}else{const f=nr(e,a,s);if(f){const l=Array.isArray(f)?f:[f],u=new Pl({viewSource:t,scenes:l,observeViewportEntry:!1,observeViewportResize:!1,observeSourcesResize:!0,root:document.body,...ir()});i=()=>{u.destroy()},Promise.all(l.map(m=>m.ready||Promise.resolve())).then(()=>{u.start()})}}if(!i)return;const c={source:t,target:e,cleanup:i};R(Zt,t,c),R(Zt,e,c)}function kl(t){W(Zt,t)}const Ml={add:Tl,remove:kl,registerOptionsGetter:Al},Gt=new WeakMap;function Rl(t,e,n,o=!1,r){const s=_t(t,J(e),void 0,o),a=n.type||"alternate";let i=!0;return c=>{r&&!t.matches(r)||(c.type==="mouseenter"||c.type==="focusin"?a==="alternate"?i?(i=!1,s.play()):s.reverse():a==="state"?s.playState!=="finished"&&s.play():(s.progress(0),s.isCSS&&s.onFinish(()=>{t.dataset.motionEnter="done"}),s.play()):(c.type==="mouseleave"||c.type==="focusout")&&(a==="alternate"?s.reverse():a==="repeat"?(s.cancel(),delete t.dataset.motionEnter):a==="state"&&s.playState==="running"&&s.pause()))}}function Fl(t,e,{effectId:n,listContainer:o,listItemSelector:r},s,a){const i=s.method||"toggle",c=i==="toggle",f=!!o;return l=>{if(a&&!t.matches(a))return;let u;if(f&&(u=t.closest(`${o} > ${r||""}:has(:scope)`)),l.type==="mouseenter"||l.type==="focusin"){const m=c?"add":i;e.toggleEffect(n,m,u)}else(l.type==="mouseleave"||l.type==="focusout")&&c&&e.toggleEffect(n,"remove",u)}}function zl(t,e,n,o={},{reducedMotion:r,targetController:s,selectorCondition:a,allowA11yTriggers:i}){let c,f=!1,l=!1;n.transition||n.transitionProperties?(c=Fl(e,s,n,o,a),f=!0):(c=Rl(e,n,o,r,a),l=o.type==="once");const m={source:t,target:e,cleanup:()=>{t.removeEventListener("mouseenter",c),t.removeEventListener("mouseleave",c),i&&(t.removeEventListener("focusin",c),t.removeEventListener("focusout",c))}};R(Gt,t,m),R(Gt,e,m),i&&(t.tabIndex=0,t.addEventListener("focusin",d=>{t.contains(d.relatedTarget)||c(d)},{once:l})),t.addEventListener("mouseenter",c,{passive:!0,once:l}),(f?(o.method||"toggle")==="toggle":o.type!=="once")&&(t.addEventListener("mouseleave",c,{passive:!0}),i&&t.addEventListener("focusout",d=>{t.contains(d.relatedTarget)||c(d)},{once:l}))}function Yl(t){W(Gt,t)}const Je={add:zl,remove:Yl},Kt=new WeakMap;function Nl(t,e,n,o=!1,r){const s=_t(t,J(e),void 0,o);let a=!0;const i=n.type||"alternate";return c=>{r&&!t.matches(r)||(i==="alternate"?a?(a=!1,s.play()):s.reverse():i==="state"?a?(a=!1,s.play()):s.playState==="running"?s.pause():s.playState!=="finished"&&s.play():(s.progress(0),s.isCSS&&s.onFinish(()=>{t.dataset.motionEnter="done"}),s.play()))}}function Cl(t,e,{effectId:n,listContainer:o,listItemSelector:r},s,a){const i=!!o;return c=>{if(a&&!t.matches(a))return;let f;i&&(f=t.closest(`${o} > ${r||""}:has(:scope)`)),e.toggleEffect(n,s.method||"toggle",f)}}function Xl(t,e,n,o={},{reducedMotion:r,targetController:s,selectorCondition:a,allowA11yTriggers:i}){let c,f=!1;n.transition||n.transitionProperties?c=Cl(e,s,n,o,a):(c=Nl(e,n,o,r,a),f=o.type==="once");const u={source:t,target:e,cleanup:()=>{t.removeEventListener("click",c),i&&t.removeEventListener("keydown",c)}};R(Kt,t,u),R(Kt,e,u),t.addEventListener("click",m=>{m.pointerType&&c(m)},{passive:!0,once:f}),i&&(t.tabIndex=0,t.addEventListener("keydown",m=>{m.code==="Space"?(m.preventDefault(),c(m)):m.code==="Enter"&&c(m)},{once:f}))}function Ll(t){W(Kt,t)}const We={add:Xl,remove:Ll};function tn(t,e,n){return Math.min(Math.max(t,n),e)}function en(t){let e=!1;return function(){if(!e)return e=!0,window.requestAnimationFrame(()=>{e=!1,t()})}}function Dl(t){let e=t,n=0,o=0;if(e.offsetParent)do n+=e.offsetLeft,o+=e.offsetTop,e=e.offsetParent;while(e);return{left:n,top:o,width:t.offsetWidth,height:t.offsetHeight}}function Vl(){const t=window.devicePixelRatio;let e=!1;if(t===1)return!1;document.body.addEventListener("pointerdown",o=>{e=o.offsetX!==10},{once:!0});const n=new PointerEvent("pointerdown",{clientX:10});return document.body.dispatchEvent(n),e}function jl(){return new Promise(t=>{const e=window.scrollY;let n=!1,o;function r(){document.body.addEventListener("pointerdown",i=>{o===void 0?o=i.offsetY:n=i.offsetY===o},{once:!0});const a=new PointerEvent("pointerdown",{clientY:500});document.body.dispatchEvent(a)}function s(){window.scrollY!==e&&(window.removeEventListener("scroll",s),r(),t(n))}r(),window.addEventListener("scroll",s),window.scrollY>0&&window.scrollBy(0,-1)})}function Hl(t){jl().then(e=>{t.fixRequired=e,e&&(window.addEventListener("scroll",t.scrollHandler),t.scrollHandler())})}let ut=0;const ht=new Set;function Bl(){const t=n=>{for(let o of n.changedTouches)ht.add(o.identifier)},e=n=>{for(let o of n.changedTouches)ht.delete(o.identifier)};return document.addEventListener("touchstart",t,{passive:!0}),document.addEventListener("touchend",e,{passive:!0}),function(){ht.clear(),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",e)}}function ql(t,e){if("onscrollend"in window)return t.addEventListener("scrollend",e),function(){t.removeEventListener("scrollend",e)};let n=0,o;ut||(o=Bl()),ut+=1;function r(s){clearTimeout(n),n=setTimeout(()=>{ht.size?setTimeout(r,100):(e(s),n=0)},100)}return t.addEventListener("scroll",r),function(){t.removeEventListener("scroll",r),ut-=1,ut||o()}}function Zl(t,e,n){return{x(o){const r=t.left-n.x+t.width/2,s=r>=e.width/2,a=(s?r:e.width-r)*2,i=s?0:r-a/2;return(o-i)/a},y(o){const r=t.top-n.y+t.height/2,s=r>=e.height/2,a=(s?r:e.height-r)*2,i=s?0:r-a/2;return(o-i)/a}}}function Gl(t,e){this.x=window.scrollX,this.y=window.scrollY,requestAnimationFrame(()=>t&&t(e))}function Kl(t){t.rect.width=window.document.documentElement.clientWidth,t.rect.height=window.document.documentElement.clientHeight}function Ul(t){const e=new ResizeObserver(n=>{n.forEach(o=>{t.rect.width=o.borderBoxSize[0].inlineSize,t.rect.height=o.borderBoxSize[0].blockSize})});return e.observe(t.root,{box:"border-box"}),e}function Ql(t){let e=!1,n={x:t.rect.width/2,y:t.rect.height/2,vx:0,vy:0},o,r,s,a,i;const c={x:0,y:0};t.scenes.forEach(l=>{l.target&&l.centeredToTarget&&(l.transform=Zl(Dl(l.target),t.rect,c),e=!0),t.root?r=Ul(t):(s=Kl.bind(null,t),window.addEventListener("resize",s))}),o=function(l){for(let u of t.scenes)if(!u.disabled){const m=u.transform?.x(l.x)||l.x/t.rect.width,p=u.transform?.y(l.y)||l.y/t.rect.height,d=+tn(0,1,m).toPrecision(4),g=+tn(0,1,p).toPrecision(4),h={x:l.vx,y:l.vy};t.allowActiveEvent&&(l.active=m<=1&&p<=1&&m>=0&&p>=0),u.effect(u,{x:d,y:g},h,l.active)}Object.assign(n,l)},e&&(a=Gl.bind(c,o,n),i=ql(document,a));function f(){t.scenes.forEach(l=>l.destroy?.()),i?.(),r?(r.disconnect(),r=null):(window.removeEventListener("resize",s),s=null),o=null,n=null}return{tick:o,destroy:f}}const Jl=1e3/60*3;let mt;function Wl(){U.x=window.scrollX,U.y=window.scrollY}const U={x:0,y:0,scrollHandler:Wl,fixRequired:void 0};class tf{constructor(e={}){this.config={...e},this.effect=null,this._nextTick=null,this._nextTransitionTick=null,this._startTime=0;let n;this.config.transitionDuration?n=this.config.noThrottle?()=>this.transition():en(()=>this.transition()):n=this.config.noThrottle?()=>(this.tick(),null):en(()=>{this.tick()}),this.config.rect=this.config.root?{width:this.config.root.offsetWidth,height:this.config.root.offsetHeight}:{width:window.document.documentElement.clientWidth,height:window.document.documentElement.clientHeight},this.progress={x:this.config.rect.width/2,y:this.config.rect.height/2,vx:0,vy:0},this.previousProgress={...this.progress},this.currentProgress=null;const o=r=>{const s=this.config.root?r.offsetX:r.x,a=this.config.root?r.offsetY:r.y;this.progress.vx=s-this.progress.x,this.progress.vy=a-this.progress.y,this.progress.x=s,this.progress.y=a,this._nextTick=n()};if(this._pointerLeave=()=>{this.progress.active=!1,this.progress.vx=0,this.progress.vy=0,this._nextTick=n()},this._pointerEnter=()=>{this.progress.active=!0,this._nextTick=n()},this.config.root){mt=typeof mt=="boolean"?mt:Vl();const r=mt?window.devicePixelRatio:1;typeof U.fixRequired>"u"&&Hl(U),this._measure=s=>{if(s.target!==this.config.root){const a=new PointerEvent("pointermove",{bubbles:!0,cancelable:!0,clientX:s.x*r+U.x,clientY:s.y*r+U.y});s.stopPropagation(),this.config.root.dispatchEvent(a)}else o(s)}}else this._measure=o}start(){this.setupEffect(),this.setupEvent()}pause(){this.removeEvent()}tick(){this.effect.tick(this.progress)}transition(){const e=this.config.transitionDuration,n=this.config.transitionEasing||(a=>a),o=performance.now();let r=!1;const s=a=>{const i=(a-this._startTime)/e,c=n(Math.min(1,i));r&&(this.progress.vx=0,this.progress.vy=0,r=!1),this.currentProgress=Object.entries(this.progress).reduce((f,[l,u])=>(l==="active"?f[l]=u:f[l]=this.previousProgress[l]+(u-this.previousProgress[l])*c,f),this.currentProgress||{}),i<1&&(this._nextTransitionTick=requestAnimationFrame(s),r=a-this._startTime>Jl),this.effect.tick(this.currentProgress)};return this._startTime?(this._nextTransitionTick&&cancelAnimationFrame(this._nextTransitionTick),Object.assign(this.previousProgress,this.currentProgress),this._startTime=o,s(o)):this._startTime=o,this._nextTransitionTick}destroy(){this.pause(),this.removeEffect(),this._nextTick&&cancelAnimationFrame(this._nextTick),this._nextTransitionTick&&cancelAnimationFrame(this._nextTransitionTick)}setupEvent(){this.removeEvent();const e=this.config.root||window;e.addEventListener("pointermove",this._measure,{passive:!0}),this.config.eventSource&&this.config.eventSource.addEventListener("pointermove",this._measure,{passive:!0}),this.config.allowActiveEvent&&(e.addEventListener("pointerleave",this._pointerLeave,{passive:!0}),e.addEventListener("pointerenter",this._pointerEnter,{passive:!0}),this.config.eventSource&&(this.config.eventSource.addEventListener("pointerleave",this._pointerLeave,{passive:!0}),this.config.eventSource.addEventListener("pointerenter",this._pointerEnter,{passive:!0})))}removeEvent(){const e=this.config.root||window;e.removeEventListener("pointermove",this._measure),this.config.eventSource&&this.config.eventSource.removeEventListener("pointermove",this._measure),this.config.allowActiveEvent&&(e.removeEventListener("pointerleave",this._pointerLeave),e.removeEventListener("pointerenter",this._pointerEnter),this.config.eventSource&&(this.config.eventSource.removeEventListener("pointerleave",this._pointerLeave),this.config.eventSource.removeEventListener("pointerenter",this._pointerEnter)))}setupEffect(){this.removeEffect(),this.effect=Ql(this.config)}removeEffect(){this.effect&&this.effect.destroy(),this.effect=null}}const Ut=new WeakMap;let cr=()=>({});function ef(t){cr=t}function nf(t,e,n,o={},{reducedMotion:r}){if(r)return;const s={trigger:"pointer-move",element:t},a=nr(e,J(n),s);if(a){const i=new tf({root:o.hitArea==="self"?t:void 0,scenes:Array.isArray(a)?a:[a],...cr()}),f={source:t,target:e,cleanup:()=>{i.destroy()}};R(Ut,t,f),R(Ut,e,f),i.start()}}function of(t){W(Ut,t)}const rf={add:nf,remove:of,registerOptionsGetter:ef},Qt=new WeakMap;function sf(t,e,n,o,{reducedMotion:r,selectorCondition:s}){const a=_t(e,J(n),void 0,r),i=()=>{s&&!e.matches(s)||a.play()},f={source:t,target:e,cleanup:()=>{a.cancel(),t.removeEventListener("animationend",i)}};R(Qt,t,f),R(Qt,e,f),t.addEventListener("animationend",i)}function af(t){W(Qt,t)}const cf={add:sf,remove:af};function nn(t){return{add:(e,n,o,r,s)=>t.add(e,n,o,r,{...s,allowA11yTriggers:!0}),remove:t.remove}}const nt={viewEnter:Ge,hover:Je,click:We,pageVisible:Ge,animationEnd:cf,viewProgress:Ml,pointerMove:rf,activate:nn(We),interest:nn(Je)};function lf(t){return t.replace(/\[([-\w]+)]/g,"[]")}class _{static defineInteractElement;dataCache;addedInteractions;mediaQueryListeners;listInteractionsCache;controllers;static forceReducedMotion=!1;static allowA11yTriggers=!0;static instances=[];static controllerCache=new Map;constructor(){this.dataCache={effects:{},conditions:{},interactions:{}},this.addedInteractions={},this.mediaQueryListeners=new Map,this.listInteractionsCache={},this.controllers=new Set}init(e){if(typeof window>"u"||!window.customElements)return;this.dataCache=uf(e),_.defineInteractElement?.()===!1?document.querySelectorAll("interact-element").forEach(o=>{o.connect()}):_.controllerCache.forEach((o,r)=>o.connect(r))}destroy(){for(const e of this.controllers)e.disconnect();for(const[,e]of this.mediaQueryListeners.entries())e.mql.removeEventListener("change",e.handler);this.mediaQueryListeners.clear(),this.addedInteractions={},this.listInteractionsCache={},this.controllers.clear(),this.dataCache={effects:{},conditions:{},interactions:{}},_.instances.splice(_.instances.indexOf(this),1)}setController(e,n){this.controllers.add(n),_.setController(e,n)}deleteController(e){const n=_.controllerCache.get(e);this.clearInteractionStateForKey(e),this.clearMediaQueryListenersForKey(e),n&&(this.controllers.delete(n),_.deleteController(e))}has(e){return!!this.get(e)}get(e){const n=lf(e);return this.dataCache.interactions[n]}clearMediaQueryListenersForKey(e){for(const[n,o]of this.mediaQueryListeners.entries())o.key===e&&(o.mql.removeEventListener("change",o.handler),this.mediaQueryListeners.delete(n))}clearInteractionStateForKey(e){(this.get(e)?.interactionIds||[]).forEach(o=>{const r=ot(o,e);delete this.addedInteractions[r]})}setupMediaQueryListener(e,n,o,r){this.mediaQueryListeners.has(e)||(n.addEventListener("change",r),this.mediaQueryListeners.set(e,{mql:n,handler:r,key:o}))}static create(e){const n=new _;return _.instances.push(n),n.init(e),n}static destroy(){_.controllerCache.forEach(e=>{e.disconnect()}),_.instances.length=0,_.controllerCache.clear()}static setup(e){e.scrollOptionsGetter&&nt.viewProgress.registerOptionsGetter?.(e.scrollOptionsGetter),e.pointerOptionsGetter&&nt.pointerMove.registerOptionsGetter?.(e.pointerOptionsGetter),e.viewEnter&&nt.viewEnter.setOptions(e.viewEnter),e.allowA11yTriggers!==void 0&&(_.allowA11yTriggers=e.allowA11yTriggers)}static getInstance(e){return _.instances.find(n=>n.has(e))}static getController(e){return e?_.controllerCache.get(e):void 0}static setController(e,n){_.controllerCache.set(e,n)}static deleteController(e){_.controllerCache.delete(e)}}let ff=0;function Jt(t,{asCombinator:e=!1,addItemFilter:n=!1}={}){if(t.listContainer){const o=`${n&&t.listItemSelector?` > ${t.listItemSelector}`:""}`;return t.selector?`${t.listContainer}${o} ${t.selector}`:`${t.listContainer}${o||" > *"}`}else if(t.selector)return t.selector;return e?"> :first-child":":scope > :first-child"}function uf(t){const e=t.conditions||{},n={};return t.interactions?.forEach(o=>{const r=o.key,s=++ff,{effects:a,...i}=o;if(!r){console.error(`Interaction ${s} is missing a key for source element.`);return}n[r]||(n[r]={triggers:[],effects:{},interactionIds:new Set,selectors:new Set});const c=Array.from(a);c.reverse();const f={...i,effects:c};n[r].triggers.push(f),n[r].selectors.add(Jt(f));const l=f.listContainer;c.forEach(u=>{let m=u.key;if(!m&&u.effectId){const g=t.effects[u.effectId];g&&(m=g.key)}u.effectId||(u.effectId=il()),m=m||r,u.key=m;const p=u.effectId;if(l&&u.listContainer&&(m!==r||u.listContainer!==l))return;const d=`${m}::${p}::${s}`;u.interactionId=d,n[r].interactionIds.add(d),m!==r&&(n[m]?n[m].effects[d]||(n[m].effects[d]=[],n[m].interactionIds.add(d)):n[m]={triggers:[],effects:{[d]:[]},interactionIds:new Set,selectors:new Set},n[m].effects[d].push({...i,effect:u}),n[m].selectors.add(Jt(u)))})}),{effects:t.effects||{},conditions:e,interactions:n}}function on(t,e){if(t.listContainer){const n=e.querySelector(t.listContainer);return n?t.selector?Array.from(n.querySelectorAll(t.selector)):Array.from(n.children):(console.warn(`Interact: No container found for list container "${t.listContainer}"`),[])}if(t.selector){const n=e.querySelector(t.selector);if(n)return n;console.warn(`Interact: No element found for selector "${t.selector}"`)}return e.firstElementChild}function rn(t,e){return e.map(n=>t.selector?n.querySelector(t.selector):n).filter(Boolean)}function lr(t,e,n,o,r,s){return[r?rn(t,r):on(t,n),s?rn(e,s):on(e,o)]}function fr(t,e,n,o,r,s){const a=Array.isArray(o),i=Array.isArray(r);a?o.forEach((c,f)=>{const l=i?r[f]:r;l&&sn(t,c,e.trigger,l,n,e.params,s)}):(i?r:[r]).forEach(f=>{sn(t,o,e.trigger,f,n,e.params,s)})}function ur(t,e,n,o,r){const s={},a=[];o.effects.forEach(i=>{const c=i.effectId,f={...n.dataCache.effects[c]||{},...i,effectId:c},l=f.key,u=ot(i.interactionId,t);if(s[u]||n.addedInteractions[u]&&!r)return;const m=xt(f.conditions||[],n.dataCache.conditions);if(m&&n.setupMediaQueryListener(u,m,t,()=>{e.update()}),!m||m.matches){s[u]=!0;const p=l&&ot(l,t);let d;if(p){if(d=_.getController(p),!d)return;f.listContainer&&d.watchChildList(f.listContainer)}else d=e;const[g,h]=lr(o,f,e.element,d.element,r);if(!g||!h)return;n.addedInteractions[u]=!0;const v=p||o.key,$=or(f.conditions||[],n.dataCache.conditions);a.push([v,o,f,g,h,$])}}),a.reverse().forEach(i=>{fr(...i)})}function mr(t,e,n,o,r){const s=n.get(t)?.effects||{},a=Object.keys(s),i=[];return a.forEach(c=>{const f=ot(c,t);if(n.addedInteractions[f]&&!r)return;s[c].some(({effect:u,...m})=>{const p=u.effectId,d={...n.dataCache.effects[p]||{},...u,effectId:p};if(o&&d.listContainer!==o)return!1;const g=xt(d.conditions||[],n.dataCache.conditions);if(g&&n.setupMediaQueryListener(f,g,t,()=>{e.update()}),!g||g.matches){const h=m.key&&ot(m.key,t),v=_.getController(h);if(!v)return!0;d.listContainer&&e.watchChildList(d.listContainer);const[$,w]=lr(m,d,v.element,e.element,void 0,r);if(!$||!w)return!0;n.addedInteractions[f]=!0;const O=or(d.conditions||[],n.dataCache.conditions);return i.push([t,m,d,$,w,O]),!0}return!1})}),i.reverse().forEach(c=>{fr(...c)}),a.length>0}function sn(t,e,n,o,r,s,a){let i;if(r.transition||r.transitionProperties){const c={key:t,effectId:r.effectId,transition:r.transition,properties:r.transitionProperties,childSelector:Jt(r,{asCombinator:!0,addItemFilter:!0}),selectorCondition:a};if(i=_.getController(t),!i)return;i.renderStyle(cl(c))}nt[n]?.add(e,o,r,s,{reducedMotion:_.forceReducedMotion,targetController:i,selectorCondition:a,allowA11yTriggers:_.allowA11yTriggers})}function mf(t){const e=t.key,n=_.getInstance(e);if(!n)return console.warn(`No instance found for key: ${e}`),_.setController(e,t),!1;const{triggers:o=[]}=n?.get(e)||{},r=o.length>0;n.setController(e,t),o.forEach((a,i)=>{const c=xt(a.conditions,n.dataCache.conditions);if(c){const f=`${e}::trigger::${i}`;n.setupMediaQueryListener(f,c,e,()=>{t.update()})}(!c||c.matches)&&(a.listContainer&&t.watchChildList(a.listContainer),ur(e,t,n,a))});let s=!1;return n&&(s=mr(e,t,n)),r||s}function df(t,e,n){const o=t.key,r=_.getInstance(o);if(r){const{triggers:s=[]}=r?.get(o)||{};s.forEach((a,i)=>{if(a.listContainer!==e)return;const c=xt(a.conditions,r.dataCache.conditions);if(c){const f=`${o}::listTrigger::${e}::${i}`;r.setupMediaQueryListener(f,c,o,()=>{t.update()})}(!c||c.matches)&&ur(o,t,r,a,n)}),mr(o,t,r,e,n)}}function pf(t){const e=t.key,n=_.getInstance(e);if(!n)return;const o=[...n.get(e)?.selectors.values()||[]].join(","),r=t.element.querySelectorAll(o);dr(Array.from(r)),n.deleteController(e)}function dr(t){const e=Object.values(nt);for(const n of t)for(const o of e)o.remove(n)}const jt="interactEffect";class pr{element;key;connected;sheet;_observers;constructor(e,n){this.element=e,this.key=n,this.connected=!1,this.sheet=null,this._observers=new WeakMap}connect(e){if(!this.connected){if(e=e||this.key||this.element.dataset.interactKey,!e){console.warn("Interact: No key provided");return}this.key=e,this.connected=mf(this)}}disconnect(){if((this.key||this.element.dataset.interactKey)&&pf(this),this.sheet){const n=document.adoptedStyleSheets.indexOf(this.sheet);document.adoptedStyleSheets.splice(n,1)}this._observers=new WeakMap,this.sheet=null,this.connected=!1}update(){this.disconnect(),this.connect()}renderStyle(e){if(!this.sheet)this.sheet=new CSSStyleSheet,this.sheet.replaceSync(e.join(`
|
|
8
|
-
`)),document.adoptedStyleSheets.push(this.sheet);else{let n=this.sheet.cssRules.length;for(const o of e)try{this.sheet.insertRule(o,n),n++}catch(r){console.error(r)}}}toggleEffect(e,n,o,r){if(o===null)return;if(!r&&this.element.toggleEffect){this.element.toggleEffect(e,n,o);return}const s=new Set(this.element.dataset[jt]?.split(" ")||[]);n==="toggle"?s.has(e)?s.delete(e):s.add(e):n==="add"?s.add(e):n==="remove"?s.delete(e):n==="clear"&&s.clear(),(o||this.element).dataset[jt]=Array.from(s).join(" ")}getActiveEffects(){const n=(this.element.dataset[jt]||"").trim();return n?n.split(/\s+/):[]}watchChildList(e){const n=this.element.querySelector(e);if(n){let o=this._observers.get(n);o||(o=new MutationObserver(this._childListChangeHandler.bind(this,e)),this._observers.set(n,o),o.observe(n,{childList:!0}))}}_childListChangeHandler(e,n){const o=this.key||this.element.dataset.interactKey,r=[],s=[];n.forEach(a=>{a.removedNodes.forEach(i=>{i instanceof HTMLElement&&r.push(i)}),a.addedNodes.forEach(i=>{i instanceof HTMLElement&&s.push(i)})}),dr(r),o&&df(this,e,s)}}function gf(t,e){new pr(t,e).connect()}function hf(t){const e=_.getController(t);e&&e.disconnect()}function yf(t){return[`@media (prefers-reduced-motion: no-preference) {
|
|
9
|
-
[data-interact-initial="true"] > :first-child:not([data-motion-enter="done"]) {
|
|
10
|
-
visibility: hidden;
|
|
11
|
-
transform: none;
|
|
12
|
-
translate: none;
|
|
13
|
-
scale: none;
|
|
14
|
-
rotate: none;
|
|
15
|
-
}
|
|
16
|
-
}`].join(`
|
|
17
|
-
`)}exports.Interact=_;exports.InteractionController=pr;exports.add=gf;exports.generate=yf;exports.remove=hf;
|
|
18
|
-
//# sourceMappingURL=index-DEPRHaUt.js.map
|