ocearo-ui
Version:
Ocean Robot UI: 3D visualization dashboard for signalk
1 lines • 131 kB
JavaScript
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,54505,57788,76959,66820,63011,65091,22660,79444,69577,30162,83411,64440,65566,19928,60830,59176,80248,87022,21012,63074,33887,70596,60900,14229,79294,4169,60855,56512,97307,68e3,60140,96173,25791,86427,85983,32525,6840,87576,86579,17218,93787,44947,81261,99951,706,24463,30789,84049,67926,27677,77777,35636,53689,44966,t=>{"use strict";let e,i,s,n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(n);t.s(["transformPropOrder",()=>n,"transformProps",()=>r],57788);let o=(t,e,i)=>i>e?e:i<t?t:i;t.s(["clamp",()=>o],76959);let a={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},l={...a,transform:t=>o(0,1,t)},h={...a,default:1},u=t=>Math.round(1e5*t)/1e5,c=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,d=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,m=(t,e)=>i=>!!("string"==typeof i&&d.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),p=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[n,r,o,a]=s.match(c);return{[t]:parseFloat(n),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},f={...a,transform:t=>Math.round(o(0,255,t))},v={test:m("rgb","red"),parse:p("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+f.transform(t)+", "+f.transform(e)+", "+f.transform(i)+", "+u(l.transform(s))+")"};t.s(["rgba",()=>v],66820);let g={test:m("#"),parse:function(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}},transform:v.transform};t.s(["hex",()=>g],63011);let y=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),x=y("deg"),T=y("%"),w=y("px"),P=y("vh"),b=y("vw"),S={...T,parse:t=>T.parse(t)/100,transform:t=>T.transform(100*t)};t.s(["degrees",()=>x,"percent",()=>T,"progressPercentage",()=>S,"px",()=>w,"vh",()=>P,"vw",()=>b],65091);let M={test:m("hsl","hue"),parse:p("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+T.transform(u(e))+", "+T.transform(u(i))+", "+u(l.transform(s))+")"};t.s(["hsla",()=>M],22660);let A={test:t=>v.test(t)||g.test(t)||M.test(t),parse:t=>v.test(t)?v.parse(t):M.test(t)?M.parse(t):g.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?v.transform(t):M.transform(t),getAnimatableNone:t=>{let e=A.parse(t);return e.alpha=0,A.transform(e)}};t.s(["color",()=>A],79444);let V=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,E="number",C="color",D=/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 k(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,o=e.replace(D,t=>(A.test(t)?(s.color.push(r),n.push(C),i.push(A.parse(t))):t.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(t)):(s.number.push(r),n.push(E),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:s,types:n}}function L(t){return k(t).values}function R(t){let{split:e,types:i}=k(t),s=e.length;return t=>{let n="";for(let r=0;r<s;r++)if(n+=e[r],void 0!==t[r]){let e=i[r];e===E?n+=u(t[r]):e===C?n+=A.transform(t[r]):n+=t[r]}return n}}let B=t=>"number"==typeof t?0:A.test(t)?A.getAnimatableNone(t):t,F={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(c)?.length||0)+(t.match(V)?.length||0)>0},parse:L,createTransformer:R,getAnimatableNone:function(t){let e=L(t);return R(t)(e.map(B))}};t.s(["analyseComplexValue",()=>k,"complex",()=>F],69577);let j=new Set(["brightness","contrast","saturate","opacity"]);function I(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(c)||[];if(!s)return t;let n=i.replace(s,""),r=+!!j.has(e);return s!==i&&(r*=100),e+"("+r+n+")"}let O=/\b([a-z-]*)\(.*?\)/gu,N={...F,getAnimatableNone:t=>{let e=t.match(O);return e?e.map(I).join(" "):t}},U={...a,transform:Math.round},W={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,inset:w,insetBlock:w,insetBlockStart:w,insetBlockEnd:w,insetInline:w,insetInlineStart:w,insetInlineEnd:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockStart:w,paddingBlockEnd:w,paddingInline:w,paddingInlineStart:w,paddingInlineEnd:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockStart:w,marginBlockEnd:w,marginInline:w,marginInlineStart:w,marginInlineEnd:w,fontSize:w,backgroundPositionX:w,backgroundPositionY:w,rotate:x,rotateX:x,rotateY:x,rotateZ:x,scale:h,scaleX:h,scaleY:h,scaleZ:h,skew:x,skewX:x,skewY:x,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:l,originX:S,originY:S,originZ:w,zIndex:U,fillOpacity:l,strokeOpacity:l,numOctaves:U},$={...W,color:A,backgroundColor:A,outlineColor:A,fill:A,stroke:A,borderColor:A,borderTopColor:A,borderRightColor:A,borderBottomColor:A,borderLeftColor:A,filter:N,WebkitFilter:N},G=t=>$[t],z=()=>({translate:0,scale:1,origin:0,originPoint:0}),H=()=>({x:z(),y:z()}),Y=()=>({min:0,max:0}),K=()=>({x:Y(),y:Y()});t.s(["createBox",()=>K,"createDelta",()=>H],30162);let X=t=>!!(t&&t.getVelocity);t.s(["isMotionValue",()=>X],83411);let q=new Set(["width","height","top","left","right","bottom",...n]);t.s(["positionalKeys",()=>q],64440);let _=t=>e=>e.test(t),Z=[a,w,T,x,b,P,{test:t=>"auto"===t,parse:t=>t}],J=t=>Z.find(_(t));var Q=t.i(47167);let tt=()=>{},te=()=>{};Q.default,t.s(["invariant",()=>te,"warning",()=>tt],65566);let ti=t=>e=>"string"==typeof e&&e.startsWith(t),ts=ti("--"),tn=ti("var(--"),tr=t=>!!tn(t)&&to.test(t.split("/*")[0].trim()),to=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ta(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}t.s(["containsCSSVariable",()=>ta,"isCSSVariableName",()=>ts,"isCSSVariableToken",()=>tr],19928);let tl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,th=t=>180*t/Math.PI,tu=t=>td(th(Math.atan2(t[1],t[0]))),tc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tu,rotateZ:tu,skewX:t=>th(Math.atan(t[1])),skewY:t=>th(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},td=t=>((t%=360)<0&&(t+=360),t),tm=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tp=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tf={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tm,scaleY:tp,scale:t=>(tm(t)+tp(t))/2,rotateX:t=>td(th(Math.atan2(t[6],t[5]))),rotateY:t=>td(th(Math.atan2(-t[2],t[0]))),rotateZ:tu,rotate:tu,skewX:t=>th(Math.atan(t[4])),skewY:t=>th(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tv(t){return+!!t.includes("scale")}function tg(t,e){let i,s;if(!t||"none"===t)return tv(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=tf,s=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tc,s=e}if(!s)return tv(e);let r=i[e],o=s[1].split(",").map(ty);return"function"==typeof r?r(o):o[r]}function ty(t){return parseFloat(t.trim())}let tx=t=>t===a||t===w,tT=new Set(["x","y","z"]),tw=n.filter(t=>!tT.has(t)),tP={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})=>tg(e,"x"),y:(t,{transform:e})=>tg(e,"y")};tP.translateX=tP.x,tP.translateY=tP.y;let tb=t=>t;t.s(["noop",()=>tb],60830);let tS={};t.s(["MotionGlobalConfig",()=>tS],59176);let tM=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],tA={value:null,addProjectionMetrics:null};function tV(t,e){let i=!1,s=!0,n={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,o=tM.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,s=new Set,n=!1,r=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function h(e){o.has(e)&&(u.schedule(e),t()),l++,e(a)}let u={schedule:(t,e=!1,r=!1)=>{let a=r&&n?i:s;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{s.delete(t),o.delete(t)},process:t=>{if(a=t,n){r=!0;return}n=!0,[i,s]=[s,i],i.forEach(h),e&&tA.value&&tA.value.frameloop[e].push(l),l=0,i.clear(),n=!1,r&&(r=!1,u.process(t))}};return u}(r,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:h,preUpdate:u,update:c,preRender:d,render:m,postRender:p}=o,f=()=>{let r=tS.useManualTiming?n.timestamp:performance.now();i=!1,tS.useManualTiming||(n.delta=s?1e3/60:Math.max(Math.min(r-n.timestamp,40),1)),n.timestamp=r,n.isProcessing=!0,a.process(n),l.process(n),h.process(n),u.process(n),c.process(n),d.process(n),m.process(n),p.process(n),n.isProcessing=!1,i&&e&&(s=!1,t(f))};return{schedule:tM.reduce((e,r)=>{let a=o[r];return e[r]=(e,r=!1,o=!1)=>(!i&&(i=!0,s=!0,n.isProcessing||t(f)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;e<tM.length;e++)o[tM[e]].cancel(t)},state:n,steps:o}}t.s(["statsBuffer",()=>tA],80248);let{schedule:tE,cancel:tC,state:tD,steps:tk}=tV("u">typeof requestAnimationFrame?requestAnimationFrame:tb,!0);t.s(["cancelFrame",()=>tC,"frame",()=>tE,"frameData",()=>tD,"frameSteps",()=>tk],87022);let tL=new Set,tR=!1,tB=!1,tF=!1;function tj(){if(tB){let t=Array.from(tL).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,s=(e=[],tw.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e);s.length&&(i.set(t,s),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tB=!1,tR=!1,tL.forEach(t=>t.complete(tF)),tL.clear()}function tI(){tL.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tB=!0)})}function tO(){tF=!0,tI(),tj(),tF=!1}class tN{constructor(t,e,i,s,n,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tL.add(this),tR||(tR=!0,tE.read(tI),tE.resolveKeyframes(tj))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;if(null===t[0]){let n=s?.get(),r=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let s=i.readValue(e,r);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=r),s&&void 0===n&&s.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),tL.delete(this)}cancel(){"scheduled"===this.state&&(tL.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}function tU(t,e){let i=G(t);return i!==N&&(i=F),i.getAnimatableNone?i.getAnimatableNone(e):void 0}t.s(["KeyframeResolver",()=>tN,"flushKeyframeResolvers",()=>tO],21012);let tW=new Set(["auto","none","0"]);class t$ extends tN{constructor(t,e,i,s,n){super(t,e,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&tr(s=s.trim())){let n=function t(e,i,s=1){te(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,r]=function(t){let e=tl.exec(t);if(!e)return[,];let[,i,s,n]=e;return[`--${i??s}`,n]}(e);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return tr(r)?t(r,i,s+1):r}(s,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!q.has(i)||2!==t.length)return;let[s,n]=t,r=J(s),o=J(n);if(ta(s)!==ta(n)&&tP[i]){this.needsMeasurement=!0;return}if(r!==o)if(tx(r)&&tx(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tP[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 s,n=0;for(;n<t.length&&!s;){let e=t[n];"string"==typeof e&&!tW.has(e)&&k(e).values.length&&(s=t[n]),n++}if(s&&i)for(let n of e)t[n]=tU(i,s)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tP[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(e);s&&s.jump(this.measuredOrigin,!1);let n=i.length-1,r=i[n];i[n]=tP[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tG=t=>1e3*t,tz=t=>t/1e3;function tH(t,e){-1===t.indexOf(e)&&t.push(e)}function tY(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["millisecondsToSeconds",()=>tz,"secondsToMilliseconds",()=>tG],63074),t.s(["addUniqueItem",()=>tH,"removeItem",()=>tY],33887);class tK{constructor(){this.subscriptions=[]}add(t){return tH(this.subscriptions,t),()=>tY(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let n=0;n<s;n++){let s=this.subscriptions[n];s&&s(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tX(t){let e;return()=>(void 0===e&&(e=t()),e)}t.s(["SubscriptionManager",()=>tK],70596),t.s(["memo",()=>tX],60900);let tq=tX(()=>void 0!==window.ScrollTimeline),t_=t=>null!==t;function tZ(t,{repeat:e,repeatType:i="loop"},s,n=1){let r=t.filter(t_),o=n<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==s?s:r[o]}t.s(["getFinalKeyframe",()=>tZ],14229);class tJ{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)}}t.s(["WithPromise",()=>tJ],79294);let tQ={layout:0,mainThread:0,waapi:0};t.s(["activeAnimations",()=>tQ],4169);let t0=t=>Array.isArray(t)&&"number"==typeof t[0];t.s(["isBezierDefinition",()=>t0],60855);let t1={},t6=(s=tX(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>t1.linearEasing??s()),t5=(t,e,i=10)=>{let s="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)s+=Math.round(1e4*t(e/(n-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`};t.s(["generateLinearEasing",()=>t5],56512);let t2=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,t7={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t2([0,.65,.55,1]),circOut:t2([.55,0,1,.45]),backIn:t2([.31,.01,.66,-.59]),backOut:t2([.33,1.53,.69,.99])};function t3(t){return"function"==typeof t&&"applyToOptions"in t}t.s(["isGenerator",()=>t3],97307);class t9 extends tJ{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:s,pseudoElement:n,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!n,this.allowFlatten=r,this.options=t,te("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return t3(t)&&t6()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?t6()?t5(e,i):"ease-out":t0(e)?t2(e):Array.isArray(e)?e.map(e=>t(e,i)||t7.easeOut):t7[e]}(a,n);Array.isArray(c)&&(u.easing=c),tA.value&&tQ.waapi++;let d={delay:s,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};h&&(d.pseudoElement=h);let m=t.animate(u,d);return tA.value&&m.finished.finally(()=>{tQ.waapi--}),m}(e,i,s,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=tZ(s,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,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(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return tz(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+tz(t)}get time(){return tz(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tG(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 this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tq())?(this.animation.timeline=t,tb):e(this)}}t.s(["NativeAnimation",()=>t9],68e3);let t4=new Set(["opacity","clipPath","filter","transform"]),{schedule:t8}=tV(queueMicrotask,!1);function et(){i=void 0}t.s(["microtask",()=>t8],60140);let ee={now:()=>(void 0===i&&ee.set(tD.isProcessing||tS.useManualTiming?tD.timestamp:performance.now()),i),set:t=>{i=t,queueMicrotask(et)}};function ei(t,e){return e?1e3/e*t:0}t.s(["time",()=>ee],96173),t.s(["velocityPerSecond",()=>ei],25791);class es{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=ee.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=ee.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 tK);let i=this.events[t].add(e);return"change"===t?()=>{i(),tE.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 e&&e.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=ee.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return ei(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}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 en(t,e){return new es(t,e)}t.s(["motionValue",()=>en],86427);let er=[...Z,A,F],eo=new WeakMap;function ea(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function el(t){return"string"==typeof t||Array.isArray(t)}t.s(["isAnimationControls",()=>ea],85983),t.s(["isVariantLabel",()=>el],32525);let eh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eu=["initial",...eh];function ec(t){return ea(t.animate)||eu.some(e=>el(t[e]))}function ed(t){return!!(ec(t)||t.variants)}t.s(["variantPriorityOrder",()=>eh,"variantProps",()=>eu],6840),t.s(["isControllingVariants",()=>ec,"isVariantNode",()=>ed],87576);let em={current:null},ep={current:!1},ef="u">typeof window;function ev(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eg(t,e,i,s){if("function"==typeof e){let[n,r]=ev(s);e=e(void 0!==i?i:t.custom,n,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,r]=ev(s);e=e(void 0!==i?i:t.custom,n,r)}return e}t.s(["resolveVariantFromProps",()=>eg],86579);let ey=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ex={};function eT(t){ex=t}function ew(){return ex}class eP{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,skipAnimations:n,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tN,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=ee.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tE.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=n,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=ec(e),this.isVariantNode=ed(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==l[t]&&X(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,eo.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ep.current||function(){if(ep.current=!0,ef)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>em.current=t.matches;t.addEventListener("change",e),e()}else em.current=!1}(),this.shouldReduceMotion=em.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tC(this.notifyUpdate),tC(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&t4.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:s,times:n,ease:r,duration:o}=e.accelerate,a=new t9({element:this.current,name:t,keyframes:s,times:n,ease:r,duration:tG(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let s=r.has(t);s&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tE.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ex){let e=ex[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):K()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ey.length;e++){let i=ey[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(t,e,i){for(let s in e){let n=e[s],r=i[s];if(X(n))t.addValue(s,n);else if(X(r))t.addValue(s,en(n,{owner:t}));else if(r!==n)if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(s);t.addValue(s,en(void 0!==e?e:n,{owner:t}))}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=en(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let s,n;if("string"==typeof i&&(s=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s)||(n=i,/^0[^.\s]+$/u.test(n))))i=parseFloat(i);else{let s;s=i,!er.find(_(s))&&F.test(e)&&(i=tU(t,e))}this.setBaseTarget(t,X(i)?i.get():i)}return X(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=eg(this.props,i,this.presenceContext?.custom);s&&(e=s[t])}if(i&&void 0!==e)return e;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||X(s)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new tK),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){t8.render(this.render)}}t.s(["VisualElement",()=>eP,"getFeatureDefinitions",()=>ew,"setFeatureDefinitions",()=>eT],17218);class eb extends eP{constructor(){super(...arguments),this.KeyframeResolver=t$}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;X(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eS(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}t.s(["camelToDash",()=>eS],93787);let eM=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eV=n.length;function eE(t,e,i){let{style:s,vars:o,transformOrigin:a}=t,l=!1,h=!1;for(let t in e){let i=e[t];if(r.has(t)){l=!0;continue}if(ts(t)){o[t]=i;continue}{let e=eM(i,W[t]);t.startsWith("origin")?(h=!0,a[t]=e):s[t]=e}}if(!e.transform&&(l||i?s.transform=function(t,e,i){let s="",r=!0;for(let o=0;o<eV;o++){let a=n[o],l=t[a];if(void 0===l)continue;let h=!0;if("number"==typeof l)h=l===+!!a.startsWith("scale");else{let t=parseFloat(l);h=a.startsWith("scale")?1===t:0===t}if(!h||i){let t=eM(l,W[a]);if(!h){r=!1;let e=eA[a]||a;s+=`${e}(${t}) `}i&&(e[a]=t)}}return s=s.trim(),i?s=i(e,r?"":s):r&&(s="none"),s}(e,t.transform,i):s.transform&&(s.transform="none")),h){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;s.transformOrigin=`${t} ${e} ${i}`}}t.s(["buildHTMLStyles",()=>eE],44947);let eC={offset:"stroke-dashoffset",array:"stroke-dasharray"},eD={offset:"strokeDashoffset",array:"strokeDasharray"},ek=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eL(t,{attrX:e,attrY:i,attrScale:s,pathLength:n,pathSpacing:r=1,pathOffset:o=0,...a},l,h,u){if(eE(t,a,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;for(let t of(c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete c.transformBox),ek))void 0!==c[t]&&(d[t]=c[t],delete c[t]);void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==s&&(c.scale=s),void 0!==n&&function(t,e,i=1,s=0,n=!0){t.pathLength=1;let r=n?eC:eD;t[r.offset]=`${-s}`,t[r.array]=`${e} ${i}`}(c,n,r,o,!1)}t.s(["buildSVGAttrs",()=>eL],81261);let eR=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"]),eB=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eF(t,{style:e,vars:i},s,n){let r,o=t.style;for(r in e)o[r]=e[r];for(r in n?.applyProjectionStyles(o,s),i)o.setProperty(r,i[r])}function ej(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}t.s(["isSVGTag",()=>eB],99951);let eI={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!w.test(t))return t;else t=parseFloat(t);let i=ej(t,e.target.x),s=ej(t,e.target.y);return`${i}% ${s}%`}},eO=(t,e,i)=>t+(e-t)*i;t.s(["mixNumber",()=>eO],706);let eN={borderRadius:{...eI,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eI,borderTopRightRadius:eI,borderBottomLeftRadius:eI,borderBottomRightRadius:eI,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=F.parse(t);if(s.length>5)return t;let n=F.createTransformer(t),r=+("number"!=typeof s[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+r]/=o,s[1+r]/=a;let l=eO(o,a,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}};function eU(t,{layout:e,layoutId:i}){return r.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eN[t]||"opacity"===t)}function eW(t,e,i){let s=t.style,n=e?.style,r={};if(!s)return r;for(let e in s)(X(s[e])||n&&X(n[e])||eU(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=s[e]);return r}function e$(t,e,i){let s=eW(t,e,i);for(let i in t)(X(t[i])||X(e[i]))&&(s[-1!==n.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}t.s(["scaleCorrectors",()=>eN],24463),t.s(["isForcedMotionValue",()=>eU],30789),t.s(["scrapeMotionValuesFromProps",()=>eW],84049),t.s(["scrapeMotionValuesFromProps",()=>e$],67926);class eG extends eb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=K}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(r.has(e)){let t=G(e);return t&&t.default||0}return e=eR.has(e)?e:eS(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return e$(t,e,i)}build(t,e,i){eL(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){for(let i in eF(t,e,void 0,s),e.attrs)t.setAttribute(eR.has(i)?i:eS(i),e.attrs[i])}mount(t){this.isSVGTag=eB(t.tagName),super.mount(t)}}function ez({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function eH({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function eY(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}function eK(t){return void 0===t||1===t}function eX({scale:t,scaleX:e,scaleY:i}){return!eK(t)||!eK(e)||!eK(i)}function eq(t){return eX(t)||e_(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function e_(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eZ(t,e,i){return i+e*(t-i)}function eJ(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function eQ(t,e=0,i=1,s,n){t.min=eJ(t.min,e,i,s,n),t.max=eJ(t.max,e,i,s,n)}function e0(t,{x:e,y:i}){eQ(t.x,e.translate,e.scale,e.originPoint),eQ(t.y,i.translate,i.scale,i.originPoint)}function e1(t,e,i,s=!1){let n,r,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&e2(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,e0(t,r)),s&&eq(n.latestValues)&&e2(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function e6(t,e){t.min=t.min+e,t.max=t.max+e}function e5(t,e,i,s,n=.5){let r=eO(t.min,t.max,n);eQ(t,e,i,r,s)}function e2(t,e){e5(t.x,e.x,e.scaleX,e.scale,e.originX),e5(t.y,e.y,e.scaleY,e.scale,e.originY)}function e7(t,e){return ez(eY(t.getBoundingClientRect(),e))}function e3(t,e,i){let s=e7(t,i),{scroll:n}=e;return n&&(e6(s.x,n.offset.x),e6(s.y,n.offset.y)),s}t.s(["convertBoundingBoxToBox",()=>ez,"convertBoxToBoundingBox",()=>eH,"transformBoxPoints",()=>eY],27677),t.s(["has2DTranslate",()=>e_,"hasScale",()=>eX,"hasTransform",()=>eq],77777),t.s(["applyBoxDelta",()=>e0,"applyTreeDeltas",()=>e1,"scalePoint",()=>eZ,"transformBox",()=>e2,"translateAxis",()=>e6],35636),t.s(["measurePageBox",()=>e3,"measureViewportBox",()=>e7],53689);class e9 extends eb{constructor(){super(...arguments),this.type="html",this.renderInstance=eF}readValueFromInstance(t,e){if(r.has(e))return this.projection?.isProjecting?tv(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tg(i,e)})(t,e);{let i=window.getComputedStyle(t),s=(ts(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e7(t,e)}build(t,e,i){eE(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return eW(t,e,i)}}var e4=t.i(71645);let e8=["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 it(t){if("string"!=typeof t||t.includes("-"));else if(e8.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.s(["isSVGComponent",()=>it],44966);let ie=(t,e)=>e.isSVG??it(t)?new eG(e):new e9(e,{allowProjection:t!==e4.Fragment});t.s(["createDomVisualElement",()=>ie],54505)},31178,t=>{"use strict";let e=(0,t.i(71645).createContext)({});t.s(["LayoutGroupContext",()=>e])},48070,t=>{"use strict";let e=(0,t.i(71645).createContext)({strict:!1});t.s(["LazyContext",()=>e])},37806,t=>{"use strict";let e=(0,t.i(71645).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",()=>e])},88291,82474,86549,11587,8576,30665,33871,t=>{"use strict";var e,i=t.i(71645);let s=(0,i.createContext)({});t.s(["MotionContext",()=>s],88291);var n=t.i(87576),r=t.i(32525);function o(t){let{initial:e,animate:o}=function(t,e){if((0,n.isControllingVariants)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,r.isVariantLabel)(e)?e:void 0,animate:(0,r.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,i.useContext)(s));return(0,i.useMemo)(()=>({initial:e,animate:o}),[a(e),a(o)])}function a(t){return Array.isArray(t)?t.join(" "):t}t.s(["useCreateMotionContext",()=>o],82474);var l=t.i(83411),h=t.i(30789),u=t.i(44947);let c=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function d(t,e,i){for(let s in e)(0,l.isMotionValue)(e[s])||(0,h.isForcedMotionValue)(s,i)||(t[s]=e[s])}t.s(["createHtmlRenderState",()=>c],86549);var m=t.i(81261),p=t.i(99951);let f=()=>({...c(),attrs:{}});t.s(["createSvgRenderState",()=>f],11587);let v=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","propagate","ignoreStrict","viewport"]);function g(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||v.has(t)}let y=t=>!g(t);try{e=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof e&&(y=t=>t.startsWith("on")?!g(t):e(t))}catch{}var x=t.i(44966);function T(t,e,s,{latestValues:n},r,o=!1,a){let h=(a??(0,x.isSVGComponent)(t)?function(t,e,s,n){let r=(0,i.useMemo)(()=>{let i=f();return(0,m.buildSVGAttrs)(i,e,(0,p.isSVGTag)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};d(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let s,n,r={},o=(s=t.style||{},d(n={},s,t),Object.assign(n,function({transformTemplate:t},e){return(0,i.useMemo)(()=>{let i=c();return(0,u.buildHTMLStyles)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r})(e,n,r,t),v=function(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(y(n)||!0===i&&g(n)||!e&&!g(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}(e,"string"==typeof t,o),w=t!==i.Fragment?{...v,...h,ref:s}:{},{children:P}=e,b=(0,i.useMemo)(()=>(0,l.isMotionValue)(P)?P.get():P,[P]);return(0,i.createElement)(t,{...w,children:b})}t.s(["useRender",()=>T],8576);var w=t.i(84049);function P(t){return(0,l.isMotionValue)(t)?t.get():t}t.s(["scrapeHTMLMotionValuesFromProps",()=>w.scrapeMotionValuesFromProps],30665),t.s(["resolveMotionValue",()=>P],33871)},21476,t=>{"use strict";let e=(0,t.i(71645).createContext)(null);t.s(["PresenceContext",()=>e])},47414,t=>{"use strict";var e=t.i(71645);function i(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}t.s(["useConstant",()=>i])},11805,1664,t=>{"use strict";var e=t.i(30665),i=t.i(33871),s=t.i(87576),n=t.i(85983),r=t.i(86579),o=t.i(71645),a=t.i(88291),l=t.i(21476),h=t.i(47414);let u=t=>(e,u)=>{let c=(0,o.useContext)(a.MotionContext),d=(0,o.useContext)(l.PresenceContext),m=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},o,a,l){return{latestValues:function(t,e,o,a){let l={},h=a(t,{});for(let t in h)l[t]=(0,i.resolveMotionValue)(h[t]);let{initial:u,animate:c}=t,d=(0,s.isControllingVariants)(t),m=(0,s.isVariantNode)(t);e&&m&&!d&&!1!==t.inherit&&(void 0===u&&(u=e.initial),void 0===c&&(c=e.animate));let p=!!o&&!1===o.initial,f=(p=p||!1===u)?c:u;if(f&&"boolean"!=typeof f&&!(0,n.isAnimationControls)(f)){let e=Array.isArray(f)?f:[f];for(let i=0;i<e.length;i++){let s=(0,r.resolveVariantFromProps)(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=p?e.length-1:0;e=e[t]}null!==e&&(l[t]=e)}for(let e in t)l[e]=t[e]}}}return l}(o,a,l,t),renderState:e()}})(t,e,c,d);return u?m():(0,h.useConstant)(m)};var c=t.i(86549);let d=u({scrapeMotionValuesFromProps:e.scrapeHTMLMotionValuesFromProps,createRenderState:c.createHtmlRenderState});t.s(["useHTMLVisualState",()=>d],11805);var m=t.i(67926),m=m,p=t.i(11587);let f=u({scrapeMotionValuesFromProps:m.scrapeMotionValuesFromProps,createRenderState:p.createSvgRenderState});t.s(["useSVGVisualState",()=>f],1664)},92936,t=>{"use strict";let e="u">typeof window;t.s(["isBrowser",()=>e])},76948,13565,21967,83640,35043,4035,25522,t=>{"use strict";var e=t.i(17218);let i={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"]},s=!1;function n(){return!function(){if(s)return;let t={};for(let e in i)t[e]={isEnabled:t=>i[e].some(e=>!!t[e])};(0,e.setFeatureDefinitions)(t),s=!0}(),(0,e.getFeatureDefinitions)()}function r(t){let i=n();for(let e in t)i[e]={...i[e],...t[e]};(0,e.setFeatureDefinitions)(i)}t.s(["getInitializedFeatureDefinitions",()=>n],76948),t.s(["loadFeatures",()=>r],13565);let o=Symbol.for("motionComponentSymbol");t.s(["motionComponentSymbol",()=>o],21967);var a=t.i(71645);function l(t,e,i){let s=(0,a.useRef)(i);(0,a.useInsertionEffect)(()=>{s.current=i});let n=(0,a.useRef)(null);return(0,a.useCallback)(i=>{i&&t.onMount?.(i),e&&(i?e.mount(i):e.unmount());let r=s.current;if("function"==typeof r)if(i){let t=r(i);"function"==typeof t&&(n.current=t)}else n.current?(n.current(),n.current=null):r(i);else r&&(r.current=i)},[e])}t.s(["useMotionRef",()=>l],83640);let h="data-"+(0,t.i(93787).camelToDash)("framerAppearId");t.s(["optimizedAppearDataAttribute",()=>h],35043);let u=(0,a.createContext)({});function c(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}t.s(["SwitchLayoutGroupContext",()=>u],4035),t.s(["isRefObject",()=>c],25522)},74008,t=>{"use strict";var e=t.i(71645);let i=t.i(92936).isBrowser?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",()=>i])},7051,42098,87333,80538,16896,38638,91559,83920,39011,23070,55559,19880,82774,39676,37541,52101,t=>{"use strict";t.i(47167);var e=t.i(43476),i=t.i(71645),s=t.i(31178),n=t.i(48070),r=t.i(37806),o=t.i(88291),a=t.i(82474),l=t.i(8576),h=t.i(44966),u=t.i(11805),c=t.i(1664),d=t.i(92936),m=t.i(76948),p=t.i(13565),f=t.i(21967),v=t.i(83640),g=t.i(35043),y=t.i(21476),x=t.i(4035),T=t.i(25522),w=t.i(74008);function P(t,{forwardMotionProps:b=!1,type:S}={},M,A){M&&(0,p.loadFeatures)(M);let V=S?"svg"===S:(0,h.isSVGComponent)(t),E=V?c.useSVGVisualState:u.useHTMLVisualState;function C(h,u){let c,p={...(0,i.useContext)(r.MotionConfigContext),...h,layoutId:function({layoutId:t}){let e=(0,i.useContext)(s.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(h)},{isStatic:f}=p,P=(0,a.useCreateMotionContext)(h),S=E(h,f);if(!f&&d.isBrowser){(0,i.useContext)(n.LazyContext).strict;let e=function(t){let{drag:e,layout:i}=(0,m.getInitializedFeatureDefinitions)();if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(p);c=e.MeasureLayout,P.visualElement=function(t,e,s,a,l,h){let{visualElement:u}=(0,i.useContext)(o.MotionContext),c=(0,i.useContext)(n.LazyContext),d=(0,i.useContext)(y.PresenceContext),m=(0,i.useContext)(r.MotionConfigContext),p=m.reducedMotion,f=m.skipAnimations,v=(0,i.useRef)(null),P=(0,i.useRef)(!1);a=a||c.renderer,!v.current&&a&&(v.current=a(t,{visualState:e,parent:u,props:s,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p,skipAnimations:f,isSVG:h}),P.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));let b=v.current,S=(0,i.useContext)(x.SwitchLayoutGroupContext);b&&!b.projection&&l&&("html"===b.type||"svg"===b.type)&&function(t,e,i,s){let{layoutId:n,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutCrossfade:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:r,alwaysMeasureLayout:!!o||a&&(0,T.isRefObject)(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:l,layoutRoot:h})}(v.current,s,l,S);let M=(0,i.useRef)(!1);(0,i.useInsertionEffect)(()=>{b&&M.current&&b.update(s,d)});let A=s[g.optimizedAppearDataAttribute],V=(0,i.useRef)(!!A&&!window.MotionHandoffIsComplete?.(A)&&window.MotionHasOptimisedAnimation?.(A));return(0,w.useIsomorphicLayoutEffect)(()=>{P.current=!0,b&&(M.current=!0,window.MotionIsMounted=!0,b.updateFeatures(),b.scheduleRenderMicrotask(),V.current&&b.animationState&&b.animationState.animateChanges())}),(0,i.useEffect)(()=>{b&&(!V.current&&b.animationState&&b.animationState.animateChanges(),V.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(A)}),V.current=!1),b.enteringChildren=void 0)}),b}(t,S,p,A,e.ProjectionNode,V)}return(0,e.jsxs)(o.MotionContext.Provider,{value:P,children:[c&&P.visualElement?(0,e.jsx)(c,{visualElement:P.visualElement,...p}):null,(0,l.useRender)(t,h,(0,v.useMotionRef)(S,P.visualElement,u),S,f,b,V)]})}C.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let D=(0,i.forwardRef)(C);return D[f.motionComponentSymbol]=t,D}function b(t,e){if("u"<typeof Proxy)return P;let i=new Map,s=(i,s)=>P(i,s,t,e);return new Proxy((t,e)=>s(t,e),{get:(n,r)=>"create"===r?s:(i.has(r)||i.set(r,P(r,void 0,t,e)),i.get(r))})}t.s(["createMotionProxy",()=>b],7051);class S{constructor(t){this.isMounted=!1,this.node=t}update(){}}t.s(["Feature",()=>S],42098);var M=t.i(86579);function A(t,e,i){let s=t.getProps();return(0,M.resolveVariantFromProps)(s,e,void 0!==i?i:s.custom,t)}function V(t,e){if(t?.inherit&&e){let{inherit:i,...s}=t;return{...e,...s}}return t}function E(t,e){let i=t?.[e]??t?.default??t;return i!==t?V(i,t):i}t.s(["getValueTransition",()=>E],87333);var C=t.i(64440),D=t.i(86427)