PageSourceSearch

https://www.palconf.com/_next/static/chunks/0daff865b3e81a36.js

js palconf.com collected 2026-10-05 08:35:55 UTC 127,529 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,983481,t=>{"use strict";var e=t.i(763716);let i=(0,t.i(882322).default)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);var s=t.i(5940),r=t.i(441604);let n=[{before:"Endless scrolling through event apps.",after:"Tiered hit list of companies and people."},{before:"Manual research on every exhibitor.",after:"Tailored openers for each target."},{before:"Lost track of which booths you already hit.",after:"Log a meeting in one SMS. Your shortlist re-ranks live."},{before:"Notes scattered across napkins, Slack, and memory.",after:"One recap of everyone you met."},{before:"Leaving with weak leads and business cards.",after:"Leave with pipeline, not paper."}];function o(){let t=(0,r.useScrollReveal)();return(0,e.jsx)("section",{id:"before-after",className:"py-24 border-t border-border bg-surface-0",children:(0,e.jsxs)("div",{className:"section-container",children:[(0,e.jsxs)("div",{className:"max-w-3xl mb-12",children:[(0,e.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.15em] text-ink-tertiary mb-4",children:"Before / after"}),(0,e.jsx)("h2",{className:"text-3xl font-display font-bold sm:text-4xl mb-4 text-balance",children:"From guesswork to strategy."}),(0,e.jsx)("p",{className:"text-ink-secondary text-base max-w-xl",children:"Same conference. Same booth traffic. Different outcome."})]}),(0,e.jsxs)("div",{ref:t,className:"reveal-group relative mx-auto max-w-4xl rounded-2xl border border-border bg-white p-6 sm:p-10",children:[(0,e.jsxs)("div",{className:"hidden sm:grid grid-cols-[1fr_auto_1fr] gap-6 mb-5 pb-5 border-b border-border/60",children:[(0,e.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-[0.15em] text-ink-muted",children:"Before"}),(0,e.jsx)("span",{className:"w-4"}),(0,e.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-[0.15em] text-accent-text",children:"After Palconf"})]}),(0,e.jsx)("ul",{className:"space-y-4 sm:space-y-3",children:n.map((t,r)=>(0,e.jsxs)("li",{className:"reveal-item grid grid-cols-1 sm:grid-cols-[1fr_auto_1fr] gap-3 sm:gap-6 sm:items-center",style:{transitionDelay:`${120*r}ms`},children:[(0,e.jsx)("div",{className:"relative",children:(0,e.jsxs)("span",{className:"relative inline-block text-[14.5px] text-ink-tertiary",children:[t.before,(0,e.jsx)("span",{"aria-hidden":"true",className:"strike absolute left-0 top-1/2 h-px bg-ink-muted/70",style:{transitionDelay:`${120*r+300}ms`}})]})}),(0,e.jsxs)("div",{className:"flex items-center justify-start sm:justify-center",children:[(0,e.jsx)(i,{className:"arrow-reveal h-4 w-4 text-accent-electric sm:hidden",style:{transitionDelay:`${120*r+500}ms`}}),(0,e.jsx)(s.ArrowRight,{className:"arrow-reveal hidden h-4 w-4 text-accent-electric sm:block",style:{transitionDelay:`${120*r+500}ms`}})]}),(0,e.jsx)("div",{children:(0,e.jsx)("span",{className:"after-slide inline-block text-[14.5px] font-semibold text-ink",style:{transitionDelay:`${120*r+650}ms`},children:t.after})})]},t.before))})]})]})})}t.s(["BeforeAfterSection",()=>o],983481)},609803,t=>{"use strict";let e,i;var s,r,n,o=t.i(763716),a=t.i(9768),l=t.i(5940);t.i(502105);let h=t=>t;function u(t){let e;return()=>(void 0===e&&(e=t()),e)}let d=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s},c=t=>1e3*t,p=u(()=>void 0!==window.ScrollTimeline);class m{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>p()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}
1runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class f extends m{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function g(t,e){return t?t[e]||t.default||t:void 0}function v(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function y(t){return"function"==typeof t}function x(t,e){t.timeline=e,t.onfinish=null}let b=t=>Array.isArray(t)&&"number"==typeof t[0],w,P=(i=u(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>{var t;return null!=(t=w)?t:i()}),T=(t,e,i=10)=>{let s="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)s+=t(d(0,r-1,e))+", ";return`linear(${s.substring(0,s.length-2)})`},A=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,S={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:A([0,.65,.55,1]),circOut:A([.55,0,1,.45]),backIn:A([.31,.01,.66,-.59]),backOut:A([.33,1.53,.69,.99])},j={x:!1,y:!1};function k(t,e,i){var s;if(t instanceof Element)return[t];if("string"==typeof t){let r=document;e&&(r=e.current);let n=null!=(s=null==i?void 0:i[t])?s:r.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t)}function M(t,e){let i=k(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function V(t){return e=>{"touch"===e.pointerType||j.x||j.y||t(e)}}let E=(t,e)=>!!e&&(t===e||E(t,e.parentElement)),C=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,D=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),R=new WeakSet;function N(t){return e=>{"Enter"===e.key&&t(e)}}function F(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function L(t){return C(t)&&!(j.x||j.y)}let B=(t,e,i)=>i>e?e:i<t?t:i;function O(t,e,i){var s,r;let n=Math.max(e-5,0);return s=i-t(n),(r=e-n)?1e3/r*s:0}let I=.01,U=2,$=.005,W=.5;function H(t,e){return t*Math.sqrt(1-e*e)}let z=["duration","bounce"],Y=["stiffness","damping","mass"];function K(t,e){return e.some(e=>void 0!==t[e])}function X(t=.3,e=.3){let i,s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:n}=s,o=s.keyframes[0],a=s.keyframes[s.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:d,mass:p,duration:m,velocity:f,isResolvedFromDuration:g}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!K(t,Y)&&K(t,z))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,r=2*B(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:r}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:s=1}){let r,n;h(t<=c(10),"Spring duration must be 10 seconds or less");let o=1-e;o=B(.05,1,o),t=B(.01,10,t/1e3),o<1?(r=e=>{let s=e*o,r=s*t;return .001-(s-i)/H(e,o)*Math.exp(-r)},n=e=>{let s=e*o*t,n=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-s),l=H(Math.pow(e,2),o);return(s*i+i-n)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),n=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(r,n,5/t);if(t=c(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*s;return{stiffness:e,damping:2*o*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-((s.velocity||0)/1e3)}),y=f||0,x=d/(2*Math.sqrt(u*p)),b=a-o,w=Math.sqrt(u/p)/1e3,P=5>Math.abs(b);if(r||(r=P?I:U),n||(n=P?$:W),x<1){let t=H(w,x);i=e=>a-Math.exp(-x*w*e)*((y+x*w*b)/t*Math.sin(t*e)+b*Math.cos(t*e))}else if(1===x)i=t=>a-Math.exp(-w*t)*(b+(y+w*b)*t);else{let t=w*Math.sqrt(x*x-1);i=e=>{let i=Math.exp(-x*w*e),s=Math.min(t*e,300);return a-i*((y+x*w*b)*Math.sinh(s)+t*b*Math.cosh(s))/t}}let A={calculatedDuration:g&&m||null,next:t=>{let e=i(t);if(g)l.done=t>=m;else{let s=0;x<1&&(s=0===t?c(y):O(i,t,e));let o=Math.abs(a-e)<=n;l.done=Math.abs(s)<=r&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(v(A),2e4),e=T(e=>A.next(t*e).value,t,30);return t+"ms "+e}};return A}let q=t=>Array.isArray(t)&&"number"!=typeof t[0];function G(t,e){var i;let s;return q(t)?t[i=t.length,((e-0)%(s=i-0)+s)%s+0]:t}let _=(t,e,i)=>t+(e-t)*i;function Z(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let r=d(0,e,s);t.push(_(i,1,r))}}function J(t){let e=[0];return Z(e,t.length-1),e}let Q=t=>!!(t&&t.getVelocity);function tt(t){return"object"==typeof t&&!Array.isArray(t)}function te(t,e,i,s){return"string"==typeof t&&tt(e)?k(t,i,s):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function ti(t,e,i,s){var r;return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?i:null!=(r=s.get(e))?r:t}function ts(t,e){-1===t.indexOf(e)&&t.push(e)}function tr(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function tn(t,e){return t.at!==e.at?t.at-e.at:null===t.value?1:null===e.value?-1:0}function to(t,e){return e.has(t)||e.set(t,{}),e.get(t)}function ta(t,e){return e[t]||(e[t]=[]),e[t]}let tl=t=>"number"==typeof t,th=t=>t.every(tl),tu=new WeakMap,td=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tc=new Set(td),tp=new Set(["width","height","top","left","right","bottom",...td]),tm=t=>Array.isArray(t),tf=t=>tm(t)?t[t.length-1]||0:t,tg=["read","resolveKeyframes","update","preRender","render","postRender"];function tv(t,e){let i=!1,s=!0,r={delta:0,timestamp:0,isProcessing:!1},n=()=>i=!0,o=tg.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,s=!1,r=!1,n=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){n.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,r=!1,o=!1)=>{let a=o&&s?e:i;return r&&n.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),n.delete(t)},process:t=>{if(o=t,s){r=!0;return}s=!0,[e,i]=[i,e],e.forEach(a),e.clear(),s=!1,r&&(r=!1,l.process(t))}};return l}(n),t),{}),{read:a,resolveKeyframes:l,update:h,preRender:u,render:d,postRender:c}=o,p=()=>{let n=performance.now();i=!1,r.delta=s?1e3/60:Math.max(Math.min(n-r.timestamp,40),1),r.timestamp=n,r.isProcessing=!0,a.process(r),l.process(r),h.process(r),u.process(r),d.process(r),c.process(r),r.isProcessing=!1,i&&e&&(s=!1,t(p))};return{schedule:tg.reduce((e,n)=>{let a=o[n];return e[n]=(e,n=!1,o=!1)=>(!i&&(i=!0,s=!0,r.isProcessing||t(p)),a.schedule(e,n,o)),e},{}),cancel:t=>{for(let e=0;e<tg.length;e++)o[tg[e]].cancel(t)},state:r,steps:o}}let{schedule:ty,cancel:tx,state:tb,steps:tw}=tv("u">typeof requestAnimationFrame?requestAnimationFrame:h,!0);function tP(){e=void 0}let tT={now:()=>
1(void 0===e&&tT.set(tb.isProcessing?tb.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(tP)}};class tA{constructor(){this.subscriptions=[]}add(t){return ts(this.subscriptions,t),()=>tr(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let r=0;r<s;r++){let s=this.subscriptions[r];s&&s(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let tS={current:void 0};class tj{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=tT.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=tT.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tA);let i=this.events[t].add(e);return"change"===t?()=>{i(),ty.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return tS.current&&tS.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=tT.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tk(t,e){return new tj(t,e)}function tM(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function tV(t,e,i,s){if("function"==typeof e){let[r,n]=tM(s);e=e(void 0!==i?i:t.custom,r,n)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,n]=tM(s);e=e(void 0!==i?i:t.custom,r,n)}return e}function tE(t,e,i){let s=t.getProps();return tV(s,e,void 0!==i?i:s.custom,t)}function tC(t,e){let i=t.getValue("willChange");if(Q(i)&&i.add)return i.add(e)}let tD=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tR="data-"+tD("framerAppearId"),tN=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tF(t,e,i,s){return t===e&&i===s?h:r=>0===r||1===r?r:tN(function(t,e,i,s,r){let n,o,a=0;do(n=tN(o=e+(i-e)/2,s,r)-t)>0?i=o:e=o;while(Math.abs(n)>1e-7&&++a<12)return o}(r,0,1,t,i),e,s)}let tL=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tB=t=>e=>1-t(1-e),tO=tF(.33,1.53,.69,.99),tI=tB(tO),tU=tL(tI),t$=t=>(t*=2)<1?.5*tI(t):.5*(2-Math.pow(2,-10*(t-1))),tW=t=>1-Math.sin(Math.acos(t)),tH=tB(tW),tz=tL(tW),tY={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},tK={...tY,transform:t=>B(0,1,t)},tX={...tY,default:1},tq=t=>Math.round(1e5*t)/1e5,tG=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,t_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tZ=(t,e)=>i=>!!("string"==typeof i&&t_.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tJ=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[r,n,o,a]=s.match(tG);return{[t]:parseFloat(r),[e]:parseFloat(n),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tQ={...tY,transform:t=>Math.round(B(0,255,t))},t0={test:tZ("rgb","red"),parse:tJ("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+tQ.transform(t)+", "+tQ.transform(e)+", "+tQ.transform(i)+", "+tq
1(tK.transform(s))+")"},t1={test:tZ("#"),parse:function(t){let e="",i="",s="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,s+=s,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}},transform:t0.transform},t5=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),t2=t5("deg"),t3=t5("%"),t4=t5("px"),t6=t5("vh"),t9=t5("vw"),t8={...t3,parse:t=>t3.parse(t)/100,transform:t=>t3.transform(100*t)},t7={test:tZ("hsl","hue"),parse:tJ("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+t3.transform(tq(e))+", "+t3.transform(tq(i))+", "+tq(tK.transform(s))+")"},et={test:t=>t0.test(t)||t1.test(t)||t7.test(t),parse:t=>t0.test(t)?t0.parse(t):t7.test(t)?t7.parse(t):t1.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?t0.transform(t):t7.transform(t)},ee=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ei="number",es="color",er=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function en(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},r=[],n=0,o=e.replace(er,t=>(et.test(t)?(s.color.push(n),r.push(es),i.push(et.parse(t))):t.startsWith("var(")?(s.var.push(n),r.push("var"),i.push(t)):(s.number.push(n),r.push(ei),i.push(parseFloat(t))),++n,"${}")).split("${}");return{values:i,split:o,indexes:s,types:r}}function eo(t){return en(t).values}function ea(t){let{split:e,types:i}=en(t),s=e.length;return t=>{let r="";for(let n=0;n<s;n++)if(r+=e[n],void 0!==t[n]){let e=i[n];e===ei?r+=tq(t[n]):e===es?r+=et.transform(t[n]):r+=t[n]}return r}}let el=t=>"number"==typeof t?0:t,eh={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(tG))?void 0:e.length)||0)+((null==(i=t.match(ee))?void 0:i.length)||0)>0},parse:eo,createTransformer:ea,getAnimatableNone:function(t){let e=eo(t);return ea(t)(e.map(el))}},eu=new Set(["brightness","contrast","saturate","opacity"]);function ed(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(tG)||[];if(!s)return t;let r=i.replace(s,""),n=+!!eu.has(e);return s!==i&&(n*=100),e+"("+n+r+")"}let ec=/\b([a-z-]*)\(.*?\)/gu,ep={...eh,getAnimatableNone:t=>{let e=t.match(ec);return e?e.map(ed).join(" "):t}},em={...tY,transform:Math.round},ef={borderWidth:t4,borderTopWidth:t4,borderRightWidth:t4,borderBottomWidth:t4,borderLeftWidth:t4,borderRadius:t4,radius:t4,borderTopLeftRadius:t4,borderTopRightRadius:t4,borderBottomRightRadius:t4,borderBottomLeftRadius:t4,width:t4,maxWidth:t4,height:t4,maxHeight:t4,top:t4,right:t4,bottom:t4,left:t4,padding:t4,paddingTop:t4,paddingRight:t4,paddingBottom:t4,paddingLeft:t4,margin:t4,marginTop:t4,marginRight:t4,marginBottom:t4,marginLeft:t4,backgroundPositionX:t4,backgroundPositionY:t4,rotate:t2,rotateX:t2,rotateY:t2,rotateZ:t2,scale:tX,scaleX:tX,scaleY:tX,scaleZ:tX,skew:t2,skewX:t2,skewY:t2,distance:t4,translateX:t4,translateY:t4,translateZ:t4,x:t4,y:t4,z:t4,perspective:t4,transformPerspective:t4,opacity:tK,originX:t8,originY:t8,originZ:t4,zIndex:em,size:t4,fillOpacity:tK,strokeOpacity:tK,numOctaves:em},eg={...ef,color:et,backgroundColor:et,outlineColor:et,fill:et,stroke:et,borderColor:et,borderTopColor:et,borderRightColor:et,borderBottomColor:et,borderLeftColor:et,filter:ep,WebkitFilter:ep},ev=t=>eg[t];function ey(t,e){let i=ev(t);return i!==ep&&(i=eh),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let ex=new Set(["auto","none","0"]),eb=t=>t===tY||t===t4,ew=(t,e)=>parseFloat(t.split(", ")[e]),eP=(t,e)=>(i,{transform:s})=>{if("none"===s||!s)return 0;let r=s.match(/^matrix3d\((.+)\)$/u);if(r)return ew(r[1],e);{let e=s.match(/^matrix\((.+)\)$/u);return e?ew(e[1],t):0}},eT=new Set(["x","y","z"]),eA=td.filter(t=>!eT.has(t)),eS={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:eP(4,13),y:eP(5,14)};eS.translateX=eS.x,eS.translateY=eS.y;let ej=new Set,ek=!1,eM=!1;function eV(){if(eM){let t=Array.from(ej).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,s=(e=[],eA.forEach(i=>
1{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e);s.length&&(i.set(t,s),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var s;null==(s=t.getValue(e))||s.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}eM=!1,ek=!1,ej.forEach(t=>t.complete()),ej.clear()}function eE(){ej.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(eM=!0)})}class eC{constructor(t,e,i,s,r,n=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=r,this.isAsync=n}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ej.add(this),ek||(ek=!0,ty.read(eE),ty.resolveKeyframes(eV))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;for(let r=0;r<t.length;r++)if(null===t[r])if(0===r){let r=null==s?void 0:s.get(),n=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let s=i.readValue(e,n);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=n),s&&void 0===r&&s.set(t[0])}else t[r]=t[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ej.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ej.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let eD=t=>e=>"string"==typeof e&&e.startsWith(t),eR=eD("--"),eN=eD("var(--"),eF=t=>!!eN(t)&&eL.test(t.split("/*")[0].trim()),eL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,eB=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eO=t=>e=>e.test(t),eI=[tY,t4,t3,t2,t9,t6,{test:t=>"auto"===t,parse:t=>t}],eU=t=>eI.find(eO(t));class e$ extends eC{constructor(t,e,i,s,r){super(t,e,i,s,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&eF(s=s.trim())){let r=function t(e,i,s=1){h(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,n]=function(t){let e=eB.exec(t);if(!e)return[,];let[,i,s,r]=e;return[`--${null!=i?i:s}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return eF(n)?t(n,i,s+1):n}(s,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!tp.has(i)||2!==t.length)return;let[s,r]=t,n=eU(s),o=eU(r);if(n!==o)if(eb(n)&&eb(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)})(t[e])&&i.push(e);i.length&&function(t,e,i){let s,r=0;for(;r<t.length&&!s;){let e=t[r];"string"==typeof e&&!ex.has(e)&&en(e).values.length&&(s=t[r]),r++}if(s&&i)for(let r of e)t[r]=ey(i,s)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eS[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:s}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let n=s.length-1,o=s[n];s[n]=eS[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let eW=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(eh.test(t)||"0"===t)&&!t.startsWith("url(")),eH=t=>null!==t;function ez(t,{repeat:e,repeatType:i="loop"},s){let r=t.filter(eH),n=e&&"loop"!==i&&e%2==1?0:r.length-1;return n&&void 0!==s?s:r[n]}class eY{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:n="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=tT.now(),this.options={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:r,repeatType:n,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(eE(),eV()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=tT.now(),this.hasAttemptedResolve=!0;let{name:i,type:s,velocity:r,delay:n,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,s){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let n=t[t.length-1],o=eW(r,e),a=eW(n,e);return h(o===a,`You are trying to animate ${e} from "${r}" to "${n}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${n} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||y(i))&&s)}(t,i,s,r))if(n)this.options.duration=0;else{a&&a(ez(t,this.options,e)),o&&o(),this.resolveFinishedPromise();return}let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function eK(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function eX(t,e){return i=>i>0?e:t}let eq=(t,e,i)=>{let s=t*t,r=i*(e*e-s)+s;return r<0?0:Math.sqrt(r)},eG=[t1,t0,t7];function e_(t){let e=eG.find(e=>e.test(t));if(h(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===t7&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let r=0,n=0,o=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,a=2*i-s;r=eK(a,s,t+1/3),n=eK(a,s,t),o=eK(a,s,t-1/3)}else r=n=o=i;return{red:Math.round(255*r),green:Math.round(255*n),blue:Math.round(255*o),alpha:s}}(i)),i}let eZ=(t,e)=>{let i=e_(t),s=e_(e);if(!i||!s)return eX(t,e);let r={...i};return t=>(r.red=eq(i.red,s.red,t),r.green=eq(i.green,s.green,t),r.blue=eq(i.blue,s.blue,t),r.alpha=_(i.alpha,s.alpha,t),t0.transform(r))},eJ=(t,e)=>i=>e(t(i)),eQ=(...t)=>t.reduce(eJ),e0=new Set(["none","hidden"]);function e1(t,e){return i=>_(t,e,i)}function e5(t){return"number"==typeof t?e1:"string"==typeof t?eF(t)?eX:et.test(t)?eZ:e4:Array.isArray(t)?e2:"object"==typeof t?et.test(t)?eZ:e3:eX}function e2(t,e){let i=[...t],s=i.length,r=t.map((t,i)=>e5(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=r[e](t);return i}}function e3(t,e){let i={...t,...e},s={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(s[r]=e5(t[r])(t[r],e[r]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let e4=(t,e)=>{let i=eh.createTransformer(e),s=en(t),r=en(e);if(!(s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length))return h(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),eX(t,e);if(e0.has(t)&&!r.values.length||e0.has(e)&&!s.values.length)return e0.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return eQ(e2(function(t,e){var i;let s=[],r={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let o=e.types[n],a=t.indexes[o][r[o]],l=null!=(i=t.values[a])?i:0;s[n]=l,r[o]++}return s}(s,r),r.values),i)};function e6(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?_(t,e,i):e5(t)(t,e)}function e9({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,v=void 0===o?g:o(g);v!==g&&(f=v-p);let y=t=>-f*Math.exp(-t/s),x=t=>v+y(t),b=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=h,m.value=m.done?v:i},w=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;d=t,c=X({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:O(x,t,m.value),damping:r,stiffness:n,restDelta:h,restSpeed:u})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,b(t),w(t)),void 0!==d&&t>=d)?c.next(t-d):(e||b(t),m)}}}let e8=tF(.42,0,1,1),e7=tF(0,0,.58,1),it=tF(.42,0,.58,1),ie={linear:h,easeIn:e8,easeInOut:it,easeOut:e7,circIn:tW,circInOut:tz,circOut:tH,backIn:tI,backInOut:tU,backOut:tO,anticipate:t$},ii=t=>{if(b(t)){h(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,s,r]=t;return tF(e,i,s,r)}return"string"==typeof t?(h(void 0!==ie[t],`Invalid easing type '${t}'`),ie[t]):t};function is(t,e,{clamp:i=!0,ease:s,mixer:r}={}){let n=t.length;if(h(n===e.length,"Both input and output ranges must be the same length"),1===n)return()=>e[0];if(2===n&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[n-1]&&(t=[...t].reverse(),e=[...e].reverse());
1let a=function(t,e,i){let s=[],r=i||e6,n=t.length-1;for(let i=0;i<n;i++){let n=r(t[i],t[i+1]);e&&(n=eQ(Array.isArray(e)?e[i]||h:e,n)),s.push(n)}return s}(e,s,r),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let s=0;if(l>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let r=d(t[s],t[s+1],i);return a[s](r)};return i?e=>u(B(t[0],t[n-1],e)):u}function ir({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var r;let n=q(s)?s.map(ii):ii(s),o={done:!1,value:e[0]},a=is((r=i&&i.length===e.length?i:J(e),r.map(e=>e*t)),e,{ease:Array.isArray(n)?n:e.map(()=>n||it).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let io=t=>{let e=({timestamp:e})=>t(e);return{start:()=>ty.update(e,!0),stop:()=>tx(e),now:()=>tb.isProcessing?tb.timestamp:tT.now()}},ia={decay:e9,inertia:e9,tween:ir,keyframes:ir,spring:X},il=t=>t/100;class ih extends eY{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};const{name:e,motionValue:i,element:s,keyframes:r}=this.options,n=(null==s?void 0:s.KeyframeResolver)||eC,o=(t,e)=>this.onKeyframesResolved(t,e);this.resolver=new n(r,o,e,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:s="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:o,velocity:a=0}=this.options,l=y(s)?s:ia[s]||ir;l!==ir&&"number"!=typeof t[0]&&(e=eQ(il,e6(t[0],t[1])),t=[0,100]);let h=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===h.calculatedDuration&&(h.calculatedDuration=v(h));let{calculatedDuration:u}=h,d=u+n;return{generator:h,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(r+1)-n}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:s,generator:r,mirroredGenerator:n,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:h,resolvedDuration:u}=i;if(null===this.startTime)return r.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>h;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=h);let y=this.currentTime,x=r;if(c){let t=Math.min(this.currentTime,h)/u,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/u)):"mirror"===p&&(x=n)),y=B(0,1,i)*u}let b=v?{done:!1,value:a[0]}:x.next(y);o&&(b.value=o(b.value));let{done:w}=b;v||null===l||(w=this.speed>=0?this.currentTime>=h:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return P&&void 0!==s&&(b.value=ez(a,this.options,s)),f&&f(b.value),P&&this.finish(),b}get duration(){let{resolved:t}=this;return t?t.calculatedDuration/1e3:0}get time(){return this.currentTime/1e3}set time(t){t=c(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=io,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let s=this.driver.now();null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=s):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedProm
1ise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(t=this.currentTime)?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let iu=new Set(["opacity","clipPath","filter","transform"]),id=u(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ic={anticipate:t$,backInOut:tU,circInOut:tz};class ip extends eY{constructor(t){super(t);const{name:e,motionValue:i,element:s,keyframes:r}=this.options;this.resolver=new e$(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,s),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:s=300,times:r,ease:n,type:o,motionValue:a,name:l,startTime:h}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof n&&P()&&n in ic&&(n=ic[n]),y((i=this.options).type)||"spring"===i.type||!function t(e){return!!("function"==typeof e&&P()||!e||"string"==typeof e&&(e in S||P())||b(e)||Array.isArray(e)&&e.every(t))}(i.ease)){let{onComplete:e,onUpdate:i,motionValue:a,element:l,...h}=this.options,u=function(t,e){let i=new ih({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),s={done:!1,value:t[0]},r=[],n=0;for(;!s.done&&n<2e4;)r.push((s=i.sample(n)).value),n+=10;return{times:void 0,keyframes:r,duration:n-10,ease:"linear"}}(t,h);1===(t=u.keyframes).length&&(t[1]=t[0]),s=u.duration,r=u.times,n=u.ease,o="keyframes"}let u=function(t,e,i,{delay:s=0,duration:r=300,repeat:n=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let h={[e]:i};l&&(h.offset=l);let u=function t(e,i){if(e)return"function"==typeof e&&P()?T(e,i):b(e)?A(e):Array.isArray(e)?e.map(e=>t(e,i)||S.easeOut):S[e]}(a,r);return Array.isArray(u)&&(h.easing=u),t.animate(h,{delay:s,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:n+1,direction:"reverse"===o?"alternate":"normal"})}(a.owner.current,l,t,{...this.options,duration:s,times:r,ease:n});return u.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?(x(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{let{onComplete:i}=this.options;a.set(ez(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:s,times:r,type:o,ease:n,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return e/1e3}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(e.currentTime||0)/1e3}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=c(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return h;let{animation:i}=e;x(i,t)}else this.pendingTimeline=t;return h}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:s,type:r,ease:n,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...h}=this.options,u=new ih({...h,keyframes:i,duration:s,type:r,ease:n,times:o,isGenerator:!0}),d=c(this.time);t.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}
1static supports(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:r,damping:n,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return id()&&i&&iu.has(i)&&!a&&!l&&!s&&"mirror"!==r&&0!==n&&"inertia"!==o}}let im={type:"spring",stiffness:500,damping:25,restSpeed:10},ig={type:"keyframes",duration:.8},iv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iy=(t,e,i,s={},r,n)=>o=>{let a=g(s,t)||{},l=a.delay||s.delay||0,{elapsed:h=0}=s;h-=c(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:n?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:r,repeat:n,repeatType:o,repeatDelay:a,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(a)&&(u={...u,...((t,{keyframes:e})=>e.length>2?ig:tc.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:im:iv)(t,u)}),u.duration&&(u.duration=c(u.duration)),u.repeatDelay&&(u.repeatDelay=c(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(u.duration=0,0===u.delay&&(d=!0)),d&&!n&&void 0!==e.get()){let t=ez(u.keyframes,a);if(void 0!==t)return ty.update(()=>{u.onUpdate(t),u.onComplete()}),new f([])}return!n&&ip.supports(u)?new ip(u):new ih(u)};function ix(t,e,{delay:i=0,transitionOverride:s,type:r}={}){var n;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);let h=[],u=r&&t.animationState&&t.animationState.getState()[r];for(let e in l){let s=t.getValue(e,null!=(n=t.latestValues[e])?n:null),r=l[e];if(void 0===r||u&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(u,e))continue;let a={delay:i,...g(o||{},e)},d=!1;if(window.MotionHandoffAnimation){let i=t.props[tR];if(i){let t=window.MotionHandoffAnimation(i,e,ty);null!==t&&(a.startTime=t,d=!0)}}tC(t,e),s.start(iy(e,s,r,t.shouldReduceMotion&&tp.has(e)?{type:!1}:a,t,d));let c=s.animation;c&&h.push(c)}return a&&Promise.all(h).then(()=>{ty.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:s={},...r}=tE(t,e)||{};for(let e in r={...r,...i}){let i=tf(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,tk(i))}}(t,a)})}),h}function ib(t){return t instanceof SVGElement&&"svg"!==t.tagName}let iw=()=>({translate:0,scale:1,origin:0,originPoint:0}),iP=()=>({x:iw(),y:iw()}),iT=()=>({min:0,max:0}),iA=()=>({x:iT(),y:iT()}),iS={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ij={};for(let t in iS)ij[t]={isEnabled:e=>iS[t].some(t=>!!e[t])};let ik="u">typeof window,iM={current:null},iV={current:!1};function iE(){if(iV.current=!0,ik)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>iM.current=t.matches;t.addListener(e),e()}else iM.current=!1}let iC=[...eI,et,eh];function iD(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function iR(t){return"string"==typeof t||Array.isArray(t)}let iN=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],iF=["initial",...iN];function iL(t){return iD(t.animate)||iF.some(e=>iR(t[e]))}function iB(t){return!!(iL(t)||t.variants)}let iO=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class iI{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:r,visualState:n},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eC,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tT.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,ty.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:h}=n;this.onUpdate=h,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=iL(e),this.isVariantNode=iB(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==a[t]&&Q(e)&&e.set(a[t],!1)}}mount(t){this.current=t,tu.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((t,e)=>this.bindToMotionValue(e,t)),iV.current||iE(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iM.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in tu.delete(this.current),this.projection&&this.projection.unmount(),tx(this.notifyUpdate),tx(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let s=tc.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&ty.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),n=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),n(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ij){let e=ij[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iA()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<iO.length;e++){let i=iO[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(t,e,i){for(let s in e){let r=e[s],n=i[s];if(Q(r))t.addValue(s,r);else if(Q(n))t.addValue(s,tk(r,{owner:t}));else if(n!==r)if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(s);t.addValue(s,tk(void 0!==e?e:r,{owner:t}))}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=tk(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let s=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=s){let i,r;if("string"==typeof s&&(i=s,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i)||(r=s,/^0[^.\s]+$/u.test(r))))s=parseFloat(s);else{let i;i=s,!iC.find(eO(i))&&eh.test(e)&&(s=ey(t,e))}this.setBaseTarget(t,Q(s)?s.get():s)}return Q(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:s}=this.props;if("string"==typeof s||"object"==typeof s){let r=tV(this.props,s,null==(e=this.presenceContext)?void 0:e.custom);r&&(i=r[t])}if(s&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||Q(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new tA),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class iU extends iI{constructor(){super(...arguments),this.KeyframeResolver=e$}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;Q(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let i$=(t,e)=>e&&"number"==typeof t?e.transform(t):t,iW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iH=td.length;function iz(t,e,i){let{style:s,vars:r,transformOrigin:n}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(tc.has(t)){o=!0;continue}if(eR(t)){r[t]=i;continue}{let e=i$(i,ef[t]);t.startsWith("origin")?(a=!0,n[t]=e):s[t]=e}}
1if(!e.transform&&(o||i?s.transform=function(t,e,i){let s="",r=!0;for(let n=0;n<iH;n++){let o=td[n],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||i){let t=i$(a,ef[o]);if(!l){r=!1;let e=iW[o]||o;s+=`${e}(${t}) `}i&&(e[o]=t)}}return s=s.trim(),i?s=i(e,r?"":s):r&&(s="none"),s}(e,t.transform,i):s.transform&&(s.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=n;s.transformOrigin=`${t} ${e} ${i}`}}let iY={offset:"stroke-dashoffset",array:"stroke-dasharray"},iK={offset:"strokeDashoffset",array:"strokeDasharray"};function iX(t,e,i){return"string"==typeof t?t:t4.transform(e+i*t)}function iq(t,{attrX:e,attrY:i,attrScale:s,originX:r,originY:n,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...h},u,d){let c,p;if(iz(t,h,d),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:m,style:f,dimensions:g}=t;m.transform&&(g&&(f.transform=m.transform),delete m.transform),g&&(void 0!==r||void 0!==n||f.transform)&&(c=iX(void 0!==r?r:.5,g.x,g.width),p=iX(void 0!==n?n:.5,g.y,g.height),f.transformOrigin=`${c} ${p}`),void 0!==e&&(m.x=e),void 0!==i&&(m.y=i),void 0!==s&&(m.scale=s),void 0!==o&&function(t,e,i=1,s=0,r=!0){t.pathLength=1;let n=r?iY:iK;t[n.offset]=t4.transform(-s);let o=t4.transform(e),a=t4.transform(i);t[n.array]=`${o} ${a}`}(m,o,a,l,!1)}let iG=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),i_=t=>"string"==typeof t&&"svg"===t.toLowerCase();function iZ(t,{style:e,vars:i},s,r){for(let n in Object.assign(t.style,e,r&&r.getProjectionStyles(s)),i)t.style.setProperty(n,i[n])}function iJ(t,e,i,s){for(let i in iZ(t,e,void 0,s),e.attrs)t.setAttribute(iG.has(i)?i:tD(i),e.attrs[i])}let iQ={};function i0(t,{layout:e,layoutId:i}){return tc.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!iQ[t]||"opacity"===t)}function i1(t,e,i){var s;let{style:r}=t,n={};for(let o in r)(Q(r[o])||e.style&&Q(e.style[o])||i0(o,t)||(null==(s=null==i?void 0:i.getValue(o))?void 0:s.liveStyle)!==void 0)&&(n[o]=r[o]);return n}function i5(t,e,i){let s=i1(t,e,i);for(let i in t)(Q(t[i])||Q(e[i]))&&(s[-1!==td.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}class i2 extends iU{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iA}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(tc.has(e)){let t=ev(e);return t&&t.default||0}return e=iG.has(e)?e:tD(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return i5(t,e,i)}build(t,e,i){iq(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,s){iJ(t,e,i,s)}mount(t){this.isSVGTag=i_(t.tagName),super.mount(t)}}function i3({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function i4(t){return void 0===t||1===t}function i6({scale:t,scaleX:e,scaleY:i}){return!i4(t)||!i4(e)||!i4(i)}function i9(t){return i6(t)||i8(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function i8(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function i7(t,e,i,s,r){return void 0!==r&&(t=s+r*(t-s)),s+i*(t-s)+e}function st(t,e=0,i=1,s,r){t.min=i7(t.min,e,i,s,r),t.max=i7(t.max,e,i,s,r)}function se(t,{x:e,y:i}){st(t.x,e.translate,e.scale,e.originPoint),st(t.y,i.translate,i.scale,i.originPoint)}function si(t,e){t.min=t.min+e,t.max=t.max+e}
1function ss(t,e,i,s,r=.5){let n=_(t.min,t.max,r);st(t,e,i,n,s)}function sr(t,e){ss(t.x,e.x,e.scaleX,e.scale,e.originX),ss(t.y,e.y,e.scaleY,e.scale,e.originY)}function sn(t,e){return i3(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}class so extends iU{constructor(){super(...arguments),this.type="html",this.renderInstance=iZ}readValueFromInstance(t,e){if(tc.has(e)){let t=ev(e);return t&&t.default||0}{let i=window.getComputedStyle(t),s=(eR(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return sn(t,e)}build(t,e,i){iz(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return i1(t,e,i)}}class sa extends iI{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(e in t){let i=t[e];if("string"==typeof i||"number"==typeof i)return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return iA()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}function sl(t){let e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=ib(t)?new i2(e):new so(e);i.mount(t),tu.set(t,i)}function sh(t){let e=new sa({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),tu.set(t,e)}function su(t,e,i){let s=Q(t)?t:tk(t);return s.start(iy("",s,e,i)),s.animation}function sd(t,e,i,s){let r=[];if(Q(t)||"number"==typeof t||"string"==typeof t&&!tt(e))r.push(su(t,tt(e)&&e.default||e,i&&i.default||i));else{let n=te(t,e,s),o=n.length;h(!!o,"No valid elements provided.");for(let t=0;t<o;t++){let s=n[t],a=s instanceof Element?sl:sh;tu.has(s)||a(s);let l=tu.get(s),h={...i};"delay"in h&&"function"==typeof h.delay&&(h.delay=h.delay(t,o)),r.push(...ix(l,{...e,transition:h},{}))}}return r}let sc=function(t,e,i){let s=[];if(Array.isArray(t)&&t.some(Array.isArray)){let i;i=[],(function(t,{defaultTransition:e={},...i}={},s,r){let n=e.duration||.3,o=new Map,a=new Map,l={},u=new Map,p=0,m=0,f=0;for(let i=0;i<t.length;i++){let o=t[i];if("string"==typeof o){u.set(o,m);continue}if(!Array.isArray(o)){u.set(o.name,ti(m,o.at,p,u));continue}let[d,b,w={}]=o;void 0!==w.at&&(m=ti(m,w.at,p,u));let P=0,T=(t,i,s,o=0,a=0)=>{var l;let u=Array.isArray(l=t)?l:[l],{delay:d=0,times:p=J(u),type:g="keyframes",repeat:x,repeatType:b,repeatDelay:w=0,...T}=i,{ease:A=e.ease||"easeOut",duration:S}=i,j="function"==typeof d?d(o,a):d,k=u.length,M=y(g)?g:null==r?void 0:r[g];if(k<=2&&M){let t=100;2===k&&th(u)&&(t=Math.abs(u[1]-u[0]));let e={...T};void 0!==S&&(e.duration=c(S));let i=function(t,e=100,i){let s=i({...t,keyframes:[0,e]}),r=Math.min(v(s),2e4);return{type:"keyframes",ease:t=>s.next(r*t).value/e,duration:r/1e3}}(e,t,M);A=i.ease,S=i.duration}null!=S||(S=n);let V=m+j;1===p.length&&0===p[0]&&(p[1]=1);let E=p.length-u.length;if(E>0&&Z(p,E),1===u.length&&u.unshift(null),x){h(x<20,"Repeat count too high, must be less than 20");S*=x+1;let t=[...u],e=[...p],i=[...A=Array.isArray(A)?[...A]:[A]];for(let s=0;s<x;s++){u.push(...t);for(let r=0;r<t.length;r++)p.push(e[r]+(s+1)),A.push(0===r?"linear":G(i,r-1))}for(let t=0;t<p.length;t++)p[t]=p[t]/(x+1)}let C=V+S;!function(t,e,i,s,r,n){for(let e=0;e<t.length;e++){let i=t[e];i.at>r&&i.at<n&&(tr(t,i),e--)}for(let o=0;o<e.length;o++)t.push({value:e[o],at:_(r,n,s[o]),easing:G(i,o)})}(s,u,A,p,V,C),P=Math.max(j+S,P),f=Math.max(C,f)};if(Q(d))T(b,w,ta("default",to(d,a)));else{let t=te(d,b,s,l),e=t.length;for(let i=0;i<e;i++){let s=to(t[i],a);for(let t in b){var g,x;T(b[t],(g=w,x=t,g&&g[x]?{...g,...g[x]}:{...g}),ta(t,s),i,e)}}}p=m,m+=P}return a.forEach((t,s)=>{for(let r in t){let n=t[r];n.sort(tn);let a=[],l=[],h=[];for(let t=0;t<n.length;t++){let{at:e,value:i,easing:s}=n[t];a.push(i),l.push(d(0,f,e)),h.push(s||"easeOut")}0!==l[0]&&(l.unshift(0),a.unshift(a[0]),h.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),a.push(null)),o.has(s)||o.set(s,{keyframes:{},transition:{}});let u=o.get(s);u.keyframes[r]=a,u.transition[r]={...e,duration:f,ease:h,times:l,...i}}}),o})(t,e,void 0,{spring:X}
1).forEach(({keyframes:t,transition:e},s)=>{i.push(...sd(s,t,e))}),s=i}else s=sd(t,e,i,void 0);return new f(s)},sp=(0,a.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function sm(t){let e=(0,a.useRef)(null);return null===e.current&&(e.current=t()),e.current}function sf(t){let e=sm(()=>tk(t)),{isStatic:i}=(0,a.useContext)(sp);if(i){let[,i]=(0,a.useState)(t);(0,a.useEffect)(()=>e.on("change",i),[])}return e}function sg(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}function sv(t,e,i={}){var s;let r=tE(t,e,"exit"===i.type?null==(s=t.presenceContext)?void 0:s.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let o=r?()=>Promise.all(ix(t,r,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=n;return function(t,e,i=0,s=0,r=1,n){let o=[],a=(t.variantChildren.size-1)*s,l=1===r?(t=0)=>t*s:(t=0)=>a-t*s;return Array.from(t.variantChildren).sort(sy).forEach((t,s)=>{t.notify("AnimationStart",e),o.push(sv(t,e,{...n,delay:i+l(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+s,o,a,i)}:()=>Promise.resolve(),{when:l}=n;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function sy(t,e){return t.sortNodePosition(e)}let sx=iF.length,sb=[...iN].reverse(),sw=iN.length;function sP(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sT(){return{animate:sP(!0),whileInView:sP(),whileHover:sP(),whileTap:sP(),whileDrag:sP(),whileFocus:sP(),exit:sP()}}class sA{constructor(t){this.isMounted=!1,this.node=t}update(){}}let sS=0;function sj(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}function sk(t){return{point:{x:t.pageX,y:t.pageY}}}function sM(t,e,i,s){return sj(t,e,t=>C(t)&&i(t,sk(t)),s)}let sV=(t,e)=>Math.abs(t-e);class sE{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=sR(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(sV(t.x,e.x)**2+sV(t.y,e.y)**2)>=3);if(!s&&!r)return;let{point:n}=i,{timestamp:o}=tb;this.history.push({...n,timestamp:o});let{onStart:a,onMove:l}=this.handlers;s||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=sC(e,this.transformPagePoint),ty.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=sR("pointercancel"===t.type?this.lastMoveEventInfo:sC(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),s&&s(t,n)},!C(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;const n=sC(sk(t),this.transformPagePoint),{point:o}=n,{timestamp:a}=tb;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,sR(n,this.history)),this.removeListeners=eQ(sM(this.contextWindow,"pointermove",this.handlePointerMove),sM(this.contextWindow,"pointerup",this.handlePointerUp),sM(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),tx(this.updatePoint)}}function sC(t,e){return e?{point:e(t.point)}:t}function sD(t,e){return{x:t.x-e.x,y:t.y-e.y}}function sR({point:t},e){return{point:t,delta:sD(t,sN(e)),offset:sD(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,r=sN(t);for(;i>=0&&(s=t[i],!(r.timestamp-s.timestamp>c(.1)));)i--;if(!s)return{x:0,y:0};let n=(r.timestamp-s.timestamp)/1e3;if(0===n)return{x:0,y:0};let o={x:(r.x-s.x)/n,y:(r.y-s.y)/n};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function sN(t){return t[t.length-1]}function sF(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function sL(t){return t.max-t.min}function sB(t,e,i,s=.5){t.origin=s,t.originPoint=_(e.min,e.max,t.origin),t.scale=sL(i)/sL(e),t.translate=_(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function sO(t,e,i,s){sB(t.x,e.x,i.x,s?s.originX:void 0),sB(t.y,e.y,i.y,s?s.originY:void 0)}function sI(t,e,i){t.min=i.min+e.min,t.max=t.min+sL(e)}function sU(t,e,i){t.min=e.min-i.min,t.max=t.min+sL(e)}function s$(t,e,i){sU(t.x,e.x,i.x),sU(t.y,e.y,i.y)}function sW(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function sH(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function sz(t,e,i){return{min:sY(t,e),max:sY(t,i)}}function sY(t,e){return"number"==typeof t?t:t[e]||0}function sK(t){return[t("x"),t("y")]}let sX=({current:t})=>
1t?t.ownerDocument.defaultView:null,sq=new WeakMap;class sG{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iA(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let s=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(sk(t).point)},r=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(j[t])return null;else return j[t]=!0,()=>{j[t]=!1};return j.x||j.y?null:(j.x=j.y=!0,()=>{j.x=j.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),sK(t=>{let e=this.getAxisMotionValue(t).get()||0;if(t3.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=sL(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&ty.postRender(()=>r(t,e)),tC(this.visualElement,"transform");let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},n=(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:r,onDrag:n}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),n&&n(t,e)},o=(t,e)=>this.stop(t,e),a=()=>sK(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new sE(t,{onSessionStart:s,onStart:r,onMove:n,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:sX(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:r}=this.getProps();r&&ty.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!s_(t,s,this.currentDirection))return;let r=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?_(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?_(i,t,s.max):Math.min(t,i)),t}(n,this.constraints[t],this.elastic[t])),r.set(n)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,r=this.constraints;e&&sF(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,{top:e,left:i,bottom:s,right:r}){return{x:sW(t.x,i,r),y:sW(t.y,e,s)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:sz(t,"left","right"),y:sz(t,"top","bottom")}}(i),r!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&sK(t=>{var e,i;let r;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=s.layoutBox[t],i=this.constraints[t],r={},void 0!==i.min&&(r.min=i.min-e.min),void 0!==i.max&&(r.max=i.max-e.min),r))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!sF(e))return!1;let s=e.current;h(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;
1let n=function(t,e,i){let s=sn(t,i),{scroll:r}=e;return r&&(si(s.x,r.offset.x),si(s.y,r.offset.y)),s}(s,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:sH(t.x,n.x),y:sH(t.y,n.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=i3(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:n,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(sK(o=>{if(!s_(o,e,this.currentDirection))return;let l=a&&a[o]||{};n&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return tC(this.visualElement,t),i.start(iy(t,i,0,e,this.visualElement,!1))}stopAnimation(){sK(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){sK(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){sK(e=>{let{drag:i}=this.getProps();if(!s_(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,r=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[e];r.set(t[e]-_(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!sF(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};sK(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,r;let n,o,a,l=e.get();s[t]=(i={min:l,max:l},r=this.constraints[t],n=.5,o=sL(i),(a=sL(r))>o?n=d(r.min,r.max-o,i.min):o>a&&(n=d(i.min,i.max-a,r.min)),B(0,1,n))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),sK(e=>{if(!s_(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:n}=this.constraints[e];i.set(_(r,n,s[e]))})}addListeners(){if(!this.visualElement.current)return;sq.set(this.visualElement,this);let t=sM(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();sF(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ty.read(e);let r=sj(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(sK(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),s(),n&&n()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:n=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:n,dragMomentum:o}}}function s_(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let sZ=t=>(e,i)=>{t&&ty.postRender(()=>t(e,i))};var sJ=a;let sQ=(0,a.createContext)(null),s0=(0,a.createContext)({}),s1=(0,a.createContext)({}),s5={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function s2(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let s3={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!t4.test(t))return t;else t=parseFloat(t);let i=s2(t,e.target.x),s=s2(t,e.target.y);return`${i}% ${s}%`}},{schedule:s4,cancel:s6}=tv(queueMicrotask,!1);class s9 extends sJ.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=t;Object.assign(iQ,s7),r&&(e.group&&e.group.add(r),i&&i.register&&s&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),s5.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:r}=this.props,n=i.projection;return n&&(n.isPresent=r,s||t.layoutDependency!==e||void 0===e?n.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?n.promote():n.relegate()||ty.postRender(()=>{let t=n.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),s4.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function s8(t){let[e,i]=function(t=!0){let e=(0,a.useContext)(sQ);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:r}=e,n=(0,a.useId)();(0,a.useEffect)(()=>{t&&r(n)},[t]);let o=(0,a.useCallback)(()=>t&&s&&s(n),[n,s,t]);return!i&&s?[!1,o]:[!0]}(),s=(0,sJ.useContext)(s0);return(0,o.jsx)(s9,{...t,layoutGroup:s,switchLayoutGroup:(0,sJ.useContext)(s1),isPresent:e,safeToRemove:i})}let s7={borderRadius:{...s3,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:s3,borderTopRightRadius:s3,borderBottomLeftRadius:s3,borderBottomRightRadius:s3,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=eh.parse(t);if(s.length>5)return t;let r=eh.createTransformer(t),n=+("number"!=typeof s[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+n]/=o,s[1+n]/=a;let l=_(o,a,.5);return"number"==typeof s[2+n]&&(s[2+n]/=l),"number"==typeof s[3+n]&&(s[3+n]/=l),r(s)}}},rt=(t,e)=>t.depth-e.depth;class re{constructor(){this.children=[],this.isDirty=!1}add(t){ts(this.children,t),this.isDirty=!0}remove(t){tr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rt),this.isDirty=!1,this.children.forEac
1h(t)}}function ri(t){let e=Q(t)?t.get():t;return e&&"object"==typeof e&&e.mix&&e.toValue?e.toValue():e}let rs=["TopLeft","TopRight","BottomLeft","BottomRight"],rr=rs.length,rn=t=>"string"==typeof t?parseFloat(t):t,ro=t=>"number"==typeof t||t4.test(t);function ra(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rl=ru(0,.5,tH),rh=ru(.5,.95,h);function ru(t,e,i){return s=>s<t?0:s>e?1:i(d(t,e,s))}function rd(t,e){t.min=e.min,t.max=e.max}function rc(t,e){rd(t.x,e.x),rd(t.y,e.y)}function rp(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rm(t,e,i,s,r){return t-=e,t=s+1/i*(t-s),void 0!==r&&(t=s+1/r*(t-s)),t}function rf(t,e,[i,s,r],n,o){!function(t,e=0,i=1,s=.5,r,n=t,o=t){if(t3.test(e)&&(e=parseFloat(e),e=_(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=_(n.min,n.max,s);t===n&&(a-=e),t.min=rm(t.min,e,i,a,r),t.max=rm(t.max,e,i,a,r)}(t,e[i],e[s],e[r],e.scale,n,o)}let rg=["x","scaleX","originX"],rv=["y","scaleY","originY"];function ry(t,e,i,s){rf(t.x,e,rg,i?i.x:void 0,s?s.x:void 0),rf(t.y,e,rv,i?i.y:void 0,s?s.y:void 0)}function rx(t){return 0===t.translate&&1===t.scale}function rb(t){return rx(t.x)&&rx(t.y)}function rw(t,e){return t.min===e.min&&t.max===e.max}function rP(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rT(t,e){return rP(t.x,e.x)&&rP(t.y,e.y)}function rA(t){return sL(t.x)/sL(t.y)}function rS(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rj{constructor(){this.members=[]}add(t){ts(this.members,t),t.scheduleRender()}remove(t){if(tr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rk={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},rM="u">typeof window&&void 0!==window.MotionDebug,rV=["","X","Y","Z"],rE={visibility:"hidden"},rC=0;function rD(t,e,i,s){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),s&&(s[t]=0))}function rR({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=rC++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rM&&(rk.totalNodes=rk.resolvedTargetDeltas=rk.recalculatedProjection=0),this.nodes.forEach(rL),this.nodes.forEach(rH),this.nodes.forEach(rz),this.nodes.forEach(rB),rM&&window.MotionDebug.record(rk)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new re)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tA),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ib(e),this.instance=e;let{layoutId:s,layout:r,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||s)&&(this.isLayoutDirty=!0),t){let i,s=()=>this.root.updateBlockedByResize=!1;t(e,()=>{let t,e;this.root.updateBlockedByResize=!0,i&&i(),t=tT.now(),e=({timestamp:i})=>{let r=i-t;r>=250&&(tx(e),s(r-250))},ty.read(e,!0),i=()=>tx(e),s5.hasAnimatedSinceResize&&(s5.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(rW))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&n&&(s||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||r_,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!rT(this.targetLayout,s)||i,h=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...g(r,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||rW(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,tx(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(rY),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=i.props[tR];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",ty,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rI);return}this.isUpdating||this.nodes.forEach(rU),this.isUpdating=!1,this.nodes.forEach(r$),this.nodes.forEach(rN),this.nodes.forEach(rF),this.clearAllSnapshots();let t=tT.now();tb.delta=B(0,1e3/60,t-tb.timestamp),tb.timestamp=t,tb.isProcessing=!0,tw.update.process(tb),tw.preRender.process(tb),tw.render.process(tb),tb.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,s4.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rO),this.sharedNodes.forEach(rK)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ty.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ty.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iA(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rb(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;t&&(e||i9(this.latestValues)||n)&&(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),rQ((e=s).x),rQ(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return iA();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(r1))){let{scroll:t}=this.root;t&&(si(i.x,t.offset.x),si(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=iA();if(rc(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let s=this.path[e],{scroll:r,options:n}=s;s!==this.root&&r&&n.layoutScroll&&(r.wasRoot&&rc(i,t),si(i.x,r.offset.x),si(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=iA();rc(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&sr(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),i9(s.latestValues)&&sr(i,s.latestValues)}return i9(this.latestValues)&&sr(i,this.latestValues),i}removeTransform(t){let e=iA();rc(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!i9(i.latestValues))continue;i6(i.latestValues)&&i.updateSnapshot();let s=iA();rc(s,i.measurePageBox()),ry(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return i9(this.latestValues)&&ry(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tb.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,s,r;let n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
1haredProjectionDirty);let o=!!this.resumingFrom||this!==n;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=tb.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iA(),this.relativeTargetOrigin=iA(),s$(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=iA(),this.targetWithTransforms=iA()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,r=this.relativeParent.target,sI(i.x,s.x,r.x),sI(i.y,s.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rc(this.target,this.layout.layoutBox),se(this.target,this.targetDelta)):rc(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iA(),this.relativeTargetOrigin=iA(),s$(this.relativeTargetOrigin,this.target,t.target),rc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rM&&rk.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||i6(this.parent.latestValues)||i8(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,s=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===tb.timestamp&&(s=!1),s)return;let{layout:r,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||n))return;rc(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,s=!1){let r,n,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){n=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&sr(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),n&&(e.x*=n.x.scale,e.y*=n.y.scale,se(t,n)),s&&i9(r.latestValues)&&sr(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=iA());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rp(this.prevProjectionDelta.x,this.projectionDelta.x),rp(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),sO(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&rS(this.projectionDelta.x,this.prevProjectionDelta.x)&&rS(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rM&&rk.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iP(),this.projectionDelta=iP(),this.projectionDeltaWithTransform=iP()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,r=s?s.latestValues:{},n={...this.latestValues},o=iP();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iA(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(rG));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(rX(o.x,t.x,s),rX(o.y,t.y,s),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,p,m,f,g;s$(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=s,rq(p.x,m.x,f.x,g),rq(p.y,m.y,f.y,g),i&&(h=this.relativeTarget,c=i,rw(h.x,c.x)&&rw(h.y,c.y))&&(this.isProjectionDirty=!1),i||(i=iA()),rc(i,this.relativeTarget)}
1l&&(this.animationValues=n,function(t,e,i,s,r,n){r?(t.opacity=_(0,void 0!==i.opacity?i.opacity:1,rl(s)),t.opacityExit=_(void 0!==e.opacity?e.opacity:1,0,rh(s))):n&&(t.opacity=_(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let r=0;r<rr;r++){let n=`border${rs[r]}Radius`,o=ra(e,n),a=ra(i,n);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||ro(o)===ro(a)?(t[n]=Math.max(_(rn(o),rn(a),s),0),(t3.test(a)||t3.test(o))&&(t[n]+="%")):t[n]=a)}(e.rotate||i.rotate)&&(t.rotate=_(e.rotate||0,i.rotate||0,s))}(n,r,this.latestValues,s,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(tx(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ty.update(()=>{s5.hasAnimatedSinceResize=!0,this.currentAnimation=su(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:r}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&r0(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||iA();let e=sL(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=sL(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}rc(e,i),sr(e,r),sO(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rj),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&rD("z",t,s,this.animationValues);for(let e=0;e<rV.length;e++)rD(`rotate${rV[e]}`,t,s,this.animationValues),rD(`skew${rV[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rE;let s={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=ri(null==t?void 0:t.pointerEvents)||"",s.transform=r?r(this.latestValues,""):"none",s;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ri(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!i9(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=n.animationValues||n.latestValues;
1this.applyTransformsToTarget(),s.transform=function(t,e,i){let s="",r=t.x.translate/e.x,n=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||n||o)&&(s=`translate3d(${r}px, ${n}px, ${o}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:n,skewX:o,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),r&&(s+=`rotateX(${r}deg) `),n&&(s+=`rotateY(${n}deg) `),o&&(s+=`skewX(${o}deg) `),a&&(s+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),r&&(s.transform=r(o,s.transform));let{x:a,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,n.animationValues?s.opacity=n===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:s.opacity=n===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,iQ){if(void 0===o[t])continue;let{correct:e,applyTo:i}=iQ[t],r="none"===s.transform?o[t]:e(o[t],n);if(i){let t=i.length;for(let e=0;e<t;e++)s[i[e]]=r}else s[t]=r}return this.options.layoutId&&(s.pointerEvents=n===this?ri(null==t?void 0:t.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(rI),this.root.sharedNodes.clear()}}}function rN(t){t.updateLayout()}function rF(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:s}=t.layout,{animationType:r}=t.options,n=i.source!==t.layout.source;"size"===r?sK(t=>{let s=n?i.measuredBox[t]:i.layoutBox[t],r=sL(s);s.min=e[t].min,s.max=s.min+r}):r0(r,i.layoutBox,e)&&sK(s=>{let r=n?i.measuredBox[s]:i.layoutBox[s],o=sL(e[s]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=iP();sO(o,e,i.layoutBox);let a=iP();n?sO(a,t.applyTransform(s,!0),i.measuredBox):sO(a,e,i.layoutBox);let l=!rb(o),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:n}=s;if(r&&n){let o=iA();s$(o,i.layoutBox,r.layoutBox);let a=iA();s$(a,e,n.layoutBox),rT(o,a)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rL(t){rM&&rk.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rB(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rO(t){t.clearSnapshot()}function rI(t){t.clearMeasurements()}function rU(t){t.isLayoutDirty=!1}function r$(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rW(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rH(t){t.resolveTargetDelta()}function rz(t){t.calcProjection()}function rY(t){t.resetSkewAndRotation()}function rK(t){t.removeLeadSnapshot()}function rX(t,e,i){t.translate=_(e.translate,0,i),t.scale=_(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rq(t,e,i,s){t.min=_(e.min,i.min,s),t.max=_(e.max,i.max,s)}function rG(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let r_={duration:.45,ease:[.4,0,.1,1]},rZ=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rJ=rZ("applewebkit/")&&!rZ("chrome/")?Math.round:h;function rQ(t){t.min=rJ(t.min),t.max=rJ(t.max)}function r0(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rA(e)-rA(i)))}function r1(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let r5=rR({attachResizeListener:(t,e)=>sj(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),r2={current:void 0},r3=rR({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!r2.current){let t=new r5({});t.mount(window),t.setOptions({layoutScroll:!0}),r2.current=t}return r2.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function r4(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=s["onHover"+i];r&&ty.postRender(()=>r(e,sk(e)))}function r6(t,e,i){let{props:s}=t;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=s["onTap"+("End"===i?"":i)];r&&ty.postRender(()=>r(e,sk(e)))}let r9=new WeakMap,r8=new WeakMap,r7=t=>{let e=r9.get(t.target);e&&e(t)}
1,nt=t=>{t.forEach(r7)},ne={some:0,all:1},ni=(0,a.createContext)({strict:!1}),ns=(0,a.createContext)({});function nr(t){return Array.isArray(t)?t.join(" "):t}let nn=Symbol.for("motionComponentSymbol"),no=ik?a.useLayoutEffect:a.useEffect,na=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function nl(t){if("string"!=typeof t||t.includes("-"));else if(na.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let nh=t=>(e,i)=>{let s=(0,a.useContext)(ns),r=(0,a.useContext)(sQ),n=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},s,r,n){let o={latestValues:function(t,e,i,s){let r={},n=s(t,{});for(let t in n)r[t]=ri(n[t]);let{initial:o,animate:a}=t,l=iL(t),h=iB(t);e&&h&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!iD(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let s=tV(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(s,r,n,t),renderState:e()};return i&&(o.onMount=t=>i({props:s,current:t,...o}),o.onUpdate=t=>i(t)),o})(t,e,s,r);return i?n():sm(n)},nu=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),nd=()=>({...nu(),attrs:{}}),nc=["x","y","width","height","cx","cy","r"],np={useVisualState:nh({scrapeMotionValuesFromProps:i5,createRenderState:nd,onUpdate:({props:t,prevProps:e,current:i,renderState:s,latestValues:r})=>{if(!i)return;let n=!!t.drag;if(!n){for(let t in r)if(tc.has(t)){n=!0;break}}if(!n)return;let o=!e;if(e)for(let i=0;i<nc.length;i++){let s=nc[i];t[s]!==e[s]&&(o=!0)}o&&ty.read(()=>{try{s.dimensions="function"==typeof i.getBBox?i.getBBox():i.getBoundingClientRect()}catch(t){s.dimensions={x:0,y:0,width:0,height:0}}ty.render(()=>{iq(s,r,i_(i.tagName),t.transformTemplate),iJ(i,s)})})}})},nm={useVisualState:nh({scrapeMotionValuesFromProps:i1,createRenderState:nu})};function nf(t,e,i){for(let s in e)Q(e[s])||i0(s,i)||(t[s]=e[s])}let ng=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function nv(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ng.has(t)}let ny=t=>!nv(t);try{(s=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default)&&(ny=t=>t.startsWith("on")?!nv(t):s(t))}catch(t){}let nx=function(t){if("u"<typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,s)=>"create"===s?t:(e.has(s)||e.set(s,t(s)),e.get(s))})}((r={animation:{Feature:class extends sA{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>sv(t,e,i)));else if("string"==typeof e)s=sv(t,e,i);else{let r="function"==typeof e?tE(t,e,i.custom):e;s=Promise.all(ix(t,r,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=sT(),s=!0,r=e=>(i,s)=>{var r;let n=tE(t,s,"exit"===e?null==(r=t.presenceContext)?void 0:r.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function n(n){let{props:o}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<sx;t++){let s=iF[t],r=e.props[s];(iR(r)||!1===r)&&(i[s]=r)}return i}(t.parent)||{},l=[],h=new Set,u={},d=1/0;for(let e=0;e<sw;e++){var c,p;let m=sb[e],f=i[m],g=void 0!==o[m]?o[m]:a[m],v=iR(g),y=m===n?f.isActive:null;!1===y&&(d=e);let x=g===a[m]&&g!==o[m]&&v;if(x&&s&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...u},!f.isActive&&null===y||!g&&!f.prevProp||iD(g)||"boolean"==typeof g)continue;let b=(c=f.prevProp,"string"==typeof(p=g)?p!==c:!!Array.isArray(p)&&!sg(p,c
1)),w=b||m===n&&f.isActive&&!x&&v||e>d&&v,P=!1,T=Array.isArray(g)?g:[g],A=T.reduce(r(m),{});!1===y&&(A={});let{prevResolvedValues:S={}}=f,j={...S,...A},k=e=>{w=!0,h.has(e)&&(P=!0,h.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in j){let e=A[t],i=S[t];if(!u.hasOwnProperty(t))(tm(e)&&tm(i)?sg(e,i):e===i)?void 0!==e&&h.has(t)?k(t):f.protectedKeys[t]=!0:null!=e?k(t):h.add(t)}f.prevProp=g,f.prevResolvedValues=A,f.isActive&&(u={...u,...A}),s&&t.blockInitialAnimation&&(w=!1);let M=!(x&&b)||P;w&&M&&l.push(...T.map(t=>({animation:t,options:{type:m}})))}if(h.size){let e={};h.forEach(i=>{let s=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=s?s:null}),l.push({animation:e})}let m=!!l.length;return s&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(m=!1),s=!1,m?e(l):Promise.resolve()}return{animateChanges:n,setActive:function(e,s){var r;if(i[e].isActive===s)return Promise.resolve();null==(r=t.variantChildren)||r.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,s)}),i[e].isActive=s;let o=n(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=sT(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();iD(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}},exit:{Feature:class extends sA{constructor(){super(...arguments),this.id=sS++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends sA{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:s,margin:r,amount:n="some",once:o}=i,a={root:s?s.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:ne[n]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),r=e?i:s;r&&r(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;r8.has(i)||r8.set(i,{});let s=r8.get(i),r=JSON.stringify(e);return s[r]||(s[r]=new IntersectionObserver(nt,{root:t,...e})),s[r]}(a),r9.set(t,l),e.observe(t),()=>{r9.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends sA{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,r,n]=M(t,i),o=t=>{let s=t.currentTarget;if(!L(t)||R.has(s))return;R.add(s);let n=e(t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),L(t)&&R.has(s)&&(R.delete(s),"function"==typeof n&&n(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||E(s,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return s.forEach(t=>{D.has(t.tagName)||-1!==t.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=N(()=>{if(R.has(i))return;F(i,"down");let t=N(()=>{F(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>F(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,r),r)}),n}(t,t=>(r6(this.node,t,"Start"),(t,{success:e})=>r6(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends sA{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=eQ(sj(this.node.current,"focus",()=>this.onFocus()),sj(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends sA{mount(){let{current:t}=this.node;
1t&&(this.unmount=function(t,e,i={}){let[s,r,n]=M(t,i),o=V(t=>{let{target:i}=t,s=e(t);if("function"!=typeof s||!i)return;let n=V(t=>{s(t),i.removeEventListener("pointerleave",n)});i.addEventListener("pointerleave",n,r)});return s.forEach(t=>{t.addEventListener("pointerenter",o,r)}),n}(t,t=>(r4(this.node,t,"Start"),t=>r4(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends sA{constructor(){super(...arguments),this.removePointerDownListener=h}onPointerDown(t){this.session=new sE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sX(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:sZ(t),onStart:sZ(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&ty.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=sM(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends sA{constructor(t){super(t),this.removeGroupControls=h,this.removeListeners=h,this.controls=new sG(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||h}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:r3,MeasureLayout:s8},layout:{ProjectionNode:r3,MeasureLayout:s8}},n=(t,e)=>nl(t)?new i2(e):new so(e,{allowProjection:t!==a.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:s,Component:r}){var n,l;function h(t,n){var l;let h,u={...(0,a.useContext)(sp),...t,layoutId:function({layoutId:t}){let e=(0,a.useContext)(s0).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:d}=u,c=function(t){let{initial:e,animate:i}=function(t,e){if(iL(t)){let{initial:e,animate:i}=t;return{initial:!1===e||iR(e)?e:void 0,animate:iR(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,a.useContext)(ns));return(0,a.useMemo)(()=>({initial:e,animate:i}),[nr(e),nr(i)])}(t),p=s(t,d);if(!d&&ik){(0,a.useContext)(ni).strict;let t=function(t){let{drag:e,layout:i}=ij;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(u);h=t.MeasureLayout,c.visualElement=function(t,e,i,s,r){var n,o;let{visualElement:l}=(0,a.useContext)(ns),h=(0,a.useContext)(ni),u=(0,a.useContext)(sQ),d=(0,a.useContext)(sp).reducedMotion,c=(0,a.useRef)(null);s=s||h.renderer,!c.current&&s&&(c.current=s(t,{visualState:e,parent:l,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:d}));let p=c.current,m=(0,a.useContext)(s1);p&&!p.projection&&r&&("html"===p.type||"svg"===p.type)&&function(t,e,i,s){let{layoutId:r,layout:n,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:n,alwaysMeasureLayout:!!o||a&&sF(a),visualElement:t,animationType:"string"==typeof n?n:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:h})}(c.current,i,r,m);let f=(0,a.useRef)(!1);(0,a.useInsertionEffect)(()=>{p&&f.current&&p.update(i,u)});let g=i[tR],v=(0,a.useRef)(!!g&&!(null==(n=window.MotionHandoffIsComplete)?void 0:n.call(window,g))&&(null==(o=window.MotionHasOptimisedAnimation)?void 0:o.call(window,g)));return no(()=>{p&&(f.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),s4.render(p.render),v.current&&p.animationState&&p.animationState.animateChanges())}),(0,a.useEffect)(()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,g)}),v.current=!1))}),p}(r,p,u,e,t.ProjectionNode)}return(0,o.jsxs)(ns.Provider,{value:c,children:[h&&c.visualElement?(0,o.jsx)(h,{visualElement:c.visualElement,...u}):null,i(r,t,(l=c.visualElement,(0,a.useCallback)(t=>{t&&p.onMount&&p.onMount(t),l&&(t?l.mount(t):l.unmount()),n&&("function"==typeof n?n(t):sF(n)&&(n.current=t))},[l])),p,d,c.visualElement)]})}t&&function(t){for(let e in t)ij[e]={...ij[e],...t[e]}}(t),h.displayName=`motion.${"string"==typeof r?r:`create(${null!=(l=null!=(n=r.displayName)?n:r.name)?l:""})`}`;let u=(0,a.forwardRef)(h);return u[nn]=r,u}({...nl(t)?np:nm,preloadedFeatures:r,useRender:function(t=!1){return(e,i,s,{latestValues:r},n)=>
1{let o=(nl(e)?function(t,e,i,s){let r=(0,a.useMemo)(()=>{let i=nd();return iq(i,e,i_(s),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};nf(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i,s,r={},n=(i=t.style||{},nf(s={},i,t),Object.assign(s,function({transformTemplate:t},e){return(0,a.useMemo)(()=>{let i=nu();return iz(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=n,r})(i,r,n,e),l=function(t,e,i){let s={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(ny(r)||!0===i&&nv(r)||!e&&!nv(r)||t.draggable&&r.startsWith("onDrag"))&&(s[r]=t[r]);return s}(i,"string"==typeof e,t),h=e!==a.Fragment?{...l,...o,ref:s}:{},{children:u}=i,d=(0,a.useMemo)(()=>Q(u)?u.get():u,[u]);return(0,a.createElement)(e,{...h,children:d})}}(e),createVisualElement:n,Component:t})}));function nb(t,e){let i=sf(e()),s=()=>i.set(e());return s(),no(()=>{let e=()=>ty.preRender(s,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),tx(s)}}),i}function nw(t,e,i,s){if("function"==typeof t){let e;return tS.current=[],t(),e=nb(tS.current,t),tS.current=void 0,e}let r="function"==typeof e?e:function(...t){var e;let i,s=!Array.isArray(t[0]),r=s?0:-1,n=t[0+r],o=t[1+r],a=t[2+r],l=t[3+r],h=is(o,a,{mixer:(i=e=a[0])&&"object"==typeof i&&i.mix?e.mix:void 0,...l});return s?h(n):h}(e,i,s);return Array.isArray(t)?nP(t,r):nP([t],([t])=>r(t))}function nP(t,e){let i=sm(()=>[]);return nb(t,()=>{i.length=0;let s=t.length;for(let e=0;e<s;e++)i[e]=t[e].get();return e(i)})}var nT=t.i(963578),nA=t.i(513653),nS=t.i(50864);let nj=[{name:"FANUC",score:.94,tier:"top"},{name:"ABB Robotics",score:.9,tier:"top"},{name:"KUKA",score:.87,tier:"top"},{name:"Festo",score:.81,tier:"strong"},{name:"Cognex",score:.76,tier:"strong"},{name:"Tulip Interfaces",score:.63,tier:"explore"}],nk={top:{label:"Top",icon:nT.Star,bar:"bg-emerald-400",chip:"bg-emerald-400/15 text-emerald-300 border border-emerald-400/30"},strong:{label:"Strong",icon:nA.Sparkles,bar:"bg-sky-400",chip:"bg-sky-400/15 text-sky-300 border border-sky-400/30"},explore:{label:"Explore",icon:nS.Compass,bar:"bg-stone-400",chip:"bg-stone-400/10 text-stone-300 border border-stone-400/20"}};function nM({row:t,index:e,progress:i}){let s=nk[t.tier],r=s.icon,n=nw(i,[.02+.03*e,.16+.03*e],[0,Math.round(100*t.score)]),a=nw(n,t=>`${t}%`);return(0,o.jsxs)(nx.li,{className:"flex items-center gap-3 rounded-lg border border-white/5 bg-white/[0.03] px-3 py-2.5",children:[(0,o.jsx)("span",{className:`inline-flex h-7 w-7 items-center justify-center rounded-md ${s.chip}`,children:(0,o.jsx)(r,{className:"h-3.5 w-3.5"})}),(0,o.jsx)("span",{className:"flex-1 text-[13px] font-medium text-white/90 truncate",children:t.name}),(0,o.jsx)("div",{className:"w-16 h-1.5 rounded-full bg-white/10 overflow-hidden",children:(0,o.jsx)(nx.div,{className:`h-full rounded-full ${s.bar}`,style:{width:a}})}),(0,o.jsx)("span",{className:"tabular-nums text-[11.5px] font-semibold text-white/80 w-10 text-right",children:t.score.toFixed(2)})]})}function nV({progress:t}){return(0,o.jsx)("div",{className:"flex h-full flex-col items-center w-full",children:(0,o.jsx)("div",{className:"relative h-full w-full max-w-2xl",children:(0,o.jsxs)(nx.div,{className:"flex h-full flex-col rounded-2xl border border-white/10 bg-deep-elevated p-5 sm:p-6 shadow-2xl shadow-black/40",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between mb-5",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"text-[10px] font-semibold uppercase tracking-[0.14em] text-white/50",children:"Automate · 2026"}),(0,o.jsx)("p",{className:"text-[15px] font-semibold text-white mt-1",children:"Your briefing"})]}),(0,o.jsx)("span",{className:"rounded-full border border-white/10 bg-white/5 px-2.5 py-1 text-[10px] font-semibold uppercase tracking-[0.08em] text-white/70",children:"60 matches"})]}),(0,o.jsx)("ul",{className:"space-y-2.5",children:nj.map((e,i)=>(0,o.jsx)(nM,{row:e,index:i,progress:t},e.name))})]})})})}var nE=t.i(790001);let nC=[{from:"user",body:"met FANUC — they're hot 🔥"},{from:"copilot",body:(0,o.jsxs)(o.Fragment,{children:["✓ FANUC moved to ",(0,o.jsx)("span",{className:"font-semibold text-signal-hot",children:"High Interest"}),".",(0,o.jsx)("br",{}),"Next up: ",(0,o.jsx)("span",{className:"font-semibold",children:"ABB Robotics"})," at booth"," ",(0,o.jsx)("span",{className:"tabular-nums",children:"C-14"}),"."]})},{from:"user",body:"skip booth 412"},{from:"copilot",body:(0,o.jsx)(o.Fragment,{children:"Got it — booth 412 (Beckhoff Automation) skipped. Re-ranking your shortlist…"})}];function nD({msg:t,index:e,progress:i}){let s=.05+.13*e,r=nw(i,[s,s+.12],[0,1]),n=nw(r,[0,1],[10,0]);return(0,o.jsx)(nx.div,{style:{opacity:r,y:n},className:`flex ${"user"===t.from?"justify-end":"justify-start"}`,children:(0,o.jsx)("div",{className:`max-w-[82%] rounded-2xl px-3.5 py-2 text-[12.5px] leading-relaxed ${"user"===t.from?"bg-accent text-accent-foreground rounded-br-md":"bg-white/[0.06] text-white/90 rounded-bl-md border border-white/10"}`,children:t.body})})}function nR({progress:t}){let e=nw(t,[0,.3],[0,1]),i=nw(e,[0,1],[24,0]),s=nw(t,[.62,.78],[0,1]);return(0,o.jsx)("div",{className:"relative h-full w-full",children:(0,o.jsxs)(nx.div,{style:{opacity:e,y:i},className:"flex h-full flex-col overflow-hidden rounded-2xl border border-white/10 bg-deep-elevated shadow-2xl shadow-black/40",children:[(0,o.jsxs)("div",{className:"flex items-center gap-2.5 border-b border-white/10 px-5 py-3.5",children:[(0,o.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-accent text-[11px] font-bold text-accent-foreground",children:"P"}),(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"text-[13px] font-semibold text-white leading-tight",children:"Palconf Copilot"}),(0,o.jsxs)("p",{className:"flex items-center gap-1 text-[10px] text-white/50",children:[(0,o.jsx)("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-signal-met animate-pulse-dot"}),"Live · Automate 2026"]})]})]}),(0,o.jsxs)("div",{className:"flex-1 space-y-2.5 px-5 py-4",children:[nC.map((e,i)=>(0,o.jsx)(nD,{msg:e,index:i,progress:t},i)),(0,o.jsx)(nx.div,{style:{opacity:s},className:"flex justify-start",children:(0,o.jsxs)("div",{className:"flex items-center gap-1 rounded-2xl rounded-bl-md border border-white/10 bg-white/5 px-3 py-2",children:[(0,o.jsx)("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-white/50 animate-pulse-dot"}),(0,o.jsx)("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-white/50 animate-pulse-dot",style:{animationDelay:"0.2s"}}),(0,o.jsx)("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-white/50 animate-pulse-dot",style:{animationDelay:"0.4s"}})]})})]}),(0,o.jsx)("div",{className:"border-t border-white/10 px-5 py-3",children:(0,o.jsxs)("div",{className:"flex items-center gap-2 rounded-full border border-white/10 bg-white/5 pl-3 pr-1 py-1.5",children:[(0,o.jsx)(nE.Camera,{className:"h-3.5 w-3.5 text-white/50 shrink-0"}),(0,o.jsx)("span",{className:"flex-1 text-[12px] text-white/40",children:"Text or snap…"}),(0,o.jsx)("span",{className:"inline-block h-3 w-px bg-white/30 animate-blink"})]})})]})})}var nN=t.i(258400),nF=t.i(111657),nL=t.i(176816);let nB=[{company:"FANUC",contact:"Maria Chen · VP Operations",status:"Hot",opener:"Maria — great chat about your line-changeover bottleneck. Sending the 8-min loom we discussed."},{company:"ABB Robotics",contact:"Sven Larsson · Director, R&D",status:"Hot",opener:"Sven — re: the pilot at your Malmö plant, here's the short scope doc I promised at booth C-14."}],nO={Hot:"bg-signal-hot/15 text-signal-hot border border-signal-hot/30",Warm:"bg-amber-400/15 text-amber-300 border border-amber-400/30",Met:"bg-signal-met/15 text-signal-met border border-signal-met/30"};
1function nI({item:t,index:e,progress:i}){let s=.1+.12*e,r=nw(i,[s,s+.18],[0,1]),n=nw(r,[0,1],[40,0]);return(0,o.jsxs)(nx.div,{style:{opacity:r,x:n},className:"rounded-xl border border-white/10 bg-white/[0.04] p-4",children:[(0,o.jsxs)("div",{className:"flex items-start justify-between gap-3 mb-2",children:[(0,o.jsxs)("div",{className:"min-w-0",children:[(0,o.jsx)("p",{className:"text-[14px] font-semibold text-white truncate",children:t.company}),(0,o.jsx)("p",{className:"text-[11.5px] text-white/55 truncate",children:t.contact})]}),(0,o.jsx)("span",{className:`shrink-0 rounded-full px-2 py-0.5 text-[10px] font-semibold uppercase tracking-[0.06em] ${nO[t.status]}`,children:t.status})]}),(0,o.jsxs)("p",{className:"text-[12.5px] leading-relaxed text-white/75 mb-3",children:["“",t.opener,"”"]}),(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsxs)("button",{className:"inline-flex items-center gap-1.5 rounded-md bg-accent px-2.5 py-1 text-[11px] font-semibold text-accent-foreground",children:[(0,o.jsx)(nN.Mail,{className:"h-3 w-3"}),"Send draft"]}),(0,o.jsxs)("button",{className:"inline-flex items-center gap-1.5 rounded-md border border-white/15 bg-white/5 px-2.5 py-1 text-[11px] font-semibold text-white/80",children:["Add to CRM",(0,o.jsx)(nF.ArrowUpRight,{className:"h-3 w-3"})]})]})]})}function nU({progress:t}){let e=nw(t,[0,.3],[0,1]),i=nw(e,[0,1],[16,0]);return(0,o.jsx)("div",{className:"flex h-full flex-col items-center w-full",children:(0,o.jsx)("div",{className:"relative h-full w-full max-w-2xl",children:(0,o.jsxs)(nx.div,{style:{opacity:e,y:i},className:"flex h-full flex-col rounded-2xl border border-white/10 bg-deep-elevated p-5 sm:p-6 shadow-2xl shadow-black/40",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"text-[10px] font-semibold uppercase tracking-[0.14em] text-white/50",children:"Follow-up queue"}),(0,o.jsx)("p",{className:"text-[15px] font-semibold text-white mt-1",children:"2 ready to send"})]}),(0,o.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-white/10 bg-white/5 px-2.5 py-1 text-[10px] font-semibold uppercase tracking-[0.08em] text-white/70",children:[(0,o.jsx)(nL.CheckCircle2,{className:"h-3 w-3 text-signal-met"}),"Synced 2 min ago"]})]}),(0,o.jsx)("div",{className:"space-y-3",children:nB.map((e,i)=>(0,o.jsx)(nI,{item:e,index:i,progress:t},e.company))})]})})})}function n$({phase:t,children:e}){return(0,o.jsxs)("div",{className:"mx-auto flex w-full max-w-md flex-col lg:mx-0 lg:max-w-none lg:flex-1",children:[(0,o.jsx)("span",{className:"mb-4 text-[11px] font-semibold uppercase tracking-[0.18em] text-accent-text",children:t}),(0,o.jsx)("div",{className:"flex-1",children:e})]})}function nW(){return(0,o.jsx)("div",{"aria-hidden":"true",className:"hidden shrink-0 self-center text-ink-tertiary lg:flex",children:(0,o.jsx)(l.ArrowRight,{className:"h-6 w-6"})})}function nH(){let t=function(){iV.current||iE();let[t]=(0,a.useState)(iM.current);return t}(),e=sf(0),i=sf(0),s=sf(0),r=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let n=[e,i,s];if(t)return void n.forEach(t=>t.set(1));let o=r.current;if(!o)return;let a=!1,l=[],h=new IntersectionObserver(t=>{t[0].isIntersecting&&!a&&(a=!0,h.disconnect(),n.forEach((t,e)=>{l.push(sc(t,1,{duration:.8,delay:.5*e,ease:"easeInOut"}))}))},{threshold:.15});return h.observe(o),()=>{h.disconnect(),l.forEach(t=>t.stop())}},[t,e,i,s]),(0,o.jsx)("section",{id:"loop",ref:r,className:"bg-surface-0 border-t border-border py-20 sm:py-28",children:(0,o.jsxs)("div",{className:"mx-auto max-w-[1440px] px-6 lg:px-8",children:[(0,o.jsxs)("div",{className:"mb-12 text-center sm:mb-16",children:[(0,o.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.15em] text-ink-tertiary mb-4",children:"How it works"}),(0,o.jsx)("h2",{className:"mx-auto max-w-2xl text-3xl font-display font-bold sm:text-4xl text-balance",children:"You text the floor. The shortlist re-ranks live."})]}),(0,o.jsxs)("div",{className:"flex flex-col items-center gap-12 lg:flex-row lg:items-stretch lg:gap-6",children:[(0,o.jsx)(n$,{phase:"Before",children:(0,o.jsx)(nV,{progress:e})}),(0,o.jsx)(nW,{}),(0,o.jsx)(n$,{phase:"During",children:(0,o.jsx)(nR,{progress:i})}),(0,o.jsx)(nW,{}),(0,o.jsx)(n$,{phase:"After",children:(0,o.jsx)(nU,{progress:s})})]})]})})}t.s(["ProductLoopAnimation",()=>nH],609803)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.