PageSourceSearch

https://myimageupscaler.com/_next/static/chunks/9913-dc550beb6947c2d3.js

js myimageupscaler.com collected 2026-10-07 09:45:01 UTC 124,139 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9913],{1138:(t,e,i)=>{i.d(e,{s:()=>r});var n=i(94601);function r(t){return(0,n.G)(t)&&"offsetHeight"in t}},4524:(t,e,i)=>{i.d(e,{E:()=>r});var n=i(12115),r=i(24846).B?n.useLayoutEffect:n.useEffect},15131:(t,e,i)=>{i.d(e,{t:()=>n});var n=(0,i(12115).createContext)(null)},24846:(t,e,i)=>{i.d(e,{B:()=>n});var n="undefined"!=typeof window},24866:(t,e,i)=>{i.d(e,{Q:()=>n});var n=(0,i(12115).createContext)({transformPagePoint:function(t){return t},isStatic:!1,reducedMotion:"never"})},28819:(t,e,i)=>{i.d(e,{M:()=>r});var n=i(12115);function r(t){var e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},34951:(t,e,i)=>{let n,r,a;i.d(e,{P:()=>aV});var o,s=i(12115),u=i(35306),l=i(86110),h=i(98015),c=i(11800);let d=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],p=new Set(d),f=t=>180*t/Math.PI,v=t=>y(f(Math.atan2(t[1],t[0]))),m={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:v,rotateZ:v,skewX:t=>f(Math.atan(t[1])),skewY:t=>f(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},y=t=>((t%=360)<0&&(t+=360),t),g=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),x=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),k={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:g,scaleY:x,scale:t=>(g(t)+x(t))/2,rotateX:t=>y(f(Math.atan2(t[6],t[5]))),rotateY:t=>y(f(Math.atan2(-t[2],t[0]))),rotateZ:v,rotate:v,skewX:t=>f(Math.atan(t[4])),skewY:t=>f(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function w(t){return+!!t.includes("scale")}function T(t,e){let i,n;if(!t||"none"===t)return w(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=k,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=m,n=e}if(!n)return w(e);let a=i[e],o=n[1].split(",").map(P);return"function"==typeof a?a(o):o[a]}function P(t){return parseFloat(t.trim())}let b=t=>e=>"string"==typeof e&&e.startsWith(t),S=b("--"),A=b("var(--"),E=t=>!!A(t)&&M.test(t.split("/*")[0].trim()),M=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function C(t){var e=t.top;return{x:{min:t.left,max:t.right},y:{min:e,max:t.bottom}}}let V=(t,e,i)=>t+(e-t)*i;function D(t){return void 0===t||1===t}function R(t){var e=t.scale,i=t.scaleX,n=t.scaleY;return!D(e)||!D(i)||!D(n)}function L(t){return R(t)||_(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function _(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function j(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function F(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;t.min=j(t.min,e,i,n,r),t.max=j(t.max,e,i,n,r)}function B(t,e){var i=e.x,n=e.y;F(t.x,i.translate,i.scale,i.originPoint),F(t.y,n.translate,n.scale,n.originPoint)}function O(t,e){t.min=t.min+e,t.max=t.max+e}function I(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5,a=V(t.min,t.max,r);F(t,e,i,a,n)}function U(t,e){I(t.x,e.x,e.scaleX,e.scale,e.originX),I(t.y,e.y,e.scaleY,e.scale,e.originY)}function N(t,e){return C(function(t,e){if(!e)return t;var i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let W=new Set(["width","height","top","left","right","bottom",...d]),Y=(t,e,i)=>i>e?e:i<t?t:i,z={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},X={...z,transform:t=>Y(0,1,t)},H={...z,default:1},$=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),K=$("deg"),G=$("%"),q=$("px"),Z=$("vh"),Q=$("vw"),J={...G,parse:t=>G.parse(t)/100,transform:t=>G.transform(100*t)},tt=t=>e=>e.test(t),te=[z,q,G,K,Q,Z,{test:t=>"auto"===t,parse:t=>t}],ti=t=>te.find(tt(t)),tn=()=>{},tr=()=>{},ta=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,to=t=>t===z||t===q,ts=new Set(["x","y","z"]),tu=d.filter(t=>!ts.has(t)),tl={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>T(e,"x"),y:(t,{transform:e})=>T(e,"y")};tl.translateX=tl.x,tl.translateY=tl.y;let th=t=>t,tc={},td=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tp(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,o=td.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},u=0;function l(e){o.has(e)&&(h.schedule(e),t()),u++,e(s)}let h={schedule:(t,e=!1,a=!1)=>{let s=a&&r?i:n;return e&&o.add(t),s.has(t)||s.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(s=t,r){a=!0;return}
1r=!0,[i,n]=[n,i],i.forEach(l),e,u=0,i.clear(),r=!1,a&&(a=!1,h.process(t))}};return h}(a,e?i:void 0),t),{}),{setup:s,read:u,resolveKeyframes:l,preUpdate:h,update:c,preRender:d,render:p,postRender:f}=o,v=()=>{let a=tc.useManualTiming?r.timestamp:performance.now();i=!1,tc.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(a-r.timestamp,40),1)),r.timestamp=a,r.isProcessing=!0,s.process(r),u.process(r),l.process(r),h.process(r),c.process(r),d.process(r),p.process(r),f.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(v))};return{schedule:td.reduce((e,a)=>{let s=o[a];return e[a]=(e,a=!1,o=!1)=>(!i&&(i=!0,n=!0,r.isProcessing||t(v)),s.schedule(e,a,o)),e},{}),cancel:t=>{for(let e=0;e<td.length;e++)o[td[e]].cancel(t)},state:r,steps:o}}let{schedule:tf,cancel:tv,state:tm,steps:ty}=tp("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:th,!0),tg=new Set,tx=!1,tk=!1,tw=!1;function tT(){if(tk){let t=Array.from(tg).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],tu.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tk=!1,tx=!1,tg.forEach(t=>t.complete(tw)),tg.clear()}function tP(){tg.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tk=!0)})}class tb{constructor(t,e,i,n,r,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(tg.add(this),tx||(tx=!0,tf.read(tP),tf.resolveKeyframes(tT))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),a=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,a);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=a),n&&void 0===r&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tg.delete(this)}cancel(){"scheduled"===this.state&&(tg.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tS=t=>Math.round(1e5*t)/1e5,tA=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tE=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tM=(t,e)=>i=>!!("string"==typeof i&&tE.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tC=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,a,o,s]=n.match(tA);return{[t]:parseFloat(r),[e]:parseFloat(a),[i]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},tV={...z,transform:t=>Math.round(Y(0,255,t))},tD={test:tM("rgb","red"),parse:tC("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tV.transform(t)+", "+tV.transform(e)+", "+tV.transform(i)+", "+tS(X.transform(n))+")"},tR={test:tM("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:tD.transform},tL={test:tM("hsl","hue"),parse:tC("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+G.transform(tS(e))+", "+G.transform(tS(i))+", "+tS(X.transform(n))+")"},t_={test:t=>tD.test(t)||tR.test(t)||tL.test(t),parse:t=>tD.test(t)?tD.parse(t):tL.test(t)?tL.parse(t):tR.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tD.transform(t):tL.transform(t),getAnimatableNone:t=>{let e=t_.parse(t);return e.alpha=0,t_.transform(e)}},tj=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tF="number",tB="color",tO=/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 tI(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],a=0,o=e.replace(tO,t=>(t_.test(t)?(n.color.push(a),r.push(tB),i.push(t_.parse(t))):t.startsWith("var(")?(n.var.push(a),r.push("var"),i.push(t)):(n.number.push(a),r.push(tF),i.push(parseFloat(t))),++a,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function tU(t){return tI(t).values}function tN(t){let{split:e,types:i}=tI(t),n=e.length;return t=>{let r="";for(let a=0;a<n;a++)if(r+=e[a],void 0!==t[a]){let e=i[a];e===tF?r+=tS(t[a]):e===tB?r+=t_.transform(t[a]):r+=t[a]}return r}}let tW=t=>"number"==typeof t?0:t_.test(t)?t_.getAnimatableNone(t):t,tY={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(tA)?.length||0)+(t.match(tj)?.length||0)>0},parse:tU,createTransformer:tN,getAnimatableNone:function(t){let e=tU(t);return tN(t)(e.map(tW))}},tz=new Set(["brightness","contrast","saturate","opacity"]);function tX(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(tA)||[];if(!n)return t;let r=i.replace(n,""),a=+!!tz.has(e);return n!==i&&(a*=100),e+"("+a+r+")"}let tH=/\b([a-z-]*)\(.*?\)/gu,t$={...tY,getAnimatableNone:t=>{let e=t.match(tH);return e?e.map(tX).join(" "):t}},tK={...z,transform:Math.round},tG={borderWidth:q,borderTopWidth:q,borderRightWidth:q,borderBottomWidth:q,borderLeftWidth:q,borderRadius:q,radius:q,borderTopLeftRadius:q,borderTopRightRadius:q,borderBottomRightRadius:q,borderBottomLeftRadius:q,width:q,maxWidth:q,height:q,maxHeight:q,top:q,right:q,bottom:q,left:q,padding:q,paddingTop:q,paddingRight:q,paddingBottom:q,paddingLeft:q,margin:q,marginTop:q,marginRight:q,marginBottom:q,marginLeft:q,backgroundPositionX:q,backgroundPositionY:q,rotate:K,rotateX:K,rotateY:K,rotateZ:K,scale:H,scaleX:H,scaleY:H,scaleZ:H,skew:K,skewX:K,skewY:K,distance:q,translateX:q,translateY:q,translateZ:q,x:q,y:q,z:q,perspective:q,transformPerspective:q,opacity:X,originX:J,originY:J,originZ:q,zIndex:tK,fillOpacity:X,strokeOpacity:X,numOctaves:tK},tq={...tG,color:t_,backgroundColor:t_,outlineColor:t_,fill:t_,stroke:t_,borderColor:t_,borderTopColor:t_,borderRightColor:t_,borderBottomColor:t_,borderLeftColor:t_,filter:t$,WebkitFilter:t$},tZ=t=>tq[t];function tQ(t,e){let i=tZ(t);return i!==t$&&(i=tY),i.getAnimatableNone?i.getAnimatableNone(e):void 0}
1let tJ=new Set(["auto","none","0"]);class t0 extends tb{constructor(t,e,i,n,r){super(t,e,i,n,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 n=t[i];if("string"==typeof n&&E(n=n.trim())){let r=function t(e,i,n=1){tr(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,a]=function(t){let e=ta.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,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 E(a)?t(a,i,n+1):a}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!W.has(i)||2!==t.length)return;let[n,r]=t,a=ti(n),o=ti(r);if(a!==o)if(to(a)&&to(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tl[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[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 n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!tJ.has(e)&&tI(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tQ(i,n)}(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=tl[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,a=i[r];i[r]=tl[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let t1=t=>!!(t&&t.getVelocity);var t2=i(93075),t3=i(22514),t5=i(22020),t4=i(43020);function t9(){n=void 0}let t6={now:()=>(void 0===n&&t6.set(tm.isProcessing||tc.useManualTiming?tm.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(t9)}};function t8(t,e){-1===t.indexOf(e)&&t.push(e)}function t7(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class et{constructor(){this.subscriptions=[]}add(t){return t8(this.subscriptions,t),()=>t7(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class ee{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=t6.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=t6.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 et);let i=this.events[t].add(e);return"change"===t?()=>{i(),tf.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return a&&a.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=t6.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ei(t,e){return new ee(t,e)}let en=[...te,t_,tY],{schedule:er}=tp(queueMicrotask,!1);var ea=function(t){es[t]={isEnabled:function(e){return eo[t].some(function(t){return!!e[t]})}}},eo={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"]},es={};for(var eu in eo)ea(eu);var el=function(){return{translate:0,scale:1,origin:0,originPoint:0}},eh=function(){return{x:el(),y:el()}},ec=function(){return{min:0,max:0}},ed=function(){return{x:ec(),y:ec()}},ep=i(24846),ef={current:null},ev={current:!1},em=new WeakMap;function ey(t){return null!==t&&(void 0===t?"undefined":(0,t4._)(t))==="object"&&"function"==typeof t.start}function eg(t){return"string"==typeof t||Array.isArray(t)}var ex=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ek=["initial"].concat((0,t5._)(ex));function ew(t){return ey(t.animate)||ek.some(function(e){return eg(t[e])})}function eT(t){return!!(ew(t)||t.variants)}var eP=i(30002);function eb(t){var e=[{},{}];
1return null==t||t.values.forEach(function(t,i){e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eS(t,e,i,n){if("function"==typeof e){var r=(0,eP._)(eb(n),2),a=r[0],o=r[1];e=e(void 0!==i?i:t.custom,a,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){var s=(0,eP._)(eb(n),2),u=s[0],l=s[1];e=e(void 0!==i?i:t.custom,u,l)}return e}var eA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eE=function(t){function e(){var t;return(0,l._)(this,e),t=(0,u._)(this,e,arguments),t.KeyframeResolver=t0,t}return(0,c._)(e,t),(0,h._)(e,[{key:"sortInstanceNodePosition",value:function(t,e){return 2&t.compareDocumentPosition(e)?1:-1}},{key:"getBaseTargetFromProps",value:function(t,e){return t.style?t.style[e]:void 0}},{key:"removeValueFromRenderState",value:function(t,e){var i=e.vars,n=e.style;delete i[t],delete n[t]}},{key:"handleChildMotionValue",value:function(){var t=this;this.childSubscription&&(this.childSubscription(),delete this.childSubscription);var e=this.props.children;t1(e)&&(this.childSubscription=e.on("change",function(e){t.current&&(t.current.textContent="".concat(e))}))}}]),e}(function(){function t(e){var i=this,n=e.parent,r=e.props,a=e.presenceContext,o=e.reducedMotionConfig,s=e.blockInitialAnimation,u=e.visualState,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,l._)(this,t),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=function(){return i.notify("Update",i.latestValues)},this.render=function(){i.current&&(i.triggerBuild(),i.renderInstance(i.current,i.renderState,i.props.style,i.projection))},this.renderScheduledAt=0,this.scheduleRender=function(){var t=t6.now();i.renderScheduledAt<t&&(i.renderScheduledAt=t,tf.render(i.render,!1,!0))};var c=u.latestValues,d=u.renderState;this.latestValues=c,this.baseTarget=(0,t2._)({},c),this.initialValues=r.initial?(0,t2._)({},c):{},this.renderState=d,this.parent=n,this.props=r,this.presenceContext=a,this.depth=n?n.depth+1:0,this.reducedMotionConfig=o,this.options=h,this.blockInitialAnimation=!!s,this.isControllingVariants=ew(r),this.isVariantNode=eT(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);var p=this.scrapeMotionValuesFromProps(r,{},this),f=(p.willChange,(0,t3._)(p,["willChange"]));for(var v in f){var m=f[v];void 0!==c[v]&&t1(m)&&m.set(c[v])}}return(0,h._)(t,[{key:"scrapeMotionValuesFromProps",value:function(t,e,i){return{}}},{key:"mount",value:function(t){var e,i=this;this.current=t,em.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(function(t,e){return i.bindToMotionValue(e,t)}),ev.current||function(){if(ev.current=!0,ep.B)if(window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion)"),e=function(){return ef.current=t.matches};t.addEventListener("change",e),e()}else ef.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ef.current),null==(e=this.parent)||e.addChild(this),this.update(this.props,this.presenceContext)}},{key:"unmount",value:function(){var t;for(var e in this.projection&&this.projection.unmount(),tv(this.notifyUpdate),tv(this.render),this.valueSubscriptions.forEach(function(t){return t()}),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),null==(t=this.parent)||t.removeChild(this),this.events)this.events[e].clear();for(var i in this.features){var n=this.features[i];n&&(n.unmount(),n.isMounted=!1)}this.current=null}},{key:"addChild",value:function(t){this.children.add(t),null!=this.enteringChildren||(this.enteringChildren=new Set),this.enteringChildren.add(t)}},{key:"removeChild",value:function(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}},{key:"bindToMotionValue",value:function(t,e){var i,n=this;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();var r=p.has(t);r&&this.onBindTransform&&this.onBindTransform();var a=e.on("change",function(e){n.latestValues[t]=e,n.props.onUpdate&&tf.preRender(n.notifyUpdate),r&&n.projection&&(n.projection.isTransformDirty=!0),n.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,function(){a(),i&&i(),e.owner&&e.stop()})}}
1,{key:"sortNodePosition",value:function(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}},{key:"updateFeatures",value:function(){var t="animation";for(t in es){var e=es[t];if(e){var i=e.isEnabled,n=e.Feature;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){var r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}}},{key:"triggerBuild",value:function(){this.build(this.renderState,this.latestValues,this.props)}},{key:"measureViewportBox",value:function(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ed()}},{key:"getStaticValue",value:function(t){return this.latestValues[t]}},{key:"setStaticValue",value:function(t,e){this.latestValues[t]=e}},{key:"update",value:function(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(var i=0;i<eA.length;i++){var n=eA[i];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);var r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,i){for(var n in e){var r=e[n],a=i[n];if(t1(r))t.addValue(n,r);else if(t1(a))t.addValue(n,ei(r,{owner:t}));else if(a!==r)if(t.hasValue(n)){var o=t.getValue(n);!0===o.liveStyle?o.jump(r):o.hasAnimated||o.set(r)}else{var s=t.getStaticValue(n);t.addValue(n,ei(void 0!==s?s:r,{owner:t}))}}for(var u in i)void 0===e[u]&&t.removeValue(u);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}},{key:"getProps",value:function(){return this.props}},{key:"getVariant",value:function(t){return this.props.variants?this.props.variants[t]:void 0}},{key:"getDefaultTransition",value:function(){return this.props.transition}},{key:"getTransformPagePoint",value:function(){return this.props.transformPagePoint}},{key:"getClosestVariantNode",value:function(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}},{key:"addVariantChild",value:function(t){var e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),function(){return e.variantChildren.delete(t)}}},{key:"addValue",value:function(t,e){var 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())}},{key:"removeValue",value:function(t){this.values.delete(t);var e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}},{key:"hasValue",value:function(t){return this.values.has(t)}},{key:"getValue",value:function(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];var i=this.values.get(t);return void 0===i&&void 0!==e&&(i=ei(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}},{key:"readValue",value:function(t,e){var i,n=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!=n){let i,r;if("string"==typeof n&&(i=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i)||(r=n,/^0[^.\s]+$/u.test(r))))n=parseFloat(n);else{let i;i=n,!en.find(tt(i))&&tY.test(e)&&(n=tQ(t,e))}this.setBaseTarget(t,t1(n)?n.get():n)}return t1(n)?n.get():n}},{key:"setBaseTarget",value:function(t,e){this.baseTarget[t]=e}},{key:"getBaseTarget",value:function(t){var e=this.props.initial;if("string"==typeof e||(void 0===e?"undefined":(0,t4._)(e))==="object"){var i,n,r=eS(this.props,e,null==(n=this.presenceContext)?void 0:n.custom);r&&(i=r[t])}if(e&&void 0!==i)return i;var a=this.getBaseTargetFromProps(this.props,t);return void 0===a||t1(a)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:a}},{key:"on",value:function(t,e){return this.events[t]||(this.events[t]=new et),this.events[t].add(e)}},{key:"notify",value:function(t){for(var e,i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];this.events[t]&&(e=this.events[t]).notify.apply(e,(0,t5._)(n))}},{key:"scheduleRenderMicrotask",value:function(){er.render(this.render)}}]),t}());let eM=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var eC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eV=d.length;function eD(t,e,i){var n=t.style,r=t.vars,a=t.transformOrigin,o=!1,s=!1;for(var u in e){var l=e[u];if(p.has(u)){o=!0;continue}if(S(u)){r[u]=l;continue}var h=eM(l,tG[u]);u.startsWith("origin")?(s=!0,a[u]=h):n[u]=h}
1if(!e.transform&&(o||i?n.transform=function(t,e,i){for(var n="",r=!0,a=0;a<eV;a++){var o=d[a],s=t[o];if(void 0!==s){var u=!0;if(!(u="number"==typeof s?s===+!!o.startsWith("scale"):0===parseFloat(s))||i){var l=eM(s,tG[o]);if(!u){r=!1;var h=eC[o]||o;n+="".concat(h,"(").concat(l,") ")}i&&(e[o]=l)}}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),s){var c=a.originX,f=a.originY,v=a.originZ;n.transformOrigin="".concat(void 0===c?"50%":c," ").concat(void 0===f?"50%":f," ").concat(void 0===v?0:v)}}function eR(t,e,i,n){var r,a=e.style,o=e.vars,s=t.style;for(r in a)s[r]=a[r];for(r in null==n||n.applyProjectionStyles(s,i),o)s.setProperty(r,o[r])}var eL=i(30694);function e_(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var ej={correct:function(t,e){if(!e.target)return t;if("string"==typeof t)if(!q.test(t))return t;else t=parseFloat(t);var i=e_(t,e.target.x),n=e_(t,e.target.y);return"".concat(i,"% ").concat(n,"%")}},eF={borderRadius:(0,eL._)((0,t2._)({},ej),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ej,borderTopRightRadius:ej,borderBottomLeftRadius:ej,borderBottomRightRadius:ej,boxShadow:{correct:function(t,e){var i=e.treeScale,n=e.projectionDelta,r=tY.parse(t);if(r.length>5)return t;var a=tY.createTransformer(t),o=+("number"!=typeof r[0]),s=n.x.scale*i.x,u=n.y.scale*i.y;r[0+o]/=s,r[1+o]/=u;var l=V(s,u,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),a(r)}}};function eB(t,e){var i=e.layout,n=e.layoutId;return p.has(t)||t.startsWith("origin")||(i||void 0!==n)&&(!!eF[t]||"opacity"===t)}function eO(t,e,i){var n,r=t.style,a={};for(var o in r)(t1(r[o])||e.style&&t1(e.style[o])||eB(o,t)||(null==i||null==(n=i.getValue(o))?void 0:n.liveStyle)!==void 0)&&(a[o]=r[o]);return a}var eI=function(t){function e(){var t;return(0,l._)(this,e),t=(0,u._)(this,e,arguments),t.type="html",t.renderInstance=eR,t}return(0,c._)(e,t),(0,h._)(e,[{key:"readValueFromInstance",value:function(t,e){if(p.has(e)){var i;return(null==(i=this.projection)?void 0:i.isProjecting)?w(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return T(i,e)})(t,e)}var n=window.getComputedStyle(t),r=(S(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof r?r.trim():r}},{key:"measureInstanceViewportBox",value:function(t,e){return N(t,e.transformPagePoint)}},{key:"build",value:function(t,e,i){eD(t,e,i.transformTemplate)}},{key:"scrapeMotionValuesFromProps",value:function(t,e,i){return eO(t,e,i)}}]),e}(eE),eU=i(49667);function eN(t,e,i){return(eN="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=(0,eU._)(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i||t):r.value}})(t,e,i||t)}var eW=function(t){return t.replace(RegExp("([a-z])([A-Z])","gu"),"$1-$2").toLowerCase()},eY={offset:"stroke-dashoffset",array:"stroke-dasharray"},ez={offset:"strokeDashoffset",array:"strokeDasharray"};function eX(t,e,i,n,r){var a,o,s=e.attrX,u=e.attrY,l=e.attrScale,h=e.pathLength,c=e.pathSpacing,d=e.pathOffset;if(eD(t,(0,t3._)(e,["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"]),n),i){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};var p=t.attrs,f=t.style;p.transform&&(f.transform=p.transform,delete p.transform),(f.transform||p.transformOrigin)&&(f.transformOrigin=null!=(a=p.transformOrigin)?a:"50% 50%",delete p.transformOrigin),f.transform&&(f.transformBox=null!=(o=null==r?void 0:r.transformBox)?o:"fill-box",delete p.transformBox),void 0!==s&&(p.x=s),void 0!==u&&(p.y=u),void 0!==l&&(p.scale=l),void 0!==h&&function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=!(arguments.length>4)||void 0===arguments[4]||arguments[4];t.pathLength=1;var a=r?eY:ez;t[a.offset]=q.transform(-n);var o=q.transform(e),s=q.transform(i);t[a.array]="".concat(o," ").concat(s)}(p,h,void 0===c?1:c,void 0===d?0:d,!1)}var eH=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"]),e$=function(t){return"string"==typeof t&&"svg"===t.toLowerCase()};function eK(t,e,i){var n=eO(t,e,i);for(var r in t)(t1(t[r])||t1(e[r]))&&(n[-1!==d.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return n}var eG=function(t){function e(){var t;return(0,l._)(this,e),t=(0,u._)(this,e,arguments),t.type="svg",t.isSVGTag=!1,t.measureInstanceViewportBox=ed,t}return(0,c._)(e,t),(0,h._)(e,[{key:"getBaseTargetFromProps",value:function(t,e){return t[e]}},{key:"readValueFromInstance",value:function(t,e){if(p.has(e)){var i=tZ(e);return i&&i.default||0}return e=eH.has(e)?e:eW(e),t.getAttribute(e)}}
1,{key:"scrapeMotionValuesFromProps",value:function(t,e,i){return eK(t,e,i)}},{key:"build",value:function(t,e,i){eX(t,e,this.isSVGTag,i.transformTemplate,i.style)}},{key:"renderInstance",value:function(t,e,i,n){for(var r in eR(t,e,void 0,n),e.attrs)t.setAttribute(eH.has(r)?r:eW(r),e.attrs[r])}},{key:"mount",value:function(t){this.isSVGTag=e$(t.tagName),eN((0,eU._)(e.prototype),"mount",this).call(this,t)}}]),e}(eE),eq=["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 eZ(t){if("string"!=typeof t||t.includes("-"));else if(eq.indexOf(t)>-1||RegExp("[A-Z]","u").test(t))return!0;return!1}var eQ=i(95155),eJ=i(39551),e0=(0,s.createContext)({strict:!1}),e1=i(24866),e2=(0,s.createContext)({});function e3(t){return Array.isArray(t)?t.join(" "):t}var e5=function(){return{style:{},transform:{},transformOrigin:{},vars:{}}};function e4(t,e,i){for(var n in e)t1(e[n])||eB(n,i)||(t[n]=e[n])}var e9=function(){return(0,eL._)((0,t2._)({},e5()),{attrs:{}})},e6=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 e8(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||e6.has(t)}var e7=function(t){return!e8(t)};try{o=require("@emotion/is-prop-valid").default,"function"==typeof o&&(e7=function(t){return t.startsWith("on")?!e8(t):o(t)})}catch(t){}var it=i(15131),ie=i(28819);function ii(t){return t1(t)?t.get():t}var ir=function(t){return function(e,i){var n=(0,s.useContext)(e2),r=(0,s.useContext)(it.t),a=function(){var i,a;return i=t.scrapeMotionValuesFromProps,a=t.createRenderState,{latestValues:function(t,e,i,n){var r={},a=n(t,{});for(var o in a)r[o]=ii(a[o]);var s=t.initial,u=t.animate,l=ew(t),h=eT(t);e&&h&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===u&&(u=e.animate));var c=!!i&&!1===i.initial,d=(c=c||!1===s)?u:s;if(d&&"boolean"!=typeof d&&!ey(d))for(var p=Array.isArray(d)?d:[d],f=0;f<p.length;f++){var v=eS(t,p[f]);if(v){var m=v.transitionEnd,y=(v.transition,(0,t3._)(v,["transitionEnd","transition"]));for(var g in y){var x=y[g];if(Array.isArray(x)){var k=c?x.length-1:0;x=x[k]}null!==x&&(r[g]=x)}for(var w in m)r[w]=m[w]}}return r}(e,n,r,i),renderState:a()}};return i?a():(0,ie.M)(a)}},ia=ir({scrapeMotionValuesFromProps:eO,createRenderState:e5}),io=ir({scrapeMotionValuesFromProps:eK,createRenderState:e9}),is=Symbol.for("motionComponentSymbol");function iu(t){return t&&(void 0===t?"undefined":(0,t4._)(t))==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}var il="data-"+eW("framerAppearId"),ih=(0,s.createContext)({}),ic=i(4524);function id(t){var e,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.forwardMotionProps,a=void 0!==r&&r,o=arguments.length>2?arguments[2]:void 0,u=arguments.length>3?arguments[3]:void 0;o&&function(t){for(var e in t)es[e]=(0,t2._)({},es[e],t[e])}(o);var l=eZ(t)?io:ia;function h(e,i){var n,r,o,h,c=(0,eL._)((0,t2._)({},(0,s.useContext)(e1.Q),e),{layoutId:(n=e.layoutId,(r=(0,s.useContext)(eJ.L).id)&&void 0!==n?r+"-"+n:n)}),d=c.isStatic,p=(E=(A=function(t,e){if(ew(t)){var i=t.initial,n=t.animate;return{initial:!1===i||eg(i)?i:void 0,animate:eg(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,(0,s.useContext)(e2))).initial,M=A.animate,(0,s.useMemo)(function(){return{initial:E,animate:M}},[e3(E),e3(M)])),f=l(e,d);if(!d&&ep.B){(0,s.useContext)(e0).strict;var v,m,y,g,x,k,w,T,P,b,S,A,E,M,C,V,D,R,L,_,j,F,B,O,I,U,N,W,Y,z,X=function(t){var e=es.drag,i=es.layout;if(!e&&!i)return{};var n=(0,t2._)({},e,i);return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(c);h=X.MeasureLayout,C=u,V=X.ProjectionNode,j=(0,s.useContext)(e2).visualElement,F=(0,s.useContext)(e0),B=(0,s.useContext)(it.t),O=(0,s.useContext)(e1.Q).reducedMotion,I=(0,s.useRef)(null),C=C||F.renderer,!I.current&&C&&(I.current=C(t,{visualState:f,parent:j,props:c,presenceContext:B,blockInitialAnimation:!!B&&!1===B.initial,reducedMotionConfig:O})),U=I.current,N=(0,s.useContext)(ih),U&&!U.projection&&V&&("html"===U.type||"svg"===U.type)&&(v=I.current,m=c,y=V,g=N,x=m.layoutId,k=m.layout,w=m.drag,T=m.dragConstraints,P=m.layoutScroll,b=m.layoutRoot,S=m.layoutCrossfade,v.projection=new y(v.latestValues,m["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(v.parent)),v.projection.setOptions({layoutId:x,layout:k,alwaysMeasureLayout:!!w||T&&iu(T),visualElement:v,animationType:"string"==typeof k?k:"both",initialPromotionConfig:g,crossfade:S,layoutScroll:P,layoutRoot:b})),W=(0,s.useRef)(!1),(0,s.useInsertionEffect)(function(){U&&W.current&&U.update(c,B)}),Y=c[il],z=(0,s.useRef)(!!Y&&!(null==(D=(R=window).MotionHandoffIsComplete)?void 0:D.call(R,Y))&&(null==(L=(_=window).MotionHasOptimisedAnimation)?void 0:L.call(_,Y))),(0,ic.E)(function(){U&&(W.current=!0,window.MotionIsMounted=!0,U.updateFeatures(),U.scheduleRenderMicrotask(),z.current&&U.animationState&&U.animationState.animateChanges())}),(0,s.useEffect)(function(){U&&(!z.current&&U.animationState&&U.animationState.animateChanges(),z.current&&(queueMicrotask(function(){var t,e;null==(t=(e=window).MotionHandoffMarkAsComplete)||t.call(e,Y)}),z.current=!1),U.enteringChildren=void 0)}),p.visualElement=U}return(0,eQ.jsxs)(e2.Provider,{value:p,children:[h&&p.visualElement?(0,eQ.jsx)(h,(0,t2._)({visualElement:p.visualElement},c)):null,function(t,e,i,n,r){var a=n.latestValues,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=(eZ(t)?function(t,e,i,n){var r=(0,s.useMemo)(function(){var i=e9();return eX(i,e,e$(n),t.transformTemplate,t.style),(0,eL._)((0,t2._)({},i.attrs),{style:(0,t2._)({},i.style)})},[e]);if(t.style){var a={};e4(a,t.style,t),r.style=(0,t2._)({},a,r.style)}return r}:function(t,e){var i,n,r={},a=(e4(i={},t.style||{},t),Object.assign(i,(n=t.transformTemplate,(0,s.useMemo)(function(){var t=e5();return eD(t,e,n),Object.assign({},t.vars,t.style)},[e]))),i);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=a,r})(e,a,r,t),l=function(t,e,i){var n={};for(var r in t)("values"!==r||"object"!==(0,t4._)(t.values))&&(e7(r)||!0===i&&e8(r)||!e&&!e8(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,o),h=t!==s.Fragment?(0,eL._)((0,t2._)({},l,u),{ref:i}):{},c=e.children,d=(0,s.useMemo)(function(){return t1(c)?c.get():c},[c]);return(0,s.createElement)(t,(0,eL._)((0,t2._)({},h),{children:d}))}(t,e,(o=p.visualElement,(0,s.useCallback)(function(t){t&&f.onMount&&f.onMount(t),o&&(t?o.mount(t):o.unmount()),i&&("function"==typeof i?i(t):iu(i)&&(i.current=t))},[o])),f,d,a)]})}h.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!=(i=null!=(e=t.displayName)?e:t.name)?i:"",")"));var c=(0,s.forwardRef)(h);return c[is]=t,c}function ip(t,e,i){var n=t.getProps();return eS(n,e,void 0!==i?i:n.custom,t)}function iv(t,e){return t?.[e]??t?.default??t}var im=function(t){return Array.isArray(t)};function iy(t,e){var i=t.getValue("willChange");if(t1(i)&&i.add)return i.add(e);if(!i&&tc.WillChange){var n=new tc.WillChange("auto");t.addValue("willChange",n),n.add(e)}}function ig(t){t.duration=0,t.type="keyframes"}let ix=(t,e)=>i=>e(t(i)),ik=(...t)=>t.reduce(ix),iw=t=>1e3*t,iT={layout:0,mainThread:0,waapi:0};function iP(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 ib(t,e){return i=>i>0?e:t}let iS=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},iA=[tR,tD,tL];function iE(t){let e=iA.find(e=>e.test(t));if(tn(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===tL&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,a=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,s=2*i-n;r=iP(s,n,t+1/3),a=iP(s,n,t),o=iP(s,n,t-1/3)}else r=a=o=i;return{red:Math.round(255*r),green:Math.round(255*a),blue:Math.round(255*o),alpha:n}}(i)),i}let iM=(t,e)=>{let i=iE(t),n=iE(e);if(!i||!n)return ib(t,e);let r={...i};return t=>(r.red=iS(i.red,n.red,t),r.green=iS(i.green,n.green,t),r.blue=iS(i.blue,n.blue,t),r.alpha=V(i.alpha,n.alpha,t),tD.transform(r))},iC=new Set(["none","hidden"]);function iV(t,e){return i=>V(t,e,i)}
1function iD(t){return"number"==typeof t?iV:"string"==typeof t?E(t)?ib:t_.test(t)?iM:i_:Array.isArray(t)?iR:"object"==typeof t?t_.test(t)?iM:iL:ib}function iR(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>iD(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function iL(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=iD(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let i_=(t,e)=>{let i=tY.createTransformer(e),n=tI(t),r=tI(e);if(!(n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length))return tn(!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.`,"complex-values-different"),ib(t,e);if(iC.has(t)&&!r.values.length||iC.has(e)&&!n.values.length)return iC.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return ik(iR(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let a=e.types[r],o=t.indexes[a][n[a]],s=t.values[o]??0;i[r]=s,n[a]++}return i}(n,r),r.values),i)};function ij(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?V(t,e,i):iD(t)(t,e)}let iF=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tf.update(e,t),stop:()=>tv(e),now:()=>tm.isProcessing?tm.timestamp:t6.now()}},iB=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function iO(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 iI(t,e,i){var n,r;let a=Math.max(e-5,0);return n=i-t(a),(r=e-a)?1e3/r*n:0}let iU=.01,iN=2,iW=.005,iY=.5;function iz(t,e){return t*Math.sqrt(1-e*e)}let iX=["duration","bounce"],iH=["stiffness","damping","mass"];function i$(t,e){return e.some(e=>void 0!==t[e])}function iK(t=.3,e=.3){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:a}=n,o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:l,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!i$(t,iH)&&i$(t,iX))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*Y(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:r}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let r,a;tn(t<=iw(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=Y(.05,1,o),t=Y(.01,10,t/1e3),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/iz(e,o)*Math.exp(-r)},a=e=>{let n=e*o*t,a=Math.pow(o,2)*Math.pow(e,2)*t,s=Math.exp(-n),u=iz(Math.pow(e,2),o);return(n*i+i-a)*s*(-r(e)+.001>0?-1:1)/u}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),a=e=>t*t*(i-e)*Math.exp(-e*t));let s=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,a,5/t);if(t=iw(t),isNaN(s))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(s,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...n,velocity:-((n.velocity||0)/1e3)}),v=p||0,m=h/(2*Math.sqrt(l*c)),y=s-o,g=Math.sqrt(l/c)/1e3,x=5>Math.abs(y);if(r||(r=x?iU:iN),a||(a=x?iW:iY),m<1){let t=iz(g,m);i=e=>s-Math.exp(-m*g*e)*((v+m*g*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===m)i=t=>s-Math.exp(-g*t)*(y+(v+g*y)*t);else{let t=g*Math.sqrt(m*m-1);i=e=>{let i=Math.exp(-m*g*e),n=Math.min(t*e,300);return s-i*((v+m*g*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}let k={calculatedDuration:f&&d||null,next:t=>{let e=i(t);if(f)u.done=t>=d;else{let n=0===t?v:0;m<1&&(n=0===t?iw(v):iI(i,t,e));let o=Math.abs(s-e)<=a;u.done=Math.abs(n)<=r&&o}return u.value=u.done?s:e,u},toString:()=>{let t=Math.min(iO(k),2e4),e=iB(e=>k.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return k}function iG({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:a=
1500,modifyTarget:o,min:s,max:u,restDelta:l=.5,restSpeed:h}){let c,d,p=t[0],f={done:!1,value:p},v=i*e,m=p+v,y=void 0===o?m:o(m);y!==m&&(v=y-p);let g=t=>-v*Math.exp(-t/n),x=t=>y+g(t),k=t=>{let e=g(t),i=x(t);f.done=Math.abs(e)<=l,f.value=f.done?y:i},w=t=>{let e;if(e=f.value,void 0!==s&&e<s||void 0!==u&&e>u){var i;c=t,d=iK({keyframes:[f.value,(i=f.value,void 0===s?u:void 0===u||Math.abs(s-i)<Math.abs(u-i)?s:u)],velocity:iI(x,t,f.value),damping:r,stiffness:a,restDelta:l,restSpeed:h})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,k(t),w(t)),void 0!==c&&t>=c)?d.next(t-c):(e||k(t),f)}}}iK.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(iO(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:r/1e3}}(t,100,iK);return t.ease=e.ease,t.duration=iw(e.duration),t.type="keyframes",t};let iq=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function iZ(t,e,i,n){return t===e&&i===n?th:r=>0===r||1===r?r:iq(function(t,e,i,n,r){let a,o,s=0;do(a=iq(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(a)>1e-7&&++s<12);return o}(r,0,1,t,i),e,n)}let iQ=iZ(.42,0,1,1),iJ=iZ(0,0,.58,1),i0=iZ(.42,0,.58,1),i1=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,i2=t=>e=>1-t(1-e),i3=iZ(.33,1.53,.69,.99),i5=i2(i3),i4=i1(i5),i9=t=>(t*=2)<1?.5*i5(t):.5*(2-Math.pow(2,-10*(t-1))),i6=t=>1-Math.sin(Math.acos(t)),i8=i2(i6),i7=i1(i6),nt=t=>Array.isArray(t)&&"number"==typeof t[0],ne={linear:th,easeIn:iQ,easeInOut:i0,easeOut:iJ,circIn:i6,circInOut:i7,circOut:i8,backIn:i5,backInOut:i4,backOut:i3,anticipate:i9},ni=t=>{if(nt(t)){tr(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return iZ(e,i,n,r)}return"string"==typeof t?(tr(void 0!==ne[t],`Invalid easing type '${t}'`,"invalid-easing-type"),ne[t]):t},nn=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function nr({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let a,o=Array.isArray(n)&&"number"!=typeof n[0]?n.map(ni):ni(n),s={done:!1,value:e[0]},u=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let a=t.length;if(tr(a===e.length,"Both input and output ranges must be the same length","range-length"),1===a)return()=>e[0];if(2===a&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[a-1]&&(t=[...t].reverse(),e=[...e].reverse());let s=function(t,e,i){let n=[],r=i||tc.mix||ij,a=t.length-1;for(let i=0;i<a;i++){let a=r(t[i],t[i+1]);e&&(a=ik(Array.isArray(e)?e[i]||th:e,a)),n.push(a)}return n}(e,n,r),u=s.length,l=i=>{if(o&&i<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=nn(t[n],t[n+1],i);return s[n](r)};return i?e=>l(Y(t[0],t[a-1],e)):l}((r=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=nn(0,e,n);t.push(V(i,1,r))}}(a=[0],e.length-1),a),r.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||i0).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=u(e),s.done=e>=t,s)}}let na=t=>null!==t;function no(t,{repeat:e,repeatType:i="loop"},n,r=1){let a=t.filter(na),o=r<0||e&&"loop"!==i&&e%2==1?0:a.length-1;return o&&void 0!==n?n:a[o]}let ns={decay:iG,inertia:iG,tween:nr,keyframes:nr,spring:iK};function nu(t){"string"==typeof t.type&&(t.type=ns[t.type])}class nl{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let nh=t=>t/100;class nc extends nl{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==t6.now()&&this.tick(t6.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},iT.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;nu(t);let{type:e=nr,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:a=0}=t,{keyframes:o}=t,s=e||nr;s!==nr&&"number"!=typeof o[0]&&(this.mixKeyframes=ik(nh,ij(o[0],o[1])),o=[0,100]);let u=s({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=s({...t,keyframes:[...o].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=iO(u));let{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=u}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(null===this.startTime)return i.next(0);let{delay:u=0,keyframes:l,repeat:h,repeatType:c,repeatDelay:d,type:p,onUpdate:f,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let m=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?m<0:m>n;this.currentTime=Math.max(m,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let g=this.currentTime,x=i;if(h){let t=Math.min(this.currentTime,n)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,h+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/
1o)):"mirror"===c&&(x=a)),g=Y(0,1,i)*o}let k=y?{done:!1,value:l[0]}:x.next(g);r&&(k.value=r(k.value));let{done:w}=k;y||null===s||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return T&&p!==iG&&(k.value=no(l,this.options,v,this.speed)),f&&f(k.value),T&&this.finish(),k}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=iw(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(t6.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iF,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(t6.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,iT.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function nd(t){let e;return()=>(void 0===e&&(e=t()),e)}let np=nd(()=>void 0!==window.ScrollTimeline),nf={},nv=(r=nd(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>nf.linearEasing??r()),nm=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,ny={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nm([0,.65,.55,1]),circOut:nm([.55,0,1,.45]),backIn:nm([.31,.01,.66,-.59]),backOut:nm([.33,1.53,.69,.99])};function ng(t){return"function"==typeof t&&"applyToOptions"in t}class nx extends nl{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=t;this.isPseudoElement=!!r,this.allowFlatten=a,this.options=t,tr("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const u=function({type:t,...e}){return ng(t)&&nv()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:u}={},l){let h={[e]:i};u&&(h.offset=u);let c=function t(e,i){if(e)return"function"==typeof e?nv()?iB(e,i):"ease-out":nt(e)?nm(e):Array.isArray(e)?e.map(e=>t(e,i)||ny.easeOut):ny[e]}(s,r);Array.isArray(c)&&(h.easing=c);let d={delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:"reverse"===o?"alternate":"normal"};l&&(d.pseudoElement=l);let p=t.animate(h,d);return p}(e,i,n,u,r),!1===u.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=no(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){this.finishedTime=null,this.animation.currentTime=iw(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&np())?(this.animation.timeline=t,th):e(this)}}let nk={anticipate:i9,backInOut:i4,circInOut:i7};class nw extends nx{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nk&&(t.ease=nk[t.ease])}(t),nu(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...a}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new nc({...a,autoplay:!1}),s=iw(this.finishedTime??this.time);e.setWithVelocity(o.sample(s-10).value,o.sample(s).value,10),o.stop()}}let nT=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tY.test(t)||"0"===t)&&!t.startsWith("url(")),nP=new Set(["opacity","clipPath","filter","transform"]),nb=nd(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nS extends nl{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:a="loop",keyframes:o,name:s,motionValue:u,element:l,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=t6.now();const c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:a,name:s,motionValue:u,element:l,...h},d=l?.KeyframeResolver||tb;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),s,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:r,type:a,velocity:o,delay:s,isHandoff:u,onUpdate:l}=i;
1this.resolvedAt=t6.now(),!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let a=t[t.length-1],o=nT(r,e),s=nT(a,e);return tn(o===s,`You are trying to animate ${e} from "${r}" to "${a}". "${o?a:r}" is not an animatable value.`,"value-not-animatable"),!!o&&!!s&&(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||ng(i))&&n)}(t,r,a,o)&&((tc.instantAnimations||!s)&&l?.(no(t,i,e)),t[0]=t[t.length-1],ig(i),i.repeat=0);let h={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},c=!u&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:a,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:u}=e.owner.getProps();return nb()&&i&&nP.has(i)&&("transform"!==i||!u)&&!s&&!n&&"mirror"!==r&&0!==a&&"inertia"!==o}(h)?new nw({...h,element:h.motionValue.owner.current}):new nc(h);c.finished.then(()=>this.notifyFinished()).catch(th),this.pendingTimeline&&(this.stopTimeline=c.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=c}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tw=!0,tP(),tT(),tw=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}var nA=function(t){return null!==t},nE={type:"spring",stiffness:500,damping:25,restSpeed:10},nM={type:"keyframes",duration:.8},nC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nV=function(t,e){var i=e.keyframes;return i.length>2?nM:p.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===i[1]?2*Math.sqrt(550):30,restSpeed:10}:nE:nC},nD=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;return function(o){var s=iv(n,t)||{},u=s.delay||n.delay||0,l=n.elapsed,h=void 0===l?0:l;h-=iw(u);var c=(0,eL._)((0,t2._)({keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity()},s),{delay:-h,onUpdate:function(t){e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:function(){o(),s.onComplete&&s.onComplete()},name:t,motionValue:e,element:a?void 0:r});s.when,s.delay,s.delayChildren,s.staggerChildren,s.staggerDirection,s.repeat,s.repeatType,s.repeatDelay,s.from,s.elapsed,Object.keys((0,t3._)(s,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"])).length||Object.assign(c,nV(t,c)),c.duration&&(c.duration=iw(c.duration)),c.repeatDelay&&(c.repeatDelay=iw(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);var d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(ig(c),0===c.delay&&(d=!0)),(tc.instantAnimations||tc.skipAnimations)&&(d=!0,ig(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,d&&!a&&void 0!==e.get()){var p,f,v,m,y,g=(p=c.keyframes,f=s.repeat,v=s.repeatType,m=p.filter(nA),y=f&&"loop"!==(void 0===v?"loop":v)&&f%2==1?0:m.length-1,m[y]);if(void 0!==g)return void tf.update(function(){c.onUpdate(g),c.onComplete()})}return s.isSync?new nc(c):new nS(c)}};function nR(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.delay,r=void 0===n?0:n,a=i.transitionOverride,o=i.type,s=e.transition,u=void 0===s?t.getDefaultTransition():s,l=e.transitionEnd,h=(0,t3._)(e,["transition","transitionEnd"]);a&&(u=a);var c=[],d=o&&t.animationState&&t.animationState.getState()[o];for(var p in h){var f,v=t.getValue(p,null!=(f=t.latestValues[p])?f:null),m=h[p];if(!(void 0===m||d&&function(t,e){var i=t.protectedKeys,n=t.needsAnimating,r=i.hasOwnProperty(e)&&!0!==n[e];return n[e]=!1,r}(d,p))){var y=(0,t2._)({delay:r},iv(u||{},p)),g=v.get();if(void 0===g||v.isAnimating||Array.isArray(m)||m!==g||y.velocity){var x=!1;if(window.MotionHandoffAnimation){var k=t.props[il];if(k){var w=window.MotionHandoffAnimation(k,p,tf);null!==w&&(y.startTime=w,x=!0)}}iy(t,p),v.start(nD(p,v,m,t.shouldReduceMotion&&W.has(p)?{type:!1}:y,t,x));var T=v.animation;T&&c.push(T)}}}return l&&Promise.all(c).then(function(){tf.update(function(){l&&function(t,e){var i=ip(t,e)||{},n=i.transitionEnd,r=(i.transition,(0,t3._)(i,["transitionEnd","transition"]));for(var a in r=(0,t2._)({},r,void 0===n?{}:n)){var o,s=im(o=r[a])?o[o.length-1]||0:o;t.hasValue(a)?t.getValue(a).set(s):t.addValue(a,ei(s))}}(t,l)})}),c}
1function nL(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=Array.from(t).sort(function(t,e){return t.sortNodePosition(e)}).indexOf(e),o=t.size,s=(o-1)*n;return"function"==typeof i?i(a,o):1===r?a*n:s-a*n}function n_(t,e){var i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ip(t,e,"exit"===n.type?null==(i=t.presenceContext)?void 0:i.custom:void 0),a=(r||{}).transition,o=void 0===a?t.getDefaultTransition()||{}:a;n.transitionOverride&&(o=n.transitionOverride);var s=r?function(){return Promise.all(nR(t,r,n))}:function(){return Promise.resolve()},u=t.variantChildren&&t.variantChildren.size?function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=o.delayChildren;return function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=arguments.length>6?arguments[6]:void 0,s=[],u=!0,l=!1,h=void 0;try{for(var c,d=t.variantChildren[Symbol.iterator]();!(u=(c=d.next()).done);u=!0)!function(){var u=c.value;u.notify("AnimationStart",e),s.push(n_(u,e,(0,eL._)((0,t2._)({},o),{delay:i+("function"==typeof n?0:n)+nL(t.variantChildren,u,n,r,a)})).then(function(){return u.notify("AnimationComplete",e)}))}()}catch(t){l=!0,h=t}finally{try{u||null==d.return||d.return()}finally{if(l)throw h}}return Promise.all(s)}(t,e,i,void 0===r?0:r,o.staggerChildren,o.staggerDirection,n)}:function(){return Promise.resolve()},l=o.when;if(!l)return Promise.all([s(),u(n.delay)]);var h=(0,eP._)("beforeChildren"===l?[s,u]:[u,s],2),c=h[0],d=h[1];return c().then(function(){return d()})}function nj(t,e){if(!Array.isArray(e))return!1;var i=e.length;if(i!==t.length)return!1;for(var n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}var nF=ek.length,nB=(0,t5._)(ex).reverse(),nO=ex.length;function nI(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nU(){return{animate:nI(!0),whileInView:nI(),whileHover:nI(),whileTap:nI(),whileDrag:nI(),whileFocus:nI(),exit:nI()}}var nN=function(){function t(e){(0,l._)(this,t),this.isMounted=!1,this.node=e}return(0,h._)(t,[{key:"update",value:function(){}}]),t}(),nW=function(t){function e(t){var i;return(0,l._)(this,e),i=(0,u._)(this,e,[t]),t.animationState||(t.animationState=function(t){var e=function(e){return Promise.all(e.map(function(e){return function(t,e){var i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(function(e){return n_(t,e,n)}));else if("string"==typeof e)i=n_(t,e,n);else{var r="function"==typeof e?ip(t,e,n.custom):e;i=Promise.all(nR(t,r,n))}return i.then(function(){t.notify("AnimationComplete",e)})}(t,e.animation,e.options)}))},i=nU(),n=!0;function r(r){for(var a=t.props,o=function t(e){if(e){if(!e.isControllingVariants){var i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}for(var n={},r=0;r<nF;r++){var a=ek[r],o=e.props[a];(eg(o)||!1===o)&&(n[a]=o)}return n}}(t.parent)||{},s=[],u=new Set,l={},h=1/0,c=0;c<nO;c++)!function(e){var c,d,p=nB[e],f=i[p],v=void 0!==a[p]?a[p]:o[p],m=eg(v),y=p===r?f.isActive:null;!1===y&&(h=e);var g=v===o[p]&&v!==a[p]&&m;if(g&&n&&t.manuallyAnimateOnMount&&(g=!1),f.protectedKeys=(0,t2._)({},l),!(!f.isActive&&null===y||!v&&!f.prevProp||ey(v))&&"boolean"!=typeof v){var x=(c=f.prevProp,"string"==typeof(d=v)?d!==c:!!Array.isArray(d)&&!nj(d,c)),k=x||p===r&&f.isActive&&!g&&m||e>h&&m,w=!1,T=Array.isArray(v)?v:[v],P=T.reduce(function(e,i){var n,r=ip(t,i,"exit"===p?null==(n=t.presenceContext)?void 0:n.custom:void 0);if(r){r.transition;var a=r.transitionEnd,o=(0,t3._)(r,["transition","transitionEnd"]);e=(0,t2._)({},e,o,a)}return e},{});!1===y&&(P={});var b=f.prevResolvedValues,S=void 0===b?{}:b,A=(0,t2._)({},S,P),E=function(e){k=!0,u.has(e)&&(w=!0,u.delete(e)),f.needsAnimating[e]=!0;var i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(var M in A){var C=P[M],V=S[M];!l.hasOwnProperty(M)&&((im(C)&&im(V)?nj(C,V):C===V)?void 0!==C&&u.has(M)?E(M):f.protectedKeys[M]=!0:null!=C?E(M):u.add(M))}f.prevProp=v,f.prevResolvedValues=P,f.isActive&&(l=(0,t2._)({},l,P)),n&&t.blockInitialAnimation&&(k=!1);var D=g&&x,R=!D||w;k&&R&&s.push.apply(s,(0,t5._)(T.map(function(e){var i={type:p};if("string"==typeof e&&n&&!D&&t.manuallyAnimateOnMount&&t.parent){var r=t.parent,a=ip(r,e);if(r.enteringChildren&&a){var o=(a.transition||{}).delayChildren;i.delay=nL(r.enteringChildren,t,o)}}return{animation:e,options:i}})))}}(c);if(u.size){var d={};if("boolean"!=typeof a.initial){var p=ip(t,Array.isArray(a.initial)?a.initial[0]:a.initial);p&&p.transition&&(d.transition=p.transition)}u.forEach(function(e){var i=t.getBaseTarget(e),n=t.getValue(e);n&&(n.liveStyle=!0),d[e]=null!=i?i:null}),s.push({animation:d})}var f=!!s.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,f?e(s):Promise.resolve()}return{animateChanges:r,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();null==(a=t.variantChildren)||a.forEach(function(t){var i;return null==(i=t.animationState)?void 0:i.setActive(e,n)}),i[e].isActive=n;var a,o=r(e);for(var s in i)i[s].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:function(){return i},reset:function(){i=nU()}}}(t)),i}return(0,c._)(e,t),(0,h._)(e,[{key:"updateAnimationControlsSubscription",value:function(){var t=this.node.getProps().animate;ey(t)&&(this.unmountControls=t.subscribe(this.node))}},{key:"mount",value:function(){this.updateAnimationControlsSubscription()}},{key:"update",value:function(){this.node.getProps().animate!==(this.node.prevProps||{}).animate&&this.updateAnimationControlsSubscription()}},{key:"unmount",value:function(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}]),e}(nN),nY=0,nz=function(t){function e(){var t;return(0,l._)(this,e),t=(0,u._)(this,e,arguments),t.id=nY++,t}return(0,c._)(e,t),(0,h._)(e,[{key:"update",value:function(){var t=this;if(this.node.presenceContext){var e=this.node.presenceContext,i=e.isPresent,n=e.onExitComplete,r=(this.node.prevPresenceContext||{}).isPresent;if(this.node.animationState&&i!==r){var a=this.node.animationState.setActive("exit",!i);n&&!i&&a.then(function(){n(t.id)})}}}},{key:"mount",value:function(){var t=this.node.presenceContext||{},e=t.register,i=t.onExitComplete;i&&i(this.id),e&&(this.unmount=e(this.id))}},{key:"unmount",value:function(){}}]),e}(nN);let nX={x:!1,y:!1};function nH(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,i,n),function(){return t.removeEventListener(e,i)}}let n$=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function nK(t){return{point:{x:t.pageX,y:t.pageY}}}function nG(t,e,i,n){return nH(t,e,function(t){return n$(t)&&i(t,nK(t))},n)}function nq(t){return t.max-t.min}function nZ(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=n,t.originPoint=V(e.min,e.max,t.origin),t.scale=nq(i)/nq(e),t.translate=V(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 nQ(t,e,i,n){nZ(t.x,e.x,i.x,n?n.originX:void 0),nZ(t.y,e.y,i.y,n?n.originY:void 0)}function nJ(t,e,i){t.min=i.min+e.min,t.max=t.min+nq(e)}function n0(t,e,i){t.min=e.min-i.min,t.max=t.min+nq(e)}function n1(t,e,i){n0(t.x,e.x,i.x),n0(t.y,e.y,i.y)}function n2(t){return[t("x"),t("y")]}var n3=function(t){var e=t.current;return e?e.ownerDocument.defaultView:null},n5=function(t,e){return Math.abs(t-e)},n4=function(){function t(e,i){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r.transformPagePoint,o=r.contextWindow,s=void 0===o?window:o,u=r.dragSnapToOrigin,h=r.distanceThreshold;if((0,l._)(this,t),this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=function(){if(n.lastMoveEvent&&n.lastMoveEventInfo){var t,e,i=n8(n.lastMoveEventInfo,n.history),r=null!==n.startEvent,a=(t=i.offset,e={x:0,y:0},Math.sqrt(Math.pow(n5(t.x,e.x),2)+Math.pow(n5(t.y,e.y),2))>=n.distanceThreshold);if(r||a){var o=i.point,s=tm.timestamp;n.history.push((0,eL._)((0,t2._)({},o),{timestamp:s}));var u=n.handlers,l=u.onStart,h=u.onMove;r||(l&&l(n.lastMoveEvent,i),n.startEvent=n.lastMoveEvent),h&&h(n.lastMoveEvent,i)}}},this.handlePointerMove=function(t,e){n.lastMoveEvent=t,n.lastMoveEventInfo=n9(e,n.transformPagePoint),tf.update(n.updatePoint,!0)},this.handlePointerUp=function(t,e){n.end();var i=n.handlers,r=i.onEnd,a=i.onSessionEnd,o=i.resumeAnimation;if(n.dragSnapToOrigin&&o&&o(),n.lastMoveEvent&&n.lastMoveEventInfo){var s=n8("pointercancel"===t.type?n.lastMoveEventInfo:n9(e,n.transformPagePoint),n.history);n.startEvent&&r&&r(t,s),a&&a(t,s)}},n$(e)){this.dragSnapToOrigin=void 0!==u&&u,this.handlers=i,this.transformPagePoint=a,this.distanceThreshold=void 0===h?3:h,this.contextWindow=s||window;var c=n9(nK(e),this.transformPagePoint),d=c.point,p=tm.timestamp;this.history=[(0,eL._)((0,t2._)({},d),{timestamp:p})];var f=i.onSessionStart;f&&f(e,n8(c,this.history)),this.removeListeners=ik(nG(this.contextWindow,"pointermove",this.handlePointerMove),nG(this.contextWindow,"pointerup",this.handlePointerUp),nG(this.contextWindow,"pointercancel",this.handlePointerUp))}}return(0,h._)(t,[{key:"updateHandlers",value:function(t){this.handlers=t}},{key:"end",value:function(){this.removeListeners&&this.removeListeners(),tv(this.updatePoint)}}]),t}();function n9(t,e){return e?{point:e(t.point)}:t}function n6(t,e){return{x:t.x-e.x,y:t.y-e.y}}function n8(t,e){var i=t.point;return{point:i,delta:n6(i,n7(e)),offset:n6(i,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};for(var i=t.length-1,n=null,r=n7(t);i>=0&&(n=t[i],!(r.timestamp-n.timestamp>iw(.1)));)i--;if(!n)return{x:0,y:0};var a=(r.timestamp-n.timestamp)/1e3;if(0===a)return{x:0,y:0};var o={x:(r.x-n.x)/a,y:(r.y-n.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function n7(t){return t[t.length-1]}function rt(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 re(t,e){var i,n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&(n=(i=[r,n])[0],r=i[1]),{min:n,max:r}}function ri(t,e,i){return{min:rn(t,e),max:rn(t,i)}}function rn(t,e){return"number"==typeof t?t:t[e]||0}var rr=new WeakMap,ra=function(){function t(e){(0,l._)(this,t),this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ed(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}return(0,h._)(t,[{key:"start",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.snapToCursor,r=void 0!==n&&n,a=i.distanceThreshold,o=this.visualElement.presenceContext;if(!o||!1!==o.isPresent){var s=this.getProps().dragSnapToOrigin;this.panSession=new n4(t,{onSessionStart:function(t){e.getProps().dragSnapToOrigin?e.pauseAnimation():e.stopAnimation(),r&&e.snapToCursor(nK(t).point)},onStart:function(t,i){var n=e.getProps(),r=n.drag,a=n.dragPropagation,o=n.onDragStart;if(!r||a||(e.openDragLock&&e.openDragLock(),e.openDragLock=function(t){if("x"===t||"y"===t)if(nX[t])return null;else return nX[t]=!0,()=>{nX[t]=!1};return nX.x||nX.y?null:(nX.x=nX.y=!0,()=>{nX.x=nX.y=!1})}(r),e.openDragLock)){e.latestPointerEvent=t,e.latestPanInfo=i,e.isDragging=!0,e.currentDirection=null,e.resolve
1Constraints(),e.visualElement.projection&&(e.visualElement.projection.isAnimationBlocked=!0,e.visualElement.projection.target=void 0),n2(function(t){var i=e.getAxisMotionValue(t).get()||0;if(G.test(i)){var n=e.visualElement.projection;if(n&&n.layout){var r=n.layout.layoutBox[t];r&&(i=nq(r)*(parseFloat(i)/100))}}e.originPoint[t]=i}),o&&tf.postRender(function(){return o(t,i)}),iy(e.visualElement,"transform");var s=e.visualElement.animationState;s&&s.setActive("whileDrag",!0)}},onMove:function(t,i){e.latestPointerEvent=t,e.latestPanInfo=i;var n=e.getProps(),r=n.dragPropagation,a=n.dragDirectionLock,o=n.onDirectionLock,s=n.onDrag;if(r||e.openDragLock){var u=i.offset;if(a&&null===e.currentDirection){e.currentDirection=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(u),null!==e.currentDirection&&o&&o(e.currentDirection);return}e.updateAxis("x",i.point,u),e.updateAxis("y",i.point,u),e.visualElement.render(),s&&s(t,i)}},onSessionEnd:function(t,i){e.latestPointerEvent=t,e.latestPanInfo=i,e.stop(t,i),e.latestPointerEvent=null,e.latestPanInfo=null},resumeAnimation:function(){return n2(function(t){var i;return"paused"===e.getAnimationState(t)&&(null==(i=e.getAxisMotionValue(t).animation)?void 0:i.play())})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,distanceThreshold:a,contextWindow:n3(this.visualElement)})}}},{key:"stop",value:function(t,e){var i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),r&&n&&i){var a=n.velocity;this.startAnimation(a);var o=this.getProps().onDragEnd;o&&tf.postRender(function(){return o(i,n)})}}},{key:"cancel",value:function(){this.isDragging=!1;var t=this.visualElement,e=t.projection,i=t.animationState;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}},{key:"updateAxis",value:function(t,e,i){var n=this.getProps().drag;if(i&&ro(t,n,this.currentDirection)){var r,a,o,s,u,l=this.getAxisMotionValue(t),h=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=h,a=this.constraints[t],o=this.elastic[t],s=a.min,u=a.max,void 0!==s&&r<s?r=o?V(s,r,o.min):Math.max(r,s):void 0!==u&&r>u&&(r=o?V(u,r,o.max):Math.min(r,u)),h=r),l.set(h)}}},{key:"resolveConstraints",value:function(){var t,e,i,n,r,a,o=this,s=this.getProps(),u=s.dragConstraints,l=s.dragElastic,h=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(a=this.visualElement.projection)?void 0:a.layout,c=this.constraints;u&&iu(u)?this.constraints||(this.constraints=this.resolveRefConstraints()):u&&h?this.constraints=(t=h.layoutBox,e=u.top,i=u.left,n=u.bottom,r=u.right,{x:rt(t.x,i,r),y:rt(t.y,e,n)}):this.constraints=!1,this.elastic=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:ri(t,"left","right"),y:ri(t,"top","bottom")}}(l),c!==this.constraints&&h&&this.constraints&&!this.hasMutatedConstraints&&n2(function(t){var e,i,n;!1!==o.constraints&&o.getAxisMotionValue(t)&&(o.constraints[t]=(e=h.layoutBox[t],i=o.constraints[t],n={},void 0!==i.min&&(n.min=i.min-e.min),void 0!==i.max&&(n.max=i.max-e.min),n))})}},{key:"resolveRefConstraints",value:function(){var t=this.getProps(),e=t.dragConstraints,i=t.onMeasureDragConstraints;if(!e||!iu(e))return!1;var n=e.current;tr(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");var r=this.visualElement.projection;if(!r||!r.layout)return!1;var a=(s=r.root,u=N(n,this.visualElement.getTransformPagePoint()),(l=s.scroll)&&(O(u.x,l.offset.x),O(u.y,l.offset.y)),u),o=(h=r.layout.layoutBox,{x:re(h.x,a.x),y:re(h.y,a.y)});if(i){var s,u,l,h,c,d,p,f=i((d=(c=o).x,{top:(p=c.y).min,right:d.max,bottom:p.max,left:d.min}));this.hasMutatedConstraints=!!f,f&&(o=C(f))}return o}},{key:"startAnimation",value:function(t){var e=this,i=this.getProps(),n=i.drag,r=i.dragMomentum,a=i.dragElastic,o=i.dragTransition,s=i.dragSnapToOrigin,u=i.onDragTransitionEnd,l=this.constraints||{};return Promise.all(n2(function(i){if(ro(i,n,e.currentDirection)){var u=l&&l[i]||{};s&&(u={min:0,max:0});var h=(0,t2._)({type:"inertia",velocity:r?t[i]:0,bounceStiffness:a?200:1e6,bounceDamping:a?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},o,u);return e.startAxisValueAnimation(i,h)}})).then(u)}},{key:"startAxisValueAnimation",value:function(t,e){var i=this.getAxisMotionValue(t);return iy(this.visualElement,t),i.start(nD(t,i,0,e,this.visualElement,!1))}},{key:"stopAnimation",value:function(){var t=this;n2(function(e){return t.getAxisMotionValue(e).stop()})}},{key:"pauseAnimation",value:function(){var t=this;n2(function(e){var i;return null==(i=t.getAxisMotionValue(e).animation)?void 0:i.pause()})}},{key:"getAnimationState",value:function(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}},{key:"getAxisMotionValue",value:function(t){var e="_drag".concat(t.toUpperCase()),i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}},{key:"snapToCursor",value:function(t){var e=this;n2(function(i){if(ro(i,e.getProps().drag,e.currentDirection)){var n=e.visualElement.projection,r=e.getAxisMotionValue(i);if(n&&n.layout){var a=n.layout.layoutBox[i],o=a.min,s=a.max;r.set(t[i]-V(o,s,.5))}}})}},{key:"scalePositionWithinConstraints",value:function(){var t=this;if(this.visualElement.current){var e=this.getProps(),i=e.drag,n=e.dragConstraints,r=this.visualElement.projection;if(iu(n)&&r&&this.constraints){this.stopAnimation();var a={x:0,y:0};n2(function(e){var i=t.getAxisMotionValue(e);if(i&&!1!==t.constraints){var n,r,o,s,u,l=i.get();a[e]=(n={min:l,max:l},r=t.constraints[e],o=.5,s=nq(n),(u=nq(r))>s?o=nn(r.min,r.max-s,n.min):s>u&&(o=nn(n.min,n.max-u,r.min)),Y(0,1,o))}});var o=this.visualElement.getProps().transformTemplate;this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),n2(function(e){if(ro(e,i,null)){var n=t.getAxisMotionValue(e),r=t.constraints[e],o=r.min,s=r.max;n.set(V(o,s,a[e]))}})}}}},{key:"addListeners",value:function(){var t=this;if(this.visualElement.current){rr.set(this.visualElement,this);var e=nG(this.visualElement.current,"pointerdown",function(e){var i=t.getProps(),n=i.drag,r=i.dragListener;n&&(void 0===r||r)&&t.start(e)}),i=function(){var e=t.getProps().dragConstraints;iu(e)&&e.current&&(t.constraints=t.resolveRefConstraints())},n=this.visualElement.projection,r=n.addEventListener("measure",i);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),tf.read(i);var a=nH(window,"resize",function(){return t.scalePositionWithinConstraints()}),o=n.addEventListener("didUpdate",function(e){var i=e.delta,n=e.hasLayoutChanged;t.isDragging&&n&&(n2(function(e){var n=t.getAxisMotionValue(e);n&&(t.originPoint[e]+=i[e].translate,n.set(n.get()+i[e].translate))}),t.visualElement.render())});return function(){a(),e(),r(),o&&o()}}}},{key:"getProps",value:function(){var t=this.visualElement.getProps(),e=t.drag,i=t.dragDirectionLock,n=t.dragPropagation,r=t.dragConstraints,a=t.dragElastic,o=t.dragMomentum;return(0,eL._)((0,t2._)({},t),{drag:void 0!==e&&e,dragDirectionLock:void 0!==i&&i,dragPropagation:void 0!==n&&n,dragConstraints:void 0!==r&&r,dragElastic:void 0===a?.35:a,dragMomentum:void 0===o||o})}}]),t}();function ro(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}var rs=function(t){function e(t){var i;return(0,l._)(this,e),(i=(0,u._)(this,e,[t])).removeGroupControls=th,i.removeListeners=th,i.controls=new ra(t),i}return(0,c._)(e,t),(0,h._)(e,[{key:"mount",value:function(){var t=this.node.getProps().dragControls;t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||th}},{key:"unmount",value:function(){this.removeGroupControls(),this.removeListeners()}}]),e}(nN),ru=function(t){return function(e,i){t&&tf.postRender(function(){return t(e,i)})}},rl=function(t){function e(){var t;return(0,l._)(this,e),t=(0,u._)(this,e,arguments),t.removePointerDownListener=th,t}return(0,c._)(e,t),(0,h._)(e,[{key:"onPointerDown",value:function(t){this.session=new n4(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n3(this.node)})}},{key:"createPanHandlers",value:function(){var t=this,e=this.node.getProps(),i=e.onPanSessionStart,n=e.onPanStart,r=e.onPan,a=e.onPanEnd;return{onSessionStart:ru(i),onStart:ru(n),onMove:r,onEnd:function(e,i){delete t.session,a&&tf.postRender(function(){return a(e,i)})}}}},{key:"mount",value:function(){var t=this;this.removePointerDownListener=nG(this.node.current,"pointerdown",function(e){return t.onPointerDown(e)})}},{key:"update",value:function(){this.session&&this.session.updateHandlers(this.createPanHandlers())}},{key:"unmount",value:function(){this.removePointerDownListener(),this.session&&this.session.end()}}]),e}(nN),rh=i(79196),rc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},rd=!1,rp=function(t){function e(){return(0,l._)(this,e),(0,u._)(this,e,arguments)}
1return(0,c._)(e,t),(0,h._)(e,[{key:"componentDidMount",value:function(){var t=this,e=this.props,i=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,a=e.layoutId,o=i.projection;o&&(n.group&&n.group.add(o),r&&r.register&&a&&r.register(o),rd&&o.root.didUpdate(),o.addEventListener("animationComplete",function(){t.safeToRemove()}),o.setOptions((0,eL._)((0,t2._)({},o.options),{onExitComplete:function(){return t.safeToRemove()}}))),rc.hasEverUpdated=!0}},{key:"getSnapshotBeforeUpdate",value:function(t){var e=this,i=this.props,n=i.layoutDependency,r=i.visualElement,a=i.drag,o=i.isPresent,s=r.projection;return s&&(s.isPresent=o,rd=!0,a||t.layoutDependency!==n||void 0===n||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||tf.postRender(function(){var t=s.getStack();t&&t.members.length||e.safeToRemove()}))),null}},{key:"componentDidUpdate",value:function(){var t=this,e=this.props.visualElement.projection;e&&(e.root.didUpdate(),er.postRender(function(){!e.currentAnimation&&e.isLead()&&t.safeToRemove()}))}},{key:"componentWillUnmount",value:function(){var t=this.props,e=t.visualElement,i=t.layoutGroup,n=t.switchLayoutGroup,r=e.projection;rd=!0,r&&(r.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(r),n&&n.deregister&&n.deregister(r))}},{key:"safeToRemove",value:function(){var t=this.props.safeToRemove;t&&t()}},{key:"render",value:function(){return null}}]),e}(s.Component);function rf(t){var e=(0,eP._)((0,rh.xQ)(),2),i=e[0],n=e[1],r=(0,s.useContext)(eJ.L);return(0,eQ.jsx)(rp,(0,eL._)((0,t2._)({},t),{layoutGroup:r,switchLayoutGroup:(0,s.useContext)(ih),isPresent:i,safeToRemove:n}))}var rv=i(94601);function rm(t){return(0,rv.G)(t)&&"ownerSVGElement"in t}var ry=function(t,e){return t.depth-e.depth},rg=function(){function t(){(0,l._)(this,t),this.children=[],this.isDirty=!1}return(0,h._)(t,[{key:"add",value:function(t){t8(this.children,t),this.isDirty=!0}},{key:"remove",value:function(t){t7(this.children,t),this.isDirty=!0}},{key:"forEach",value:function(t){this.isDirty&&this.children.sort(ry),this.isDirty=!1,this.children.forEach(t)}}]),t}(),rx=["TopLeft","TopRight","BottomLeft","BottomRight"],rk=rx.length,rw=function(t){return"string"==typeof t?parseFloat(t):t},rT=function(t){return"number"==typeof t||q.test(t)};function rP(t,e){return void 0!==t[e]?t[e]:t.borderRadius}var rb=rA(0,.5,i8),rS=rA(.5,.95,th);function rA(t,e,i){return function(n){return n<t?0:n>e?1:i(nn(t,e,n))}}function rE(t,e){t.min=e.min,t.max=e.max}function rM(t,e){rE(t.x,e.x),rE(t.y,e.y)}function rC(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rV(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function rD(t,e,i,n,r){var a=(0,eP._)(i,3),o=a[0],s=a[1],u=a[2];!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,r=arguments.length>4?arguments[4]:void 0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(G.test(e)&&(e=parseFloat(e),e=V(o.min,o.max,e/100)-o.min),"number"==typeof e){var s=V(a.min,a.max,n);t===a&&(s-=e),t.min=rV(t.min,e,i,s,r),t.max=rV(t.max,e,i,s,r)}}(t,e[o],e[s],e[u],e.scale,n,r)}var rR=["x","scaleX","originX"],rL=["y","scaleY","originY"];function r_(t,e,i,n){rD(t.x,e,rR,i?i.x:void 0,n?n.x:void 0),rD(t.y,e,rL,i?i.y:void 0,n?n.y:void 0)}function rj(t){return 0===t.translate&&1===t.scale}function rF(t){return rj(t.x)&&rj(t.y)}function rB(t,e){return t.min===e.min&&t.max===e.max}function rO(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rI(t,e){return rO(t.x,e.x)&&rO(t.y,e.y)}function rU(t){return nq(t.x)/nq(t.y)}function rN(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var rW=function(){function t(){(0,l._)(this,t),this.members=[]}return(0,h._)(t,[{key:"add",value:function(t){t8(this.members,t),t.scheduleRender()}},{key:"remove",value:function(t){if(t7(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var e=this.members[this.members.length-1];e&&this.promote(e)}}},{key:"relegate",value:function(t){var e,i=this.members.findIndex(function(e){return t===e});if(0===i)return!1;for(var n=i;n>=0;n--){var r=this.members[n];if(!1!==r.isPresent){e=r;break}}return!!e&&(this.promote(e),!0)}},{key:"promote",value:function(t,e){var i=this.lead;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),!1===t.options.crossfade&&i.hide()))}},{key:"exitAnimationComplete",value:function(){this.members.forEac
1h(function(t){var e=t.options,i=t.resumingFrom;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}},{key:"scheduleRender",value:function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})}},{key:"removeLeadSnapshot",value:function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}]),t}(),rY=["","X","Y","Z"],rz=0;function rX(t,e,i,n){var r=e.latestValues;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function rH(t){var e=t.attachResizeListener,i=t.defaultParent,n=t.measureScroll,r=t.checkIsScrollRoot,a=t.resetTransform;function o(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==i?void 0:i();(0,l._)(this,o),this.id=rz++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=function(){return t.update()},this.projectionUpdateScheduled=!1,this.checkUpdateFailed=function(){t.isUpdating&&(t.isUpdating=!1,t.clearAllSnapshots())},this.updateProjection=function(){t.projectionUpdateScheduled=!1,t.nodes.forEach(rG),t.nodes.forEach(r2),t.nodes.forEach(r3),t.nodes.forEach(rq)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?(0,t5._)(n.path).concat([n]):[],this.parent=n,this.depth=n?n.depth+1:0;for(var r=0;r<this.path.length;r++)this.path[r].shouldResetTransform=!0;this.root===this&&(this.nodes=new rg)}return(0,h._)(o,[{key:"addEventListener",value:function(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new et),this.eventHandlers.get(t).add(e)}},{key:"notifyListeners",value:function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];var r=this.eventHandlers.get(t);r&&r.notify.apply(r,(0,t5._)(i))}},{key:"hasListeners",value:function(t){return this.eventHandlers.has(t)}},{key:"mount",value:function(t){var i=this;if(!this.instance){this.isSVG=rm(t)&&!(rm(t)&&"svg"===t.tagName),this.instance=t;var n=this.options,r=n.layoutId,a=n.layout,o=n.visualElement;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(a||r)&&(this.isLayoutDirty=!0),e){var s,u=0,l=function(){return i.root.updateBlockedByResize=!1};tf.read(function(){u=window.innerWidth}),e(t,function(){var t,e,n=window.innerWidth;n!==u&&(u=n,i.root.updateBlockedByResize=!0,s&&s(),t=t6.now(),e=function(i){var n=i.timestamp-t;n>=250&&(tv(e),l(n-250))},tf.setup(e,!0),s=function(){return tv(e)},rc.hasAnimatedSinceResize&&(rc.hasAnimatedSinceResize=!1,i.nodes.forEach(r1)))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||a)&&this.addEventListener("didUpdate",function(t){var e=t.delta,n=t.hasLayoutChanged,r=t.hasRelativeLayoutChanged,a=t.layout;if(i.isTreeAnimationBlocked()){i.target=void 0,i.relativeTarget=void 0;return}var s=i.options.transition||o.getDefaultTransition()||r7,u=o.getProps(),l=u.onLayoutAnimationStart,h=u.onLayoutAnimationComplete,c=!i.targetLayout||!rI(i.targetLayout,a),d=!n&&r;if(i.options.layoutRoot||i.resumeFrom||d||n&&(c||!i.currentAnimation)){i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0);var p=(0,eL._)((0,t2._)({},iv(s,"layout")),{onPlay:l,onComplete:h});(o.shouldReduceMotion||i.options.layoutRoot)&&(p.delay=0,p.type=!1),i.startAnimation(p),i.setAnimationOrigin(e,d)}else n||r1(i),i.isLead()&&i.options.onExitComplete&&i.options.onExitComplete();i.targetLayout=a})}}},{key:"unmount",value:function(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);var t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tv(this.updateProjection)}},{key:"blockUpdate",value:function(){this.updateManuallyBlocked=!0}},{key:"unblockUpdate",value:function(){this.updateManuallyBlocked=!1}},{key:"isUpdateBlocked",value:function(){return this.updateManuallyBlocked||this.updateBlockedByResize}},{key:"isTreeAnimationBlocked",value:function(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}}
1,{key:"startUpdate",value:function(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(r5),this.animationId++)}},{key:"getTransformTemplate",value:function(){var t=this.options.visualElement;return t&&t.getProps().transformTemplate}},{key:"willUpdate",value:function(){var t=!(arguments.length>0)||void 0===arguments[0]||arguments[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){var i=e.options.visualElement;if(i){var n=i.props[il];if(window.MotionHasOptimisedAnimation(n,"transform")){var r=e.options,a=r.layout,o=r.layoutId;window.MotionCancelOptimisedAnimation(n,"transform",tf,!(a||o))}var s=e.parent;s&&!s.hasCheckedOptimisedAppear&&t(s)}}}(this),this.root.isUpdating||this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var e=0;e<this.path.length;e++){var i=this.path[e];i.shouldResetTransform=!0,i.updateScroll("snapshot"),i.options.layoutRoot&&i.willUpdate(!1)}var n=this.options,r=n.layoutId,a=n.layout;if(void 0!==r||a){var o=this.getTransformTemplate();this.prevTransformTemplateValue=o?o(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}}}},{key:"update",value:function(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rQ);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(rJ);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(r0),this.nodes.forEach(r$),this.nodes.forEach(rK)):this.nodes.forEach(rJ),this.clearAllSnapshots();var t=t6.now();tm.delta=Y(0,1e3/60,t-tm.timestamp),tm.timestamp=t,tm.isProcessing=!0,ty.update.process(tm),ty.preRender.process(tm),ty.render.process(tm),tm.isProcessing=!1}},{key:"didUpdate",value:function(){this.updateScheduled||(this.updateScheduled=!0,er.read(this.scheduleUpdate))}},{key:"clearAllSnapshots",value:function(){this.nodes.forEach(rZ),this.sharedNodes.forEach(r4)}},{key:"scheduleUpdateProjection",value:function(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tf.preRender(this.updateProjection,!1,!0))}},{key:"scheduleCheckAfterUnmount",value:function(){var t=this;tf.postRender(function(){t.isLayoutDirty?t.root.didUpdate():t.root.checkUpdateFailed()})}},{key:"updateSnapshot",value:function(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nq(this.snapshot.measuredBox.x)||nq(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}},{key:"updateLayout",value:function(){if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ed(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);var i=this.options.visualElement;i&&i.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}}},{key:"updateScroll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){var i=r(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:i,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:i}}}},{key:"resetTransform",value:function(){if(a){var t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rF(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||L(this.latestValues)||r)&&(a(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}}},{key:"measure",value:function(){var t,e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),ai((t=n).x),ai(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}},{key:"measurePageBox",value:function(){var t,e=this.options.visualElement;if(!e)return ed();var i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(ar))){var n=this.root.scroll;n&&(O(i.x,n.offset.x),O(i.y,n.offset.y))}return i}},{key:"removeElementScroll",value:function(t){var e,i=ed();if(rM(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(var n=0;n<this.path.length;n++){var r=this.path[n],a=r.scroll,o=r.options;r!==this.root&&a&&o.layoutScroll&&(a.wasRoot&&rM(i,t),O(i.x,a.offset.x),O(i.y,a.offset.y))}return i}},{key:"applyTransform",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=ed();rM(i,t);for(var n=0;n<this.path.length;n++){var r=this.path[n];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&U(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),L(r.latestValues)&&U(i,r.latestValues)}return L(this.latestValues)&&U(i,this.latestValues),i}},{key:"removeTransform",value:function(t){var e=ed();rM(e,t);for(var i=0;i<this.path.length;i++){var n=this.path[i];if(n.instance&&L(n.latestValues)){R(n.latestValues)&&n.updateSnapshot();var r=ed();rM(r,n.measurePageBox()),r_(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}}return L(this.latestValues)&&r_(e,this.latestValues),e}},{key:"setTargetDelta",value:function(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}},{key:"setOptions",value:function(t){this.options=(0,eL._)((0,t2._)({},this.options,t),{crossfade:void 0===t.crossfade||t.crossfade})}},{key:"clearMeasurements",value:function(){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}},{key:"forceRelativeParentToResolveTarget",value:function(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tm.timestamp&&this.relativeParent.resolveTargetDelta(!0)}},{key:"resolveTargetDelta",value:function(){var t,e,i,n,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);var o=!!this.resumingFrom||this!==a;if(r||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(n=this.parent)?void 0:n.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize){var s=this.options,u=s.layout,l=s.layoutId;if(this.layout&&(u||l)){this.resolvedRelativeTargetAt=tm.timestamp;var h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&((this.target||(this.target=ed(),this.targetWithTransforms=ed()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),t=this.target,e=this.relativeTarget,i=this.relativeParent.target,nJ(t.x,e.x,i.x),nJ(t.y,e.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rM(this.target,this.layout.layoutBox),B(this.target,this.targetDelta)):rM(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&1!==this.animationProgress?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}}}},{key:"getClosestProjectingParent",value:function(){if(!(!this.parent||R(this.parent.latestValues)||_(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}},{key:"isProjecting",value:function(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}}
1,{key:"createRelativeTarget",value:function(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ed(),this.relativeTargetOrigin=ed(),n1(this.relativeTargetOrigin,e,i),rM(this.relativeTarget,this.relativeTargetOrigin)}},{key:"removeRelativeTarget",value:function(){this.relativeParent=this.relativeTarget=void 0}},{key:"calcProjection",value:function(){var t,e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===tm.timestamp&&(n=!1),!n){var r=this.options,a=r.layout,o=r.layoutId;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(a||o)){rM(this.layoutCorrected,this.layout.layoutBox);var s=this.treeScale.x,u=this.treeScale.y;!function(t,e,i){var n,r,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=i.length;if(o){e.x=e.y=1;for(var s=0;s<o;s++){r=(n=i[s]).projectionDelta;var u=n.options.visualElement;(!u||!u.props.style||"contents"!==u.props.style.display)&&(a&&n.options.layoutScroll&&n.scroll&&n!==n.root&&U(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,B(t,r)),a&&L(n.latestValues)&&U(t,n.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=ed());var l=e.target;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rC(this.prevProjectionDelta.x,this.projectionDelta.x),rC(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nQ(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===u&&rN(this.projectionDelta.x,this.prevProjectionDelta.x)&&rN(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}}}},{key:"hide",value:function(){this.isVisible=!1}},{key:"show",value:function(){this.isVisible=!0}},{key:"scheduleRender",value:function(){var t,e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(null==(t=this.options.visualElement)||t.scheduleRender(),e){var i=this.getStack();i&&i.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}},{key:"createProjectionDeltas",value:function(){this.prevProjectionDelta=eh(),this.projectionDelta=eh(),this.projectionDeltaWithTransform=eh()}},{key:"setAnimationOrigin",value:function(t){var e,i=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.snapshot,a=r?r.latestValues:{},o=(0,t2._)({},this.latestValues),s=eh();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!n;var u=ed(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),c=!h||h.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(r8));this.animationProgress=0,this.mixTargetDelta=function(n){var r,h,p,f,v,m,y=n/1e3;if(r9(s.x,t.x,y),r9(s.y,t.y,y),i.setTargetDelta(s),i.relativeTarget&&i.relativeTargetOrigin&&i.layout&&i.relativeParent&&i.relativeParent.layout){n1(u,i.layout.layoutBox,i.relativeParent.layout.layoutBox),r=i.relativeTarget,h=i.relativeTargetOrigin,p=u,f=y,r6(r.x,h.x,p.x,f),r6(r.y,h.y,p.y,f),e&&(v=i.relativeTarget,m=e,rB(v.x,m.x)&&rB(v.y,m.y))&&(i.isProjectionDirty=!1),e||(e=ed()),rM(e,i.relativeTarget)}l&&(i.animationValues=o,function(t,e,i,n,r,a){r?(t.opacity=V(0,null!=(o=i.opacity)?o:1,rb(n)),t.opacityExit=V(null!=(s=e.opacity)?s:1,0,rS(n))):a&&(t.opacity=V(null!=(u=e.opacity)?u:1,null!=(l=i.opacity)?l:1,n));for(var o,s,u,l,h=0;h<rk;h++){var c="border".concat(rx[h],"Radius"),d=rP(e,c),p=rP(i,c);
1(void 0!==d||void 0!==p)&&(d||(d=0),p||(p=0),0===d||0===p||rT(d)===rT(p)?(t[c]=Math.max(V(rw(d),rw(p),n),0),(G.test(p)||G.test(d))&&(t[c]+="%")):t[c]=p)}(e.rotate||i.rotate)&&(t.rotate=V(e.rotate||0,i.rotate||0,n))}(o,a,i.latestValues,y,d,c)),i.root.scheduleUpdateProjection(),i.scheduleRender(),i.animationProgress=y},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}},{key:"startAnimation",value:function(t){var e,i,n,r=this;this.notifyListeners("animationStart"),null==(e=this.currentAnimation)||e.stop(),null==(n=this.resumingFrom)||null==(i=n.currentAnimation)||i.stop(),this.pendingAnimation&&(tv(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tf.update(function(){var e,i,n;rc.hasAnimatedSinceResize=!0,iT.layout++,r.motionValue||(r.motionValue=ei(0)),e=r.motionValue,i=(0,eL._)((0,t2._)({},t),{velocity:0,isSync:!0,onUpdate:function(e){r.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:function(){iT.layout--},onComplete:function(){iT.layout--,t.onComplete&&t.onComplete(),r.completeAnimation()}}),(n=t1(e)?e:ei(e)).start(nD("",n,[0,1e3],i)),r.currentAnimation=n.animation,r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0})}},{key:"completeAnimation",value:function(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);var t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}},{key:"finishAnimation",value:function(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}},{key:"applyTransformsToTarget",value:function(){var t=this.getLead(),e=t.targetWithTransforms,i=t.target,n=t.layout,r=t.latestValues;if(e&&i&&n){if(this!==t&&this.layout&&n&&an(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||ed();var a=nq(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+a;var o=nq(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+o}rM(e,i),U(e,r),nQ(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}},{key:"registerSharedNode",value:function(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rW),this.sharedNodes.get(t).add(e);var i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}},{key:"isLead",value:function(){var t=this.getStack();return!t||t.lead===this}},{key:"getLead",value:function(){var t;return this.options.layoutId&&(null==(t=this.getStack())?void 0:t.lead)||this}},{key:"getPrevLead",value:function(){var t;return this.options.layoutId?null==(t=this.getStack())?void 0:t.prevLead:void 0}},{key:"getStack",value:function(){var t=this.options.layoutId;if(t)return this.root.sharedNodes.get(t)}},{key:"promote",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.needsReset,i=t.transition,n=t.preserveFollowOpacity,r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}},{key:"relegate",value:function(){var t=this.getStack();return!!t&&t.relegate(this)}},{key:"resetSkewAndRotation",value:function(){var t=this.options.visualElement;if(t){var e=!1,i=t.latestValues;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),e){var n={};i.z&&rX("z",t,n,this.animationValues);for(var r=0;r<rY.length;r++)rX("rotate".concat(rY[r]),t,n,this.animationValues),rX("skew".concat(rY[r]),t,n,this.animationValues);for(var a in t.render(),n)t.setStaticValue(a,n[a]),this.animationValues&&(this.animationValues[a]=n[a]);t.scheduleRender()}}}},{key:"applyProjectionStyles",value:function(t,e){if(this.instance&&!this.isSVG){if(!this.isVisible){t.visibility="hidden";return}var i,n,r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=ii(null==e?void 0:e.pointerEvents)||"",t.transform=r?r(this.latestValues,""):"none";return}var a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ii(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!L(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1);return}t.visibility="";var o=a.animationValues||a.latestValues;this.applyTransformsToTarget();
1var s=function(t,e,i){var n="",r=t.x.translate/e.x,a=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||a||o)&&(n="translate3d(".concat(r,"px, ").concat(a,"px, ").concat(o,"px) ")),(1!==e.x||1!==e.y)&&(n+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),i){var s=i.transformPerspective,u=i.rotate,l=i.rotateX,h=i.rotateY,c=i.skewX,d=i.skewY;s&&(n="perspective(".concat(s,"px) ").concat(n)),u&&(n+="rotate(".concat(u,"deg) ")),l&&(n+="rotateX(".concat(l,"deg) ")),h&&(n+="rotateY(".concat(h,"deg) ")),c&&(n+="skewX(".concat(c,"deg) ")),d&&(n+="skewY(".concat(d,"deg) "))}var p=t.x.scale*e.x,f=t.y.scale*e.y;return(1!==p||1!==f)&&(n+="scale(".concat(p,", ").concat(f,")")),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,o);r&&(s=r(o,s)),t.transform=s;var u=this.projectionDelta,l=u.x,h=u.y;for(var c in t.transformOrigin="".concat(100*l.origin,"% ").concat(100*h.origin,"% 0"),a.animationValues?t.opacity=a===this?null!=(n=null!=(i=o.opacity)?i:this.latestValues.opacity)?n:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:t.opacity=a===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,eF)if(void 0!==o[c]){var d=eF[c],p=d.correct,f=d.applyTo,v=d.isCSSVariable,m="none"===s?o[c]:p(o[c],a);if(f)for(var y=f.length,g=0;g<y;g++)t[f[g]]=m;else v?this.options.visualElement.renderState.vars[c]=m:t[c]=m}this.options.layoutId&&(t.pointerEvents=a===this?ii(null==e?void 0:e.pointerEvents)||"":"none")}}},{key:"clearSnapshot",value:function(){this.resumeFrom=this.snapshot=void 0}},{key:"resetTree",value:function(){this.root.nodes.forEach(function(t){var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(rQ),this.root.sharedNodes.clear()}}]),o}function r$(t){t.updateLayout()}function rK(t){var e,i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){var n=t.layout,r=n.layoutBox,a=n.measuredBox,o=t.options.animationType,s=i.source!==t.layout.source;"size"===o?n2(function(t){var e=s?i.measuredBox[t]:i.layoutBox[t],n=nq(e);e.min=r[t].min,e.max=e.min+n}):an(o,i.layoutBox,r)&&n2(function(e){var n=s?i.measuredBox[e]:i.layoutBox[e],a=nq(r[e]);n.max=n.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[e].max=t.relativeTarget[e].min+a)});var u=eh();nQ(u,r,i.layoutBox);var l=eh();s?nQ(l,t.applyTransform(a,!0),i.measuredBox):nQ(l,r,i.layoutBox);var h=!rF(u),c=!1;if(!t.resumeFrom){var d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){var p=d.snapshot,f=d.layout;if(p&&f){var v=ed();n1(v,i.layoutBox,p.layoutBox);var m=ed();n1(m,r,f.layoutBox),rI(v,m)||(c=!0),d.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=v,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:i,delta:l,layoutDelta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:c})}else if(t.isLead()){var y=t.options.onExitComplete;y&&y()}t.options.transition=void 0}function rG(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rq(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rZ(t){t.clearSnapshot()}function rQ(t){t.clearMeasurements()}function rJ(t){t.isLayoutDirty=!1}function r0(t){var e=t.options.visualElement;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function r1(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function r2(t){t.resolveTargetDelta()}function r3(t){t.calcProjection()}function r5(t){t.resetSkewAndRotation()}function r4(t){t.removeLeadSnapshot()}function r9(t,e,i){t.translate=V(e.translate,0,i),t.scale=V(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function r6(t,e,i,n){t.min=V(e.min,i.min,n),t.max=V(e.max,i.max,n)}function r8(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}var r7={duration:.45,ease:[.4,0,.1,1]},at=function(t){return"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t)},ae=at("applewebkit/")&&!at("chrome/")?Math.round:th;function ai(t){t.min=ae(t.min),t.max=ae(t.max)}function an(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rU(e)-rU(i)))}function ar(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}var aa=rH({attachResizeListener:function(t,e){return nH(t,"resize",e)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),ao={current:void 0},as=rH({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!ao.current){var t=new aa({});t.mount(window),t.setOptions({layoutScroll:!0}),ao.current=t}return ao.current},resetTransform:function(t,e){t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:function(t){return"fixed"===window.getComputedStyle(t).position}}),au=i(58392);function al(t,e){let i=(0,au.K)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function ah(t){return!("touch"===t.pointerType||nX.x||nX.y)}function ac(t,e,i){var n=t.props;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);var r=n["onHover"+i];r&&tf.postRender(function(){return r(e,nK(e))})}var ad=function(t){function e(){return(0,l._)(this,e),(0,u._)(this,e,arguments)}return(0,c._)(e,t),(0,h._)(e,[{key:"mount",value:function(){var t=this,e=this.node.current;
1e&&(this.unmount=function(t,e,i={}){let[n,r,a]=al(t,i),o=t=>{if(!ah(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let a=t=>{ah(t)&&(n(t),i.removeEventListener("pointerleave",a))};i.addEventListener("pointerleave",a,r)};return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),a}(e,function(e,i){return ac(t.node,i,"Start"),function(e){return ac(t.node,e,"End")}}))}},{key:"unmount",value:function(){}}]),e}(nN),ap=function(t){function e(){var t;return(0,l._)(this,e),t=(0,u._)(this,e,arguments),t.isActive=!1,t}return(0,c._)(e,t),(0,h._)(e,[{key:"onFocus",value:function(){var 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)}},{key:"onBlur",value:function(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}},{key:"mount",value:function(){var t=this;this.unmount=ik(nH(this.node.current,"focus",function(){return t.onFocus()}),nH(this.node.current,"blur",function(){return t.onBlur()}))}},{key:"unmount",value:function(){}}]),e}(nN),af=i(45246),av=i(1138);let am=(t,e)=>!!e&&(t===e||am(t,e.parentElement)),ay=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ag=new WeakSet;function ax(t){return e=>{"Enter"===e.key&&t(e)}}function ak(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function aw(t){return n$(t)&&!(nX.x||nX.y)}function aT(t,e,i){var n=t.props;if(!(0,af._)(t.current,HTMLButtonElement)||!t.current.disabled){t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);var r=n["onTap"+("End"===i?"":i)];r&&tf.postRender(function(){return r(e,nK(e))})}}var aP=function(t){function e(){return(0,l._)(this,e),(0,u._)(this,e,arguments)}return(0,c._)(e,t),(0,h._)(e,[{key:"mount",value:function(){var t=this,e=this.node.current;e&&(this.unmount=function(t,e,i={}){let[n,r,a]=al(t,i),o=t=>{let n=t.currentTarget;if(!aw(t))return;ag.add(n);let a=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",u),ag.has(n)&&ag.delete(n),aw(t)&&"function"==typeof a&&a(t,{success:e})},s=t=>{o(t,n===window||n===document||i.useGlobalTarget||am(n,t.target))},u=t=>{o(t,!1)};window.addEventListener("pointerup",s,r),window.addEventListener("pointercancel",u,r)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),(0,av.s)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=ax(()=>{if(ag.has(i))return;ak(i,"down");let t=ax(()=>{ak(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>ak(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,r)),ay.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),a}(e,function(e,i){return aT(t.node,i,"Start"),function(e,i){var n=i.success;return aT(t.node,e,n?"End":"Cancel")}},{useGlobalTarget:this.node.props.globalTapTarget}))}},{key:"unmount",value:function(){}}]),e}(nN),ab=new WeakMap,aS=new WeakMap,aA=function(t){var e=ab.get(t.target);e&&e(t)},aE=function(t){t.forEach(aA)},aM={some:0,all:1},aC=function(t){function e(){var t;return(0,l._)(this,e),t=(0,u._)(this,e,arguments),t.hasEnteredView=!1,t.isInView=!1,t}return(0,c._)(e,t),(0,h._)(e,[{key:"startObserver",value:function(){var t,e,i,n,r,a,o,s,u=this;this.unmount();var l=this.node.getProps().viewport,h=void 0===l?{}:l,c=h.root,d=h.margin,p=h.amount,f=void 0===p?"some":p,v=h.once,m={root:c?c.current:void 0,rootMargin:d,threshold:"number"==typeof f?f:aM[f]};return t=this.node.current,e=function(t){var e=t.isIntersecting;if(u.isInView!==e){if(u.isInView=e,v&&!e&&u.hasEnteredView)return;e&&(u.hasEnteredView=!0),u.node.animationState&&u.node.animationState.setActive("whileInView",e);var i=u.node.getProps(),n=i.onViewportEnter,r=i.onViewportLeave,a=e?n:r;a&&a(t)}},i=m.root,n=(0,t3._)(m,["root"]),r=i||document,aS.has(r)||aS.set(r,{}),(a=aS.get(r))[o=JSON.stringify(n)]||(a[o]=new IntersectionObserver(aE,(0,t2._)({root:i},n))),s=a[o],ab.set(t,e),s.observe(t),function(){ab.delete(t),s.unobserve(t)}}},{key:"mount",value:function(){this.startObserver()}},{key:"update",value:function(){if("undefined"!=typeof IntersectionObserver){var t=this.node;["amount","margin","root"].some(function(t){var e=t.viewport,i=void 0===e?{}:e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.viewport,a=void 0===r?{}:r;return function(t){return i[t]!==a[t]}}(t.props,t.prevProps))&&this.startObserver()}}},{key:"unmount",value:function(){}}]),e}(nN),aV=function(t,e){if("undefined"==typeof Proxy)return id;var i=new Map,n=function(i,n){return id(i,n,t,e)};return new Proxy(function(t,e){return n(t,e)},{get:function(r,a){return"create"===a?n:(i.has(a)||i.set(a,id(a,void 0,t,e)),i.get(a))}})}((0,t2._)({},{animation:{Feature:nW},exit:{Feature:nz}},{inView:{Feature:aC},tap:{Feature:aP},focus:{Feature:ap},hover:{Feature:ad}},{pan:{Feature:rl},drag:{Feature:rs,ProjectionNode:as,MeasureLayout:rf}},{layout:{ProjectionNode:as,MeasureLayout:rf}}),function(t,e){return eZ(t)?new eG(e):new eI(e,{allowProjection:t!==s.Fragment})})},39551:(t,e,i)=>{i.d(e,{L:()=>n});var n=(0,i(12115).createContext)({})},58392:(t,e,i)=>{i.d(e,{K:()=>n});function n(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let r=i?.[t]??n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}},79196:(t,e,i)=>{i.d(e,{xQ:()=>a});var n=i(12115),r=i(15131);function a(){var t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,n.useContext)(r.t);if(null===e)return[!0,null];var i=e.isPresent,a=e.onExitComplete,o=e.register,s=(0,n.useId)();(0,n.useEffect)(function(){if(t)return o(s)},[t]);var u=(0,n.useCallback)(function(){return t&&a&&a(s)},[s,a,t]);return!i&&a?[!1,u]:[!0]}},82319:(t,e,i)=>{i.d(e,{A:()=>h});
1var n=i(93075),r=i(30694),a=i(22514),o=i(30002),s=i(22020),u=i(12115),l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},h=function(t,e){var i=(0,u.forwardRef)(function(i,h){var c=i.color,d=i.size,p=void 0===d?24:d,f=i.strokeWidth,v=void 0===f?2:f,m=i.absoluteStrokeWidth,y=i.className,g=i.children,x=(0,a._)(i,["color","size","strokeWidth","absoluteStrokeWidth","className","children"]);return(0,u.createElement)("svg",(0,n._)((0,r._)((0,n._)({ref:h},l),{width:p,height:p,stroke:void 0===c?"currentColor":c,strokeWidth:m?24*Number(v)/Number(p):v,className:["lucide","lucide-".concat(t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()),void 0===y?"":y].join(" ")}),x),(0,s._)(e.map(function(t){var e=(0,o._)(t,2),i=e[0],n=e[1];return(0,u.createElement)(i,n)})).concat((0,s._)(Array.isArray(g)?g:[g])))});return i.displayName="".concat(t),i}},94601:(t,e,i)=>{i.d(e,{G:()=>n});function n(t){return"object"==typeof t&&null!==t}}}]);

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.