import{B as ir,C as rt,D as S,E as pe,a as E,b as xr,c as Re,d as Vr,e as vo,f as $n,g as he,h as kl,i as qv,j as Ce,k as Ct,l as Xv,m as jf,n as Ee,o as H,p as O,r as A,s as jn,u as tt,v as We,w as Y,y as M,z as we}from"./chunk-SBD5A77L.mjs";import{a as tn,b as Hv,c as go,d as Wv,e as Uv,f as Gv,g as yt,h as C,i as de,j as Lr,k as $f,l as Yt}from"./chunk-HZL4YIMB.mjs";import{a as jv,b as He,c as F}from"./chunk-XNQNUANK.mjs";var _F=tn({"../../../node_modules/@emotion/memoize/dist/memoize.browser.cjs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function t(r){var n={};return function(i){return n[i]===void 0&&(n[i]=r(i)),n[i]}}e.default=t}}),MF=tn({"../../../node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.cjs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function t(o){return o&&typeof o=="object"&&"default"in o?o.default:o}var r=t(_F()),n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=r(function(o){return n.test(o)||o.charCodeAt(0)===111&&o.charCodeAt(1)===110&&o.charCodeAt(2)<91});e.default=i}}),Ha=he({}),jl=typeof F<"u",Di=jl?We:A,Mo=he(null);function Hl(e,t){e.indexOf(t)===-1&&e.push(t)}function Ka(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}function v0([...e],t,r){let n=t<0?e.length+t:t;if(n>=0&&nr>t?t:r{},ar=()=>{},sr={},wd=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Sd(e){return typeof e=="object"&&e!==null}var kd=e=>/^0[^.\s]+$/u.test(e);function Wl(e){let t;return()=>(t===void 0&&(t=e()),t)}var $t=e=>e,OF=(e,t)=>r=>t(e(r)),Lo=(...e)=>e.reduce(OF),Un=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n},Ul=class{constructor(){this.subscriptions=[]}add(e){return Hl(this.subscriptions,e),()=>Ka(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](e,t,r);else for(let i=0;ie*1e3,Dr=e=>e/1e3;function Gl(e,t){return t?e*(1e3/t):0}var y0=(e,t,r)=>{let n=t-e;return((r-e)%n+n)%n+e},b0=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,LF=1e-7,VF=12;function AF(e,t,r,n,i){let o,a,s=0;do a=t+(r-t)/2,o=b0(a,n,i)-e,o>0?r=a:t=a;while(Math.abs(o)>LF&&++sAF(o,0,1,e,r);return o=>o===0||o===1?o:b0(i(o),t,n)}var Cd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Td=e=>t=>1-e(1-t),Rd=Vo(.33,1.53,.69,.99),ql=Td(Rd),Ed=Cd(ql),Fd=e=>(e*=2)<1?.5*ql(e):.5*(2-Math.pow(2,-10*(e-1))),Xl=e=>1-Math.sin(Math.acos(e)),Pd=Td(Xl),Id=Cd(Xl),x0=Vo(.42,0,1,1),w0=Vo(0,0,.58,1),_d=Vo(.42,0,.58,1);var Md=e=>Array.isArray(e)&&typeof e[0]!="number";function Od(e,t){return Md(e)?e[y0(0,e.length,t)]:e}var Ld=e=>Array.isArray(e)&&typeof e[0]=="number",Yv={linear:$t,easeIn:x0,easeInOut:_d,easeOut:w0,circIn:Xl,circInOut:Id,circOut:Pd,backIn:ql,backInOut:Ed,backOut:Rd,anticipate:Fd},DF=e=>typeof e=="string",Ll=e=>{if(Ld(e)){ar(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return Vo(t,r,n,i)}else if(DF(e))return ar(Yv[e]!==void 0,`Invalid easing type '${e}'`),Yv[e];return e},Ar={value:null,addProjectionMetrics:null},Ba=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function BF(e,t){let r=new Set,n=new Set,i=!1,o=!1,a=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},l=0;function c(f){a.has(f)&&(u.schedule(f),e()),l++,f(s)}let u={schedule:(f,d=!1,h=!1)=>{let g=h&&i?r:n;return d&&a.add(f),g.has(f)||g.add(f),f},cancel:f=>{n.delete(f),a.delete(f)},process:f=>{if(s=f,i){o=!0;return}i=!0,[r,n]=[n,r],r.forEach(c),t&&Ar.value&&Ar.value.frameloop[t].push(l),l=0,r.clear(),i=!1,o&&(o=!1,u.process(f))}};return u}var zF=40;function Vd(e,t){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,a=Ba.reduce((y,x)=>(y[x]=BF(o,t?x:void 0),y),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:f,preRender:d,render:h,postRender:p}=a,g=()=>{let y=sr.useManualTiming?i.timestamp:performance.now();r=!1,sr.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(y-i.timestamp,zF),1)),i.timestamp=y,i.isProcessing=!0,s.process(i),l.process(i),c.process(i),u.process(i),f.process(i),d.process(i),h.process(i),p.process(i),i.isProcessing=!1,r&&t&&(n=!1,e(g))},b=()=>{r=!0,n=!0,i.isProcessing||e(g)};return{schedule:Ba.reduce((y,x)=>{let k=a[x];return y[x]=(w,R=!1,T=!1)=>(r||b(),k.schedule(w,R,T)),y},{}),cancel:y=>{for(let x=0;x(El===void 0&&Nt.set(ut.isProcessing||sr.useManualTiming?ut.timestamp:performance.now()),El),set:e=>{El=e,queueMicrotask(NF)}},Wn={layout:0,mainThread:0,waapi:0},S0=e=>t=>typeof t=="string"&&t.startsWith(e),Yl=S0("--"),$F=S0("var(--"),Kl=e=>$F(e)?jF.test(e.split("/*")[0].trim()):!1,jF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Bi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Fo={...Bi,transform:e=>zr(0,1,e)},za={...Bi,default:1},Na=e=>Math.round(e*1e5)/1e5,Ad=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function HF(e){return e==null}var WF=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Dd=(e,t)=>r=>!!(typeof r=="string"&&WF.test(r)&&r.startsWith(e)||t&&!HF(r)&&Object.prototype.hasOwnProperty.call(r,t)),k0=(e,t,r)=>n=>{if(typeof n!="string")return n;let[i,o,a,s]=n.match(Ad);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},UF=e=>zr(0,255,e),Fl={...Bi,transform:e=>Math.round(UF(e))},Hn={test:Dd("rgb","red"),parse:k0("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Fl.transform(e)+", "+Fl.transform(t)+", "+Fl.transform(r)+", "+Na(Fo.transform(n))+")"};function GF(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}var Vl={test:Dd("#"),parse:GF,transform:Hn.transform},Qa=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),gn=Qa("deg"),Br=Qa("%"),Q=Qa("px"),C0=Qa("vh"),T0=Qa("vw"),Jf={...Br,parse:e=>Br.parse(e)/100,transform:e=>Br.transform(e*100)},_i={test:Dd("hsl","hue"),parse:k0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Br.transform(Na(t))+", "+Br.transform(Na(r))+", "+Na(Fo.transform(n))+")"},Tt={test:e=>Hn.test(e)||Vl.test(e)||_i.test(e),parse:e=>Hn.test(e)?Hn.parse(e):_i.test(e)?_i.parse(e):Vl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Hn.transform(e):_i.transform(e)},qF=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function XF(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ad))==null?void 0:t.length)||0)+(((r=e.match(qF))==null?void 0:r.length)||0)>0}var R0="number",E0="color",YF="var",KF="var(",Kv="${}",QF=/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 Po(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[],o=0,s=t.replace(QF,l=>(Tt.test(l)?(n.color.push(o),i.push(E0),r.push(Tt.parse(l))):l.startsWith(KF)?(n.var.push(o),i.push(YF),r.push(l)):(n.number.push(o),i.push(R0),r.push(parseFloat(l))),++o,Kv)).split(Kv);return{values:r,split:s,indexes:n,types:i}}function F0(e){return Po(e).values}function P0(e){let{split:t,types:r}=Po(e),n=t.length;return i=>{let o="";for(let a=0;atypeof e=="number"?0:e;function JF(e){let t=F0(e);return P0(e)(t.map(ZF))}var vn={test:XF,parse:F0,createTransformer:P0,getAnimatableNone:JF};function Hf(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function I0({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{let s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;i=Hf(l,s,e+1/3),o=Hf(l,s,e),a=Hf(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}function Wa(e,t){return r=>r>0?t:e}var Oe=(e,t,r)=>e+(t-e)*r,Pl=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},eP=[Vl,Hn,_i],tP=e=>eP.find(t=>t.test(e));function Qv(e){let t=tP(e);if(Oo(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===_i&&(r=I0(r)),r}var ed=(e,t)=>{let r=Qv(e),n=Qv(t);if(!r||!n)return Wa(e,t);let i={...r};return o=>(i.red=Pl(r.red,n.red,o),i.green=Pl(r.green,n.green,o),i.blue=Pl(r.blue,n.blue,o),i.alpha=Oe(r.alpha,n.alpha,o),Hn.transform(i))},Al=new Set(["none","hidden"]);function _0(e,t){return Al.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function rP(e,t){return r=>Oe(e,t,r)}function Ql(e){return typeof e=="number"?rP:typeof e=="string"?Kl(e)?Wa:Tt.test(e)?ed:O0:Array.isArray(e)?Bd:typeof e=="object"?Tt.test(e)?ed:M0:Wa}function Bd(e,t){let r=[...e],n=r.length,i=e.map((o,a)=>Ql(o)(o,t[a]));return o=>{for(let a=0;a{for(let o in n)r[o]=n[o](i);return r}}function nP(e,t){let r=[],n={color:0,var:0,number:0};for(let i=0;i{let r=vn.createTransformer(t),n=Po(e),i=Po(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?Al.has(e)&&!i.values.length||Al.has(t)&&!n.values.length?_0(e,t):Lo(Bd(nP(n,i),i.values),r):(Oo(!0,`Complex values '${e}' and '${t}' 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.`),Wa(e,t))};function zd(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?Oe(e,t,r):Ql(e)(e,t)}var Nd=(e,t,r=10)=>{let n="",i=Math.max(Math.round(t/r),2);for(let o=0;o=Ua?1/0:t}function $d(e,t=100,r){let n=r({...e,keyframes:[0,t]}),i=Math.min(Zl(n),Ua);return{type:"keyframes",ease:o=>n.next(i*o).value/t,duration:Dr(i)}}var iP=5;function L0(e,t,r){let n=Math.max(t-iP,0);return Gl(r-e(n),t-n)}var Ge={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Wf=.001;function oP({duration:e=Ge.duration,bounce:t=Ge.bounce,velocity:r=Ge.velocity,mass:n=Ge.mass}){let i,o;Oo(e<=or(Ge.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=zr(Ge.minDamping,Ge.maxDamping,a),e=zr(Ge.minDuration,Ge.maxDuration,Dr(e)),a<1?(i=c=>{let u=c*a,f=u*e,d=u-r,h=td(c,a),p=Math.exp(-f);return Wf-d/h*p},o=c=>{let f=c*a*e,d=f*r+r,h=Math.pow(a,2)*Math.pow(c,2)*e,p=Math.exp(-f),g=td(Math.pow(c,2),a);return(-i(c)+Wf>0?-1:1)*((d-h)*p)/g}):(i=c=>{let u=Math.exp(-c*e),f=(c-r)*e+1;return-Wf+u*f},o=c=>{let u=Math.exp(-c*e),f=(r-c)*(e*e);return u*f});let s=5/e,l=sP(i,o,s);if(e=or(e),isNaN(l))return{stiffness:Ge.stiffness,damping:Ge.damping,duration:e};{let c=Math.pow(l,2)*n;return{stiffness:c,damping:a*2*Math.sqrt(n*c),duration:e}}}var aP=12;function sP(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function uP(e){let t={velocity:Ge.velocity,stiffness:Ge.stiffness,damping:Ge.damping,mass:Ge.mass,isResolvedFromDuration:!1,...e};if(!Zv(e,cP)&&Zv(e,lP))if(e.visualDuration){let r=e.visualDuration,n=2*Math.PI/(r*1.2),i=n*n,o=2*zr(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Ge.mass,stiffness:i,damping:o}}else{let r=oP(e);t={...t,...r,mass:Ge.mass},t.isResolvedFromDuration=!0}return t}function Ai(e=Ge.visualDuration,t=Ge.bounce){let r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:n,restDelta:i}=r,o=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],s={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:f,velocity:d,isResolvedFromDuration:h}=uP({...r,velocity:-Dr(r.velocity||0)}),p=d||0,g=c/(2*Math.sqrt(l*u)),b=a-o,m=Dr(Math.sqrt(l/u)),v=Math.abs(b)<5;n||(n=v?Ge.restSpeed.granular:Ge.restSpeed.default),i||(i=v?Ge.restDelta.granular:Ge.restDelta.default);let y;if(g<1){let k=td(m,g);y=w=>{let R=Math.exp(-g*m*w);return a-R*((p+g*m*b)/k*Math.sin(k*w)+b*Math.cos(k*w))}}else if(g===1)y=k=>a-Math.exp(-m*k)*(b+(p+m*b)*k);else{let k=m*Math.sqrt(g*g-1);y=w=>{let R=Math.exp(-g*m*w),T=Math.min(k*w,300);return a-R*((p+g*m*b)*Math.sinh(T)+k*b*Math.cosh(T))/k}}let x={calculatedDuration:h&&f||null,next:k=>{let w=y(k);if(h)s.done=k>=f;else{let R=k===0?p:0;g<1&&(R=k===0?or(p):L0(y,k,w));let T=Math.abs(R)<=n,P=Math.abs(a-w)<=i;s.done=T&&P}return s.value=s.done?a:w,s},toString:()=>{let k=Math.min(Zl(x),Ua),w=Nd(R=>x.next(k*R).value,k,30);return k+"ms "+w},toTransition:()=>{}};return x}Ai.applyToOptions=e=>{let t=$d(e,100,Ai);return e.ease=t.ease,e.duration=or(t.duration),e.type="keyframes",e};function Dl({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){let f=e[0],d={done:!1,value:f},h=T=>s!==void 0&&Tl,p=T=>s===void 0?l:l===void 0||Math.abs(s-T)-g*Math.exp(-T/n),y=T=>m+v(T),x=T=>{let P=v(T),I=y(T);d.done=Math.abs(P)<=c,d.value=d.done?m:I},k,w,R=T=>{h(d.value)&&(k=T,w=Ai({keyframes:[d.value,p(d.value)],velocity:L0(y,T,d.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return R(0),{calculatedDuration:null,next:T=>{let P=!1;return!w&&k===void 0&&(P=!0,x(T),R(T)),k!==void 0&&T>=k?w.next(T-k):(!P&&x(T),d)}}}function fP(e,t,r){let n=[],i=r||sr.mix||zd,o=e.length-1;for(let a=0;at[0];if(o===2&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=fP(t,n,i),l=s.length,c=u=>{if(a&&u1)for(;fc(zr(e[0],e[o-1],u)):c}function jd(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=Un(0,t,n);e.push(Oe(r,1,i))}}function Jl(e){let t=[0];return jd(t,e.length-1),t}function V0(e,t){return e.map(r=>r*t)}function A0(e,t){return e.map(()=>t||_d).splice(0,e.length-1)}function To({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let i=Md(n)?n.map(Ll):Ll(n),o={done:!1,value:t[0]},a=V0(r&&r.length===t.length?r:Jl(t),e),s=Ao(a,t,{ease:Array.isArray(i)?i:A0(t,i)});return{calculatedDuration:e,next:l=>(o.value=s(l),o.done=l>=e,o)}}var dP=e=>{let t=({timestamp:r})=>e(r);return{start:(r=!0)=>Z.update(t,r),stop:()=>jt(t),now:()=>ut.isProcessing?ut.timestamp:Nt.now()}},hP=e=>e!==null;function Hd(e,{repeat:t,repeatType:r="loop"},n,i=1){let o=e.filter(hP),s=i<0||t&&r!=="loop"&&t%2===1?0:o.length-1;return!s||n===void 0?o[s]:n}var pP={decay:Dl,inertia:Dl,tween:To,keyframes:To,spring:Ai};function D0(e){typeof e.type=="string"&&(e.type=pP[e.type])}var Wd=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},mP=e=>e/100,Do=class extends Wd{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var t,r;let{motionValue:n}=this.options;n&&n.updatedAt!==Nt.now()&&this.tick(Nt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(t=this.options).onStop)==null||r.call(t))},Wn.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;D0(e);let{type:t=To,repeat:r=0,repeatDelay:n=0,repeatType:i,velocity:o=0}=e,{keyframes:a}=e,s=t||To;s!==To&&typeof a[0]!="number"&&(this.mixKeyframes=Lo(mP,zd(a[0],a[1])),a=[0,100]);let l=s({...e,keyframes:a});i==="mirror"&&(this.mirroredGenerator=s({...e,keyframes:[...a].reverse(),velocity:-o})),l.calculatedDuration===null&&(l.calculatedDuration=Zl(l));let{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:r,totalDuration:n,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:s}=this;if(this.startTime===null)return r.next(0);let{delay:l=0,keyframes:c,repeat:u,repeatType:f,repeatDelay:d,type:h,onUpdate:p,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let b=this.currentTime-l*(this.playbackSpeed>=0?1:-1),m=this.playbackSpeed>=0?b<0:b>n;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let v=this.currentTime,y=r;if(u){let R=Math.min(this.currentTime,n)/a,T=Math.floor(R),P=R%1;!P&&R>=1&&(P=1),P===1&&T--,T=Math.min(T,u+1),!!(T%2)&&(f==="reverse"?(P=1-P,d&&(P-=d/a)):f==="mirror"&&(y=o)),v=zr(0,1,P)*a}let x=m?{done:!1,value:c[0]}:y.next(v);i&&(x.value=i(x.value));let{done:k}=x;!m&&s!==null&&(k=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let w=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return w&&h!==Dl&&(x.value=Hd(c,this.options,g,this.speed)),p&&p(x.value),w&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return Dr(this.calculatedDuration)}get time(){return Dr(this.currentTime)}set time(e){var t;e=or(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(t=this.driver)==null||t.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Nt.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Dr(this.currentTime))}play(){var e,t;if(this.isStopped)return;let{driver:r=dP,startTime:n}=this.options;this.driver||(this.driver=r(o=>this.tick(o))),(t=(e=this.options).onPlay)==null||t.call(e);let i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Nt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,t;this.notifyFinished(),this.teardown(),this.state="finished",(t=(e=this.options).onComplete)==null||t.call(e)}cancel(){var e,t;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(t=(e=this.options).onCancel)==null||t.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,Wn.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var t;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(t=this.driver)==null||t.stop(),e.observe(this)}};function B0(e){return new Do(e)}function z0(e){for(let t=1;te*180/Math.PI,rd=e=>{let t=Mi(Math.atan2(e[1],e[0]));return nd(t)},gP={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:rd,rotateZ:rd,skewX:e=>Mi(Math.atan(e[1])),skewY:e=>Mi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},nd=e=>(e=e%360,e<0&&(e+=360),e),Jv=rd,ey=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ty=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),vP={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ey,scaleY:ty,scale:e=>(ey(e)+ty(e))/2,rotateX:e=>nd(Mi(Math.atan2(e[6],e[5]))),rotateY:e=>nd(Mi(Math.atan2(-e[2],e[0]))),rotateZ:Jv,rotate:Jv,skewX:e=>Mi(Math.atan(e[4])),skewY:e=>Mi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Bl(e){return e.includes("scale")?1:0}function zl(e,t){if(!e||e==="none")return Bl(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),n,i;if(r)n=vP,i=r;else{let s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=gP,i=s}if(!i)return Bl(t);let o=n[t],a=i[1].split(",").map(yP);return typeof o=="function"?o(a):a[o]}var N0=(e,t)=>{let{transform:r="none"}=getComputedStyle(e);return zl(r,t)};function yP(e){return parseFloat(e.trim())}var zi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gn=new Set(zi),ry=e=>e===Bi||e===Q,bP=new Set(["x","y","z"]),xP=zi.filter(e=>!bP.has(e));function wP(e){let t=[];return xP.forEach(r=>{let n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}var Oi={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>zl(t,"x"),y:(e,{transform:t})=>zl(t,"y")};Oi.translateX=Oi.x;Oi.translateY=Oi.y;var Li=new Set,id=!1,od=!1,ad=!1;function $0(){if(od){let e=Array.from(Li).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{let i=wP(n);i.length&&(r.set(n,i),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();let i=r.get(n);i&&i.forEach(([o,a])=>{var s;(s=n.getValue(o))==null||s.set(a)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&F.scrollTo(0,n.suspendedScrollY)})}od=!1,id=!1,Li.forEach(e=>e.complete(ad)),Li.clear()}function j0(){Li.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(od=!0)})}function H0(){ad=!0,j0(),$0(),ad=!1}var ec=class{constructor(e,t,r,n,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Li.add(this),id||(id=!0,Z.read(j0),Z.resolveKeyframes($0))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;if(e[0]===null){let i=n?.get(),o=e[e.length-1];if(i!==void 0)e[0]=i;else if(r&&t){let a=r.readValue(t,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),n&&i===void 0&&n.set(e[0])}z0(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Li.delete(this)}cancel(){this.state==="scheduled"&&(Li.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}},SP=e=>e.startsWith("--");function W0(e,t,r){SP(t)?e.style.setProperty(t,r):e.style[t]=r}var Ud=Wl(()=>F.ScrollTimeline!==void 0),U0={};function kP(e,t){let r=Wl(e);return()=>U0[t]??r()}var Gd=kP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),bo=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,sd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bo([0,.65,.55,1]),circOut:bo([.55,0,1,.45]),backIn:bo([.31,.01,.66,-.59]),backOut:bo([.33,1.53,.69,.99])};function qd(e,t){if(e)return typeof e=="function"?Gd()?Nd(e,t):"ease-out":Ld(e)?bo(e):Array.isArray(e)?e.map(r=>qd(r,t)||sd.easeOut):sd[e]}function G0(e,t,r,{delay:n=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},c=void 0){let u={[t]:r};l&&(u.offset=l);let f=qd(s,i);Array.isArray(f)&&(u.easing=f),Ar.value&&Wn.waapi++;let d={delay:n,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"};c&&(d.pseudoElement=c);let h=e.animate(u,d);return Ar.value&&h.finished.finally(()=>{Wn.waapi--}),h}function tc(e){return typeof e=="function"&&"applyToOptions"in e}function CP({type:e,...t}){return tc(e)&&Gd()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var q0=class extends Wd{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:r,keyframes:n,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,ar(typeof e.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);let l=CP(e);this.animation=G0(t,r,n,l,i),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let c=Hd(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):W0(t,r,c),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,t;(t=(e=this.animation).finish)==null||t.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,t;this.isPseudoElement||(t=(e=this.animation).commitStyles)==null||t.call(e)}get duration(){var e,t;let r=((t=(e=this.animation.effect)==null?void 0:e.getComputedTiming)==null?void 0:t.call(e).duration)||0;return Dr(Number(r))}get time(){return Dr(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=or(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&Ud()?(this.animation.timeline=e,$t):t(this)}},X0={anticipate:Fd,backInOut:Ed,circInOut:Id};function TP(e){return e in X0}function RP(e){typeof e.ease=="string"&&TP(e.ease)&&(e.ease=X0[e.ease])}var ny=10,Y0=class extends q0{constructor(e){RP(e),D0(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:r,onComplete:n,element:i,...o}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let a=new Do({...o,autoplay:!1}),s=or(this.finishedTime??this.time);t.setWithVelocity(a.sample(s-ny).value,a.sample(s).value,ny),a.stop()}};function Za(e){return Sd(e)&&"offsetHeight"in e}var EP=new Set(["opacity","clipPath","filter","transform"]),FP=Wl(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function K0(e){var t;let{motionValue:r,name:n,repeatDelay:i,repeatType:o,damping:a,type:s}=e;if(!Za((t=r?.owner)==null?void 0:t.current))return!1;let{onUpdate:l,transformTemplate:c}=r.owner.getProps();return FP()&&n&&EP.has(n)&&(n!=="transform"||!c)&&!l&&!i&&o!=="mirror"&&a!==0&&s!=="inertia"}var iy=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(vn.test(e)||e==="0")&&!e.startsWith("url("));function PP(e){let t=e[0];if(e.length===1)return!0;for(let r=0;r{var p,g;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=Nt.now();let d={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:i,repeatType:o,name:s,motionValue:l,element:c,...u},h=c?.KeyframeResolver||ec;this.keyframeResolver=new h(a,(p,g,b)=>this.onKeyframesResolved(p,g,d,!b),s,l,c),(f=this.keyframeResolver)==null||f.scheduleResolve()}onKeyframesResolved(e,t,r,n){this.keyframeResolver=void 0;let{name:i,type:o,velocity:a,delay:s,isHandoff:l,onUpdate:c}=r;this.resolvedAt=Nt.now(),IP(e,i,o,a)||((sr.instantAnimations||!s)&&c?.(Hd(e,r,t)),e[0]=e[e.length-1],r.duration=0,r.repeat=0);let f={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>_P?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},d=!l&&K0(f)?new Y0({...f,element:f.motionValue.owner.current}):new Do(f);d.finished.then(()=>this.notifyFinished()).catch($t),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),H0()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}},Z0=class{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;rr.attachTimeline(e));return()=>{t.forEach((r,n)=>{r&&r(),this.animations[n].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;tt[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},J0=class extends Z0{then(e,t){return this.finished.finally(e).then(()=>{})}};var MP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function eb(e){let t=MP.exec(e);if(!t)return[,];let[,r,n,i]=t;return[`--${r??n}`,i]}var OP=4;function Xd(e,t,r=1){ar(r<=OP,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=eb(e);if(!n)return;let o=F.getComputedStyle(t).getPropertyValue(n);if(o){let a=o.trim();return wd(a)?parseFloat(a):a}return Kl(i)?Xd(i,t,r+1):i}function rc(e,t){return e?.[t]??e?.default??e}var Yd=new Set(["width","height","top","left","right","bottom",...zi]),Kd=e=>t=>t.test(e),LP={test:e=>e==="auto",parse:e=>e},Qd=[Bi,Q,Br,gn,T0,C0,LP],ld=e=>Qd.find(Kd(e)),tb={rotate:gn,rotateX:gn,rotateY:gn,rotateZ:gn,scale:za,scaleX:za,scaleY:za,scaleZ:za,skew:gn,skewX:gn,skewY:gn,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:Fo,originX:Jf,originY:Jf,originZ:Q},oy={...Bi,transform:Math.round},nc={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,...tb,zIndex:oy,fillOpacity:Fo,strokeOpacity:Fo,numOctaves:oy},VP=new Set(["brightness","contrast","saturate","opacity"]);function AP(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(Ad)||[];if(!n)return e;let i=r.replace(n,""),o=VP.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}var DP=/\b([a-z-]*)\(.*?\)/gu,cd={...vn,getAnimatableNone:e=>{let t=e.match(DP);return t?t.map(AP).join(" "):e}},rb={...nc,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:cd,WebkitFilter:cd},Zd=e=>rb[e];function Jd(e,t){let r=Zd(e);return r!==cd&&(r=vn),r.getAnimatableNone?r.getAnimatableNone(t):void 0}function BP(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||kd(e):!0}var zP=new Set(["auto","none","0"]);function NP(e,t,r){let n=0,i;for(;n{t.getValue(s).set(l)}),this.resolveNoneKeyframes()}};var ib=new Set(["opacity","clipPath","filter","transform"]);function Ja(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;t&&(n=t.current);let i=r?.[e]??n.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}var eh=(e,t)=>t&&typeof e=="number"?t.transform(e):e;var ay=30,$P=e=>!isNaN(parseFloat(e)),Ro={current:void 0},Bo=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,n=!0)=>{var i,o;let a=Nt.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(let s of this.dependents)s.dirty();n&&((o=this.events.renderRequest)==null||o.notify(this.current))},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Nt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=$P(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Ul);let r=this.events[e].add(t);return e==="change"?()=>{r(),Z.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){!t||!this.passiveEffect?this.updateAndNotify(e,t):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Ro.current&&Ro.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Nt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ay)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,ay);return Gl(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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(){var e,t;(e=this.dependents)==null||e.clear(),(t=this.events.destroy)==null||t.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function qe(e,t){return new Bo(e,t)}var aH=Q.transform;var{schedule:ic,cancel:jP}=Vd(queueMicrotask,!1),kr={x:!1,y:!1};function th(){return kr.x||kr.y}function ob(e){return e==="x"||e==="y"?kr[e]?null:(kr[e]=!0,()=>{kr[e]=!1}):kr.x||kr.y?null:(kr.x=kr.y=!0,()=>{kr.x=kr.y=!1})}function ab(e,t){let r=Ja(e),n=new AbortController,i={passive:!0,...t,signal:n.signal};return[r,i,()=>n.abort()]}function sy(e){return!(e.pointerType==="touch"||th())}function sb(e,t,r={}){let[n,i,o]=ab(e,r),a=s=>{if(!sy(s))return;let{target:l}=s,c=t(l,s);if(typeof c!="function"||!l)return;let u=f=>{sy(f)&&(c(f),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return n.forEach(s=>{s.addEventListener("pointerenter",a,i)}),o}var rh=(e,t)=>t?e===t?!0:rh(e,t.parentElement):!1,oc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,HP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function WP(e){return HP.has(e.tagName)||e.tabIndex!==-1}var Il=new WeakSet;function ly(e){return t=>{t.key==="Enter"&&e(t)}}function Uf(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var UP=(e,t)=>{let r=e.currentTarget;if(!r)return;let n=ly(()=>{if(Il.has(r))return;Uf(r,"down");let i=ly(()=>{Uf(r,"up")}),o=()=>Uf(r,"cancel");r.addEventListener("keyup",i,t),r.addEventListener("blur",o,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function cy(e){return oc(e)&&!th()}function lb(e,t,r={}){let[n,i,o]=ab(e,r),a=s=>{let l=s.currentTarget;if(!cy(s))return;Il.add(l);let c=t(l,s),u=(h,p)=>{F.removeEventListener("pointerup",f),F.removeEventListener("pointercancel",d),Il.has(l)&&Il.delete(l),cy(h)&&typeof c=="function"&&c(h,{success:p})},f=h=>{u(h,l===F||l===document||r.useGlobalTarget||rh(l,h.target))},d=h=>{u(h,!1)};F.addEventListener("pointerup",f,i),F.addEventListener("pointercancel",d,i)};return n.forEach(s=>{(r.useGlobalTarget?F:s).addEventListener("pointerdown",a,i),Za(s)&&(s.addEventListener("focus",c=>UP(c,i)),!WP(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),o}function es(e){return Sd(e)&&"ownerSVGElement"in e}var _l=new WeakMap,yo,cb=(e,t,r)=>(n,i)=>i&&i[0]?i[0][e+"Size"]:es(n)&&"getBBox"in n?n.getBBox()[t]:n[r],GP=cb("inline","width","offsetWidth"),qP=cb("block","height","offsetHeight");function XP({target:e,borderBoxSize:t}){var r;(r=_l.get(e))==null||r.forEach(n=>{n(e,{get width(){return GP(e,t)},get height(){return qP(e,t)}})})}function YP(e){e.forEach(XP)}function KP(){typeof ResizeObserver>"u"||(yo=new ResizeObserver(YP))}function QP(e,t){yo||KP();let r=Ja(e);return r.forEach(n=>{let i=_l.get(n);i||(i=new Set,_l.set(n,i)),i.add(t),yo?.observe(n)}),()=>{r.forEach(n=>{let i=_l.get(n);i?.delete(t),i?.size||yo?.unobserve(n)})}}var Ml=new Set,xo;function ZP(){xo=()=>{let e={get width(){return F.innerWidth},get height(){return F.innerHeight}};Ml.forEach(t=>t(e))},F.addEventListener("resize",xo)}function JP(e){return Ml.add(e),xo||ZP(),()=>{Ml.delete(e),!Ml.size&&typeof xo=="function"&&(F.removeEventListener("resize",xo),xo=void 0)}}function ub(e,t){return typeof e=="function"?JP(e):QP(e,t)}function nh(e,t){let r,n=()=>{let{currentTime:i}=t,a=(i===null?0:i.value)/100;r!==a&&e(a),r=a};return Z.preUpdate(n,!0),()=>jt(n)}function ih(e){return es(e)&&e.tagName==="svg"}function zo(...e){let t=!Array.isArray(e[0]),r=t?0:-1,n=e[0+r],i=e[1+r],o=e[2+r],a=e[3+r],s=Ao(i,o,a);return t?s(n):s}var $e=e=>!!(e&&e.getVelocity);function fb(e,t,r){let n=e.get(),i=null,o=n,a,s=typeof n=="string"?n.replace(/[\d.-]/g,""):void 0,l=()=>{i&&(i.stop(),i=null)},c=()=>{l(),i=new Do({keyframes:[fy(e.get()),fy(o)],velocity:e.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...r,onUpdate:a})};e.attach((f,d)=>(o=f,a=h=>d(uy(h,s)),Z.postRender(c),e.get()),l);let u;return $e(t)&&(u=t.on("change",f=>e.set(uy(f,s))),e.on("destroy",u)),u}function uy(e,t){return t?e+t:e}function fy(e){return typeof e=="number"?e:parseFloat(e)}var eI=[...Qd,Tt,vn],db=e=>eI.find(Kd(e));var tI=Ba.reduce((e,t)=>(e[t]=r=>jt(r),e),{}),yn=he({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ac(e=!0){let t=O(Mo);if(t===null)return[!0,null];let{isPresent:r,onExitComplete:n,register:i}=t,o=jn();A(()=>{if(e)return i(o)},[e]);let a=H(()=>e&&n&&n(o),[o,n,e]);return!r&&n?[!1,a]:[!0]}function rn(e){let t=M(null);return t.current===null&&(t.current=e()),t.current}var rI=class extends Re{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let r=t.offsetParent,n=Za(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=t.offsetHeight||0,i.width=t.offsetWidth||0,i.top=t.offsetTop,i.left=t.offsetLeft,i.right=n-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}};function nI({children:e,isPresent:t,anchorX:r}){let n=jn(),i=M(null),o=M({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=O(yn);return tt(()=>{let{width:s,height:l,top:c,left:u,right:f}=o.current;if(t||!i.current||!s||!l)return;let d=r==="left"?`left: ${u}`:`right: ${f}`;i.current.dataset.motionPopId=n;let h=document.createElement("style");return a&&(h.nonce=a),document.head.appendChild(h),h.sheet&&h.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${s}px !important; height: ${l}px !important; ${d}px !important; top: ${c}px !important; } `),()=>{document.head.contains(h)&&document.head.removeChild(h)}},[t]),S(rI,{isPresent:t,childRef:i,sizeRef:o,children:$n(e,{ref:i})})}var iI=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:a,anchorX:s})=>{let l=rn(oI),c=jn(),u=!0,f=Y(()=>(u=!1,{id:c,initial:t,isPresent:r,custom:i,onExitComplete:d=>{l.set(d,!0);for(let h of l.values())if(!h)return;n&&n()},register:d=>(l.set(d,!1),()=>l.delete(d))}),[r,l,n]);return o&&u&&(f={...f}),Y(()=>{l.forEach((d,h)=>l.set(h,!1))},[r]),A(()=>{!r&&!l.size&&n&&n()},[r]),a==="popLayout"&&(e=S(nI,{isPresent:r,anchorX:s,children:e})),S(Mo.Provider,{value:f,children:e})};function oI(){return new Map}var Cl=e=>e.key||"";function dy(e){let t=[];return xr.forEach(e,r=>{Ct(r)&&t.push(r)}),t}var oh=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:s="left"})=>{let[l,c]=ac(a),u=Y(()=>dy(e),[e]),f=a&&!l?[]:u.map(Cl),d=M(!0),h=M(u),p=rn(()=>new Map),[g,b]=we(u),[m,v]=we(u);Di(()=>{d.current=!1,h.current=u;for(let k=0;k{let w=Cl(k),R=a&&!l?!1:u===m||f.includes(w),T=()=>{if(p.has(w))p.set(w,!0);else return;let P=!0;p.forEach(I=>{I||(P=!1)}),P&&(x?.(),v(h.current),a&&c?.(),n&&n())};return S(iI,{isPresent:R,initial:!d.current||r?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:R?void 0:T,anchorX:s,children:k},w)})})},hb=he(null);function aI(){let e=M(!1);return Di(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function ah(){let e=aI(),[t,r]=we(0),n=H(()=>{e.current&&r(t+1)},[t]);return[H(()=>Z.postRender(n),[n]),t]}var sI=e=>!e.isLayoutDirty&&e.willUpdate(!1);function hy(){let e=new Set,t=new WeakMap,r=()=>e.forEach(sI);return{add:n=>{e.add(n),t.set(n,n.addEventListener("willUpdate",r))},remove:n=>{e.delete(n);let i=t.get(n);i&&(i(),t.delete(n)),r()},dirty:r}}var pb=e=>e===!0,lI=e=>pb(e===!0)||e==="id",mb=({children:e,id:t,inherit:r=!0})=>{let n=O(Ha),i=O(hb),[o,a]=ah(),s=M(null),l=n.id||i;s.current===null&&(lI(r)&&l&&(t=t?l+"-"+t:l),s.current={id:t,group:pb(r)&&n.group||hy()});let c=Y(()=>({...s.current,forceRender:o}),[a]);return S(Ha.Provider,{value:c,children:e})},gb=he({strict:!1}),py={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"]},Io={};for(let e in py)Io[e]={isEnabled:t=>py[e].some(r=>!!t[r])};function cI(e){for(let t in e)Io[t]={...Io[t],...e[t]}}var uI=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 _o(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||uI.has(e)}var vb=e=>!_o(e);function yb(e){e&&(vb=t=>t.startsWith("on")?!_o(t):e(t))}try{yb(MF().default)}catch{}function bb(e,t,r){let n={};for(let i in e)i==="values"&&typeof e.values=="object"||(vb(i)||r===!0&&_o(i)||!t&&!_o(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function xb({children:e,isValidProp:t,...r}){t&&yb(t),r={...O(yn),...r},r.isStatic=rn(()=>r.isStatic);let n=Y(()=>r,[JSON.stringify(r.transition),r.transformPagePoint,r.reducedMotion]);return S(yn.Provider,{value:n,children:e})}var ts=he({}),sh=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),fI="framerAppearId",sc="data-"+sh(fI),lc=he({});function cc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ga(e){return typeof e=="string"||Array.isArray(e)}var lh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ch=["initial",...lh];function uc(e){return cc(e.animate)||ch.some(t=>Ga(e[t]))}function wb(e){return!!(uc(e)||e.variants)}function dI(e,t){if(uc(e)){let{initial:r,animate:n}=e;return{initial:r===!1||Ga(r)?r:void 0,animate:Ga(n)?n:void 0}}return e.inherit!==!1?t:{}}function hI(e){let{initial:t,animate:r}=dI(e,O(ts));return Y(()=>({initial:t,animate:r}),[my(t),my(r)])}function my(e){return Array.isArray(e)?e.join(" "):e}var uh=Symbol.for("motionComponentSymbol");function wo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function pI(e,t,r){return H(n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):wo(r)&&(r.current=n))},[t])}function mI(e,t,r,n,i){var o,a;let{visualElement:s}=O(ts),l=O(gb),c=O(Mo),u=O(yn).reducedMotion,f=M(null);n=n||l.renderer,!f.current&&n&&(f.current=n(e,{visualState:t,parent:s,props:r,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));let d=f.current,h=O(lc);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&gI(f.current,r,i,h);let p=M(!1);tt(()=>{d&&p.current&&d.update(r,c)});let g=r[sc],b=M(!!g&&!((o=F.MotionHandoffIsComplete)!=null&&o.call(F,g))&&((a=F.MotionHasOptimisedAnimation)==null?void 0:a.call(F,g)));return Di(()=>{d&&(p.current=!0,F.MotionIsMounted=!0,d.updateFeatures(),ic.render(d.render),b.current&&d.animationState&&d.animationState.animateChanges())}),A(()=>{d&&(!b.current&&d.animationState&&d.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var m;(m=F.MotionHandoffMarkAsComplete)==null||m.call(F,g)}),b.current=!1))}),d}function gI(e,t,r,n){let{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:Sb(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&wo(s),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:c})}function Sb(e){if(e)return e.options.allowProjection!==!1?e.projection:Sb(e.parent)}function kb({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&cI(e);function o(s,l){let c,u={...O(yn),...s,layoutId:vI(s)},{isStatic:f}=u,d=hI(s),h=n(s,f);if(!f&&jl){yI(u,e);let p=bI(u);c=p.MeasureLayout,d.visualElement=mI(i,h,u,t,p.ProjectionNode)}return pe(ts.Provider,{value:d,children:[c&&d.visualElement?S(c,{visualElement:d.visualElement,...u}):null,r(i,s,pI(h,d.visualElement,l),h,f,d.visualElement)]})}o.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;let a=Ce(o);return a[uh]=i,a}function vI({layoutId:e}){let t=O(Ha).id;return t&&e!==void 0?t+"-"+e:e}function yI(e,t){let r=O(gb).strict}function bI(e){let{drag:t,layout:r}=Io;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}var qa={};function fh(e){for(let t in e)qa[t]=e[t],Yl(t)&&(qa[t].isCSSVariable=!0)}var xI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wI=zi.length;function Cb(e,t,r){let n="",i=!0;for(let o=0;o{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function dh(e,t,r,n){if(typeof t=="function"){let[i,o]=gy(n);t=t(r!==void 0?r:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[i,o]=gy(n);t=t(r!==void 0?r:e.custom,i,o)}return t}function SI({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,i){return{latestValues:kI(r,n,i,e),renderState:t()}}var fc=e=>(t,r)=>{let n=O(ts),i=O(Mo),o=()=>SI(e,t,n,i);return r?o():rn(o)};function kI(e,t,r,n){let i={},o=n(e,{});for(let d in o)i[d]=Mt(o[d]);let{initial:a,animate:s}=e,l=uc(e),c=wb(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let u=r?r.initial===!1:!1;u=u||a===!1;let f=u?s:a;if(f&&typeof f!="boolean"&&!cc(f)){let d=Array.isArray(f)?f:[f];for(let h=0;h"u")return e;let t=new Map,r=(...n)=>e(...n);return new Proxy(r,{get:(n,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function Tb(e,{layout:t,layoutId:r}){return Gn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!qa[e]||e==="opacity")}function hh(e,t,r){let{style:n,vars:i,transformOrigin:o}=e,a=!1,s=!1;for(let l in t){let c=t[l];if(Gn.has(l)){a=!0;continue}else if(Yl(l)){i[l]=c;continue}else{let u=eh(c,nc[l]);l.startsWith("origin")?(s=!0,o[l]=u):n[l]=u}}if(t.transform||(a||r?n.transform=Cb(t,e.transform,r):n.transform&&(n.transform="none")),s){let{originX:l="50%",originY:c="50%",originZ:u=0}=o;n.transformOrigin=`${l} ${c} ${u}`}}var ph=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Rb(e,t,r){for(let n in t)!$e(t[n])&&!Tb(n,r)&&(e[n]=t[n])}function TI({transformTemplate:e},t){return Y(()=>{let r=ph();return hh(r,t,e),Object.assign({},r.vars,r.style)},[t])}function RI(e,t){let r=e.style||{},n={};return Rb(n,r,e),Object.assign(n,TI(e,t)),n}function EI(e,t){let r={},n=RI(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}var FI={offset:"stroke-dashoffset",array:"stroke-dasharray"},PI={offset:"strokeDashoffset",array:"strokeDasharray"};function II(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?FI:PI;e[o.offset]=Q.transform(-n);let a=Q.transform(t),s=Q.transform(r);e[o.array]=`${a} ${s}`}function Eb(e,{attrX:t,attrY:r,attrScale:n,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...s},l,c,u){if(hh(e,s,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),r!==void 0&&(f.y=r),n!==void 0&&(f.scale=n),i!==void 0&&II(f,i,o,a,!1)}var Fb=()=>({...ph(),attrs:{}}),Pb=e=>typeof e=="string"&&e.toLowerCase()==="svg";function _I(e,t,r,n){let i=Y(()=>{let o=Fb();return Eb(o,t,Pb(n),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){let o={};Rb(o,e.style,e),i.style={...o,...i.style}}return i}var MI=["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 mh(e){return typeof e!="string"||e.includes("-")?!1:!!(MI.indexOf(e)>-1||/[A-Z]/u.test(e))}function OI(e=!1){return(r,n,i,{latestValues:o},a)=>{let l=(mh(r)?_I:EI)(n,o,a,r),c=bb(n,typeof r=="string",e),u=r!==Vr?{...c,...l,ref:i}:{},{children:f}=n,d=Y(()=>$e(f)?f.get():f,[f]);return kl(r,{...u,children:d})}}function gh(e,t,r){var n;let{style:i}=e,o={};for(let a in i)($e(i[a])||t.style&&$e(t.style[a])||Tb(a,e)||((n=r?.getValue(a))==null?void 0:n.liveStyle)!==void 0)&&(o[a]=i[a]);return o}var LI={useVisualState:fc({scrapeMotionValuesFromProps:gh,createRenderState:ph})};function Ib(e,t,r){let n=gh(e,t,r);for(let i in e)if($e(e[i])||$e(t[i])){let o=zi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[o]=e[i]}return n}var VI={useVisualState:fc({scrapeMotionValuesFromProps:Ib,createRenderState:Fb})};function AI(e,t){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){let a={...mh(n)?VI:LI,preloadedFeatures:e,useRender:OI(i),createVisualElement:t,Component:n};return kb(a)}}function Xa(e,t,r){let n=e.getProps();return dh(n,t,r!==void 0?r:n.custom,e)}var ud=e=>Array.isArray(e);function DI(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,qe(r))}function BI(e){return ud(e)?e[e.length-1]||0:e}function vh(e,t){let r=Xa(e,t),{transitionEnd:n={},transition:i={},...o}=r||{};o={...o,...n};for(let a in o){let s=BI(o[a]);DI(e,a,s)}}function zI(e){return!!($e(e)&&e.add)}function fd(e,t){let r=e.getValue("willChange");if(zI(r))return r.add(t);if(!r&&sr.WillChange){let n=new sr.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function _b(e){return e.props[sc]}var NI=e=>e!==null;function $I(e,{repeat:t,repeatType:r="loop"},n){let i=e.filter(NI),o=t&&r!=="loop"&&t%2===1?0:i.length-1;return!o||n===void 0?i[o]:n}var jI={type:"spring",stiffness:500,damping:25,restSpeed:10},HI=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),WI={type:"keyframes",duration:.8},UI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},GI=(e,{keyframes:t})=>t.length>2?WI:Gn.has(e)?e.startsWith("scale")?HI(t[1]):jI:UI;function qI({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}var yh=(e,t,r,n={},i,o)=>a=>{let s=rc(n,e)||{},l=s.delay||n.delay||0,{elapsed:c=0}=n;c=c-or(l);let u={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:d=>{t.set(d),s.onUpdate&&s.onUpdate(d)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};qI(s)||Object.assign(u,GI(e,u)),u.duration&&(u.duration=or(u.duration)),u.repeatDelay&&(u.repeatDelay=or(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(f=!0)),(sr.instantAnimations||sr.skipAnimations)&&(f=!0,u.duration=0,u.delay=0),u.allowFlatten=!s.type&&!s.ease,f&&!o&&t.get()!==void 0){let d=$I(u.keyframes,s);if(d!==void 0){Z.update(()=>{u.onUpdate(d),u.onComplete()});return}}return s.isSync?new Do(u):new Q0(u)};function XI({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function bh(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=t;n&&(o=n);let l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(let u in s){let f=e.getValue(u,e.latestValues[u]??null),d=s[u];if(d===void 0||c&&XI(c,u))continue;let h={delay:r,...rc(o||{},u)},p=f.get();if(p!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===p&&!h.velocity)continue;let g=!1;if(F.MotionHandoffAnimation){let m=_b(e);if(m){let v=F.MotionHandoffAnimation(m,u,Z);v!==null&&(h.startTime=v,g=!0)}}fd(e,u),f.start(yh(u,f,d,e.shouldReduceMotion&&Yd.has(u)?{type:!1}:h,e,g));let b=f.animation;b&&l.push(b)}return a&&Promise.all(l).then(()=>{Z.update(()=>{a&&vh(e,a)})}),l}function dd(e,t,r={}){var n;let i=Xa(e,t,r.type==="exit"?(n=e.presenceContext)==null?void 0:n.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let a=i?()=>Promise.all(bh(e,i,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{let{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=o;return YI(e,t,u+c,f,d,r)}:()=>Promise.resolve(),{when:l}=o;if(l){let[c,u]=l==="beforeChildren"?[a,s]:[s,a];return c().then(()=>u())}else return Promise.all([a(),s(r.delay)])}function YI(e,t,r=0,n=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*n,l=i===1?(c=0)=>c*n:(c=0)=>s-c*n;return Array.from(e.variantChildren).sort(KI).forEach((c,u)=>{c.notify("AnimationStart",t),a.push(dd(c,t,{...o,delay:r+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(a)}function KI(e,t){return e.sortNodePosition(t)}function xh(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let i=t.map(o=>dd(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=dd(e,t,r);else{let i=typeof t=="function"?Xa(e,t,r.custom):t;n=Promise.all(bh(e,i,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}function Mb(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;nPromise.all(t.map(({animation:r,options:n})=>xh(e,r,n)))}function t2(e){let t=e2(e),r=vy(),n=!0,i=l=>(c,u)=>{var f;let d=Xa(e,u,l==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(d){let{transition:h,transitionEnd:p,...g}=d;c={...c,...g,...p}}return c};function o(l){t=l(e)}function a(l){let{props:c}=e,u=Ob(e.parent)||{},f=[],d=new Set,h={},p=1/0;for(let b=0;bp&&x,P=!1,I=Array.isArray(y)?y:[y],D=I.reduce(i(m),{});k===!1&&(D={});let{prevResolvedValues:z={}}=v,_={...z,...D},W=N=>{T=!0,d.has(N)&&(P=!0,d.delete(N)),v.needsAnimating[N]=!0;let U=e.getValue(N);U&&(U.liveStyle=!1)};for(let N in _){let U=D[N],se=z[N];if(h.hasOwnProperty(N))continue;let be=!1;ud(U)&&ud(se)?be=!Mb(U,se):be=U!==se,be?U!=null?W(N):d.add(N):U!==void 0&&d.has(N)?W(N):v.protectedKeys[N]=!0}v.prevProp=y,v.prevResolvedValues=D,v.isActive&&(h={...h,...D}),n&&e.blockInitialAnimation&&(T=!1),T&&(!(w&&R)||P)&&f.push(...I.map(N=>({animation:N,options:{type:m}})))}if(d.size){let b={};if(typeof c.initial!="boolean"){let m=Xa(e,Array.isArray(c.initial)?c.initial[0]:c.initial);m&&m.transition&&(b.transition=m.transition)}d.forEach(m=>{let v=e.getBaseTarget(m),y=e.getValue(m);y&&(y.liveStyle=!0),b[m]=v??null}),f.push({animation:b})}let g=!!f.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),n=!1,g?t(f):Promise.resolve()}function s(l,c){var u;if(r[l].isActive===c)return Promise.resolve();(u=e.variantChildren)==null||u.forEach(d=>{var h;return(h=d.animationState)==null?void 0:h.setActive(l,c)}),r[l].isActive=c;let f=a(l);for(let d in r)r[d].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>r,reset:()=>{r=vy(),n=!0}}}function r2(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Mb(t,e):!1}function Fi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vy(){return{animate:Fi(!0),whileInView:Fi(),whileHover:Fi(),whileTap:Fi(),whileDrag:Fi(),whileFocus:Fi(),exit:Fi()}}var qn=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},n2=class extends qn{constructor(e){super(e),e.animationState||(e.animationState=t2(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();cc(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}},i2=0,o2=class extends qn{constructor(){super(...arguments),this.id=i2++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}},dc={animation:{Feature:n2},exit:{Feature:o2}};function rs(e){return{point:{x:e.pageX,y:e.pageY}}}var Lb=e=>t=>oc(t)&&e(t,rs(t));function Ya(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function Eo(e,t,r,n){return Ya(e,t,Lb(r),n)}var Vb=1e-4,a2=1-Vb,s2=1+Vb,Ab=.01,l2=0-Ab,c2=0+Ab;function _t(e){return e.max-e.min}function u2(e,t,r){return Math.abs(e-t)<=r}function yy(e,t,r,n=.5){e.origin=n,e.originPoint=Oe(t.min,t.max,e.origin),e.scale=_t(r)/_t(t),e.translate=Oe(r.min,r.max,e.origin)-e.originPoint,(e.scale>=a2&&e.scale<=s2||isNaN(e.scale))&&(e.scale=1),(e.translate>=l2&&e.translate<=c2||isNaN(e.translate))&&(e.translate=0)}function $a(e,t,r,n){yy(e.x,t.x,r.x,n?n.originX:void 0),yy(e.y,t.y,r.y,n?n.originY:void 0)}function by(e,t,r){e.min=r.min+t.min,e.max=e.min+_t(t)}function f2(e,t,r){by(e.x,t.x,r.x),by(e.y,t.y,r.y)}function xy(e,t,r){e.min=t.min-r.min,e.max=e.min+_t(t)}function ja(e,t,r){xy(e.x,t.x,r.x),xy(e.y,t.y,r.y)}var wy=()=>({translate:0,scale:1,origin:0,originPoint:0}),So=()=>({x:wy(),y:wy()}),Sy=()=>({min:0,max:0}),Ue=()=>({x:Sy(),y:Sy()}),hd=(e,t)=>Math.abs(e-t);function Db(e,t){let r=hd(e.x,t.x),n=hd(e.y,t.y);return Math.sqrt(r**2+n**2)}var d2=(e,t)=>e.depth-t.depth,Bb=class{constructor(){this.children=[],this.isDirty=!1}add(e){Hl(this.children,e),this.isDirty=!0}remove(e){Ka(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(d2),this.isDirty=!1,this.children.forEach(e)}};function zb(e,t){let r=Nt.now(),n=({timestamp:i})=>{let o=i-r;o>=t&&(jt(n),e(o-t))};return Z.setup(n,!0),()=>jt(n)}var bn=new WeakMap,Nl={current:null},wh={current:!1};function Nb(){if(wh.current=!0,!!jl)if(F.matchMedia){let e=F.matchMedia("(prefers-reduced-motion)"),t=()=>Nl.current=e.matches;e.addListener(t),t()}else Nl.current=!1}function h2(e,t,r){for(let n in t){let i=t[n],o=r[n];if($e(i))e.addValue(n,i);else if($e(o))e.addValue(n,qe(i,{owner:e}));else if(o!==i)if(e.hasValue(n)){let a=e.getValue(n);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{let a=e.getStaticValue(n);e.addValue(n,qe(a!==void 0?a:i,{owner:e}))}}for(let n in r)t[n]===void 0&&e.removeValue(n);return t}var ky=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Sh=class{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ec,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let f=Nt.now();this.renderScheduledAtthis.bindToMotionValue(r,t)),wh.current||Nb(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Nl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),jt(this.notifyUpdate),jt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=Gn.has(e);r&&this.onBindTransform&&this.onBindTransform();let n=t.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&Z.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender),o;F.MotionCheckAppearSync&&(o=F.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),i(),o&&o(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Io){let t=Io[e];if(!t)continue;let{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ue()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let r=0;rt.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&t!==void 0&&(r=qe(t===null?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(wd(r)||kd(r))?r=parseFloat(r):!db(r)&&vn.test(t)&&(r=Jd(e,t)),this.setBaseTarget(e,$e(r)?r.get():r)),$e(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:r}=this.props,n;if(typeof r=="string"||typeof r=="object"){let o=dh(this.props,r,(t=this.presenceContext)==null?void 0:t.custom);o&&(n=o[e])}if(r&&n!==void 0)return n;let i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!$e(i)?i:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Ul),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}};function $b({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function p2({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function m2(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Sr(e){return[e("x"),e("y")]}function Gf(e){return e===void 0||e===1}function pd({scale:e,scaleX:t,scaleY:r}){return!Gf(e)||!Gf(t)||!Gf(r)}function Pi(e){return pd(e)||jb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function jb(e){return Cy(e.x)||Cy(e.y)}function Cy(e){return e&&e!=="0%"}function $l(e,t,r){let n=e-r,i=t*n;return r+i}function Ty(e,t,r,n,i){return i!==void 0&&(e=$l(e,i,n)),$l(e,r,n)+t}function md(e,t=0,r=1,n,i){e.min=Ty(e.min,t,r,n,i),e.max=Ty(e.max,t,r,n,i)}function Hb(e,{x:t,y:r}){md(e.x,t.translate,t.scale,t.originPoint),md(e.y,r.translate,r.scale,r.originPoint)}var Ry=.999999999999,Ey=1.0000000000001;function g2(e,t,r,n=!1){let i=r.length;if(!i)return;t.x=t.y=1;let o,a;for(let s=0;sRy&&(t.x=1),t.yRy&&(t.y=1)}function ko(e,t){e.min=e.min+t,e.max=e.max+t}function Fy(e,t,r,n,i=.5){let o=Oe(e.min,e.max,i);md(e,t,r,o,n)}function Co(e,t){Fy(e.x,t.x,t.scaleX,t.scale,t.originX),Fy(e.y,t.y,t.scaleY,t.scale,t.originY)}function Wb(e,t){return $b(m2(e.getBoundingClientRect(),t))}function v2(e,t,r){let n=Wb(e,r),{scroll:i}=t;return i&&(ko(n.x,i.offset.x),ko(n.y,i.offset.y)),n}var Ub=({current:e})=>e?e.ownerDocument.defaultView:null,Gb=class{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=F,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let u=Xf(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=Db(u.offset,{x:0,y:0})>=3;if(!f&&!d)return;let{point:h}=u,{timestamp:p}=ut;this.history.push({...h,timestamp:p});let{onStart:g,onMove:b}=this.handlers;f||(g&&g(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,u)},this.handlePointerMove=(u,f)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=qf(f,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(u,f)=>{this.end();let{onEnd:d,onSessionEnd:h,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let g=Xf(u.type==="pointercancel"?this.lastMoveEventInfo:qf(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,g),h&&h(u,g)},!oc(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||F;let o=rs(e),a=qf(o,this.transformPagePoint),{point:s}=a,{timestamp:l}=ut;this.history=[{...s,timestamp:l}];let{onSessionStart:c}=t;c&&c(e,Xf(a,this.history)),this.removeListeners=Lo(Eo(this.contextWindow,"pointermove",this.handlePointerMove),Eo(this.contextWindow,"pointerup",this.handlePointerUp),Eo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),jt(this.updatePoint)}};function qf(e,t){return t?{point:t(e.point)}:e}function Py(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xf({point:e},t){return{point:e,delta:Py(e,qb(t)),offset:Py(e,y2(t)),velocity:b2(t,.1)}}function y2(e){return e[0]}function qb(e){return e[e.length-1]}function b2(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=qb(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>or(t)));)r--;if(!n)return{x:0,y:0};let o=Dr(i.timestamp-n.timestamp);if(o===0)return{x:0,y:0};let a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function x2(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?Oe(r,e,n.max):Math.min(e,r)),e}function Iy(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function w2(e,{top:t,left:r,bottom:n,right:i}){return{x:Iy(e.x,r,i),y:Iy(e.y,t,n)}}function _y(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=Un(t.min,t.max-n,e.min):n>i&&(r=Un(e.min,e.max-i,t.min)),zr(0,1,r)}function C2(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var gd=.35;function T2(e=gd){return e===!1?e=0:e===!0&&(e=gd),{x:My(e,"left","right"),y:My(e,"top","bottom")}}function My(e,t,r){return{min:Oy(e,t),max:Oy(e,r)}}function Oy(e,t){return typeof e=="number"?e:e[t]||0}var R2=new WeakMap,E2=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ue(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let n=c=>{let{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rs(c).point)},i=(c,u)=>{let{drag:f,dragPropagation:d,onDragStart:h}=this.getProps();if(f&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ob(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Sr(g=>{let b=this.getAxisMotionValue(g).get()||0;if(Br.test(b)){let{projection:m}=this.visualElement;if(m&&m.layout){let v=m.layout.layoutBox[g];v&&(b=_t(v)*(parseFloat(b)/100))}}this.originPoint[g]=b}),h&&Z.postRender(()=>h(c,u)),fd(this.visualElement,"transform");let{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},o=(c,u)=>{let{dragPropagation:f,dragDirectionLock:d,onDirectionLock:h,onDrag:p}=this.getProps();if(!f&&!this.openDragLock)return;let{offset:g}=u;if(d&&this.currentDirection===null){this.currentDirection=F2(g),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",u.point,g),this.updateAxis("y",u.point,g),this.visualElement.render(),p&&p(c,u)},a=(c,u)=>this.stop(c,u),s=()=>Sr(c=>{var u;return this.getAnimationState(c)==="paused"&&((u=this.getAxisMotionValue(c).animation)==null?void 0:u.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Gb(e,{onSessionStart:n,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Ub(this.visualElement)})}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&Z.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!Tl(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=x2(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)==null?void 0:e.layout,i=this.constraints;t&&wo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=w2(n.layoutBox,t):this.constraints=!1,this.elastic=T2(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Sr(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=C2(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!wo(e))return!1;let r=e.current;ar(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let i=v2(r,n.root,this.visualElement.getTransformPagePoint()),o=S2(n.layout.layoutBox,i);if(t){let a=t(p2(o));this.hasMutatedConstraints=!!a,a&&(o=$b(a))}return o}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=Sr(c=>{if(!Tl(c,t,this.currentDirection))return;let u=s&&s[c]||{};o&&(u={min:0,max:0});let f=n?200:1e6,d=n?40:1e7,h={type:"inertia",velocity:r?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(c,h)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return fd(this.visualElement,e),r.start(yh(e,r,0,t,this.visualElement,!1))}stopAnimation(){Sr(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Sr(e=>{var t;return(t=this.getAxisMotionValue(e).animation)==null?void 0:t.pause()})}getAnimationState(e){var t;return(t=this.getAxisMotionValue(e).animation)==null?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),n=r[t];return n||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Sr(t=>{let{drag:r}=this.getProps();if(!Tl(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:o,max:a}=n.layout.layoutBox[t];i.set(e[t]-Oe(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!wo(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};Sr(o=>{let a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){let s=a.get();n[o]=k2({min:s,max:s},this.constraints[o])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Sr(o=>{if(!Tl(o,e,null))return;let a=this.getAxisMotionValue(o),{min:s,max:l}=this.constraints[o];a.set(Oe(s,l,n[o]))})}addListeners(){if(!this.visualElement.current)return;R2.set(this.visualElement,this);let e=this.visualElement.current,t=Eo(e,"pointerdown",s=>{let{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(s)}),r=()=>{let{dragConstraints:s}=this.getProps();wo(s)&&s.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Z.read(r);let o=Ya(F,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:s,hasLayoutChanged:l})=>{this.isDragging&&l&&(Sr(c=>{let u=this.getAxisMotionValue(c);u&&(this.originPoint[c]+=s[c].translate,u.set(u.get()+s[c].translate))}),this.visualElement.render())});return()=>{o(),t(),i(),a&&a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=gd,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}};function Tl(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function F2(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var P2=class extends qn{constructor(e){super(e),this.removeGroupControls=$t,this.removeListeners=$t,this.controls=new E2(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$t}unmount(){this.removeGroupControls(),this.removeListeners()}},Ly=e=>(t,r)=>{e&&Z.postRender(()=>e(t,r))},I2=class extends qn{constructor(){super(...arguments),this.removePointerDownListener=$t}onPointerDown(e){this.session=new Gb(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ub(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:Ly(e),onStart:Ly(t),onMove:r,onEnd:(i,o)=>{delete this.session,n&&Z.postRender(()=>n(i,o))}}}mount(){this.removePointerDownListener=Eo(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Ol={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Vy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Aa={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Q.test(e))e=parseFloat(e);else return e;let r=Vy(e,t.target.x),n=Vy(e,t.target.y);return`${r}% ${n}%`}},_2={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,i=vn.parse(e);if(i.length>5)return n;let o=vn.createTransformer(e),a=typeof i[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;i[0+a]/=s,i[1+a]/=l;let c=Oe(s,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=c),typeof i[3+a]=="number"&&(i[3+a]/=c),o(i)}},M2=class extends Re{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;fh(O2),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ol.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,n||e.layoutDependency!==t||t===void 0||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||Z.postRender(()=>{let a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ic.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Xb(e){let[t,r]=ac(),n=O(Ha);return S(M2,{...e,layoutGroup:n,switchLayoutGroup:O(lc),isPresent:t,safeToRemove:r})}var O2={borderRadius:{...Aa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Aa,borderTopRightRadius:Aa,borderBottomLeftRadius:Aa,borderBottomRightRadius:Aa,boxShadow:_2};function Yb(e,t,r){let n=$e(e)?e:qe(e);return n.start(yh("",n,t,r)),n.animation}var Kb=["TopLeft","TopRight","BottomLeft","BottomRight"],L2=Kb.length,Ay=e=>typeof e=="string"?parseFloat(e):e,Dy=e=>typeof e=="number"||Q.test(e);function V2(e,t,r,n,i,o){i?(e.opacity=Oe(0,r.opacity??1,A2(n)),e.opacityExit=Oe(t.opacity??1,0,D2(n))):o&&(e.opacity=Oe(t.opacity??1,r.opacity??1,n));for(let a=0;ant?1:r(Un(e,t,n))}function zy(e,t){e.min=t.min,e.max=t.max}function wr(e,t){zy(e.x,t.x),zy(e.y,t.y)}function Ny(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function $y(e,t,r,n,i){return e-=t,e=$l(e,1/r,n),i!==void 0&&(e=$l(e,1/i,n)),e}function B2(e,t=0,r=1,n=.5,i,o=e,a=e){if(Br.test(t)&&(t=parseFloat(t),t=Oe(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Oe(o.min,o.max,n);e===o&&(s-=t),e.min=$y(e.min,t,r,s,i),e.max=$y(e.max,t,r,s,i)}function jy(e,t,[r,n,i],o,a){B2(e,t[r],t[n],t[i],t.scale,o,a)}var z2=["x","scaleX","originX"],N2=["y","scaleY","originY"];function Hy(e,t,r,n){jy(e.x,t,z2,r?r.x:void 0,n?n.x:void 0),jy(e.y,t,N2,r?r.y:void 0,n?n.y:void 0)}function Wy(e){return e.translate===0&&e.scale===1}function Zb(e){return Wy(e.x)&&Wy(e.y)}function Uy(e,t){return e.min===t.min&&e.max===t.max}function $2(e,t){return Uy(e.x,t.x)&&Uy(e.y,t.y)}function Gy(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Jb(e,t){return Gy(e.x,t.x)&&Gy(e.y,t.y)}function qy(e){return _t(e.x)/_t(e.y)}function Xy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var j2=class{constructor(){this.members=[]}add(e){Hl(this.members,e),e.scheduleRender()}remove(e){if(Ka(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(e){let t=this.members.findIndex(n=>e===n);if(t===0)return!1;let r;for(let n=t;n>=0;n--){let i=this.members[n];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;n===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function H2(e,t,r){let n="",i=e.x.translate/t.x,o=e.y.translate/t.y,a=r?.z||0;if((i||o||a)&&(n=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:c,rotate:u,rotateX:f,rotateY:d,skewX:h,skewY:p}=r;c&&(n=`perspective(${c}px) ${n}`),u&&(n+=`rotate(${u}deg) `),f&&(n+=`rotateX(${f}deg) `),d&&(n+=`rotateY(${d}deg) `),h&&(n+=`skewX(${h}deg) `),p&&(n+=`skewY(${p}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(n+=`scale(${s}, ${l})`),n||"none"}var Ii={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Yf=["","X","Y","Z"],W2={visibility:"hidden"},U2=1e3,G2=0;function Kf(e,t,r,n){let{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function ex(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let r=_b(t);if(F.MotionHasOptimisedAnimation(r,"transform")){let{layout:i,layoutId:o}=e.options;F.MotionCancelOptimisedAnimation(r,"transform",Z,!(i||o))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&ex(n)}function tx({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(a={},s=t?.()){this.id=G2++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ar.value&&(Ii.nodes=Ii.calculatedTargetDeltas=Ii.calculatedProjections=0),this.nodes.forEach(Y2),this.nodes.forEach(e_),this.nodes.forEach(t_),this.nodes.forEach(K2),Ar.addProjectionMetrics&&Ar.addProjectionMetrics(Ii)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=zb(f,250),Ol.hasAnimatedSinceResize&&(Ol.hasAnimatedSinceResize=!1,this.nodes.forEach(Ky))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&c&&(s||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let p=this.options.transition||c.getDefaultTransition()||a_,{onLayoutAnimationStart:g,onLayoutAnimationComplete:b}=c.getProps(),m=!this.targetLayout||!Jb(this.targetLayout,h),v=!f&&d;if(this.options.layoutRoot||this.resumeFrom||v||f&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let y={...rc(p,"layout"),onPlay:g,onComplete:b};(c.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(u,v)}else f||Ky(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),jt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(r_),this.animationId++)}getTransformTemplate(){let{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(F.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ex(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!_t(this.snapshot.measuredBox.x)&&!_t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{let k=x/1e3;Qy(f.x,a.x,k),Qy(f.y,a.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ja(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),i_(this.relativeTarget,this.relativeTargetOrigin,d,k),y&&$2(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=Ue()),wr(y,this.relativeTarget)),g&&(this.animationValues=u,V2(u,c,this.latestValues,k,v,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var s,l,c;this.notifyListeners("animationStart"),(s=this.currentAnimation)==null||s.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(jt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{Ol.hasAnimatedSinceResize=!0,Wn.layout++,this.motionValue||(this.motionValue=qe(0)),this.currentAnimation=Yb(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},onStop:()=>{Wn.layout--},onComplete:()=>{Wn.layout--,a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(U2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let a=this.getLead(),{targetWithTransforms:s,target:l,layout:c,latestValues:u}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&rx(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ue();let f=_t(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;let d=_t(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+d}wr(s,l),Co(s,u),$a(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new j2),this.sharedNodes.get(a).add(s);let c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){let a=this.getStack();return a?a.lead===this:!0}getLead(){var a;let{layoutId:s}=this.options;return s?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;let{layoutId:s}=this.options;return s?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){let c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){let a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){let{visualElement:a}=this.options;if(!a)return;let s=!1,{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;let c={};l.z&&Kf("z",a,c,this.animationValues);for(let u=0;u{var s;return(s=a.currentAnimation)==null?void 0:s.stop()}),this.root.nodes.forEach(Yy),this.root.sharedNodes.clear()}}}function q2(e){e.updateLayout()}function X2(e){var t;let r=((t=e.resumeFrom)==null?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:i}=e.layout,{animationType:o}=e.options,a=r.source!==e.layout.source;o==="size"?Sr(f=>{let d=a?r.measuredBox[f]:r.layoutBox[f],h=_t(d);d.min=n[f].min,d.max=d.min+h}):rx(o,r.layoutBox,n)&&Sr(f=>{let d=a?r.measuredBox[f]:r.layoutBox[f],h=_t(n[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});let s=So();$a(s,n,r.layoutBox);let l=So();a?$a(l,e.applyTransform(i,!0),r.measuredBox):$a(l,n,r.layoutBox);let c=!Zb(s),u=!1;if(!e.resumeFrom){let f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){let{snapshot:d,layout:h}=f;if(d&&h){let p=Ue();ja(p,r.layoutBox,d.layoutBox);let g=Ue();ja(g,n,h.layoutBox),Jb(p,g)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=p,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Y2(e){Ar.value&&Ii.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function K2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Q2(e){e.clearSnapshot()}function Yy(e){e.clearMeasurements()}function Z2(e){e.isLayoutDirty=!1}function J2(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ky(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function e_(e){e.resolveTargetDelta()}function t_(e){e.calcProjection()}function r_(e){e.resetSkewAndRotation()}function n_(e){e.removeLeadSnapshot()}function Qy(e,t,r){e.translate=Oe(t.translate,0,r),e.scale=Oe(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Zy(e,t,r,n){e.min=Oe(t.min,r.min,n),e.max=Oe(t.max,r.max,n)}function i_(e,t,r,n){Zy(e.x,t.x,r.x,n),Zy(e.y,t.y,r.y,n)}function o_(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var a_={duration:.45,ease:[.4,0,.1,1]},Jy=e=>typeof He<"u"&&He.userAgent&&He.userAgent.toLowerCase().includes(e),e0=Jy("applewebkit/")&&!Jy("chrome/")?Math.round:$t;function t0(e){e.min=e0(e.min),e.max=e0(e.max)}function s_(e){t0(e.x),t0(e.y)}function rx(e,t,r){return e==="position"||e==="preserve-aspect"&&!u2(qy(t),qy(r),.2)}function l_(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}var c_=tx({attachResizeListener:(e,t)=>Ya(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Vi={current:void 0},nx=tx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Vi.current){let e=new c_({});e.mount(F),e.setOptions({layoutScroll:!0}),Vi.current=e}return Vi.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>F.getComputedStyle(e).position==="fixed"}),ix={pan:{Feature:I2},drag:{Feature:P2,ProjectionNode:nx,MeasureLayout:Xb}};function r0(e,t,r){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");let i="onHover"+r,o=n[i];o&&Z.postRender(()=>o(t,rs(t)))}var u_=class extends qn{mount(){let{current:e}=this.node;e&&(this.unmount=sb(e,(t,r)=>(r0(this.node,r,"Start"),n=>r0(this.node,n,"End"))))}unmount(){}},f_=class extends qn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Lo(Ya(this.node.current,"focus",()=>this.onFocus()),Ya(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function n0(e,t,r){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");let i="onTap"+(r==="End"?"":r),o=n[i];o&&Z.postRender(()=>o(t,rs(t)))}var d_=class extends qn{mount(){let{current:e}=this.node;e&&(this.unmount=lb(e,(t,r)=>(n0(this.node,r,"Start"),(n,{success:i})=>n0(this.node,n,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}},vd=new WeakMap,Qf=new WeakMap,h_=e=>{let t=vd.get(e.target);t&&t(e)},p_=e=>{e.forEach(h_)};function m_({root:e,...t}){let r=e||document;Qf.has(r)||Qf.set(r,{});let n=Qf.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(p_,{root:e,...t})),n[i]}function g_(e,t,r){let n=m_(t);return vd.set(e,r),n.observe(e),()=>{vd.delete(e),n.unobserve(e)}}var v_={some:0,all:1},y_=class extends qn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:r,threshold:typeof n=="number"?n:v_[n]},a=s=>{let{isIntersecting:l}=s;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);let{onViewportEnter:c,onViewportLeave:u}=this.node.getProps(),f=l?c:u;f&&f(s)};return g_(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(b_(e,t))&&this.startObserver()}unmount(){}};function b_({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var ox={inView:{Feature:y_},tap:{Feature:d_},focus:{Feature:f_},hover:{Feature:u_}},ax={layout:{ProjectionNode:nx,MeasureLayout:Xb}},sx=class extends Sh{constructor(){super(...arguments),this.KeyframeResolver=nb}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;$e(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}};function lx(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(let o in r)e.style.setProperty(o,r[o])}function x_(e){return F.getComputedStyle(e)}var cx=class extends sx{constructor(){super(...arguments),this.type="html",this.renderInstance=lx}readValueFromInstance(e,t){var r;if(Gn.has(t))return(r=this.projection)!=null&&r.isProjecting?Bl(t):N0(e,t);{let n=x_(e),i=(Yl(t)?n.getPropertyValue(t):n[t])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Wb(e,t)}build(e,t,r){hh(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return gh(e,t,r)}},ux=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"]);function w_(e,t,r,n){lx(e,t,void 0,n);for(let i in t.attrs)e.setAttribute(ux.has(i)?i:sh(i),t.attrs[i])}var fx=class extends sx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ue}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Gn.has(t)){let r=Zd(t);return r&&r.default||0}return t=ux.has(t)?t:sh(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return Ib(e,t,r)}build(e,t,r){Eb(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,n){w_(e,t,r,n)}mount(e){this.isSVGTag=Pb(e.tagName),super.mount(e)}},kh=(e,t)=>mh(e)?new fx(t):new cx(t,{allowProjection:e!==Vr}),S_=AI({...dc,...ox,...ix,...ax},kh),bt=CI(S_);var dx={renderer:kh,...dc,...ox},k_={...dx,...ix,...ax},C_={renderer:kh,...dc};var T_=50,i0=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),R_=()=>({time:0,x:i0(),y:i0()}),E_={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function o0(e,t,r,n){let i=r[t],{length:o,position:a}=E_[t],s=i.current,l=r.time;i.current=e[`scroll${a}`],i.scrollLength=e[`scroll${o}`]-e[`client${o}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=Un(0,i.scrollLength,i.current);let c=n-l;i.velocity=c>T_?0:Gl(i.current-s,c)}function F_(e,t,r){o0(e,"x",t,r),o0(e,"y",t,r),t.time=r}function P_(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if(Za(n))r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n.tagName==="svg"){let i=n.getBoundingClientRect();n=n.parentElement;let o=n.getBoundingClientRect();r.x+=i.left-o.left,r.y+=i.top-o.top}else if(n instanceof SVGGraphicsElement){let{x:i,y:o}=n.getBBox();r.x+=i,r.y+=o;let a=null,s=n.parentNode;for(;!a;)s.tagName==="svg"&&(a=s),s=n.parentNode;n=a}else break;return r}var yd={start:0,center:.5,end:1};function a0(e,t,r=0){let n=0;if(e in yd&&(e=yd[e]),typeof e=="string"){let i=parseFloat(e);e.endsWith("px")?n=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?n=i/100*document.documentElement.clientWidth:e.endsWith("vh")?n=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(n=t*e),r+n}var I_=[0,0];function __(e,t,r,n){let i=Array.isArray(e)?e:I_,o=0,a=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,yd[e]?e:"0"]),o=a0(i[0],r,n),a=a0(i[1],t),o-a}var M_={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},O_={x:0,y:0};function L_(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function V_(e,t,r){let{offset:n=M_.All}=r,{target:i=e,axis:o="y"}=r,a=o==="y"?"height":"width",s=i!==e?P_(i,e):O_,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:L_(i),c={width:e.clientWidth,height:e.clientHeight};t[o].offset.length=0;let u=!t[o].interpolate,f=n.length;for(let d=0;d{A_(e,n.target,r),F_(e,r,i),(n.offset||n.target)&&V_(e,r,n)},notify:()=>t(r)}}var Da=new WeakMap,s0=new WeakMap,Zf=new WeakMap,l0=e=>e===document.scrollingElement?F:e;function Ch(e,{container:t=document.scrollingElement,...r}={}){if(!t)return $t;let n=Zf.get(t);n||(n=new Set,Zf.set(t,n));let i=R_(),o=D_(t,e,i,r);if(n.add(o),!Da.has(t)){let s=()=>{for(let f of n)f.measure(ut.timestamp);Z.preUpdate(l)},l=()=>{for(let f of n)f.notify()},c=()=>Z.read(s);Da.set(t,c);let u=l0(t);F.addEventListener("resize",c,{passive:!0}),t!==document.documentElement&&s0.set(t,ub(t,c)),u.addEventListener("scroll",c,{passive:!0}),c()}let a=Da.get(t);return Z.read(a,!1,!0),()=>{var s;jt(a);let l=Zf.get(t);if(!l||(l.delete(o),l.size))return;let c=Da.get(t);Da.delete(t),c&&(l0(t).removeEventListener("scroll",c),(s=s0.get(t))==null||s(),F.removeEventListener("resize",c))}}var c0=new Map;function B_(e){let t={value:0},r=Ch(n=>{t.value=n[e.axis].progress*100},e);return{currentTime:t,cancel:r}}function hx({source:e,container:t,...r}){let{axis:n}=r;e&&(t=e);let i=c0.get(t)??new Map;c0.set(t,i);let o=r.target??"self",a=i.get(o)??{},s=n+(r.offset??[]).join(",");return a[s]||(a[s]=!r.target&&Ud()?new ScrollTimeline({source:t,axis:n}):B_({container:t,...r})),a[s]}function z_(e,t){let r=hx(t);return e.attachTimeline({timeline:t.target?void 0:r,observe:n=>(n.pause(),nh(i=>{n.time=n.duration*i},r))})}function N_(e){return e.length===2}function $_(e,t){return N_(e)?Ch(r=>{e(r[t.axis].progress,r)},t):nh(e,hx(t))}function Ni(e,{axis:t="y",container:r=document.scrollingElement,...n}={}){if(!r)return $t;let i={axis:t,container:r,...n};return typeof e=="function"?$_(e,i):z_(e,i)}function u0(e,t){Oo(!!(!t||t.current),`You have defined a ${e} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}var j_=()=>({scrollX:qe(0),scrollY:qe(0),scrollXProgress:qe(0),scrollYProgress:qe(0)});function px({container:e,target:t,layoutEffect:r=!0,...n}={}){let i=rn(j_);return(r?Di:A)(()=>(u0("target",t),u0("container",e),Ni((a,{x:s,y:l})=>{i.scrollX.set(s.current),i.scrollXProgress.set(s.progress),i.scrollY.set(l.current),i.scrollYProgress.set(l.progress)},{...n,container:e?.current||void 0,target:t?.current||void 0})),[e,t,JSON.stringify(n.offset)]),i}function xn(e){let t=rn(()=>qe(e)),{isStatic:r}=O(yn);if(r){let[,n]=we(e);A(()=>t.on("change",n),[])}return t}function mx(e,t){let r=xn(t()),n=()=>r.set(t());return n(),Di(()=>{let i=()=>Z.preRender(n,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),jt(n)}}),r}function H_(e){Ro.current=[],e();let t=mx(Ro.current,e);return Ro.current=void 0,t}function Ot(e,t,r,n){if(typeof e=="function")return H_(e);let i=typeof t=="function"?t:zo(t,r,n);return Array.isArray(e)?f0(e,i):f0([e],([o])=>i(o))}function f0(e,t){let r=rn(()=>[]);return mx(e,()=>{r.length=0;let n=e.length;for(let i=0;i$e(e)?e.get():e;if(r)return Ot(n);let i=xn(n());return tt(()=>fb(i,e,t),[i,JSON.stringify(t)]),i}var gx=class extends Bo{constructor(){super(...arguments),this.isEnabled=!1}add(e){(Gn.has(e)||ib.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?"transform":"auto")}};function vx(){!wh.current&&Nb();let[e]=we(Nl.current);return e}function $i(){let e=vx(),{reducedMotion:t}=O(yn);return t==="never"?!1:t==="always"?!0:e}function W_(e){e.values.forEach(t=>t.stop())}function bd(e,t){[...t].reverse().forEach(n=>{let i=e.getVariant(n);i&&vh(e,i),e.variantChildren&&e.variantChildren.forEach(o=>{bd(o,t)})})}function U_(e,t){if(Array.isArray(t))return bd(e,t);if(typeof t=="string")return bd(e,[t]);vh(e,t)}function yx(){let e=!1,t=new Set,r={subscribe(n){return t.add(n),()=>void t.delete(n)},start(n,i){ar(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let o=[];return t.forEach(a=>{o.push(xh(a,n,{transitionOverride:i}))}),Promise.all(o)},set(n){return ar(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(i=>{U_(i,n)})},stop(){t.forEach(n=>{W_(n)})},mount(){return e=!0,()=>{e=!1,r.stop()}}};return r}function Rh(e){return typeof e=="object"&&!Array.isArray(e)}function bx(e,t,r,n){return typeof e=="string"&&Rh(t)?Ja(e,r,n):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function G_(e,t,r){return e*(t+1)}function d0(e,t,r,n){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?r:n.get(t)??e}function q_(e,t,r){for(let n=0;nt&&i.at{let P=eM(x),{delay:I=0,times:D=Jl(P),type:z="keyframes",repeat:_,repeatType:W,repeatDelay:G=0,...K}=k,{ease:N=t.ease||"easeOut",duration:U}=k,se=typeof I=="function"?I(R,T):I,be=P.length,Me=tc(z)?z:i?.[z];if(be<=2&&Me){let ye=100;if(be===2&&nM(P)){let xe=P[1]-P[0];ye=Math.abs(xe)}let ge={...K};U!==void 0&&(ge.duration=or(U));let Ne=$d(ge,ye,Me);N=Ne.ease,U=Ne.duration}U??(U=o);let J=f+se;D.length===1&&D[0]===0&&(D[1]=1);let ie=D.length-P.length;if(ie>0&&jd(D,ie),P.length===1&&P.unshift(null),_){ar(_{for(let g in h){let b=h[g];b.sort(K_);let m=[],v=[],y=[];for(let k=0;ktypeof e=="number",nM=e=>e.every(rM);function iM(e,t){return e in t}var oM=class extends Sh{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(iM(t,e)){let r=e[t];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Ue()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}};function aM(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},r=es(e)&&!ih(e)?new fx(t):new cx(t);r.mount(e),bn.set(e,r)}function sM(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},r=new oM(t);r.mount(e),bn.set(e,r)}function lM(e,t){return $e(e)||typeof e=="number"||typeof e=="string"&&!Rh(t)}function xx(e,t,r,n){let i=[];if(lM(e,t))i.push(Yb(e,Rh(t)&&t.default||t,r&&(r.default||r)));else{let o=bx(e,t,n),a=o.length;ar(!!a,"No valid elements provided.");for(let s=0;s{n.push(...xx(s,o,a))}),n}function uM(e){return Array.isArray(e)&&e.some(Array.isArray)}function wx(e){function t(r,n,i){let o=[];uM(r)?o=cM(r,n,e):o=xx(r,n,i,e);let a=new J0(o);return e&&e.animations.push(a),a}return t}var nn=wx();function Sx(){let e=rn(yx);return Di(e.mount,[]),e}var kx=Sx;function hc(e){return e!==null&&typeof e=="object"&&uh in e}function Eh(e){if(hc(e))return e[uh]}function Fh(){return fM}function fM(e){Vi.current&&(Vi.current.isUpdating=!1,Vi.current.blockUpdate(),e&&e())}function Cx(){return H(()=>{let t=Vi.current;t&&t.resetTree()},[])}var dM={some:0,all:1};function pc(e,t,{root:r,margin:n,amount:i="some"}={}){let o=Ja(e),a=new WeakMap,s=c=>{c.forEach(u=>{let f=a.get(u.target);if(u.isIntersecting!==!!f)if(u.isIntersecting){let d=t(u.target,u);typeof d=="function"?a.set(u.target,d):l.unobserve(u.target)}else typeof f=="function"&&(f(u),a.delete(u.target))})},l=new IntersectionObserver(s,{root:r,rootMargin:n,threshold:typeof i=="number"?i:dM[i]});return o.forEach(c=>l.observe(c)),()=>l.disconnect()}function hM(e,{root:t,margin:r,amount:n,once:i=!1,initial:o=!1}={}){let[a,s]=we(o);return A(()=>{if(!e.current||i&&a)return;let l=()=>(s(!0),i?void 0:()=>s(!1)),c={root:t&&t.current||void 0,margin:r,amount:n};return pc(e.current,l,c)},[t,e,r,i,n]),a}function Tx(){let[e,t]=ah(),r=Fh(),n=M(-1);return A(()=>{Z.postRender(()=>Z.postRender(()=>{t===n.current&&(sr.instantAnimations=!1)}))},[t]),i=>{r(()=>{sr.instantAnimations=!0,e(),i(),n.current=t+1})}}var m0=()=>({});var nW=fc({scrapeMotionValuesFromProps:m0,createRenderState:m0});var Rx={};Hv(Rx,{Group:()=>gM,Item:()=>xM});var Ex=he(null);function pM(e,t,r,n){if(!n)return e;let i=e.findIndex(u=>u.value===t);if(i===-1)return e;let o=n>0?1:-1,a=e[i+o];if(!a)return e;let s=e[i],l=a.layout,c=Oe(l.min,l.max,.5);return o===1&&s.layout.max+r>c||o===-1&&s.layout.min+rbt[t]),l=[],c=M(!1);ar(!!i,"Reorder.Group must be provided a values prop");let u={axis:r,registerItem:(f,d)=>{let h=l.findIndex(p=>f===p.value);h!==-1?l[h].layout=d[r]:l.push({value:f,layout:d[r]}),l.sort(yM)},updateOrder:(f,d,h)=>{if(c.current)return;let p=pM(l,f,d,h);l!==p&&(c.current=!0,n(p.map(vM).filter(g=>i.indexOf(g)!==-1)))}};return A(()=>{c.current=!1}),S(s,{...o,ref:a,ignoreStrict:!0,children:S(Ex.Provider,{value:u,children:e})})}var gM=Ce(mM);function vM(e){return e.value}function yM(e,t){return e.layout.min-t.layout.min}function g0(e,t=0){return $e(e)?e:xn(t)}function bM({children:e,style:t={},value:r,as:n="li",onDrag:i,layout:o=!0,...a},s){let l=rn(()=>bt[n]),c=O(Ex),u={x:g0(t.x),y:g0(t.y)},f=Ot([u.x,u.y],([g,b])=>g||b?1:"unset");ar(!!c,"Reorder.Item must be a child of Reorder.Group");let{axis:d,registerItem:h,updateOrder:p}=c;return S(l,{drag:d,...a,dragSnapToOrigin:!0,style:{...t,x:u.x,y:u.y,zIndex:f},layout:o,onDrag:(g,b)=>{let{velocity:m}=b;m[d]&&p(r,u[d].get(),m[d]),i&&i(g,b)},onLayoutMeasure:g=>h(r,g),ref:s,ignoreStrict:!0,children:e})}var xM=Ce(bM);function wM(e,t){if(e==="first")return 0;{let r=t-1;return e==="last"?r:r/2}}function Ph(e=.1,{startDelay:t=0,from:r=0,ease:n}={}){return(i,o)=>{let a=typeof r=="number"?r:wM(r,o),s=Math.abs(a-i),l=e*s;if(n){let c=o*e;l=Ll(n)(l/c)*c}return t+l}}var rV={};jv(rV,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>WL,createPortal:()=>UL,createRoot:()=>GL,default:()=>WS,findDOMNode:()=>qL,flushSync:()=>XL,hydrate:()=>YL,hydrateRoot:()=>KL,render:()=>QL,unmountComponentAtNode:()=>ZL,unstable_batchedUpdates:()=>JL,unstable_renderSubtreeIntoContainer:()=>eV,version:()=>tV});var xc={};jv(xc,{default:()=>ee,unstable_IdlePriority:()=>CM,unstable_ImmediatePriority:()=>TM,unstable_LowPriority:()=>RM,unstable_NormalPriority:()=>EM,unstable_Profiling:()=>FM,unstable_UserBlockingPriority:()=>PM,unstable_cancelCallback:()=>IM,unstable_continueExecution:()=>_M,unstable_forceFrameRate:()=>MM,unstable_getCurrentPriorityLevel:()=>OM,unstable_getFirstCallbackNode:()=>LM,unstable_next:()=>VM,unstable_now:()=>kM,unstable_pauseExecution:()=>AM,unstable_requestPaint:()=>DM,unstable_runWithPriority:()=>BM,unstable_scheduleCallback:()=>zM,unstable_shouldYield:()=>NM,unstable_wrapCallback:()=>$M});var ee={};function Oh(e,t){var r=e.length;e.push(t);e:for(;0>>1,i=e[n];if(!(0>>1;nmc(s,r))lmc(c,s)?(e[n]=c,e[l]=r,n=l):(e[n]=s,e[a]=r,n=a);else{if(!(lmc(c,r)))break e;e[n]=c,e[l]=r,n=l}}}return t}function mc(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Fx=performance,ee.unstable_now=function(){return Fx.now()}):(Ih=Date,Px=Ih.now(),ee.unstable_now=function(){return Ih.now()-Px});var Fx,Ih,Px,on=[],Xn=[],SM=1,Cr=null,Lt=3,yc=!1,ji=!1,is=!1,Mx=typeof setTimeout=="function"?setTimeout:null,Ox=typeof clearTimeout=="function"?clearTimeout:null,Ix=typeof setImmediate<"u"?setImmediate:null;typeof He<"u"&&He.scheduling!==void 0&&He.scheduling.isInputPending!==void 0&&He.scheduling.isInputPending.bind(He.scheduling);function Lh(e){for(var t=Nr(Xn);t!==null;){if(t.callback===null)vc(Xn);else{if(!(t.startTime<=e))break;vc(Xn),t.sortIndex=t.expirationTime,Oh(on,t)}t=Nr(Xn)}}function Vh(e){if(is=!1,Lh(e),!ji)if(Nr(on)!==null)ji=!0,Dh(Ah);else{var t=Nr(Xn);t!==null&&Bh(Vh,t.startTime-e)}}function Ah(e,t){ji=!1,is&&(is=!1,Ox(os),os=-1),yc=!0;var r=Lt;try{for(Lh(t),Cr=Nr(on);Cr!==null&&(!(Cr.expirationTime>t)||e&&!Ax());){var n=Cr.callback;if(typeof n=="function"){Cr.callback=null,Lt=Cr.priorityLevel;var i=n(Cr.expirationTime<=t);t=ee.unstable_now(),typeof i=="function"?Cr.callback=i:Cr===Nr(on)&&vc(on),Lh(t)}else vc(on);Cr=Nr(on)}if(Cr!==null)var o=!0;else{var a=Nr(Xn);a!==null&&Bh(Vh,a.startTime-t),o=!1}return o}finally{Cr=null,Lt=r,yc=!1}}var bc=!1,gc=null,os=-1,Lx=5,Vx=-1;function Ax(){return!(ee.unstable_now()-Vxe||125n?(e.sortIndex=r,Oh(Xn,e),Nr(on)===null&&e===Nr(Xn)&&(is?(Ox(os),os=-1):is=!0,Bh(Vh,r-n))):(e.sortIndex=i,Oh(on,e),ji||yc||(ji=!0,Dh(Ah))),e};ee.unstable_shouldYield=Ax;ee.unstable_wrapCallback=function(e){var t=Lt;return function(){var r=Lt;Lt=t;try{return e.apply(this,arguments)}finally{Lt=r}}};var kM=ee.unstable_now,CM=ee.unstable_IdlePriority,TM=ee.unstable_ImmediatePriority,RM=ee.unstable_LowPriority,EM=ee.unstable_NormalPriority,FM=ee.unstable_Profiling,PM=ee.unstable_UserBlockingPriority,IM=ee.unstable_cancelCallback,_M=ee.unstable_continueExecution,MM=ee.unstable_forceFrameRate,OM=ee.unstable_getCurrentPriorityLevel,LM=ee.unstable_getFirstCallbackNode,VM=ee.unstable_next,AM=ee.unstable_pauseExecution,DM=ee.unstable_requestPaint,BM=ee.unstable_runWithPriority,zM=ee.unstable_scheduleCallback,NM=ee.unstable_shouldYield,$M=ee.unstable_wrapCallback;var jM="default"in ir?E:ir,HM="default"in xc?ee:xc,dr={},Hw=jM,fr=HM;function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof F.document>"u"||typeof F.document.createElement>"u"),sp=Object.prototype.hasOwnProperty,WM=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Dx={},Bx={};function UM(e){return sp.call(Bx,e)?!0:sp.call(Dx,e)?!1:WM.test(e)?Bx[e]=!0:(Dx[e]=!0,!1)}function GM(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function qM(e,t,r,n){if(t===null||typeof t>"u"||GM(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ut(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Ft={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ft[e]=new Ut(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ft[t]=new Ut(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ft[e]=new Ut(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ft[e]=new Ut(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ft[e]=new Ut(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ft[e]=new Ut(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ft[e]=new Ut(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ft[e]=new Ut(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ft[e]=new Ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zp=/[\-:]([a-z])/g;function Jp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Zp,Jp);Ft[t]=new Ut(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Zp,Jp);Ft[t]=new Ut(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Zp,Jp);Ft[t]=new Ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ft[e]=new Ut(e,1,!1,e.toLowerCase(),null,!1,!1)});Ft.xlinkHref=new Ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ft[e]=new Ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function em(e,t,r,n){var i=Ft.hasOwnProperty(t)?Ft[t]:null;(i!==null?i.type!==0:n||!(2s||i[a]!==o[s]){var l=` `+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Nh=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ps(e):""}function XM(e){switch(e.tag){case 5:return ps(e.type);case 16:return ps("Lazy");case 13:return ps("Suspense");case 19:return ps("SuspenseList");case 0:case 2:case 15:return e=$h(e.type,!1),e;case 11:return e=$h(e.type.render,!1),e;case 1:return e=$h(e.type,!0),e;default:return""}}function fp(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ho:return"Fragment";case jo:return"Portal";case lp:return"Profiler";case tm:return"StrictMode";case cp:return"Suspense";case up:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gw:return(e.displayName||"Context")+".Consumer";case Uw:return(e._context.displayName||"Context")+".Provider";case rm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case nm:return t=e.displayName||null,t!==null?t:fp(e.type)||"Memo";case Kn:t=e._payload,e=e._init;try{return fp(e(t))}catch{}}return null}function YM(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fp(t);case 8:return t===tm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ui(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function KM(e){var t=Xw(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sc(e){e._valueTracker||(e._valueTracker=KM(e))}function Yw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Xw(e)?e.checked?"true":"false":e.value),e=n,e!==r&&(t.setValue(e),!0)}function Kc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function dp(e,t){var r=t.checked;return Ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Nx(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ui(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Kw(e,t){t=t.checked,t!=null&&em(e,"checked",t,!1)}function hp(e,t){Kw(e,t);var r=ui(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pp(e,t.type,r):t.hasOwnProperty("defaultValue")&&pp(e,t.type,ui(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $x(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function pp(e,t,r){t==="number"&&Kc(e.ownerDocument)===e||(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ms=Array.isArray;function ea(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=kc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fs(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ys={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},QM=["Webkit","ms","Moz","O"];Object.keys(ys).forEach(function(e){QM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ys[t]=ys[e]})});function e1(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ys.hasOwnProperty(e)&&ys[e]?(""+t).trim():t+"px"}function t1(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=e1(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var ZM=Ke({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vp(e,t){if(t){if(ZM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function yp(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var bp=null;function im(e){return e=e.target||e.srcElement||F,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xp=null,ta=null,ra=null;function Wx(e){if(e=Gs(e)){if(typeof xp!="function")throw Error(L(280));var t=e.stateNode;t&&(t=Cu(t),xp(e.stateNode,e.type,t))}}function r1(e){ta?ra?ra.push(e):ra=[e]:ta=e}function n1(){if(ta){var e=ta,t=ra;if(ra=ta=null,Wx(e),t)for(e=0;e>>=0,e===0?32:31-(cO(e)/uO|0)|0}var Cc=64,Tc=4194304;function gs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function eu(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&r;if(a!==0){var s=a&~i;s!==0?n=gs(s):(o&=a,o!==0&&(n=gs(o)))}else a=r&~i,a!==0?n=gs(a):o!==0&&(n=gs(o));if(n===0)return 0;if(t!==0&&t!==n&&(t&i)===0&&(i=n&-n,o=t&-t,i>=o||i===16&&(4194240&o)!==0))return t;if((4&n)!==0&&(n|=16&r),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Ws(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ur(t),e[t]=r}function pO(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=xs),Jx=" ",ew=!1;function k1(e,t){switch(e){case"keyup":return jO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function C1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wo=!1;function WO(e,t){switch(e){case"compositionend":return C1(t);case"keypress":return t.which!==32?null:(ew=!0,Jx);case"textInput":return e=t.data,e===Jx&&ew?null:e;default:return null}}function UO(e,t){if(Wo)return e==="compositionend"||!dm&&k1(e,t)?(e=w1(),$c=cm=ei=null,Wo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nw(r)}}function F1(e,t){return!(!e||!t)&&(e===t||(!e||e.nodeType!==3)&&(t&&t.nodeType===3?F1(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function P1(){for(var e=F,t=Kc();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(!r)break;e=t.contentWindow,t=Kc(e.document)}return t}function hm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function eL(e){var t=P1(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&F1(r.ownerDocument.documentElement,r)){if(n!==null&&hm(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||F,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=iw(r,o);var a=iw(r,n);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Uo=null,Rp=null,Ss=null,Ep=!1;function ow(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ep||Uo==null||Uo!==Kc(n)||(n=Uo,"selectionStart"in n&&hm(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||F).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ss&&Ls(Ss,n)||(Ss=n,n=nu(Rp,"onSelect"),0Xo||(e.current=Op[Xo],Op[Xo]=null,Xo--)}function Le(e,t){Xo++,Op[Xo]=e.current,e.current=t}var fi={},Bt=hi(fi),Zt=hi(!1),Ki=fi;function sa(e,t){var r=e.type.contextTypes;if(!r)return fi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Jt(e){return e=e.childContextTypes,e!=null}function ou(){Be(Zt),Be(Bt)}function pw(e,t,r){if(Bt.current!==fi)throw Error(L(168));Le(Bt,t),Le(Zt,r)}function B1(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(L(108,YM(e)||"Unknown",i));return Ke({},r,n)}function au(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fi,Ki=Bt.current,Le(Bt,e),Le(Zt,Zt.current),!0}function mw(e,t,r){var n=e.stateNode;if(!n)throw Error(L(169));r?(e=B1(e,t,Ki),n.__reactInternalMemoizedMergedChildContext=e,Be(Zt),Be(Bt),Le(Bt,e)):Be(Zt),Le(Zt,r)}var Sn=null,Tu=!1,Zh=!1;function z1(e){Sn===null?Sn=[e]:Sn.push(e)}function uL(e){Tu=!0,z1(e)}function pi(){if(!Zh&&Sn!==null){Zh=!0;var e=0,t=Fe;try{var r=Sn;for(Fe=1;e>=a,i-=a,kn=1<<32-Ur(t)+i|r<T?(P=R,R=null):P=R.sibling;var I=d(m,R,y[T],x);if(I===null){R===null&&(R=P);break}e&&R&&I.alternate===null&&t(m,R),v=o(I,v,T),w===null?k=I:w.sibling=I,w=I,R=P}if(T===y.length)return r(m,R),je&&Hi(m,T),k;if(R===null){for(;TT?(P=R,R=null):P=R.sibling;var D=d(m,R,I.value,x);if(D===null){R===null&&(R=P);break}e&&R&&D.alternate===null&&t(m,R),v=o(D,v,T),w===null?k=D:w.sibling=D,w=D,R=P}if(I.done)return r(m,R),je&&Hi(m,T),k;if(R===null){for(;!I.done;T++,I=y.next())I=f(m,I.value,x),I!==null&&(v=o(I,v,T),w===null?k=I:w.sibling=I,w=I);return je&&Hi(m,T),k}for(R=n(m,R);!I.done;T++,I=y.next())I=h(R,m,T,I.value,x),I!==null&&(e&&I.alternate!==null&&R.delete(I.key===null?T:I.key),v=o(I,v,T),w===null?k=I:w.sibling=I,w=I);return e&&R.forEach(function(z){return t(m,z)}),je&&Hi(m,T),k}function b(m,v,y,x){if(typeof y=="object"&&y!==null&&y.type===Ho&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case wc:e:{for(var k=y.key,w=v;w!==null;){if(w.key===k){if(k=y.type,k===Ho){if(w.tag===7){r(m,w.sibling),v=i(w,y.props.children),v.return=m,m=v;break e}}else if(w.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Kn&&Sw(k)===w.type){r(m,w.sibling),v=i(w,y.props),v.ref=us(m,w,y),v.return=m,m=v;break e}r(m,w);break}t(m,w),w=w.sibling}y.type===Ho?(v=Yi(y.props.children,m.mode,x,y.key),v.return=m,m=v):(x=Yc(y.type,y.key,y.props,null,m.mode,x),x.ref=us(m,v,y),x.return=m,m=x)}return a(m);case jo:e:{for(w=y.key;v!==null;){if(v.key===w){if(v.tag===4&&v.stateNode.containerInfo===y.containerInfo&&v.stateNode.implementation===y.implementation){r(m,v.sibling),v=i(v,y.children||[]),v.return=m,m=v;break e}r(m,v);break}t(m,v),v=v.sibling}v=ap(y,m.mode,x),v.return=m,m=v}return a(m);case Kn:return w=y._init,b(m,v,w(y._payload),x)}if(ms(y))return p(m,v,y,x);if(as(y))return g(m,v,y,x);Ac(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,v!==null&&v.tag===6?(r(m,v.sibling),v=i(v,y),v.return=m,m=v):(r(m,v),v=op(y,m.mode,x),v.return=m,m=v),a(m)):r(m,v)}return b}var ca=q1(!0),X1=q1(!1),qs={},un=hi(qs),Bs=hi(qs),zs=hi(qs);function qi(e){if(e===qs)throw Error(L(174));return e}function Sm(e,t){switch(Le(zs,t),Le(Bs,e),Le(un,qs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:gp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=gp(t,e)}Be(un),Le(un,t)}function ua(){Be(un),Be(Bs),Be(zs)}function Y1(e){qi(zs.current);var t=qi(un.current),r=gp(t,e.type);t!==r&&(Le(Bs,e),Le(un,r))}function km(e){Bs.current===e&&(Be(un),Be(Bs))}var Xe=hi(0);function du(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((128&t.flags)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Jh=[];function Cm(){for(var e=0;er?r:4,e(!0);var n=ep.transition;ep.transition={};try{e(!1),t()}finally{Fe=r,ep.transition=n}}function fS(){return Ir().memoizedState}function pL(e,t,r){var n=li(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},dS(e))hS(t,r);else if(r=H1(e,t,r,n),r!==null){var i=Wt();Gr(r,e,n,i),pS(r,t,n)}}function mL(e,t,r){var n=li(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(dS(e))hS(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,qr(s,a)){var l=t.interleaved;l===null?(i.next=i,xm(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}r=H1(e,t,i,n),r!==null&&(i=Wt(),Gr(r,e,n,i),pS(r,t,n))}}function dS(e){var t=e.alternate;return e===Ye||t!==null&&t===Ye}function hS(e,t){ks=hu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function pS(e,t,r){if((4194240&r)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,am(e,r)}}var pu={readContext:Pr,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useInsertionEffect:Vt,useLayoutEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useMutableSource:Vt,useSyncExternalStore:Vt,useId:Vt,unstable_isNewReconciler:!1},gL={readContext:Pr,useCallback:function(e,t){return sn().memoizedState=[e,t===void 0?null:t],e},useContext:Pr,useEffect:Cw,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Uc(4194308,4,aS.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Uc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Uc(4,2,e,t)},useMemo:function(e,t){var r=sn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sn();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=pL.bind(null,Ye,e),[n.memoizedState,e]},useRef:function(e){var t=sn();return e={current:e},t.memoizedState=e},useState:kw,useDebugValue:Pm,useDeferredValue:function(e){return sn().memoizedState=e},useTransition:function(){var e=kw(!1),t=e[0];return e=hL.bind(null,e[1]),sn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ye,i=sn();if(je){if(r===void 0)throw Error(L(407));r=r()}else{if(r=t(),wt===null)throw Error(L(349));(30&Zi)!==0||Z1(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,Cw(eS.bind(null,n,o,e),[e]),n.flags|=2048,js(9,J1.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=sn(),t=wt.identifierPrefix;if(je){var r=Cn,n=kn;r=(n&~(1<<32-Ur(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ns++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[ln]=t,e[Ds]=n,kS(e,t,!1,!1),t.stateNode=e;e:{switch(a=yp(r,n),r){case"dialog":De("cancel",e),De("close",e),i=n;break;case"iframe":case"object":case"embed":De("load",e),i=n;break;case"video":case"audio":for(i=0;ida&&(t.flags|=128,n=!0,fs(o,!1),t.lanes=4194304)}else{if(!n)if(e=du(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),fs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!je)return At(t),null}else 2*nt()-o.renderingStartTime>da&&r!==1073741824&&(t.flags|=128,n=!0,fs(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(r=o.last,r!==null?r.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=nt(),t.sibling=null,r=Xe.current,Le(Xe,n?1&r|2:1&r),t):(At(t),null);case 22:case 23:return Vm(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(1&t.mode)!==0?(1073741824&lr)!==0&&(At(t),6&t.subtreeFlags&&(t.flags|=8192)):At(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function CL(e,t){switch(mm(t),t.tag){case 1:return Jt(t.type)&&ou(),e=t.flags,65536&e?(t.flags=-65537&e|128,t):null;case 3:return ua(),Be(Zt),Be(Bt),Cm(),e=t.flags,(65536&e)!==0&&(128&e)===0?(t.flags=-65537&e|128,t):null;case 5:return km(t),null;case 13:if(Be(Xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));la()}return e=t.flags,65536&e?(t.flags=-65537&e|128,t):null;case 19:return Be(Xe),null;case 4:return ua(),null;case 10:return bm(t.type._context),null;case 22:case 23:return Vm(),null;case 24:return null;default:return null}}var Bc=!1,Dt=!1,TL=typeof WeakSet=="function"?WeakSet:Set,$=null;function Zo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Je(e,t,n)}else r.current=null}function RS(e,t,r){try{r()}catch(n){Je(e,t,n)}}var Ow=!1;function RL(e,t){if(Fp=tu,e=P1(),hm(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||F;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,d=null;t:for(;;){for(var h;f!==r||i!==0&&f.nodeType!==3||(s=a+i),f!==o||n!==0&&f.nodeType!==3||(l=a+n),f.nodeType===3&&(a+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++c===i&&(s=a),d===o&&++u===n&&(l=a),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Pp={focusedElem:e,selectionRange:r},tu=!1,$=t;$!==null;)if(t=$,e=t.child,(1028&t.subtreeFlags)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var p=t.alternate;if((1024&t.flags)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,b=p.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:jr(t.type,g),b);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(x){Je(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return p=Ow,Ow=!1,p}function Cs(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&RS(t,r,o)}i=i.next}while(i!==n)}}function Fu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Up(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function ES(e){var t=e.alternate;t!==null&&(e.alternate=null,ES(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ln],delete t[Ds],delete t[Mp],delete t[lL],delete t[cL])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function FS(e){return e.tag===5||e.tag===3||e.tag===4}function Lw(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||FS(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(2&e.flags||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Gp(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=iu));else if(n!==4&&(e=e.child,e!==null))for(Gp(e,t,r),e=e.sibling;e!==null;)Gp(e,t,r),e=e.sibling}function qp(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(qp(e,t,r),e=e.sibling;e!==null;)qp(e,t,r),e=e.sibling}var Rt=null,Hr=!1;function Yn(e,t,r){for(r=r.child;r!==null;)PS(e,t,r),r=r.sibling}function PS(e,t,r){if(cn&&typeof cn.onCommitFiberUnmount=="function")try{cn.onCommitFiberUnmount(xu,r)}catch{}switch(r.tag){case 5:Dt||Zo(r,t);case 6:var n=Rt,i=Hr;Rt=null,Yn(e,t,r),Rt=n,Hr=i,Rt!==null&&(Hr?(e=Rt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Rt.removeChild(r.stateNode));break;case 18:Rt!==null&&(Hr?(e=Rt,r=r.stateNode,e.nodeType===8?Qh(e.parentNode,r):e.nodeType===1&&Qh(e,r),Ms(e)):Qh(Rt,r.stateNode));break;case 4:n=Rt,i=Hr,Rt=r.stateNode.containerInfo,Hr=!0,Yn(e,t,r),Rt=n,Hr=i;break;case 0:case 11:case 14:case 15:if(!Dt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&((2&o)!==0||(4&o)!==0)&&RS(r,t,a),i=i.next}while(i!==n)}Yn(e,t,r);break;case 1:if(!Dt&&(Zo(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Je(r,t,s)}Yn(e,t,r);break;case 21:Yn(e,t,r);break;case 22:1&r.mode?(Dt=(n=Dt)||r.memoizedState!==null,Yn(e,t,r),Dt=n):Yn(e,t,r);break;default:Yn(e,t,r)}}function Vw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new TL),t.forEach(function(n){var i=VL.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function $r(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=a),n&=~o}if(n=i,n=nt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*FL(n/1960))-n,10e?16:e,ti===null)var n=!1;else{if(e=ti,ti=null,vu=0,(6&Se)!==0)throw Error(L(331));var i=Se;for(Se|=4,$=e.current;$!==null;){var o=$,a=o.child;if((16&$.flags)!==0){var s=o.deletions;if(s!==null){for(var l=0;lnt()-Om?Xi(e,0):Mm|=r),er(e,t)}function DS(e,t){t===0&&((1&e.mode)===0?t=1:(t=Tc,Tc<<=1,(130023424&Tc)===0&&(Tc=4194304)));var r=Wt();e=Fn(e,t),e!==null&&(Ws(e,t,r),er(e,r))}function LL(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),DS(e,r)}function VL(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(L(314))}n!==null&&n.delete(t),DS(e,r)}var BS;BS=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Zt.current)Qt=!0;else{if((e.lanes&r)===0&&(128&t.flags)===0)return Qt=!1,SL(e,t,r);Qt=(131072&e.flags)!==0}else Qt=!1,je&&(1048576&t.flags)!==0&&N1(t,lu,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Gc(e,t),e=t.pendingProps;var i=sa(t,Bt.current);ia(t,r),i=Rm(null,t,n,e,i,r);var o=Em();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Jt(n)?(o=!0,au(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,wm(t),i.updater=Ru,t.stateNode=i,i._reactInternals=t,Bp(t,n,e,r),t=$p(null,t,n,!0,o,r)):(t.tag=0,je&&o&&pm(t),Ht(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Gc(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=DL(n),e=jr(n,e),i){case 0:t=Np(null,t,n,e,r);break e;case 1:t=Iw(null,t,n,e,r);break e;case 11:t=Fw(null,t,n,e,r);break e;case 14:t=Pw(null,t,n,jr(n.type,e),r);break e}throw Error(L(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:jr(n,i),Np(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:jr(n,i),Iw(e,t,n,i,r);case 3:e:{if(xS(t),e===null)throw Error(L(387));n=t.pendingProps,o=t.memoizedState,i=o.element,W1(e,t),fu(t,n,null,r);var a=t.memoizedState;if(n=a.element,o.isDehydrated){if(o={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){i=fa(Error(L(423)),t),t=_w(e,t,n,r,i);break e}if(n!==i){i=fa(Error(L(424)),t),t=_w(e,t,n,r,i);break e}for(cr=oi(t.stateNode.containerInfo.firstChild),ur=t,je=!0,Wr=null,r=X1(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(la(),n===i){t=Pn(e,t,r);break e}Ht(e,t,n,r)}t=t.child}return t;case 5:return Y1(t),e===null&&Vp(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Ip(n,i)?a=null:o!==null&&Ip(n,o)&&(t.flags|=32),bS(e,t),Ht(e,t,a,r),t.child;case 6:return e===null&&Vp(t),null;case 13:return wS(e,t,r);case 4:return Sm(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ca(t,null,n,r):Ht(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:jr(n,i),Fw(e,t,n,i,r);case 7:return Ht(e,t,t.pendingProps,r),t.child;case 8:return Ht(e,t,t.pendingProps.children,r),t.child;case 12:return Ht(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Le(cu,n._currentValue),n._currentValue=a,o!==null)if(qr(o.value,a)){if(o.children===i.children&&!Zt.current){t=Pn(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=Tn(-1,r&-r),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),Ap(o.return,r,t),s.lanes|=r;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(L(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Ap(a,r,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Ht(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,ia(t,r),i=Pr(i),n=n(i),t.flags|=1,Ht(e,t,n,r),t.child;case 14:return n=t.type,i=jr(n,t.pendingProps),i=jr(n.type,i),Pw(e,t,n,i,r);case 15:return vS(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:jr(n,i),Gc(e,t),t.tag=1,Jt(n)?(e=!0,au(t)):e=!1,ia(t,r),G1(t,n,i),Bp(t,n,i,r),$p(null,t,n,!0,e,r);case 19:return SS(e,t,r);case 22:return yS(e,t,r)}throw Error(L(156,t.tag))};function zS(e,t){return u1(e,t)}function AL(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Er(e,t,r,n){return new AL(e,t,r,n)}function Dm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function DL(e){if(typeof e=="function")return Dm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rm)return 11;if(e===nm)return 14}return 2}function ci(e,t){var r=e.alternate;return r===null?(r=Er(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Yc(e,t,r,n,i,o){var a=2;if(n=e,typeof e=="function")Dm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ho:return Yi(r.children,i,o,t);case tm:a=8,i|=8;break;case lp:return e=Er(12,r,t,2|i),e.elementType=lp,e.lanes=o,e;case cp:return e=Er(13,r,t,i),e.elementType=cp,e.lanes=o,e;case up:return e=Er(19,r,t,i),e.elementType=up,e.lanes=o,e;case qw:return Iu(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Uw:a=10;break e;case Gw:a=9;break e;case rm:a=11;break e;case nm:a=14;break e;case Kn:a=16,n=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=Er(a,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function Yi(e,t,r,n){return e=Er(7,e,n,t),e.lanes=r,e}function Iu(e,t,r,n){return e=Er(22,e,n,t),e.elementType=qw,e.lanes=r,e.stateNode={isHidden:!1},e}function op(e,t,r){return e=Er(6,e,null,t),e.lanes=r,e}function ap(e,t,r){return t=Er(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function BL(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hh(0),this.expirationTimes=Hh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hh(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Bm(e,t,r,n,i,o,a,s,l){return e=new BL(e,t,r,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Er(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},wm(o),e}function zL(e,t,r){var n=3.04045?Math.pow((n+.055)/1.055,2.4):n/12.92}static yToL(n){return n<=B.epsilon?n/B.refY*B.kappa:116*Math.pow(n/B.refY,1/3)-16}static lToY(n){return n<=8?B.refY*n/B.kappa:B.refY*Math.pow((n+16)/116,3)}static rgbChannelToHex(n){let i=Math.round(n*255),o=i%16,a=(i-o)/16|0;return B.hexChars.charAt(a)+B.hexChars.charAt(o)}static hexToRgbChannel(n,i){let o=B.hexChars.indexOf(n.charAt(i)),a=B.hexChars.indexOf(n.charAt(i+1));return(o*16+a)/255}static distanceFromOriginAngle(n,i,o){let a=i/(Math.sin(o)-n*Math.cos(o));return a<0?1/0:a}static distanceFromOrigin(n,i){return Math.abs(i)/Math.sqrt(Math.pow(n,2)+1)}static min6(n,i,o,a,s,l){return Math.min(n,Math.min(i,Math.min(o,Math.min(a,Math.min(s,l)))))}rgbToHex(){this.hex="#",this.hex+=B.rgbChannelToHex(this.rgb_r),this.hex+=B.rgbChannelToHex(this.rgb_g),this.hex+=B.rgbChannelToHex(this.rgb_b)}hexToRgb(){this.hex=this.hex.toLowerCase(),this.rgb_r=B.hexToRgbChannel(this.hex,1),this.rgb_g=B.hexToRgbChannel(this.hex,3),this.rgb_b=B.hexToRgbChannel(this.hex,5)}xyzToRgb(){this.rgb_r=B.fromLinear(B.m_r0*this.xyz_x+B.m_r1*this.xyz_y+B.m_r2*this.xyz_z),this.rgb_g=B.fromLinear(B.m_g0*this.xyz_x+B.m_g1*this.xyz_y+B.m_g2*this.xyz_z),this.rgb_b=B.fromLinear(B.m_b0*this.xyz_x+B.m_b1*this.xyz_y+B.m_b2*this.xyz_z)}rgbToXyz(){let n=B.toLinear(this.rgb_r),i=B.toLinear(this.rgb_g),o=B.toLinear(this.rgb_b);this.xyz_x=.41239079926595*n+.35758433938387*i+.18048078840183*o,this.xyz_y=.21263900587151*n+.71516867876775*i+.072192315360733*o,this.xyz_z=.019330818715591*n+.11919477979462*i+.95053215224966*o}xyzToLuv(){let n=this.xyz_x+15*this.xyz_y+3*this.xyz_z,i=4*this.xyz_x,o=9*this.xyz_y;n!==0?(i/=n,o/=n):(i=NaN,o=NaN),this.luv_l=B.yToL(this.xyz_y),this.luv_l===0?(this.luv_u=0,this.luv_v=0):(this.luv_u=13*this.luv_l*(i-B.refU),this.luv_v=13*this.luv_l*(o-B.refV))}luvToXyz(){if(this.luv_l===0){this.xyz_x=0,this.xyz_y=0,this.xyz_z=0;return}let n=this.luv_u/(13*this.luv_l)+B.refU,i=this.luv_v/(13*this.luv_l)+B.refV;this.xyz_y=B.lToY(this.luv_l),this.xyz_x=0-9*this.xyz_y*n/((n-4)*i-n*i),this.xyz_z=(9*this.xyz_y-15*i*this.xyz_y-i*this.xyz_x)/(3*i)}luvToLch(){if(this.lch_l=this.luv_l,this.lch_c=Math.sqrt(this.luv_u*this.luv_u+this.luv_v*this.luv_v),this.lch_c<1e-8)this.lch_h=0;else{let n=Math.atan2(this.luv_v,this.luv_u);this.lch_h=n*180/Math.PI,this.lch_h<0&&(this.lch_h=360+this.lch_h)}}lchToLuv(){let n=this.lch_h/180*Math.PI;this.luv_l=this.lch_l,this.luv_u=Math.cos(n)*this.lch_c,this.luv_v=Math.sin(n)*this.lch_c}calculateBoundingLines(n){let i=Math.pow(n+16,3)/1560896,o=i>B.epsilon?i:n/B.kappa,a=o*(284517*B.m_r0-94839*B.m_r2),s=o*(838422*B.m_r2+769860*B.m_r1+731718*B.m_r0),l=o*(632260*B.m_r2-126452*B.m_r1),c=o*(284517*B.m_g0-94839*B.m_g2),u=o*(838422*B.m_g2+769860*B.m_g1+731718*B.m_g0),f=o*(632260*B.m_g2-126452*B.m_g1),d=o*(284517*B.m_b0-94839*B.m_b2),h=o*(838422*B.m_b2+769860*B.m_b1+731718*B.m_b0),p=o*(632260*B.m_b2-126452*B.m_b1);this.r0s=a/l,this.r0i=s*n/l,this.r1s=a/(l+126452),this.r1i=(s-769860)*n/(l+126452),this.g0s=c/f,this.g0i=u*n/f,this.g1s=c/(f+126452),this.g1i=(u-769860)*n/(f+126452),this.b0s=d/p,this.b0i=h*n/p,this.b1s=d/(p+126452),this.b1i=(h-769860)*n/(p+126452)}calcMaxChromaHpluv(){let n=B.distanceFromOrigin(this.r0s,this.r0i),i=B.distanceFromOrigin(this.r1s,this.r1i),o=B.distanceFromOrigin(this.g0s,this.g0i),a=B.distanceFromOrigin(this.g1s,this.g1i),s=B.distanceFromOrigin(this.b0s,this.b0i),l=B.distanceFromOrigin(this.b1s,this.b1i);return B.min6(n,i,o,a,s,l)}calcMaxChromaHsluv(n){let i=n/360*Math.PI*2,o=B.distanceFromOriginAngle(this.r0s,this.r0i,i),a=B.distanceFromOriginAngle(this.r1s,this.r1i,i),s=B.distanceFromOriginAngle(this.g0s,this.g0i,i),l=B.distanceFromOriginAngle(this.g1s,this.g1i,i),c=B.distanceFromOriginAngle(this.b0s,this.b0i,i),u=B.distanceFromOriginAngle(this.b1s,this.b1i,i);return B.min6(o,a,s,l,c,u)}hsluvToLch(){if(this.hsluv_l>99.9999999)this.lch_l=100,this.lch_c=0;else if(this.hsluv_l<1e-8)this.lch_l=0,this.lch_c=0;else{this.lch_l=this.hsluv_l,this.calculateBoundingLines(this.hsluv_l);let n=this.calcMaxChromaHsluv(this.hsluv_h);this.lch_c=n/100*this.hsluv_s}this.lch_h=this.hsluv_h}lchToHsluv(){if(this.lch_l>99.9999999)this.hsluv_s=0,this.hsluv_l=100;else if(this.lch_l<1e-8)this.hsluv_s=0,this.hsluv_l=0;else{this.calculateBoundingLines(this.lch_l);let n=this.calcMaxChromaHsluv(this.lch_h);this.hsluv_s=this.lch_c/n*100,this.hsluv_l=this.lch_l}this.hsluv_h=this.lch_h}hpluvToLch(){if(this.hpluv_l>99.9999999)this.lch_l=100,this.lch_c=0;else if(this.hpluv_l<1e-8)this.lch_l=0,this.lch_c=0;else{this.lch_l=this.hpluv_l,this.calculateBoundingLines(this.hpluv_l);let n=this.calcMaxChromaHpluv();this.lch_c=n/100*this.hpluv_p}this.lch_h=this.hpluv_h}lchToHpluv(){if(this.lch_l>99.9999999)this.hpluv_p=0,this.hpluv_l=100;else if(this.lch_l<1e-8)this.hpluv_p=0,this.hpluv_l=0;else{this.calculateBoundingLines(this.lch_l);let n=this.calcMaxChromaHpluv();this.hpluv_p=this.lch_c/n*100,this.hpluv_l=this.lch_l}this.hpluv_h=this.lch_h}hsluvToRgb(){this.hsluvToLch(),this.lchToLuv(),this.luvToXyz(),this.xyzToRgb()}hpluvToRgb(){this.hpluvToLch(),this.lchToLuv(),this.luvToXyz(),this.xyzToRgb()}hsluvToHex(){this.hsluvToRgb(),this.rgbToHex()}hpluvToHex(){this.hpluvToRgb(),this.rgbToHex()}rgbToHsluv(){this.rgbToXyz(),this.xyzToLuv(),this.luvToLch(),this.lchToHpluv(),this.lchToHsluv()}rgbToHpluv(){this.rgbToXyz(),this.xyzToLuv(),this.luvToLch(),this.lchToHpluv(),this.lchToHpluv()}hexToHsluv(){this.hexToRgb(),this.rgbToHsluv()}hexToHpluv(){this.hexToRgb(),this.rgbToHpluv()}};e.Hsluv=t,t.hexChars="0123456789abcdef",t.refY=1,t.refU=.19783000664283,t.refV=.46831999493879,t.kappa=903.2962962,t.epsilon=.0088564516,t.m_r0=3.240969941904521,t.m_r1=-1.537383177570093,t.m_r2=-.498610760293,t.m_g0=-.96924363628087,t.m_g1=1.87596750150772,t.m_g2=.041555057407175,t.m_b0=.055630079696993,t.m_b1=-.20397695888897,t.m_b2=1.056971514242878}}),iV=tn({"../../../node_modules/eventemitter3/index.js"(e,t){"use strict";var r=Object.prototype.hasOwnProperty,n="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1));function o(c,u,f){this.fn=c,this.context=u,this.once=f||!1}function a(c,u,f,d,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new o(f,d||c,h),g=n?n+u:u;return c._events[g]?c._events[g].fn?c._events[g]=[c._events[g],p]:c._events[g].push(p):(c._events[g]=p,c._eventsCount++),c}function s(c,u){--c._eventsCount===0?c._events=new i:delete c._events[u]}function l(){this._events=new i,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],f,d;if(this._eventsCount===0)return u;for(d in f=this._events)r.call(f,d)&&u.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},l.prototype.listeners=function(u){var f=n?n+u:u,d=this._events[f];if(!d)return[];if(d.fn)return[d.fn];for(var h=0,p=d.length,g=new Array(p);hparseInt(b[1],10)):u=!1),u}function p(b){return d===null&&(d=!!b.document.fonts),d}function g(b,m){var v=b.style,y=b.weight;if(f===null){var x=document.createElement("div");try{x.style.font="condensed 100px sans-serif"}catch{}f=x.style.font!==""}return[v,y,f?b.stretch:"","100px",m].join(" ")}l.prototype.load=function(b,m){var v=this,y=b||"BESbswy",x=0,k=m||3e3,w=new Date().getTime();return new Promise(function(R,T){if(p(v.context)&&!h(v.context)){var P=new Promise(function(D,z){function _(){new Date().getTime()-w>=k?z(Error(""+k+"ms timeout exceeded")):v.context.document.fonts.load(g(v,'"'+v.family+'"'),y).then(function(W){1<=W.length?D():setTimeout(_,25)},z)}_()}),I=new Promise(function(D,z){x=setTimeout(function(){z(Error(""+k+"ms timeout exceeded"))},k)});Promise.race([I,P]).then(function(){clearTimeout(x),R(v)},T)}else n(function(){function D(){var ie;(ie=K!=-1&&N!=-1||K!=-1&&U!=-1||N!=-1&&U!=-1)&&((ie=K!=N&&K!=U&&N!=U)||(c===null&&(ie=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(F.navigator.userAgent),c=!!ie&&(536>parseInt(ie[1],10)||parseInt(ie[1],10)===536&&11>=parseInt(ie[2],10))),ie=c&&(K==se&&N==se&&U==se||K==be&&N==be&&U==be||K==Me&&N==Me&&U==Me)),ie=!ie),ie&&(J.parentNode!==null&&J.parentNode.removeChild(J),clearTimeout(x),R(v))}function z(){if(new Date().getTime()-w>=k)J.parentNode!==null&&J.parentNode.removeChild(J),T(Error(""+k+"ms timeout exceeded"));else{var ie=v.context.document.hidden;(ie===!0||ie===void 0)&&(K=_.g.offsetWidth,N=W.g.offsetWidth,U=G.g.offsetWidth,D()),x=setTimeout(z,50)}}var _=new i(y),W=new i(y),G=new i(y),K=-1,N=-1,U=-1,se=-1,be=-1,Me=-1,J=document.createElement("div");J.dir="ltr",o(_,g(v,"sans-serif")),o(W,g(v,"serif")),o(G,g(v,"monospace")),J.appendChild(_.g),J.appendChild(W.g),J.appendChild(G.g),v.context.document.body.appendChild(J),se=_.g.offsetWidth,be=W.g.offsetWidth,Me=G.g.offsetWidth,z(),s(_,function(ie){K=ie,D()}),o(_,g(v,'"'+v.family+'",sans-serif')),s(W,function(ie){N=ie,D()}),o(W,g(v,'"'+v.family+'",serif')),s(G,function(ie){U=ie,D()}),o(G,g(v,'"'+v.family+'",monospace'))})})},typeof t=="object"?t.exports=l:(F.FontFaceObserver=l,F.FontFaceObserver.prototype.load=l.prototype.load)})()}}),lV="preload";function tv(e){return typeof e=="object"&&e!==null&&!Ct(e)&&lV in e}function qU(e){let t=Xv(e),r,n,i=!1,o=Ce(function(s,l){return A(()=>{i=!0},[]),S(n??t,{ref:l,...s})});return o.preload=()=>(r||(r=e().then(a=>(n=a.default,n))),r),o.getStatus=()=>({hasLoaded:n!==void 0,hasRendered:i}),o}var fo=Object.keys;function cf(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var cV="equals";function US(e){return e===null||!(cV in e)?!1:typeof e.equals=="function"}function rv(e,t){return e===t?!0:e!==e&&t!==t}function uV(e,t){let r=e.length;if(r!==t.length)return!1;for(let n=r;n--!==0;)if(!rv(e[n],t[n]))return!1;return!0}function fV(e,t){let r=e.length;if(r!==t.length)return!1;for(let n=r;n--!==0;)if(!wf(e[n],t[n],!0))return!1;return!0}function dV(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e.entries())if(!rv(n,t.get(r)))return!1;return!0}function hV(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e.entries())if(!wf(n,t.get(r),!0))return!1;return!0}function pV(e,t){if(e.size!==t.size)return!1;for(let r of e.keys())if(!t.has(r))return!1;return!0}function mV(e,t){let r=fo(e);if(r.length!==fo(t).length)return!1;for(let n of r){if(!cf(t,n))return!1;if(!(n==="_owner"&&cf(e,"$$typeof")&&e.$$typeof)&&!rv(e[n],t[n]))return!1}return!0}function gV(e,t){let r=fo(e);if(r.length!==fo(t).length)return!1;for(let n of r){if(!cf(t,n))return!1;if(!(n==="_owner"&&cf(e,"$$typeof")&&e.$$typeof)&&!wf(e[n],t[n],!0))return!1}return!0}function wf(e,t,r){if(e===t)return!0;if(!e||!t)return e!==e&&t!==t;let n=typeof e;if(n!==typeof t||n!=="object")return!1;let o=Array.isArray(e),a=Array.isArray(t);if(o&&a)return r?fV(e,t):uV(e,t);if(o!==a)return!1;let s=e instanceof Map,l=t instanceof Map;if(s&&l)return r?hV(e,t):dV(e,t);if(s!==l)return!1;let c=e instanceof Set,u=t instanceof Set;if(c&&u)return pV(e,t);if(c!==u)return!1;let f=e instanceof Date,d=t instanceof Date;if(f&&d)return e.getTime()===t.getTime();if(f!==d)return!1;let h=e instanceof RegExp,p=t instanceof RegExp;return h&&p?e.toString()===t.toString():h!==p?!1:US(e)&&US(t)?e.equals(t):r?gV(e,t):mV(e,t)}function Fa(e,t,r=!0){try{return wf(e,t,r)}catch(n){if(n instanceof Error&&/stack|recursion/iu.exec(n.message))return console.warn("Warning: isEqual does not handle circular references.",n.name,n.message),!1;throw n}}function qC(e){return E.useCallback(t=>e[t],[e])}var nv=E.createContext({});function vV({api:e,children:t}){return S(nv.Provider,{value:e,children:t})}function zn(){return E.useContext(nv)}function yV({routes:e,children:t}){let r=qC(e),n=Y(()=>({getRoute:r}),[r]);return S(nv.Provider,{value:n,children:t})}var bV=E.createContext({});function Nn(){var e;let t=zn(),r=O(bV),n=r?.routeId??t.currentRouteId,i=r?.routeId?r.pathVariables:t.currentPathVariables,o=n?(e=t.getRoute)==null?void 0:e.call(t,n):void 0;return Y(()=>{if(!(!n||!o))return{...o,id:n,pathVariables:i}},[n,i,o])}function iv(){let e=Nn();if(e)return`${e.id}-${JSON.stringify(e.pathVariables)}`}function Sf(e){let t=Nn(),r=E.useRef(t);Fa(r.current,t)||!t||(r.current=t,e(t))}function xV(e){var t;let r=zn();if(e)return(t=r.getRoute)==null?void 0:t.call(r,e)}function kf(e,t){if(t&&e)return e.elements&&t in e.elements?e.elements[t]:t}var wV=[];function XC(e){let t=["pointerdown","pointerup","keydown","keyup"],r=n=>{let i=n.type;t.includes(i)&&performance.mark("framer-navigation-input",{detail:{type:i}})};for(let n=0;n{for(let n=0;nn?kf(n,e):e,[e,n])}function r9(){var e;return(e=Nn())==null?void 0:e.pathVariables}function rr(e){return typeof e=="function"}function ov(e){return typeof e=="boolean"}function ne(e){return typeof e=="string"}function _e(e){return Number.isFinite(e)}function ll(e){return Array.isArray(e)}function ce(e){return e!==null&&typeof e=="object"&&!ll(e)}function mt(e){return typeof e>"u"}function Qr(e){return e===null}function SV(e){return e==null}function YC(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function KC(e){return ce(e)&&rr(e.return)}var cl=()=>{},Pa=typeof F<"u",ul=Pa&&/bot|-google|google-|yandex|ia_archiver|crawl|spider/iu.test(He.userAgent),QC=Pa&&typeof F.requestIdleCallback=="function",av=QC?F.requestIdleCallback:setTimeout;function nl(e){return`url('data:image/svg+xml,${e.replaceAll("#","%23").replaceAll("'","%27")}')`}var kV={addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:()=>!1,ResizeObserver:void 0,onpointerdown:!1,onpointermove:!1,onpointerup:!1,ontouchstart:!1,ontouchmove:!1,ontouchend:!1,onmousedown:!1,onmousemove:!1,onmouseup:!1,devicePixelRatio:1,scrollX:0,scrollY:0,location:{hash:"",hostname:"",href:"",origin:"",pathname:"",search:""},document:{baseURI:"",cookie:"",referrer:null},setTimeout:()=>0,clearTimeout:()=>{},setInterval:()=>0,clearInterval:()=>{},requestAnimationFrame:()=>0,cancelAnimationFrame:()=>{},requestIdleCallback:()=>0,getSelection:()=>null,matchMedia:e=>({matches:!1,media:e,onchange:()=>{},addEventListener:()=>{},removeEventListener:()=>{},addListener:()=>{},removeListener:()=>{},dispatchEvent:()=>!1}),innerHeight:0,innerWidth:0,SVGSVGElement:{},scheduler:void 0,open:function(e,t,r){},__framer_events:[]},ve=Pa?F:kV,GS=ve.scheduler&&"yield"in ve.scheduler,CV=ve.scheduler&&"postTask"in ve.scheduler,uf=new Set;function jm(){for(let e of uf)e();uf.clear()}function TV(e){return new Promise(t=>{if(uf.add(t),document.hidden){jm();return}document.addEventListener("visibilitychange",jm),document.addEventListener("pagehide",jm),Z.read(()=>{let r=()=>{var n;uf.delete(t),!((n=e?.signal)!=null&&n.aborted)&&t()};sv(e).then(r)})})}function RV(e){return new Promise(t=>{setTimeout(t,100),Z.read(()=>{sv(e).then(t)},!1,!0)})}function sv(e){let t=e?.priority;return GS||CV?t==="background"?new Promise(n=>{setTimeout(n,1)}):GS?ve.scheduler.yield(e).catch(cl):ve.scheduler.postTask(()=>{},e).catch(cl):t==="user-blocking"?Promise.resolve():new Promise(n=>{setTimeout(n,t==="background"?1:0)})}function Jr(e){let{continueAfter:t,ensureContinueBeforeUnload:r,...n}=e??{};return r?TV(n):t==="paint"?RV(n):sv(n)}var lv=!ul;function EV(e,t=!0){let{getRoute:r}=zn();A(()=>{if(!(!r||!t||!lv))for(let n of e)ZC(r(n))},[e,r,t])}async function ZC(e){if(!lv||!e)return;let t=e.page;if(!(!t||!tv(t))){await Jr();try{await t.preload()}catch{}}}var kg,Cg;function JC(){let e=Intl.DateTimeFormat().resolvedOptions();kg=e.timeZone,Cg=e.locale}av(JC);function Vn(e,t,r="lazy"){if(ve.__framer_events)switch((!kg||!Cg)&&JC(),ve.__framer_events.push([e,{referrer:null,url:ve.location.href,hostname:ve.location.hostname||null,pathname:ve.location.pathname||null,hash:ve.location.hash||null,search:ve.location.search||null,timezone:kg,locale:Cg,...t},r]),e){case"published_site_click":{let{trackingId:n,href:i}=t;n&&document.dispatchEvent(new CustomEvent("framer:click",{detail:{trackingId:n,href:i}}));break}case"published_site_form_submit":{let{trackingId:n}=t;n&&document.dispatchEvent(new CustomEvent("framer:formsubmit",{detail:{trackingId:n}}));break}case"published_site_pageview":{let{framerLocale:n}=t;document.dispatchEvent(new CustomEvent("framer:pageview",{detail:{framerLocale:n}}));break}}}function Tg(e,t){if(!e.startsWith("/")||!t.startsWith("/"))throw new Error("from/to paths are expected to be absolute");let[r]=qS(e),[n,i]=qS(t),o=FV(r,n);return o===""&&(o="."),!o.startsWith(".")&&!o.startsWith("/")&&(o="./"+o),o+"/"+i}function qS(e){let t=e.lastIndexOf("/");return[e.substring(0,t+1),e.substring(t+1)]}var Hm=46,ba=47,Si=(e,t)=>e.charCodeAt(t),XS=(e,t)=>e.lastIndexOf(t),xa=(e,t,r)=>e.slice(t,r);function FV(e,t){if(e===t||(e="/"+KS(e),t="/"+KS(t),e===t))return"";let r=1,n=e.length,i=n-r,o=1,a=t.length-o,s=is){if(Si(t,o+c)===ba)return xa(t,o+c+1);if(c===0)return xa(t,o+c)}else i>s&&(Si(e,r+c)===ba?l=c:c===0&&(l=0));let u="";for(c=r+l+1;c<=n;++c)(c===n||Si(e,c)===ba)&&(u+=u.length===0?"..":"/..");return`${u}${xa(t,o+l)}`}var PV=!1,Vu="/",YS=e=>e===ba;function KS(e){let t="",r=0,n=-1,i=0,o=0;for(let a=0;a<=e.length;++a){if(a2){let s=XS(t,Vu);s===-1?(t="",r=0):(t=xa(t,0,s),r=t.length-1-XS(t,Vu)),n=a,i=0;continue}else if(t.length!==0){t="",r=0,n=a,i=0;continue}}PV&&(t+=t.length>0?`${Vu}..`:"..",r=2)}else t.length>0?t+=`${Vu}${xa(e,n+1,a)}`:t=xa(e,n+1,a),r=a-n-1;n=a,i=0}else o===Hm&&i!==-1?++i:i=-1}return t}var IV=new Set(["/404.html","/404","/404/"]),_V=":([a-z]\\w*)",ho=new RegExp(_V,"gi");function eT(e,t){return e.replace(ho,(r,n)=>{let i=t[n];return typeof i!="string"||i.length===0?r:encodeURIComponent(i)})}function cv(e){let t=typeof F<"u"?F.location.search:"";return t?MV(t,e):e}function MV(e,t){let r=t.indexOf("#"),n=r===-1?t:t.substring(0,r),i=r===-1?"":t.substring(r),o=n.indexOf("?");if(o===-1)return n+e+i;let a=new URLSearchParams(e),s=n.substring(o+1),l=new URLSearchParams(s);for(let[c,u]of a)l.has(c)||l.append(c,u);return n.substring(0,o+1)+l.toString()+i}async function OV(e,t,r,n,i,o,a){var s;let l=e,c=!1,u={...o},f=Array.from(l.matchAll(ho)),d=await Promise.all(f.map(async b=>{var m;let v=b?.[0],y=b?.[1];if(!v||!y)throw new Error("Failed to replace path variables: unexpected regex match group");let x=o[y];if(!x||!ne(x))throw new Error(`No slug found for path variable ${y}`);let k=await((m=a?.[i])==null?void 0:m.call(a));if(!k||!t)return x;let w=await k.getRecordIdBySlug(x,t);if(!w)return x;let R=await k.getSlugByRecordId(w,r);if(!R){c=!0;let T=await k.getSlugByRecordId(w,n);return T&&(u[y]=T),T??x}return u[y]=R,R})),h=0,p="",g=!1;for(let b=0;b`--view-transition-${e}`;function Rg(e){return[parseFloat(e),e.endsWith("px")?"px":"%"]}function rT(e){let{innerWidth:t,innerHeight:r}=F,[n,i]=Rg(e.x),[o,a]=Rg(e.y);return{x:i==="px"?n:t*(n/100),y:a==="px"?o:r*(o/100)}}var $V={makeKeyframe:(e,t,r)=>{let n=0;return(r==="exit"&&e.angularDirection==="clockwise"&&t==="start"||r==="exit"&&e.angularDirection==="counter-clockwise"&&t==="end"||r==="enter"&&e.angularDirection==="counter-clockwise"&&t==="start"||r==="enter"&&e.angularDirection==="clockwise"&&t==="end")&&(n=e.sweepAngle/360*100),`${Ln("conic-offset")}: ${n}%;`},makeStyles:(e,t)=>{let r=`var(${Ln("conic-offset")})`,n=t==="exit"&&e.angularDirection==="clockwise"||t==="enter"&&e.angularDirection==="counter-clockwise",i=n?"transparent":"black",o=n?"black":"transparent",a="conic-gradient(from ";return a+=`${e.angle}deg at ${e.x} ${e.y}, `,a+=`${i} 0%, ${i} ${r}, `,a+=`${o} ${r}, ${o} 100%)`,`mask-image: ${a}; -webkit-mask-image: ${a};`},makePropertyRules:()=>` @property ${Ln("conic-offset")} { syntax: ''; initial-value: 0%; inherits: false; } `},jV={makeKeyframe:(e,t)=>{let{x:r,y:n}=rT(e);return t==="start"?`clip-path: circle(0 at ${r}px ${n}px);`:`clip-path: circle(${Math.hypot(Math.max(r,F.innerWidth-r),Math.max(n,F.innerHeight-n))}px at ${r}px ${n}px);`}},HV={makeKeyframe:(e,t)=>{let{x:r,y:n}=rT(e),i=F.innerHeight-n,o=F.innerWidth-r;return t==="start"?`clip-path: inset(${n}px ${o}px ${i}px ${r}px round ${e.round}px);`:"clip-path: inset(0 round 0);"}},WV={makeKeyframe:(e,t,r)=>{let[,n]=Rg(e.width),i=`0${n}`;return(t==="start"&&r==="exit"||t==="end"&&r==="enter")&&(i=e.width),`${Ln("blinds-width")}: ${i};`},makeStyles:(e,t)=>{let r=`var(${Ln("blinds-width")})`,n=t==="exit"?"transparent":"black",i=t==="exit"?"black":"transparent",o="repeating-linear-gradient(";return o+=e.angle+90+"deg, ",o+=`${n} 0px, ${n} ${r}, `,o+=`${i} ${r}, ${i} ${e.width})`,`mask-image: ${o}; -webkit-mask-image: ${o};`},makePropertyRules:()=>` @property ${Ln("blinds-width")} { syntax: ''; initial-value: 0px; inherits: false; } `},UV={makeKeyframe:(e,t,r)=>{let n=t==="start"&&r==="exit"||t==="end"&&r==="enter"?1:0;return`${Ln("wipe-offset")}: ${n};`},makeStyles:(e,t)=>{let r=`var(${Ln("wipe-offset")})`,n=t==="exit"?"transparent":"black",i=t==="exit"?"black":"transparent",o="linear-gradient(";return o+=e.angle+90+"deg, ",o+=`${n} calc(calc(0% - ${e.width}) + calc(calc(100% + ${e.width}) * ${r})), `,o+=`${i} calc(calc(100% + ${e.width}) * ${r}))`,`mask-image: ${o}; -webkit-mask-image: ${o};`},makePropertyRules:()=>` @property ${Ln("wipe-offset")} { syntax: ''; initial-value: 0; inherits: false; } `},GV={circle:jV,conic:$V,inset:HV,blinds:WV,wipe:UV},qV={opacity:1,x:"0px",y:"0px",scale:1,rotate:0,rotateX:0,rotateY:0,mask:void 0};function QS(e,t,r,n){var i;let o=` opacity: ${e.opacity}; transform: translate(${e.x}, ${e.y}) scale(${e.scale}) rotateX(${e.rotateX}deg) rotateY(${e.rotateY}deg) rotateZ(${e.rotate}deg); `;return e.mask&&(o+=((i=n?.makeKeyframe)==null?void 0:i.call(n,e.mask,t,r))||""),o}function XV(e){return e?GV[e]:void 0}function ZS(e,{transition:t,...r}){var n;let i="view-transition-"+e,o={duration:"0s",easing:"linear"};if(t.type==="tween")o.duration=t.duration+"s",o.easing=`cubic-bezier(${t.ease.join(",")})`;else if(YV(t)){let{easing:c,duration:u}=NV(Ai({keyframes:[0,1],...KV(t),restDelta:.001,restSpeed:1e-4}));o.duration=u+"ms",o.easing=c}let a=XV((n=r?.mask)==null?void 0:n.type),s=QS(r,"start",e,a),l=QS({...qV,mask:r.mask},"end",e,a);return e==="exit"&&([s,l]=[l,s]),` ${r.mask&&a?.makePropertyRules?a.makePropertyRules(r.mask):""} @keyframes ${i} { 0% { ${s} } 100% { ${l} } } ::view-transition-${e==="enter"?"new":"old"}(root) { animation-name: ${i}; animation-duration: ${o.duration}; animation-delay: ${t.delay}s; animation-timing-function: ${o.easing}; animation-fill-mode: both; ${r.mask&&a?.makeStyles?a.makeStyles(r.mask,e):""} } `}function YV(e){return e.type==="spring"}function KV(e){return e.durationBasedSpring?{duration:e.duration*1e3,bounce:e.bounce}:{stiffness:e.stiffness,damping:e.damping,mass:e.mass}}var nT="view-transition-styles",QV={x:"0px",y:"0px",scale:1,opacity:1,rotate3d:!1,rotate:0,rotateX:0,rotateY:0,mask:void 0,transition:{type:"tween",delay:0,duration:.2,ease:[.27,0,.51,1],stiffness:400,damping:30,mass:1}};function ZV({exit:e=QV,enter:t}){let r=document.createElement("style");r.id=nT;let n=` @media (prefers-reduced-motion) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } } `;(e.mask||t.mask||e.opacity||t.opacity||e.transition.delay||t.transition.delay)&&(n+=` ::view-transition-old(*), ::view-transition-new(*) { mix-blend-mode: normal; } `),n+=` ::view-transition-old(*), ::view-transition-new(*) { backface-visibility: hidden; } `,n+=ZS("exit",e),n+=ZS("enter",t),r.textContent=n,document.head.appendChild(r)}function JV(){av(()=>{Z.render(()=>{performance.mark("framer-vt-remove");let e=document.getElementById(nT);e&&document.head.removeChild(e)})})}var JS=()=>{};function eA(){return!!document.startViewTransition}function tA(e){return new Promise(t=>{Z.render(()=>{performance.mark("framer-vt-style"),ZV(e),t()})})}async function rA(e,t,r){if(!eA()){e();return}if(await tA(t),r?.aborted)return;performance.mark("framer-vt");let n=document.startViewTransition(async()=>{performance.mark("framer-vt-freeze"),!r?.aborted&&(r?.addEventListener("abort",()=>n.skipTransition()),await e())});return n.updateCallbackDone.then(()=>{performance.mark("framer-vt-unfreeze")}).catch(JS),Promise.all([n.ready,n.finished]).then(()=>{performance.mark("framer-vt-finished"),JV()}).catch(JS),n}function iT(){let e=DV(),t=M(void 0);return A(()=>{t.current&&(t.current(),t.current=void 0)}),H((r,n,i,o)=>{let a=BV(r,n,e);if(a){let s=new Promise(l=>{t.current=l});return rA(async()=>{i(),await s},a,o)}i()},[e])}function oT(e,t){av(()=>{let r=document.querySelector("link[rel='canonical']");if(!r)return;let n=new URL(e,t);n.search="",r.setAttribute("href",n.toString())})}var mi,aT=()=>{mi||(mi=document.createElement("div"),mi.setAttribute("aria-live","assertive"),mi.setAttribute("aria-atomic","true"),mi.style.position="absolute",mi.style.transform="scale(0)",document.body.append(mi)),setTimeout(()=>{mi.textContent=document.title},60)};function nA(e,t,r,n=We){n(()=>{let i=async a=>(await Jr({...r,continueAfter:"paint"}),a()),o=i(e);return()=>{(async()=>{let a=await o;a&&i(a)})()}},t)}function sT(e){let t=M(void 0);return nA(()=>{t.current&&(t.current(),t.current=void 0)},void 0,{priority:"user-blocking"}),H(r=>{let n=new Promise(s=>{t.current=s});if(!e)return{promise:n,measureDetail:r,ignore:null};let i=`${e}-start`,o=`${e}-end`,a=!1;return performance.mark(i),n.finally(()=>{a||(performance.mark(o),performance.measure(e,{start:i,end:o,detail:r}))}).catch(s=>{console.error(s)}),{promise:n,measureDetail:r,ignore:()=>{var s;a=!0,(s=t.current)==null||s.call(t),t.current=void 0}}},[e])}async function ek(e,t,{currentRoutePath:r,currentPathVariables:n,hash:i,pathVariables:o,localeId:a,preserveQueryParams:s,siteCanonicalURL:l},c=!1){let{path:u}=t;if(!u)return;let f=Cf(t,{currentRoutePath:r,currentPathVariables:n,hash:i,pathVariables:o,preserveQueryParams:s,siteCanonicalURL:l});try{return await lT({routeId:e,hash:i,pathVariables:o,localeId:a},f,c)}catch{}}function iA(e){return ce(e)&&ne(e["routeId"])}function oA(e,t,r=!1){performance.mark("framer-history-replace"),(r?F.history.__proto__.replaceState:F.history.replaceState).call(F.history,e,"",t)}var Au=!0,tk=(()=>{if(typeof He>"u")return!1;let e=He.userAgent,t=e.indexOf("Chrome/"),r=+e.slice(t+7,e.indexOf(".",t));return r>101&&r<128})();async function lT(e,t,r=!1){if(performance.mark("framer-history-push"),oT(t,F.location.href),!r){F.history.pushState(e,"",t);return}let n=!1,i;Au&&(i=()=>{if(n=!0,tk)return;let o="Popstate called after intercept(). Please report this to the Framer team.";console.error(o),Vn("published_site_load_recoverable_error",{message:o})},F.addEventListener("popstate",i,{once:!0})),tk&&Au?F.history.__proto__.pushState.call(F.history,e,"",t):F.history.pushState(e,"",t),Au&&queueMicrotask(()=>{n||(Au=!1,F.removeEventListener("popstate",i))})}function aA({disabled:e,routeId:t,initialPathVariables:r,initialLocaleId:n}){We(()=>{e||(performance.mark("framer-history-set-initial-state"),oA({routeId:t,pathVariables:r,localeId:n},void 0,!0))},[])}var Eg=(()=>{var e;return Pa&&typeof((e=F.navigation)==null?void 0:e.back)=="function"})();function sA(e,t){let r=iT(),n=sT("framer-route-change"),i=M(void 0),o=H(async({state:s})=>{var l,c,u,f,d,h;if((l=F.navigation)!=null&&l.transition&&((u=(c=F.navigation)==null?void 0:c.transition)==null?void 0:u.navigationType)!=="traverse"||!ce(s))return;let{routeId:p,hash:g,pathVariables:b,localeId:m}=s;if(!ne(p))return;let v=n({popstate:!0}),y=XC();v.promise.finally(y);let x=()=>{t(p,ne(m)?m:void 0,ne(g)?g:void 0,ce(b)?b:void 0,!0,v,!1)},k=await r(e.current,p,x),w=(f=F.navigation)==null?void 0:f.transition;await(k?.updateCallbackDone??Promise.resolve()).then((d=i.current)==null?void 0:d.resolve).catch((h=i.current)==null?void 0:h.reject),await v.promise;try{await w?.finished}catch(R){console.warn("Popstate transition failed",R)}aT(),oT(F.location.href)},[e,n,t,r]),a=H(s=>{s.navigationType==="traverse"&&s.intercept({async handler(){await new Promise((l,c)=>{i.current={resolve:l,reject:c}}),i.current=void 0},scroll:"after-transition"})},[]);A(()=>(F.addEventListener("popstate",o),Eg&&F.navigation.addEventListener("navigate",a),()=>{F.removeEventListener("popstate",o),Eg&&F.navigation.removeEventListener("navigate",a)}),[o,a])}function lA(e,t,r){let n=kf(t,e);if(!n)return;let i=Object.assign({},t?.elements,r);return n.replace(ho,(o,a)=>i[a]??o)}function Cf(e,{currentRoutePath:t,currentPathVariables:r,hash:n,pathVariables:i,hashVariables:o,relative:a=!0,preserveQueryParams:s,onlyHash:l=!1,siteCanonicalURL:c}){let u=lA(n,e,o);if(l)return u??"";let f=t??"/";r&&(f=f.replace(ho,(g,b)=>String(r[b]||g)));let h=e?.path??"/";i&&(h=h.replace(ho,(g,b)=>String(i[b]||g)));let p=f===h&&u;if(a)if(IV.has(f)&&typeof F<"u"){let g=VV(c);h=Tg(F.location.pathname,g+h)}else h=Tg(f,h);return(s||p)&&(h=cv(h)),u&&(h=`${h}#${u}`),h}async function cA(e,t,r){if(!e.path||!t)return!1;let i=`${r.slug?`/${r.slug}`:""}${eT(e.path,t)}`;return(await fetch(i,{method:"HEAD",redirect:"manual"})).type==="opaqueredirect"?(F.location.href=F.location.origin+i,!0):!1}async function uA(e){let t=await LV(e);if(t){try{localStorage.setItem("preferredLocale",e.nextLocale.code)}catch{}try{if(!ne(t.path))throw new Error("Expected result.path to be a string");if(t.isMissingInLocale&&await cA(e.route,t.pathVariables,e.nextLocale))return}catch{}return t}}function fA(){let e=M(Promise.resolve()),t=M(),r=H(n=>{if(n.navigationType==="traverse")return;let i=t.current;i?.signal.addEventListener("abort",()=>{i.abort("user aborted")}),n.intercept({handler:()=>e.current})},[]);return H((n,i,o)=>{if(!Eg){i();return}e.current=n,t.current=o,F.navigation.addEventListener("navigate",r),i(!0),n.finally(()=>{F.navigation.removeEventListener("navigate",r)})},[r])}var dA=async()=>{},hA={activeLocale:null,locales:[],setLocale:dA},cT=E.createContext(hA);function vl(){return E.useContext(cT)}function p9(){var e;return((e=vl().activeLocale)==null?void 0:e.code)??"en-US"}var il=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset"],uT=e=>{var t,r;(r=(t=e.target)==null?void 0:t.closest)!=null&&r.call(t,"#main")&&(e.stopPropagation(),performance.mark("framer-react-event-handling-prevented"))},fT=!1;function g9(){if(!il)return;fT=!0,performance.mark("framer-react-event-handling-start");let e={capture:!0},t=document.body;il.forEach(r=>t.addEventListener(r,uT,e))}function pA(){return A(()=>{if(!fT||!il)return;let e={capture:!0},t=document.body;il.forEach(r=>t.removeEventListener(r,uT,e)),il=void 0,performance.mark("framer-react-event-handling-end")},[]),null}function Pt(e){let t=!1;return function(...r){if(!t)return t=!0,e.apply(this,r)}}function _n(e,t,r){try{performance.measure(e,t,r)}catch(n){console.warn(`Could not measure ${e}`,n)}}var dT,hT,pT,mT,gT,vT,yT,bT,xT,wT,ST,kT,CT,TT,RT,ET,FT,lt;FT=[Pt],ET=[Pt],RT=[Pt],TT=[Pt],CT=[Pt],kT=[Pt],ST=[Pt],wT=[Pt],xT=[Pt],bT=[Pt],yT=[Pt],vT=[Pt],gT=[Pt],mT=[Pt],pT=[Pt],hT=[Pt],dT=[Pt];var gt=class{constructor(){Gv(lt,5,this),C(this,"render",{markStart:()=>this.markRenderStart(),markEnd:()=>this.markRenderEnd()}),C(this,"mutationEffects",{measure:()=>this.measureMutationEffects()}),C(this,"useInsertionEffects",{markStart:()=>this.markUseInsertionEffectsStart(),markRouterStart:()=>this.markUseInsertionEffectRouterStart(),markEnd:()=>this.markUseInsertionEffectsEnd()}),C(this,"useLayoutEffects",{markStart:()=>this.markUseLayoutEffectsStart(),markRouterStart:()=>this.markRouterUseLayoutEffectStart(),markEnd:()=>this.markUseLayoutEffectsEnd()}),C(this,"useEffects",{markStart:()=>this.markUseEffectsStart(),markRouterStart:()=>this.markUseEffectsRouterStart(),markEnd:()=>this.markUseEffectsEnd(),markAreSynchronous:()=>this.markUseEffectsAreSynchronous()}),C(this,"browserRendering",{hasStarted:!1,requestAnimationFrame:{markStart:()=>this.markRafStart(),markEnd:()=>this.markRafEnd()},layoutStylePaint:{markEnd:()=>this.markLayoutStylePaintEnd()}}),C(this,"unattributedHydrationOverhead",{measure:()=>this.measureUnattributedHydrationOverhead()})}markRenderStart(){performance.mark("framer-hydration-start")}markRenderEnd(){performance.mark("framer-hydration-render-end"),_n("framer-hydration-render","framer-hydration-start","framer-hydration-render-end")}markUseInsertionEffectsStart(){performance.mark("framer-hydration-insertion-effects-start")}markUseInsertionEffectRouterStart(){performance.mark("framer-hydration-router-insertion-effect")}markUseInsertionEffectsEnd(){performance.mark("framer-hydration-insertion-effects-end"),_n("framer-hydration-insertion-effects","framer-hydration-insertion-effects-start","framer-hydration-insertion-effects-end")}markUseLayoutEffectsStart(){performance.mark("framer-hydration-layout-effects-start")}markRouterUseLayoutEffectStart(){performance.mark("framer-hydration-router-layout-effect")}markUseLayoutEffectsEnd(){performance.mark("framer-hydration-layout-effects-end"),_n("framer-hydration-layout-effects","framer-hydration-layout-effects-start","framer-hydration-layout-effects-end")}markUseEffectsStart(){performance.mark("framer-hydration-effects-start")}markUseEffectsRouterStart(){performance.mark("framer-hydration-router-effect")}markUseEffectsAreSynchronous(){performance.mark("framer-hydration-effects-sync")}markUseEffectsEnd(){var e,t;performance.mark("framer-hydration-effects-end"),_n("framer-hydration-effects",((e=performance.getEntriesByName("framer-hydration-first-paint")[0])==null?void 0:e.name)??((t=performance.getEntriesByName("framer-hydration-effects-start")[0])==null?void 0:t.name),"framer-hydration-effects-end")}markRafStart(){this.browserRendering.hasStarted=!0,performance.mark("framer-hydration-browser-render-start")}markRafEnd(){performance.mark("framer-hydration-browser-raf-end"),_n("framer-hydration-raf","framer-hydration-browser-render-start","framer-hydration-browser-raf-end")}markLayoutStylePaintEnd(){performance.mark("framer-hydration-first-paint"),_n("framer-hydration-time-to-first-paint","framer-hydration-start","framer-hydration-first-paint"),_n("framer-hydration-browser-render","framer-hydration-browser-raf-end","framer-hydration-first-paint")}measureMutationEffects(){_n("framer-hydration-commit","framer-hydration-layout-effects-end","framer-hydration-effects-start")}measureUnattributedHydrationOverhead(){var e,t;_n("framer-hydration-uho",((e=performance.getEntriesByName("framer-hydration-effects-end")[0])==null?void 0:e.name)??((t=performance.getEntriesByName("framer-hydration-layout-effects-end")[0])==null?void 0:t.name),"framer-hydration-browser-render-start")}};lt=Wv(null);yt(lt,1,"markRenderStart",FT,gt);yt(lt,1,"markRenderEnd",ET,gt);yt(lt,1,"markUseInsertionEffectsStart",RT,gt);yt(lt,1,"markUseInsertionEffectRouterStart",TT,gt);yt(lt,1,"markUseInsertionEffectsEnd",CT,gt);yt(lt,1,"markUseLayoutEffectsStart",kT,gt);yt(lt,1,"markRouterUseLayoutEffectStart",ST,gt);yt(lt,1,"markUseLayoutEffectsEnd",wT,gt);yt(lt,1,"markUseEffectsStart",xT,gt);yt(lt,1,"markUseEffectsRouterStart",bT,gt);yt(lt,1,"markUseEffectsAreSynchronous",yT,gt);yt(lt,1,"markUseEffectsEnd",vT,gt);yt(lt,1,"markRafStart",gT,gt);yt(lt,1,"markRafEnd",mT,gt);yt(lt,1,"markLayoutStylePaintEnd",pT,gt);yt(lt,1,"measureMutationEffects",hT,gt);yt(lt,1,"measureUnattributedHydrationOverhead",dT,gt);Uv(lt,gt);var me;function y9(){me=new gt,me.render.markStart()}function mA(){tt(()=>{me?.useInsertionEffects.markRouterStart()},[]),We(()=>{me?.useLayoutEffects.markRouterStart()},[]),A(()=>{me?.useEffects.markRouterStart()},[])}var PT=!1;function gA(){tt(()=>{me?.render.markEnd(),me?.useInsertionEffects.markStart()},[]),We(()=>{if(me?.useLayoutEffects.markStart(),document.visibilityState!=="visible"){PT=!0;return}Z.read(()=>{me?.browserRendering.requestAnimationFrame.markStart(),me?.unattributedHydrationOverhead.measure()})},[]),A(()=>{me?.useEffects.markStart(),me?.browserRendering.hasStarted||(me?.mutationEffects.measure(),me?.useEffects.markAreSynchronous())},[])}function vA(){tt(()=>{me?.useInsertionEffects.markEnd()},[]),We(()=>{me?.useLayoutEffects.markEnd(),!(PT||document.visibilityState!=="visible")&&Z.read(()=>{me?.browserRendering.requestAnimationFrame.markEnd(),Jr().then(()=>{me?.browserRendering.layoutStylePaint.markEnd()})})},[]),A(()=>{me?.useEffects.markEnd()},[])}function yA(){return gA(),null}function bA(){return vA(),null}var rk={Start:yA,End:bA};function Fg(e,t){let r={style:t,"data-framer-root":""};return E.isValidElement(e)?E.cloneElement(e,r):S(e,{...r})}var xA=class extends Error{},wA=class extends Re{constructor(e){super(e),this.state={error:void 0,forceUpdateKey:e.forceUpdateKey}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){if(e.forceUpdateKey!==t.forceUpdateKey){let r={forceUpdateKey:e.forceUpdateKey};return t.error&&(r.error=void 0),r}return null}render(){if(this.state.error===void 0)return this.props.children;if(!(this.state.error instanceof xA))throw this.state.error;let{notFoundPage:e,defaultPageStyle:t}=this.props;if(!e)throw this.state.error;return Fg(e,t)}},Du,Um,nk;function SA(e){if(nk!==e){Du={};for(let[t,{path:r}]of Object.entries(e))r&&(Du[r]={path:r,depth:kA(r),routeId:t});Um=Object.values(Du),Um.sort(({depth:t},{depth:r})=>r-t),nk=e}return[Du,Um]}function IT(e,t,r=!0,n=[]){let[i,o]=SA(e),a,s,l=t;if(n.length>0){let d=l.split("/").find(Boolean);if(d&&(a=n.find(({slug:h})=>h===d),a&&(s=a.id,l=l.substring(a.slug.length+1))),!s){let h=n.find(({slug:p})=>p==="");h&&(s=h.id)}}let c=i[l];if(c){let d=ik(l,c.path);if(d.isMatch)return{routeId:c.routeId,localeId:s,pathVariables:d.pathVariables}}for(let{path:d,routeId:h}of o){let p=ik(l,d);if(p.isMatch)return{routeId:h,localeId:s,pathVariables:p.pathVariables}}if(!r)throw new Error("No exact match found for path");let u=i["/"];if(u)return{routeId:u.routeId,localeId:s};let f=Object.keys(e)[0];if(!f)throw new Error("Router should not have undefined routes");return{routeId:f,localeId:s}}function kA(e){let t=e.replace(/^\/|\/$/gu,"");return t===""?0:t.split("/").length}function ik(e,t){let r=[],i=CA(t).replace(ho,(c,u)=>(r.push(u),"([^/]+)")),o=new RegExp(i+"$"),a=e.match(o);if(!a)return{isMatch:!1};if(a.length===1)return{isMatch:!0};let s={},l=a.slice(1);for(let c=0;cn.name==="abtests");return r?new URLSearchParams(r.description):new URLSearchParams}return new URLSearchParams}function RA(e,t,r){let n=e[r];if(!n)return;let i=n.abTestingParentId??r;if(!e[i])return;let{abTestingParentId:o,...a}=n,s=e[i].elements||n.elements?{...e[i].elements,...n.elements}:void 0;e[i]={...a,elements:s,abTestingVariantId:r,abTestId:t}}function EA(e,t){for(let[r,n]of t)RA(e,r,n)}function FA(e){var t;for(let r in e)(t=e[r])!=null&&t.abTestingParentId&&delete e[r]}function PA(e,t){var r,n;if(!e[t]||!e[t].abTestingParentId)return;let i=e[t].abTestingParentId,{abTestingParentId:o,...a}=e[t],s=(r=e[i])!=null&&r.elements||a.elements?{...(n=e[i])==null?void 0:n.elements,...a.elements}:void 0;e[i]={...a,elements:s,abTestingVariantId:t}}function S9(e,t){var r;if(typeof F>"u")return t;let n=t;if(t){PA(e,t);let i=(r=e[t])==null?void 0:r.abTestingParentId;i&&(n=i)}return EA(e,TA()),FA(e),n}var IA="main",_A="framerGeneratedPage",MA="framer-search-index",k9=`meta[name="${MA}"]`,OA="",LA="",VA="",AA="";function V(e,...t){var r,n;if(e)return;let i=Error("Assertion Error"+(t.length>0?": "+t.join(" "):""));if(i.stack)try{let o=i.stack.split(` `);(r=o[1])!=null&&r.includes("assert")?(o.splice(1,1),i.stack=o.join(` `)):(n=o[0])!=null&&n.includes("assert")&&(o.splice(0,1),i.stack=o.join(` `))}catch{}throw i}function Te(e,t){throw t||new Error(e?`Unexpected value: ${e}`:"Application entered invalid state")}async function Bu(e,t,r="beforeend"){let n,i;switch(r){case"beforebegin":V(t.parentNode,"Can't use 'beforebegin' with a referenceNode at the top level"),n=t.parentNode,i=t;break;case"afterend":V(t.parentNode,"Can't use 'afterend' with a referenceNode at the top level"),n=t.parentNode,i=t.nextSibling;break;case"afterbegin":n=t,i=t.firstChild;break;case"beforeend":n=t,i=null;break;default:Te(r)}let o=document.createRange();o.selectNodeContents(n);let a=o.createContextualFragment(e);await _T(a,n,i)}async function _T(e,t,r){for(let n=e.firstChild;n;n=n.nextSibling){if(n instanceof HTMLScriptElement){let o=DA(n,t,r);o!==void 0&&await o;continue}let i=n.cloneNode(!1);t.insertBefore(i,r),n.firstChild&&await _T(n,i,null)}}function DA(e,t,r){var n;let i=e.cloneNode(!0);if(!e.hasAttribute("src")||e.hasAttribute("async")||e.hasAttribute("defer")||((n=e.getAttribute("type"))==null?void 0:n.toLowerCase())==="module")t.insertBefore(i,r);else return BA(i,t,r)}function BA(e,t,r){return new Promise(n=>{e.onload=e.onerror=n,t.insertBefore(e,r)})}function C9(e){let{isInitialNavigation:t}=zn();A(()=>{if(e.robots){let r=document.querySelector('meta[name="robots"]');r?r.setAttribute("content",e.robots):(r=document.createElement("meta"),r.setAttribute("name","robots"),r.setAttribute("content",e.robots),document.head.appendChild(r))}},[e.robots]),tt(()=>{var r;document.title=e.title||"",e.viewport&&((r=document.querySelector('meta[name="viewport"]'))==null||r.setAttribute("content",e.viewport))},[e.title,e.viewport]),A(()=>{if(!t)return;let r=document.getElementById(IA);r&&r.dataset[_A]!==void 0||zA(e.customHTMLHeadStart,e.customHTMLHeadEnd,e.customHTMLBodyStart,e.customHTMLBodyEnd)},[])}async function zA(e,t,r,n){let i,o,a,s;if(e||t){let{start:l,end:c}=ok(document.head.childNodes,e?OA:void 0,t?LA:void 0);i=l,o=c}if(r||n){let{start:l,end:c}=ok(document.body.childNodes,r?VA:void 0,n?AA:void 0);a=l,s=c}e&&i&&await Bu(e,i,"beforebegin"),t&&o&&await Bu(t,o,"beforebegin"),r&&a&&await Bu(r,a,"beforebegin"),n&&s&&await Bu(n,s,"beforebegin")}function ok(e,t,r){if(!t&&!r)return{start:void 0,end:void 0};let n,i,o=0,a=e.length-1;for(;o<=a;){let s=e[o],l=e[a];if(!n&&s?.nodeType===Node.COMMENT_NODE&&t&&``===t&&(n=s,!r)||!i&&l?.nodeType===Node.COMMENT_NODE&&r&&``===r&&(i=l,!t)||n&&i)break;o++,a--}return{start:n,end:i}}var ak=new Set;function lo(e,...t){ak.has(e)||(ak.add(e),console.warn(e,...t))}function NA(e,t,r){let n=r?`, use ${r} instead`:"",i=`Deprecation warning: ${e} will be removed in version ${t}${n}.`;lo(i)}var MT=class{constructor(){C(this,"observers",new Set),C(this,"transactions",{})}add(e){this.observers.add(e);let t=!1;return()=>{t||(t=!0,this.remove(e))}}remove(e){this.observers.delete(e)}notify(e,t){if(t){let r=this.transactions[t]||e;r.value=e.value,this.transactions[t]=r}else this.callObservers(e)}finishTransaction(e){let t=this.transactions[e];return delete this.transactions[e],this.callObservers(t,e)}callObservers(e,t){let r=[];return new Set(this.observers).forEach(n=>{typeof n=="function"?n(e,t):(n.update(e,t),r.push(n.finish))}),r}},ht=(()=>{function e(t){return NA("Animatable()","2.0.0","the new animation API (https://www.framer.com/api/animation/)"),Zr(t)?t:new jA(t)}return e.transaction=t=>{let r=Math.random(),n=new Set;t((a,s)=>{a.set(s,r),n.add(a)},r);let o=[];n.forEach(a=>{o.push(...a.finishTransaction(r))}),o.forEach(a=>{a(r)})},e.getNumber=(t,r=0)=>e.get(t,r),e.get=(t,r)=>t==null?r:Zr(t)?t.get():t,e.objectToValues=t=>{if(!t)return t;let r={};for(let n in t){let i=t[n];Zr(i)?r[n]=i.get():r[n]=i}return r},e})(),sk="onUpdate",lk="finishTransaction";function Zr(e){return e!==null&&typeof e=="object"&&sk in e&&e[sk]instanceof Function&&lk in e&&e[lk]instanceof Function}function $A(e,t){return{interpolate(r,n){let i=r.get(),o=n.get(),a=ht(i);return s=>{let l=t.interpolate(i,o)(s);return a.set(l),a}},difference(r,n){let i=r.get();return t.difference(i,n.get())}}}var jA=class{constructor(e){this.value=e,C(this,"observers",new MT)}static interpolationFor(e,t){if(Zr(e))return $A(e,t)}get(){return this.value}set(e,t){let r=this.value;Zr(e)&&(e=e.get()),this.value=e;let n={value:e,oldValue:r};this.observers.notify(n,t)}finishTransaction(e){return this.observers.finishTransaction(e)}onUpdate(e){return this.observers.add(e)}};function zu(e,t){let n=10**Math.round(Math.abs(t));return Math.round(e*n)/n}function ck(e,t){return t===0?Math.round(e):(t-=t|0,t<0&&(t=1-t),Math.round(e-t)+t)}function HA(e){return Math.round(e*2)/2}function vr(e,t){return{x:e,y:t}}(e=>{e.isQuadrilateralPoints=i=>i?.length===4,e.add=(...i)=>i.reduce((o,a)=>({x:o.x+a.x,y:o.y+a.y}),{x:0,y:0}),e.subtract=(i,o)=>({x:i.x-o.x,y:i.y-o.y}),e.multiply=(i,o)=>({x:i.x*o,y:i.y*o}),e.divide=(i,o)=>({x:i.x/o,y:i.y/o}),e.absolute=i=>({x:Math.abs(i.x),y:Math.abs(i.y)}),e.reverse=i=>({x:i.x*-1,y:i.y*-1}),e.pixelAligned=(i,o={x:0,y:0})=>({x:ck(i.x,o.x),y:ck(i.y,o.y)}),e.distance=(i,o)=>{let a=Math.abs(i.x-o.x),s=Math.abs(i.y-o.y);return Math.sqrt(a*a+s*s)},e.angle=(i,o)=>Math.atan2(o.y-i.y,o.x-i.x)*180/Math.PI-90,e.angleFromX=(i,o)=>Math.atan2(o.y-i.y,o.x-i.x)*180/Math.PI,e.isEqual=(i,o)=>i.x===o.x&&i.y===o.y,e.rotationNormalizer=()=>{let i;return o=>{typeof i!="number"&&(i=o);let a=i-o,s=Math.abs(a)+180,l=Math.floor(s/360);return a<180&&(o-=l*360),a>180&&(o+=l*360),i=o,o}};function t(i,o){return{x:(i.x+o.x)/2,y:(i.y+o.y)/2}}e.center=t;function r(i){let o=0,a=0;i.forEach(c=>{o+=c.x,a+=c.y});let s=o/i.length,l=a/i.length;return{x:s,y:l}}e.centroid=r;function n(i){let o=e.centroid(i),a=new Map;for(let s=0;s(a.get(s)??0)-(a.get(l)??0))}e.sortClockwise=n})(vr||(vr={}));var Pg={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function gi(e,t,r,n=!1){let[i,o]=t,[a,s]=r,l=o-i;if(l===0)return(s+a)/2;let c=s-a;if(c===0)return a;let u=a+(e-i)/l*c;if(n===!0)if(as)return s}else{if(u>a)return a;if(u.5?f/(2-l-c):f/(l+c),l){case o:u=(a-s)/f+(a1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function XA(e,t,r){let n,i,o;if(e=Xt(e,360),t=Xt(t*100,100),r=Xt(r*100,100),t===0)n=i=o=r;else{let a=r<.5?r*(1+t):r+t-r*t,s=2*r-a;n=Gm(s,a,e+1/3),i=Gm(s,a,e),o=Gm(s,a,e-1/3)}return{r:n*255,g:i*255,b:o*255}}function fk(e,t,r){e=Xt(e,255),t=Xt(t,255),r=Xt(r,255);let n=Math.max(e,t,r),i=Math.min(e,t,r),o=n-i,a=0,s=n===0?0:o/n,l=n;if(n===i)a=0;else{switch(n){case e:a=(t-r)/o+(t{let r="(?:"+"[-\\+]?\\d*\\.\\d+%?"+")|(?:"+"[-\\+]?\\d+%?"+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^([\da-f])([\da-f])([\da-f])$/iu,hex6:/^([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu,hex4:/^#?([\da-f])([\da-f])([\da-f])([\da-f])$/iu,hex8:/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu}})();function uv(e){if(e.includes("gradient(")||e.includes("var("))return!1;let t=/^[\s,#]+/u,r=e.replace(t,"").trimEnd().toLowerCase(),n=Pg[r];if(n&&(r=n),r==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let i;return(i=fn.rgb.exec(r))?{r:parseInt(i[1]??""),g:parseInt(i[2]??""),b:parseInt(i[3]??""),a:1,format:"rgb"}:(i=fn.rgba.exec(r))?{r:parseInt(i[1]??""),g:parseInt(i[2]??""),b:parseInt(i[3]??""),a:parseFloat(i[4]??""),format:"rgb"}:(i=fn.hsl.exec(r))?{h:parseInt(i[1]??""),s:vi(i[2]??""),l:vi(i[3]??""),a:1,format:"hsl"}:(i=fn.hsla.exec(r))?{h:parseInt(i[1]??""),s:vi(i[2]??""),l:vi(i[3]??""),a:parseFloat(i[4]??""),format:"hsl"}:(i=fn.hsv.exec(r))?{h:parseInt(i[1]??""),s:vi(i[2]??""),v:vi(i[3]??""),a:1,format:"hsv"}:(i=fn.hsva.exec(r))?{h:parseInt(i[1]??""),s:vi(i[2]??""),v:vi(i[3]??""),a:parseFloat(i[4]??""),format:"hsv"}:(i=fn.hex8.exec(r))?{r:gr(i[1]??""),g:gr(i[2]??""),b:gr(i[3]??""),a:dk(i[4]??""),format:n?"name":"hex"}:(i=fn.hex6.exec(r))?{r:gr(i[1]??""),g:gr(i[2]??""),b:gr(i[3]??""),a:1,format:n?"name":"hex"}:(i=fn.hex4.exec(r))?{r:gr(`${i[1]}${i[1]}`),g:gr(`${i[2]}${i[2]}`),b:gr(`${i[3]}${i[3]}`),a:dk(i[4]+""+i[4]),format:n?"name":"hex"}:(i=fn.hex3.exec(r))?{r:gr(`${i[1]}${i[1]}`),g:gr(`${i[2]}${i[2]}`),b:gr(`${i[3]}${i[3]}`),a:1,format:n?"name":"hex"}:!1}function gr(e){return parseInt(e,16)}function dk(e){return gr(e)/255}var ZA=/^color\(display-p3\s+(?\d+\.\d+|\d+|\.\d+)\s+(?\d+\.\d+|\d+|\.\d+)\s+(?\d+\.\d+|\d+|\.\d+)(?:\s*\/\s*(?\d+\.\d+|\d+|\.\d+))?\)$/u;function JA(e){let t=ZA.exec(e);if(!t)return null;let{r="0",g:n="0",b:i="0",a:o}=t.groups??{};return{r:parseFloat(r),g:parseFloat(n),b:parseFloat(i),a:o?parseFloat(o):1}}function Xm(e=0){let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*((t+.055)/1.055)**2.4}function OT({r:e,g:t,b:r,a:n}){return{r:Xm(e),g:Xm(t),b:Xm(r),a:n}}function Ym(e=0){let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*t**(1/2.4)-.055):e*12.92}function LT({r:e,g:t,b:r,a:n}){return{r:Ym(e),g:Ym(t),b:Ym(r),a:n}}var eD=e=>{let{r:t,g:r,b:n,a:i}=OT(e);return{x:.486570948648216*t+.265667693169093*r+.1982172852343625*n,y:.2289745640697487*t+.6917385218365062*r+.079286914093745*n,z:0*t+.0451133818589026*r+1.043944368900976*n,a:i}},tD=({x:e=0,y:t=0,z:r=0,a:n=1})=>LT({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*r,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*r,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*r,a:n}),rD=e=>{let{r:t,g:r,b:n,a:i}=OT(e);return{x:.4123907992659593*t+.357584339383878*r+.1804807884018343*n,y:.2126390058715102*t+.715168678767756*r+.0721923153607337*n,z:.0193308187155918*t+.119194779794626*r+.9505321522496607*n,a:i}},nD=({x:e=0,y:t=0,z:r=0,a:n=1})=>LT({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*r,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*r,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*r,a:n});function iD({r:e,g:t,b:r,a:n}){let i=Math.max(e,t,r),o=Math.min(e,t,r),a={h:0,s:i===0?0:1-o/i,v:i,a:n};return i-o!==0&&(a.h=(i===e?(t-r)/(i-o)+(t{function e(o,a,s,l){if(typeof o=="string"){let u=mk.get(o);return u||(u=t(o),u===void 0?{...e("black"),isValid:!1}:(mk.set(o,u),u))}let c=t(o,a,s,l);return c!==void 0?c:{...e("black"),isValid:!1}}function t(o,a,s,l){if(o==="")return;let c=sD(o,a,s,l);if(c){let u={r:c.r,g:c.g,b:c.b,a:c.a,h:c.h,s:c.s,l:c.l,initialValue:typeof o=="string"&&c.format!=="hsv"?o:void 0,roundA:Math.round(100*c.a)/100,format:c.format,mix:e.mix,toValue:()=>e.toRgbString(u)};return u}else return}let r={isRGB(o){return o==="rgb"||o==="rgba"},isHSL(o){return o==="hsl"||o==="hsla"}};e.inspect=(o,a)=>o.format==="hsl"?`<${o.constructor.name} h:${o.h} s:${o.s} l:${o.l} a:${o.a}>`:o.format==="hex"||o.format==="name"?`<${o.constructor.name} "${a}">`:`<${o.constructor.name} r:${o.r} g:${o.g} b:${o.b} a:${o.a}>`,e.isColor=o=>typeof o=="string"?e.isColorString(o):e.isColorObject(o),e.isColorString=o=>typeof o=="string"?uv(o)!==!1:!1,e.isColorObject=o=>ce(o)&&typeof o.r=="number"&&typeof o.g=="number"&&typeof o.b=="number"&&typeof o.h=="number"&&typeof o.s=="number"&&typeof o.l=="number"&&typeof o.a=="number"&&typeof o.roundA=="number"&&typeof o.format=="string",e.toString=o=>e.toRgbString(o),e.toHex=(o,a=!1)=>uk(o.r,o.g,o.b,a),e.toHexString=(o,a=!1)=>`#${e.toHex(o,a)}`,e.isP3String=o=>typeof o!="string"?!1:VT.isP3String(o),e.toRgbString=o=>o.a===1?"rgb("+Math.round(o.r)+", "+Math.round(o.g)+", "+Math.round(o.b)+")":"rgba("+Math.round(o.r)+", "+Math.round(o.g)+", "+Math.round(o.b)+", "+o.roundA+")",e.toHusl=o=>({...UA(o.r,o.g,o.b),a:o.roundA}),e.toHslString=o=>{let a=e.toHsl(o),s=Math.round(a.h),l=Math.round(a.s*100),c=Math.round(a.l*100);return o.a===1?"hsl("+s+", "+l+"%, "+c+"%)":"hsla("+s+", "+l+"%, "+c+"%, "+o.roundA+")"},e.toHsv=o=>{let a=fk(o.r,o.g,o.b);return{h:a.h*360,s:a.s,v:a.v,a:o.a}},e.toHsvString=o=>{let a=fk(o.r,o.g,o.b),s=Math.round(a.h*360),l=Math.round(a.s*100),c=Math.round(a.v*100);return o.a===1?"hsv("+s+", "+l+"%, "+c+"%)":"hsva("+s+", "+l+"%, "+c+"%, "+o.roundA+")"},e.toName=o=>{if(o.a===0)return"transparent";if(o.a<1)return!1;let a=uk(o.r,o.g,o.b,!0);for(let s of Object.keys(Pg))if(Pg[s]===a)return s;return!1},e.toHsl=o=>({h:Math.round(o.h),s:o.s,l:o.l,a:o.a}),e.toRgb=o=>({r:Math.round(o.r),g:Math.round(o.g),b:Math.round(o.b),a:o.a}),e.brighten=(o,a=10)=>{let s=e.toRgb(o);return s.r=Math.max(0,Math.min(255,s.r-Math.round(255*-(a/100)))),s.g=Math.max(0,Math.min(255,s.g-Math.round(255*-(a/100)))),s.b=Math.max(0,Math.min(255,s.b-Math.round(255*-(a/100)))),e(s)},e.lighten=(o,a=10)=>{let s=e.toHsl(o);return s.l+=a/100,s.l=Math.min(1,Math.max(0,s.l)),e(s)},e.darken=(o,a=10)=>{let s=e.toHsl(o);return s.l-=a/100,s.l=Math.min(1,Math.max(0,s.l)),e(s)},e.saturate=(o,a=10)=>{let s=e.toHsl(o);return s.s+=a/100,s.s=Math.min(1,Math.max(0,s.s)),e(s)},e.desaturate=(o,a=10)=>{let s=e.toHsl(o);return s.s-=a/100,s.s=Math.min(1,Math.max(0,s.s)),e(s)},e.grayscale=o=>e.desaturate(o,100),e.hueRotate=(o,a)=>{let s=e.toHsl(o);return s.h+=a,s.h=s.h>360?s.h-360:s.h,e(s)},e.alpha=(o,a=1)=>e({r:o.r,g:o.g,b:o.b,a}),e.transparent=o=>e.alpha(o,0),e.multiplyAlpha=(o,a=1)=>e({r:o.r,g:o.g,b:o.b,a:o.a*a}),e.interpolate=(o,a,s="rgb")=>{if(!e.isColorObject(o)||!e.isColorObject(a))throw new TypeError("Both arguments for Color.interpolate must be Color objects");return l=>e.mixAsColor(o,a,l,!1,s)},e.mix=(o,a,{model:s="rgb"}={})=>{let l=typeof o=="string"?e(o):o,c=e.interpolate(l,a,s);return u=>e.toRgbString(c(u))},e.mixAsColor=(o,a,s=.5,l=!1,c="rgb")=>{let u=null;if(r.isRGB(c))u=e({r:gi(s,[0,1],[o.r,a.r],l),g:gi(s,[0,1],[o.g,a.g],l),b:gi(s,[0,1],[o.b,a.b],l),a:gi(s,[0,1],[o.a,a.a],l)});else{let f,d;r.isHSL(c)?(f=e.toHsl(o),d=e.toHsl(a)):(f=e.toHusl(o),d=e.toHusl(a)),f.s===0?f.h=d.h:d.s===0&&(d.h=f.h);let h=f.h,p=d.h,g=p-h;g>180?g=p-360-h:g<-180&&(g=p+360-h);let b={h:gi(s,[0,1],[h,h+g],l),s:gi(s,[0,1],[f.s,d.s],l),l:gi(s,[0,1],[f.l,d.l],l),a:gi(s,[0,1],[o.a,a.a],l)};r.isHSL(c)?u=e(b):u=e(GA(b.h,b.s,b.l,b.a))}return u},e.random=(o=1)=>{function a(){return Math.floor(Math.random()*255)}return e("rgba("+a()+", "+a()+", "+a()+", "+o+")")},e.grey=(o=.5,a=1)=>(o=Math.floor(o*255),e("rgba("+o+", "+o+", "+o+", "+a+")")),e.gray=e.grey,e.rgbToHsl=(o,a,s)=>Tf(o,a,s),e.isValidColorProperty=(o,a)=>!!((o.toLowerCase().slice(-5)==="color"||o==="fill"||o==="stroke")&&typeof a=="string"&&e.isColorString(a)),e.difference=(o,a)=>{let s=(o.r+a.r)/2,l=o.r-a.r,c=o.g-a.g,u=o.b-a.b,f=Math.pow(l,2),d=Math.pow(c,2),h=Math.pow(u,2);return Math.sqrt(2*f+4*d+3*h+s*(f-h)/256)},e.equal=(o,a,s=.1)=>!(Math.abs(o.r-a.r)>=s||Math.abs(o.g-a.g)>=s||Math.abs(o.b-a.b)>=s||Math.abs(o.a-a.a)*256>=s);let n=Ao([0,255],[0,1]);function i(o){o=n(o);let a=Math.abs(o);return a<.04045?o/12.92:(Math.sign(o)||1)*Math.pow((a+.055)/1.055,2.4)}return e.luminance=o=>{let{r:a,g:s,b:l}=e.toRgb(o);return .2126*i(a)+.7152*i(s)+.0722*i(l)},e.contrast=(o,a)=>{let s=e.luminance(o),l=e.luminance(a);return(Math.max(s,l)+.05)/(Math.min(s,l)+.05)},e})();function sD(e,t,r,n=1){let i;return typeof e=="number"&&!Number.isNaN(e)&&typeof t=="number"&&!Number.isNaN(t)&&typeof r=="number"&&!Number.isNaN(r)?i=_g({r:e,g:t,b:r,a:n}):typeof e=="string"?i=lD(e):typeof e=="object"&&(e.hasOwnProperty("r")&&e.hasOwnProperty("g")&&e.hasOwnProperty("b")?i=_g(e):i=AT(e)),i}function lD(e){let t=uv(e);if(t)return t.format==="hsl"?AT(t):t.format==="hsv"?cD(t):_g(t)}function cD(e){let t=YA(e.h,e.s,e.v);return{...Tf(t.r,t.g,t.b),...t,format:"rgb",a:e.a!==void 0?DT(e.a):1}}function _g(e){let t=qA(e.r,e.g,e.b);return{...Tf(t.r,t.g,t.b),...t,format:"rgb",a:e.a!==void 0?DT(e.a):1}}function AT(e){let t,r,n,i={r:0,g:0,b:0},o={h:0,s:0,l:0};return t=wa(e.h)?e.h:0,t=(t+360)%360,r=wa(e.s)?e.s:1,typeof e.s=="string"&&(r=Ig(e.s)),n=wa(e.l)?e.l:.5,typeof e.l=="string"&&(n=Ig(e.l)),i=XA(t,r,n),o={h:t,s:r,l:n},{...i,...o,a:e.a===void 0?1:e.a,format:"hsl"}}function DT(e){return e=parseFloat(e),e<0&&(e=0),(Number.isNaN(e)||e>1)&&(e=1),e}var gk=e=>e instanceof Bo;var uD=iV().EventEmitter,fD=class{constructor(){C(this,"_emitter",new uD)}eventNames(){return this._emitter.eventNames()}eventListeners(){let e={};for(let t of this._emitter.eventNames())e[t]=this._emitter.listeners(t);return e}on(e,t){this.addEventListener(e,t,!1,!1,this)}off(e,t){this.removeEventListeners(e,t)}once(e,t){this.addEventListener(e,t,!0,!1,this)}unique(e,t){this.addEventListener(e,t,!1,!0,this)}addEventListener(e,t,r,n,i){if(n){for(let o of this._emitter.eventNames())if(t===this._emitter.listeners(o))return}r===!0?this._emitter.once(e,t,i):this._emitter.addListener(e,t,i)}removeEventListeners(e,t){e?this._emitter.removeListener(e,t):this.removeAllEventListeners()}removeAllEventListeners(){this._emitter.removeAllListeners()}countEventListeners(e){if(e)return this._emitter.listeners(e).length;{let t=0;for(let r of this._emitter.eventNames())t+=this._emitter.listeners(r).length;return t}}emit(e,...t){this._emitter.emit(e,...t)}},dD=e=>{setTimeout(e,1/60)},hD=ve.requestAnimationFrame||dD,vk=e=>hD(e),Ys=1/60,pD=class extends fD{constructor(e=!1){super(),C(this,"_started",!1),C(this,"_frame",0),C(this,"_frameTasks",[]),C(this,"tick",()=>{this._started&&(vk(this.tick),this.emit("update",this._frame,Ys),this.emit("render",this._frame,Ys),this._processFrameTasks(),this._frame++)}),e&&this.start()}addFrameTask(e){this._frameTasks.push(e)}_processFrameTasks(){var e;let t=this._frameTasks,r=t.length;if(r!==0){for(let n=0;nMg.target,hasRestrictions:()=>{let e=Mg.target;return e==="CANVAS"||e==="EXPORT"}};var Nu=e=>({correct:(t,{delta:r,treeScale:n})=>{if(typeof t=="string"&&(t=parseFloat(t)),t===0)return"0px";let i=t;return r&&n&&(i=Math.round(t/r[e].scale/n[e]),i=Math.max(i,1)),i+"px"}});fh({borderTopWidth:Nu("y"),borderLeftWidth:Nu("x"),borderRightWidth:Nu("x"),borderBottomWidth:Nu("y")});var ka=E.createContext({getLayoutId:e=>null,persistLayoutIdCache:()=>{},top:!1,enabled:!0});function mD({children:e}){if(O(ka).top)return S(rt,{children:e});let r=M({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{},count:{byId:{},byName:{}}}),n=M({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{}}),i=M(new Set).current,o=H(({id:l,name:c,duplicatedFrom:u})=>{if(!l)return null;let f=c?"byName":"byId",d=r.current[f][l];if(d)return d;let h=c||l;if(!u&&!i.has(h)&&(!r.current.byLayoutId[h]||r.current.byLayoutId[h]===h))return r.current.count[f][h]===void 0&&(r.current.count[f][h]=0,r.current.byLayoutId[h]=h,n.current[f][l]=h),i.add(h),h;let p;if(u?.length)for(let w=u.length-1;w>=0;w--){let R=u[w];V(!!R,"duplicatedId must be defined");let T=r.current[f][R],P=r.current.byLastId[R];if(P&&!p){let z=r.current.byLayoutId[P],_=!z||z===c;P&&!i.has(P)&&(!c||_)&&(p=[P,R])}let I=T?r.current.byLayoutId[T]:void 0,D=!I||I===c;if(T&&!i.has(T)&&(!c||D))return n.current[f][l]=T,n.current.byLastId[R]=T,i.add(T),T}let g=r.current.byLastId[l];if(g&&!i.has(g))return i.add(g),n.current.byId[l]=g,g;if(p){let[w,R]=p;return n.current[f][l]=w,n.current.byLastId[R]=w,i.add(w),w}let b=r.current.byPossibleId[l];if(b&&!i.has(b))return i.add(b),n.current.byId[l]=b,b;let m=u?.[0],v=c||m||l,y=(r.current.count[f][v]??-1)+1,{layoutId:x,value:k}=gD(v,y,i);if(r.current.count[f][v]=k,n.current[f][l]=x,u?.length&&!c){let w=u[u.length-1];if(w&&(n.current.byLastId[w]=x),u.length>1)for(let R=0;R{r.current={byId:{...r.current.byId,...n.current.byId},byLastId:{...r.current.byLastId,...n.current.byLastId},byPossibleId:{...r.current.byPossibleId,...n.current.byPossibleId},byName:{...r.current.byName,...n.current.byName},byLastName:{...r.current.byLastName,...n.current.byLastName},byLayoutId:{...r.current.byLayoutId,...n.current.byLayoutId},count:{...r.current.count,byName:{}}},n.current={byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{}},i.clear()},[]),s=M({getLayoutId:o,persistLayoutIdCache:a,top:!0,enabled:!0}).current;return S(ka.Provider,{value:s,children:e})}function gD(e,t,r){let n=t,i=n?`${e}-${n}`:e;for(;r.has(i);)n++,i=`${e}-${n}`;return{layoutId:i,value:n}}function vD({enabled:e=!0,...t}){let r=O(ka),n=Y(()=>({...r,enabled:e}),[e]);return S(ka.Provider,{...t,value:n})}function st(e){let t=M(null);return t.current===null&&(t.current=e()),t.current}var yD={background:void 0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",lineHeight:"1.4em",textOverflow:"ellipsis",overflow:"hidden",minHeight:0,width:"100%",height:"100%"},bD={...yD,border:"1px solid rgba(149, 149, 149, 0.15)",borderRadius:6,fontSize:"12px",backgroundColor:"rgba(149, 149, 149, 0.1)",color:"#a5a5a5"},zT={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:"100%",flexShrink:0,padding:"0 10px"},xD={...zT,fontWeight:500},wD={...zT,whiteSpace:"pre",maxHeight:"calc(50% - calc(20px * var(--framerInternalCanvas-canvasPlaceholderContentScaleFactor, 1)))",WebkitMaskImage:"linear-gradient(to bottom, black 80%, transparent 100%)"};function M9(e){let{error:t,file:r}=e,n=r?`Error in ${SD(r)}`:"Error",i=t instanceof Error?t.message:""+t;return pe("div",{style:bD,children:[S("div",{className:"text",style:xD,children:n}),i&&S("div",{className:"text",style:wD,children:i})]})}function SD(e){return e.startsWith("./")?e.replace("./",""):e}function re(e){return Number.isFinite(e)}function kD(e){return!e||!Object.keys(e).length&&e.constructor===Object}function Yu(e){return typeof e!="string"&&typeof e!="number"}function Ku(e){return e!==null&&typeof e<"u"&&typeof e!="boolean"&&!kD(e)}function CD(e){return e*(Math.PI/180)}var _r=(()=>{function e(t,r){return{a:t,b:r}}return e.offset=(t,r)=>{let n=vr.angleFromX(t.a,t.b),i=CD(n),o=r*Math.sin(i),a=r*Math.cos(i);return e({x:t.a.x+o,y:t.a.y-a},{x:t.b.x+o,y:t.b.y-a})},e.intersection=(t,r,n)=>{let i=t.a.x,o=t.a.y,a=t.b.x,s=t.b.y,l=r.a.x,c=r.a.y,u=r.b.x,f=r.b.y,d=(u-l)*(c-o)-(f-c)*(l-i),h=(u-l)*(s-o)-(f-c)*(a-i),p=(a-i)*(c-o)-(s-o)*(l-i);if(d===0&&h===0||h===0)return null;let g=d/h,b=p/h;return n&&(g<0||g>1||b<0||b>1)?null:{x:i+g*(a-i),y:o+g*(s-o)}},e.intersectionAngle=(t,r)=>{let n=t.b.x-t.a.x,i=t.b.y-t.a.y,o=r.b.x-r.a.x,a=r.b.y-r.a.y;return Math.atan2(n*a-i*o,n*o+i*a)*(180/Math.PI)},e.isOrthogonal=t=>t.a.x===t.b.x||t.a.y===t.b.y,e.perpendicular=(t,r)=>{let n=t.a.x-t.b.x,i=t.a.y-t.b.y,o=vr(r.x-i,r.y+n);return e(o,r)},e.projectPoint=(t,r)=>{let n=e.perpendicular(t,r);return e.intersection(t,n)},e.pointAtPercentDistance=(t,r)=>{let n=e.distance(t),i=r*n/n;return{x:i*t.b.x+(1-i)*t.a.x,y:i*t.b.y+(1-i)*t.a.y}},e.distance=t=>vr.distance(t.a,t.b),e})(),te={equals:function(e,t){return e===t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height},from:e=>({x:e.x,y:e.y,width:e.width,height:e.height}),atOrigin:e=>({x:0,y:0,width:e.width,height:e.height}),fromTwoPoints:(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),width:Math.abs(e.x-t.x),height:Math.abs(e.y-t.y)}),fromRect:e=>({x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}),multiply:(e,t)=>({x:e.x*t,y:e.y*t,width:e.width*t,height:e.height*t}),divide:(e,t)=>te.multiply(e,1/t),offset:(e,t)=>{let r=typeof t.x=="number"?t.x:0,n=typeof t.y=="number"?t.y:0;return{...e,x:e.x+r,y:e.y+n}},inflate:(e,t)=>{if(t===0)return e;let r=2*t;return{x:e.x-t,y:e.y-t,width:e.width+r,height:e.height+r}},pixelAligned:e=>{let t=Math.round(e.x),r=Math.round(e.y),n=Math.round(e.x+e.width),i=Math.round(e.y+e.height),o=Math.max(n-t,0),a=Math.max(i-r,0);return{x:t,y:r,width:o,height:a}},halfPixelAligned:e=>{let t=Math.round(e.x*2)/2,r=Math.round(e.y*2)/2,n=Math.round((e.x+e.width)*2)/2,i=Math.round((e.y+e.height)*2)/2,o=Math.max(n-t,1),a=Math.max(i-r,1);return{x:t,y:r,width:o,height:a}},round:(e,t=0)=>{let r=zu(e.x,t),n=zu(e.y,t),i=zu(e.width,t),o=zu(e.height,t);return{x:r,y:n,width:i,height:o}},roundToOutside:e=>{let t=Math.floor(e.x),r=Math.floor(e.y),n=Math.ceil(e.x+e.width),i=Math.ceil(e.y+e.height),o=Math.max(n-t,0),a=Math.max(i-r,0);return{x:t,y:r,width:o,height:a}},minX:e=>e.x,maxX:e=>e.x+e.width,minY:e=>e.y,maxY:e=>e.y+e.height,positions:e=>({minX:e.x,midX:e.x+e.width/2,maxX:te.maxX(e),minY:e.y,midY:e.y+e.height/2,maxY:te.maxY(e)}),center:e=>({x:e.x+e.width/2,y:e.y+e.height/2}),boundingRectFromPoints:e=>{let t=1/0,r=-1/0,n=1/0,i=-1/0;for(let o=0;o{let[t,r,n,i]=e,{x:o,y:a}=t,s=vr.distance(t,r),l=vr.distance(t,i);return{x:o,y:a,width:s,height:l}},merge:(...e)=>{let t={x:Math.min(...e.map(te.minX)),y:Math.min(...e.map(te.minY))},r={x:Math.max(...e.map(te.maxX)),y:Math.max(...e.map(te.maxY))};return te.fromTwoPoints(t,r)},intersection:(e,t)=>{let r=Math.max(e.x,t.x),n=Math.min(e.x+e.width,t.x+t.width),i=Math.max(e.y,t.y),o=Math.min(e.y+e.height,t.y+t.height);return{x:r,y:i,width:n-r,height:o-i}},points:e=>[{x:te.minX(e),y:te.minY(e)},{x:te.minX(e),y:te.maxY(e)},{x:te.maxX(e),y:te.minY(e)},{x:te.maxX(e),y:te.maxY(e)}],pointsAtOrigin:e=>[{x:0,y:0},{x:e.width,y:0},{x:e.width,y:e.height},{x:0,y:e.height}],transform:(e,t)=>{let{x:r,y:n}=t.transformPoint({x:e.x,y:e.y}),{x:i,y:o}=t.transformPoint({x:e.x+e.width,y:e.y}),{x:a,y:s}=t.transformPoint({x:e.x+e.width,y:e.y+e.height}),{x:l,y:c}=t.transformPoint({x:e.x,y:e.y+e.height}),u=Math.min(r,i,a,l),f=Math.max(r,i,a,l)-u,d=Math.min(n,o,s,c),h=Math.max(n,o,s,c)-d;return{x:u,y:d,width:f,height:h}},containsPoint:(e,t)=>!(t.xte.maxX(e)||t.yte.maxY(e)||Number.isNaN(e.x)||Number.isNaN(e.y)),containsRect:(e,t)=>{for(let r of te.points(t))if(!te.containsPoint(e,r))return!1;return!0},toCSS:e=>({display:"block",transform:`translate(${e.x}px, ${e.y}px)`,width:`${e.width}px`,height:`${e.height}px`}),inset:(e,t)=>({x:e.x+t,y:e.y+t,width:Math.max(0,e.width-2*t),height:Math.max(0,e.height-2*t)}),intersects:(e,t)=>!(t.x>=te.maxX(e)||te.maxX(t)<=e.x||t.y>=te.maxY(e)||te.maxY(t)<=e.y),overlapHorizontally:(e,t)=>{let r=te.maxX(e),n=te.maxX(t);return r>t.x&&n>e.x},overlapVertically:(e,t)=>{let r=te.maxY(e),n=te.maxY(t);return r>t.y&&n>e.y},doesNotIntersect:(e,t)=>t.find(r=>te.intersects(r,e))===void 0,isEqual:(e,t)=>te.equals(e,t),cornerPoints:e=>{let t=e.x,r=e.x+e.width,n=e.y,i=e.y+e.height;return[{x:t,y:n},{x:r,y:n},{x:r,y:i},{x:t,y:i}]},midPoints:e=>{let t=e.x,r=e.x+e.width/2,n=e.x+e.width,i=e.y,o=e.y+e.height/2,a=e.y+e.height;return[{x:r,y:i},{x:n,y:o},{x:r,y:a},{x:t,y:o}]},pointDistance:(e,t)=>{let r=0,n=0;return t.xte.maxX(e)&&(r=t.x-te.maxX(e)),t.yte.maxY(e)&&(n=t.y-te.maxY(e)),vr.distance({x:r,y:n},{x:0,y:0})},delta:(e,t)=>{let r={x:te.minX(e),y:te.minY(e)},n={x:te.minX(t),y:te.minY(t)};return{x:r.x-n.x,y:r.y-n.y}},withMinSize:(e,t)=>{let{width:r,height:n}=t,i=e.width-r,o=e.height-n;return{width:Math.max(e.width,r),height:Math.max(e.height,n),x:e.width{let r=te.minX(e),n=te.minY(e),i=te.maxX(e),o=te.maxY(e);for(let a of t)if(a.xi||a.yo)return!0;return!1},edges:e=>{let[t,r,n,i]=te.cornerPoints(e);return[_r(t,r),_r(r,n),_r(n,i),_r(i,t)]},rebaseRectOnto:(e,t,r,n)=>{let i={...e};switch(r){case"bottom":case"top":switch(n){case"start":i.x=t.x;break;case"center":i.x=t.x+t.width/2-e.width/2;break;case"end":i.x=t.x+t.width-e.width;break;default:Te(n)}break;case"left":i.x=t.x-e.width;break;case"right":i.x=t.x+t.width;break;default:Te(r)}switch(r){case"left":case"right":switch(n){case"start":i.y=t.y;break;case"center":i.y=t.y+t.height/2-e.height/2;break;case"end":i.y=t.y+t.height-e.height;break;default:Te(n)}break;case"top":i.y=t.y-e.height;break;case"bottom":i.y=t.y+t.height;break;default:Te(r)}return i}};var NT={quickfix:e=>((e.widthType===2||e.heightType===2)&&(e.aspectRatio=null),re(e.aspectRatio)&&(e.left&&e.right&&(e.widthType=0),e.top&&e.bottom&&(e.heightType=0),e.left&&e.right&&e.top&&e.bottom&&(e.bottom=!1),e.widthType!==0&&e.heightType!==0&&(e.heightType=0)),e.left&&e.right&&((e.fixedSize||e.widthType===2||re(e.maxWidth))&&(e.right=!1),e.widthType=0),e.top&&e.bottom&&((e.fixedSize||e.heightType===2||re(e.maxHeight))&&(e.bottom=!1),e.heightType=0),e)};function ff(e){if(typeof e=="string"){let t=e.trim();if(t==="auto")return 2;if(t.endsWith("fr"))return 3;if(t.endsWith("%"))return 1;if(t.endsWith("vw")||t.endsWith("vh"))return 4}return 0}var $T={fromProperties:e=>{let{left:t,right:r,top:n,bottom:i,width:o,height:a,centerX:s,centerY:l,aspectRatio:c,autoSize:u}=e,f=NT.quickfix({left:re(t)||Zr(t),right:re(r)||Zr(r),top:re(n)||Zr(n),bottom:re(i)||Zr(i),widthType:ff(o),heightType:ff(a),aspectRatio:c||null,fixedSize:u===!0}),d=null,h=null,p=0,g=0;if(f.widthType!==0&&typeof o=="string"){let v=parseFloat(o);o.endsWith("fr")?(p=3,d=v):o==="auto"?p=2:(p=1,d=v/100)}else o!==void 0&&typeof o!="string"&&(d=ht.getNumber(o));if(f.heightType!==0&&typeof a=="string"){let v=parseFloat(a);a.endsWith("fr")?(g=3,h=v):a==="auto"?g=2:(g=1,h=parseFloat(a)/100)}else a!==void 0&&typeof a!="string"&&(h=ht.getNumber(a));let b=.5,m=.5;return s&&(b=parseFloat(s)/100),l&&(m=parseFloat(l)/100),{left:f.left?ht.getNumber(t):null,right:f.right?ht.getNumber(r):null,top:f.top?ht.getNumber(n):null,bottom:f.bottom?ht.getNumber(i):null,widthType:p,heightType:g,width:d,height:h,aspectRatio:f.aspectRatio||null,centerAnchorX:b,centerAnchorY:m}},toSize:(e,t,r,n)=>{let i=null,o=null,a=t?.sizing?ht.getNumber(t?.sizing.width):null,s=t?.sizing?ht.getNumber(t?.sizing.height):null,l=yk(e.left,e.right);if(a&&re(l))i=a-l;else if(r&&e.widthType===2)i=r.width;else if(re(e.width))switch(e.widthType){case 0:i=e.width;break;case 3:i=n?n.freeSpaceInParent.width/n.freeSpaceUnitDivisor.width*e.width:null;break;case 1:case 4:a&&(i=a*e.width);break;case 2:break;default:Te(e.widthType)}let c=yk(e.top,e.bottom);if(s&&re(c))o=s-c;else if(r&&e.heightType===2)o=r.height;else if(re(e.height))switch(e.heightType){case 0:o=e.height;break;case 3:o=n?n.freeSpaceInParent.height/n.freeSpaceUnitDivisor.height*e.height:null;break;case 1:case 4:s&&(o=s*e.height);break;case 2:break;default:Te(e.heightType)}return ID(i,o,e,{height:s??0,width:a??0},t?.viewport)},toRect:(e,t=null,r=null,n=!1,i=null)=>{let o=e.left||0,a=e.top||0,{width:s,height:l}=$T.toSize(e,t,r,i),c=t?.positioning??null,u=c?ht.getNumber(c.width):null,f=c?ht.getNumber(c.height):null;e.left!==null?o=e.left:u&&e.right!==null?o=u-e.right-s:u&&(o=e.centerAnchorX*u-s/2),e.top!==null?a=e.top:f&&e.bottom!==null?a=f-e.bottom-l:f&&(a=e.centerAnchorY*f-l/2);let d={x:o,y:a,width:s,height:l};return n?te.pixelAligned(d):d}},TD=200,RD=200;function df(e,t,r,n){if(typeof t=="string"){if(t.endsWith("%")&&r)switch(e){case"maxWidth":case"minWidth":return parseFloat(t)/100*r.width;case"maxHeight":case"minHeight":return parseFloat(t)/100*r.height;default:break}if(t.endsWith("vh")){if(!n)return ED(e);switch(e){case"maxWidth":case"minWidth":return parseFloat(t)/100*n.width;case"maxHeight":case"minHeight":return parseFloat(t)/100*n.height;default:break}}return parseFloat(t)}return t}function ED(e){switch(e){case"minWidth":case"minHeight":return Number.NEGATIVE_INFINITY;case"maxWidth":case"maxHeight":return Number.POSITIVE_INFINITY;default:Te(e,"unknown constraint key")}}function FD(e,t,r,n){return t.minHeight&&(e=Math.max(df("minHeight",t.minHeight,r,n),e)),t.maxHeight&&(e=Math.min(df("maxHeight",t.maxHeight,r,n),e)),e}function PD(e,t,r,n){return t.minWidth&&(e=Math.max(df("minWidth",t.minWidth,r,n),e)),t.maxWidth&&(e=Math.min(df("maxWidth",t.maxWidth,r,n),e)),e}function ID(e,t,r,n,i){let o=PD(re(e)?e:TD,r,n,i),a=FD(re(t)?t:RD,r,n,i);return re(r.aspectRatio)&&r.aspectRatio>0&&(re(r.left)&&re(r.right)?a=o/r.aspectRatio:re(r.top)&&re(r.bottom)?o=a*r.aspectRatio:r.widthType!==0?a=o/r.aspectRatio:o=a*r.aspectRatio),{width:o,height:a}}function yk(e,t){return!re(e)||!re(t)?null:e+t}function _D(e){return typeof e.right=="string"||typeof e.bottom=="string"||typeof e.left=="string"&&(!e.center||e.center==="y")||typeof e.top=="string"&&(!e.center||e.center==="x")}function yl(e){return!e._constraints||_D(e)?!1:e._constraints.enabled}function MD(e){let{size:t}=e,{width:r,height:n}=e;return re(t)&&(r===void 0&&(r=t),n===void 0&&(n=t)),re(r)&&re(n)?{width:r,height:n}:null}function OD(e){let t=MD(e);if(t===null)return null;let{left:r,top:n}=e;return re(r)&&re(n)?{x:r,y:n,...t}:null}function fl(e,t,r=!0){if(e.positionFixed||e.positionAbsolute)return null;let n=t===1||t===2;if(!yl(e)||n)return OD(e);let i=LD(e),o=VD(t),a=o?{sizing:o,positioning:o,viewport:null}:null;return $T.toRect(i,a,null,r,null)}function LD(e){let{left:t,right:r,top:n,bottom:i,center:o,_constraints:a,size:s}=e,{width:l,height:c}=e;l===void 0&&(l=s),c===void 0&&(c=s);let{aspectRatio:u,autoSize:f}=a,d=NT.quickfix({left:re(t),right:re(r),top:re(n),bottom:re(i),widthType:ff(l),heightType:ff(c),aspectRatio:u||null,fixedSize:f===!0}),h=null,p=null,g=0,b=0;if(d.widthType!==0&&typeof l=="string"){let y=parseFloat(l);l.endsWith("fr")?(g=3,h=y):l==="auto"?g=2:(g=1,h=y/100)}else l!==void 0&&typeof l!="string"&&(h=l);if(d.heightType!==0&&typeof c=="string"){let y=parseFloat(c);c.endsWith("fr")?(b=3,p=y):c==="auto"?b=2:(b=1,p=parseFloat(c)/100)}else c!==void 0&&typeof c!="string"&&(p=c);let m=.5,v=.5;return(o===!0||o==="x")&&(d.left=!1,typeof t=="string"&&(m=parseFloat(t)/100)),(o===!0||o==="y")&&(d.top=!1,typeof n=="string"&&(v=parseFloat(n)/100)),{left:d.left?t:null,right:d.right?r:null,top:d.top?n:null,bottom:d.bottom?i:null,widthType:g,heightType:b,width:h,height:p,aspectRatio:d.aspectRatio||null,centerAnchorX:m,centerAnchorY:v,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth}}var jT=E.createContext({parentSize:0});function VD(e){return e===0||e===1||e===2?null:e}function bl(){return E.useContext(jT).parentSize}function HT(e){return typeof e=="object"}var AD=e=>{let t=bl(),{parentSize:r,children:n}=e,i=E.useMemo(()=>({parentSize:r}),[DD(r),BD(r)]);return t===1?n?S(rt,{children:n}):null:S(jT.Provider,{value:i,children:n})};function DD(e){return HT(e)?e.width:e}function BD(e){return HT(e)?e.height:e}function zD(e,t){return S(AD,{parentSize:t,children:e})}function ND(e){let t=bl();return fl(e,t,!0)}function WT({width:e,height:t}){return e==="auto"||e==="min-content"||t==="auto"||t==="min-content"}var $D=(e=>(e.Boolean="boolean",e.Number="number",e.String="string",e.RichText="richtext",e.FusedNumber="fusednumber",e.Enum="enum",e.SegmentedEnum="segmentedenum",e.Color="color",e.Image="image",e.ResponsiveImage="responsiveimage",e.File="file",e.ComponentInstance="componentinstance",e.Slot="slot",e.Array="array",e.EventHandler="eventhandler",e.Transition="transition",e.BoxShadow="boxshadow",e.Link="link",e.Date="date",e.Object="object",e.Font="font",e.PageScope="pagescope",e.ScrollSectionRef="scrollsectionref",e.CustomCursor="customcursor",e.Border="border",e.Cursor="cursor",e.Padding="padding",e.BorderRadius="borderradius",e.Gap="gap",e.CollectionReference="collectionreference",e.MultiCollectionReference="multicollectionreference",e.TrackingId="trackingid",e.VectorSetItem="vectorsetitem",e.LinkRelValues="linkrelvalues",e))($D||{}),Km;function jD(){if(Km!==void 0)return Km;let e=document.createElement("div");Object.assign(e.style,{position:"absolute",display:"flex",flexDirection:"column",rowGap:"1px"}),e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);let t=e.scrollHeight===1;return e.parentNode&&e.parentNode.removeChild(e),Km=t,t}var po="flexbox-gap-not-supported",bk=!1;function D9(){bk||(bk=!0,!jD()&&document.body.classList.add(po))}var HD=` [data-framer-component-type="DeprecatedRichText"] p, [data-framer-component-type="DeprecatedRichText"] div, [data-framer-component-type="DeprecatedRichText"] h1, [data-framer-component-type="DeprecatedRichText"] h2, [data-framer-component-type="DeprecatedRichText"] h3, [data-framer-component-type="DeprecatedRichText"] h4, [data-framer-component-type="DeprecatedRichText"] h5, [data-framer-component-type="DeprecatedRichText"] h6, [data-framer-component-type="DeprecatedRichText"] li, [data-framer-component-type="DeprecatedRichText"] ol, [data-framer-component-type="DeprecatedRichText"] ul, [data-framer-component-type="DeprecatedRichText"] span:not([data-text-fill]) { font-family: var(--framer-font-family, Inter, Inter Placeholder, sans-serif); font-style: var(--framer-font-style, normal); font-weight: var(--framer-font-weight, 400); color: var(--framer-text-color, #000); font-size: var(--framer-font-size, 16px); letter-spacing: var(--framer-letter-spacing, 0); text-transform: var(--framer-text-transform, none); text-decoration: var(--framer-text-decoration, none); line-height: var(--framer-line-height, 1.2em); text-align: var(--framer-text-alignment, start); } `,WD=` [data-framer-component-type="DeprecatedRichText"] p:not(:first-child), [data-framer-component-type="DeprecatedRichText"] div:not(:first-child), [data-framer-component-type="DeprecatedRichText"] h1:not(:first-child), [data-framer-component-type="DeprecatedRichText"] h2:not(:first-child), [data-framer-component-type="DeprecatedRichText"] h3:not(:first-child), [data-framer-component-type="DeprecatedRichText"] h4:not(:first-child), [data-framer-component-type="DeprecatedRichText"] h5:not(:first-child), [data-framer-component-type="DeprecatedRichText"] h6:not(:first-child), [data-framer-component-type="DeprecatedRichText"] ol:not(:first-child), [data-framer-component-type="DeprecatedRichText"] ul:not(:first-child), [data-framer-component-type="DeprecatedRichText"] .framer-image:not(:first-child) { margin-top: var(--framer-paragraph-spacing, 0); } `,UD=` [data-framer-component-type="DeprecatedRichText"] span[data-text-fill] { display: inline-block; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; } `,GD=` [data-framer-component-type="DeprecatedRichText"] a, [data-framer-component-type="DeprecatedRichText"] a span:not([data-text-fill]) { font-family: var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--framer-link-font-style, var(--framer-font-style, normal)); font-weight: var(--framer-link-font-weight, var(--framer-font-weight, 400)); color: var(--framer-link-text-color, var(--framer-text-color, #000)); font-size: var(--framer-link-font-size, var(--framer-font-size, 16px)); text-transform: var(--framer-link-text-transform, var(--framer-text-transform, none)); text-decoration: var(--framer-link-text-decoration, var(--framer-text-decoration, none)); } `,qD=` [data-framer-component-type="DeprecatedRichText"] a:hover, [data-framer-component-type="DeprecatedRichText"] a:hover span:not([data-text-fill]) { font-family: var(--framer-link-hover-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif))); font-style: var(--framer-link-hover-font-style, var(--framer-link-font-style, var(--framer-font-style, normal))); font-weight: var(--framer-link-hover-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400))); color: var(--framer-link-hover-text-color, var(--framer-link-text-color, var(--framer-text-color, #000))); font-size: var(--framer-link-hover-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px))); text-transform: var(--framer-link-hover-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none))); text-decoration: var(--framer-link-hover-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none))); } `,XD=` [data-framer-component-type="DeprecatedRichText"] a[data-framer-page-link-current], [data-framer-component-type="DeprecatedRichText"] a[data-framer-page-link-current] span:not([data-text-fill]):not([data-nested-link]) { font-family: var(--framer-link-current-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif))); font-style: var(--framer-link-current-font-style, var(--framer-link-font-style, var(--framer-font-style, normal))); font-weight: var(--framer-link-current-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400))); color: var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-text-color, #000))); font-size: var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px))); text-transform: var(--framer-link-current-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none))); text-decoration: var(--framer-link-current-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none))); } `,YD=` [data-framer-component-type="DeprecatedRichText"] a[data-framer-page-link-current]:hover, [data-framer-component-type="DeprecatedRichText"] a[data-framer-page-link-current]:hover span:not([data-text-fill]):not([data-nested-link]) { font-family: var(--framer-link-hover-font-family, var(--framer-link-current-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)))); font-style: var(--framer-link-hover-font-style, var(--framer-link-current-font-style, var(--framer-link-font-style, var(--framer-font-style, normal)))); font-weight: var(--framer-link-hover-font-weight, var(--framer-link-current-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400)))); color: var(--framer-link-hover-text-color, var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-text-color, #000)))); font-size: var(--framer-link-hover-font-size, var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px)))); text-transform: var(--framer-link-hover-text-transform, var(--framer-link-current-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none)))); text-decoration: var(--framer-link-hover-text-decoration, var(--framer-link-current-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none)))); } `,KD=` [data-framer-component-type="DeprecatedRichText"] strong { font-weight: bolder; } `,QD=` [data-framer-component-type="DeprecatedRichText"] em { font-style: italic; } `,ZD=` [data-framer-component-type="DeprecatedRichText"] .framer-image { display: block; max-width: 100%; height: auto; } `,JD=` [data-framer-component-type="DeprecatedRichText"] p, [data-framer-component-type="DeprecatedRichText"] div, [data-framer-component-type="DeprecatedRichText"] h1, [data-framer-component-type="DeprecatedRichText"] h2, [data-framer-component-type="DeprecatedRichText"] h3, [data-framer-component-type="DeprecatedRichText"] h4, [data-framer-component-type="DeprecatedRichText"] h5, [data-framer-component-type="DeprecatedRichText"] h6 { margin: 0; padding: 0; } `,e3=` [data-framer-component-type="DeprecatedRichText"] .text-styles-preset-reset { --framer-font-family: Inter, Inter Placeholder, sans-serif; --framer-font-style: normal; --framer-font-weight: 500; --framer-text-color: #000; --framer-font-size: 16px; --framer-letter-spacing: 0; --framer-text-transform: none; --framer-text-decoration: none; --framer-line-height: 1.2em; --framer-text-alignment: start; --framer-font-open-type-features: normal; --font-variation-settings: normal; } `,t3=` [data-framer-component-type="DeprecatedRichText"] ul, [data-framer-component-type="DeprecatedRichText"] ol { display: table; width: 100%; padding-left: 0; margin: 0; } `,r3=` [data-framer-component-type="DeprecatedRichText"] li { display: table-row; counter-increment: list-item; list-style: none; } `,n3=` [data-framer-component-type="DeprecatedRichText"] ol > li::before { display: table-cell; width: 2.25ch; box-sizing: border-box; padding-right: 0.75ch; content: counter(list-item) "."; white-space: nowrap; } `,i3=` [data-framer-component-type="DeprecatedRichText"] ul > li::before { display: table-cell; width: 2.25ch; box-sizing: border-box; padding-right: 0.75ch; content: "\u2022"; } `,o3=['[data-framer-component-type="DeprecatedRichText"] { cursor: inherit; }',e3,JD,HD,WD,UD,GD,qD,XD,YD,KD,QD,ZD,t3,r3,n3,i3],UT=(e=>(e.Padding="--framer-input-padding",e.BorderRadiusTopLeft="--framer-input-border-radius-top-left",e.BorderRadiusTopRight="--framer-input-border-radius-top-right",e.BorderRadiusBottomRight="--framer-input-border-radius-bottom-right",e.BorderRadiusBottomLeft="--framer-input-border-radius-bottom-left",e.BorderColor="--framer-input-border-color",e.BorderTopWidth="--framer-input-border-top-width",e.BorderRightWidth="--framer-input-border-right-width",e.BorderBottomWidth="--framer-input-border-bottom-width",e.BorderLeftWidth="--framer-input-border-left-width",e.BorderStyle="--framer-input-border-style",e.Background="--framer-input-background",e.FontFamily="--framer-input-font-family",e.FontWeight="--framer-input-font-weight",e.FontSize="--framer-input-font-size",e.FontColor="--framer-input-font-color",e.FontStyle="--framer-input-font-style",e.FontLetterSpacing="--framer-input-font-letter-spacing",e.FontTextAlignment="--framer-input-font-text-alignment",e.FontLineHeight="--framer-input-font-line-height",e.FontOpenType="--framer-input-font-open-type-features",e.PlaceholderColor="--framer-input-placeholder-color",e.BoxShadow="--framer-input-box-shadow",e.FocusedBorderColor="--framer-input-focused-border-color",e.FocusedBorderWidth="--framer-input-focused-border-width",e.FocusedBorderStyle="--framer-input-focused-border-style",e.FocusedBackground="--framer-input-focused-background",e.FocusedBoxShadow="--framer-input-focused-box-shadow",e.FocusedTransition="--framer-input-focused-transition",e.BooleanCheckedBackground="--framer-input-boolean-checked-background",e.BooleanCheckedBorderColor="--framer-input-boolean-checked-border-color",e.BooleanCheckedBorderWidth="--framer-input-boolean-checked-border-width",e.BooleanCheckedBorderStyle="--framer-input-boolean-checked-border-style",e.BooleanCheckedBoxShadow="--framer-input-boolean-checked-box-shadow",e.BooleanCheckedTransition="--framer-input-boolean-checked-transition",e.InvalidTextColor="--framer-input-invalid-text-color",e.IconBackgroundImage="--framer-input-icon-image",e.IconMaskImage="--framer-input-icon-mask-image",e.IconColor="--framer-input-icon-color",e.WrapperHeight="--framer-input-wrapper-height",e))(UT||{}),Ie=UT,Gt="framer-form-input",Rf="framer-form-input-wrapper",GT="framer-form-input-empty",xk="framer-form-input-forced-focus";function a3(e){return typeof e=="number"?e:e.startsWith("--")?q.variable(e):e===""?'""':e}function q(e,t){let r=" ";for(let n in t){let i=t[n];r+=`${n.replace(/([A-Z])/gu,"-$1").toLowerCase()}: ${a3(i)}; `}return e+" {"+r+"}"}(e=>{function t(...r){let n=r[r.length-1],i=n.startsWith("--")?`var(${n})`:n;for(let o=r.length-2;o>=0;o--)i=`var(${r[o]}, ${i})`;return i}e.variable=t})(q||(q={}));var s3=[q(`.${Gt}`,{padding:q.variable(Ie.Padding),background:"transparent",fontFamily:q.variable(Ie.FontFamily),fontWeight:q.variable(Ie.FontWeight),fontSize:q.variable(Ie.FontSize),fontStyle:q.variable(Ie.FontStyle),color:q.variable(Ie.FontColor),fontFeatureSettings:q.variable(Ie.FontOpenType),border:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",width:"100%",height:q.variable(Ie.WrapperHeight,"100%"),letterSpacing:q.variable(Ie.FontLetterSpacing),textAlign:q.variable(Ie.FontTextAlignment),lineHeight:q.variable(Ie.FontLineHeight)}),q(`.${Gt}:focus-visible`,{outline:"none"})],l3=[q(`.${Rf}`,{overflow:"hidden"})],c3=`var(${Ie.BorderTopWidth}) var(${Ie.BorderRightWidth}) var(${Ie.BorderBottomWidth}) var(${Ie.BorderLeftWidth})`,u3=[`.${Rf}:after { content: ""; pointer-events: none; box-sizing: border-box; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-top-left-radius: var(${Ie.BorderRadiusTopLeft}); border-top-right-radius: var(${Ie.BorderRadiusTopRight}); border-bottom-right-radius: var(${Ie.BorderRadiusBottomRight}); border-bottom-left-radius: var(${Ie.BorderRadiusBottomLeft}); border-color: var(${Ie.BorderColor}); border-top-width: var(${Ie.BorderTopWidth}); border-right-width: var(${Ie.BorderRightWidth}); border-bottom-width: var(${Ie.BorderBottomWidth}); border-left-width: var(${Ie.BorderLeftWidth}); border-style: var(${Ie.BorderStyle}); transition: var(${Ie.FocusedTransition}); transition-property: border-color, border-width, border-style, border-top-left-radius, border-top-right-radius, border-bottom-right-radius, border-bottom-left-radius; }`],f3="customError",d3="valid";function h3(e){return e!==f3&&e!==d3}function wk(e){for(let t in e)if(h3(t)&&e?.[t]===!0)return!0;return!1}function p3(e,t,r,n,i){let o=E.useRef(null),a=E.useCallback(c=>{t&&o.current!==!1&&(o.current=!1,c.currentTarget.setCustomValidity(" "),c.currentTarget.reportValidity(),t(c))},[t]),s=E.useCallback(c=>{if(r?.(c),!t&&!e)return;let u=c.target.validity;o.current===!1&&!wk(u)&&(c.currentTarget.setCustomValidity(""),c.target.reportValidity(),o.current=!0,e?.())},[t,e,r]),l=E.useCallback(c=>{if(!t){n?.(c);return}if(o.current===!1)return;let u=c.currentTarget.validity;if(wk(u)){a(c);return}n?.(c)},[a,n,t]);return E.useMemo(()=>({onInvalid:a,onChange:s,onBlur:l,onFocus:i}),[a,s,l,i])}var Qm=10,Zm=16,m3={content:"",display:"block",position:"absolute",right:0,top:0,bottom:0,width:`${Zm}px`,boxSizing:"content-box",padding:q.variable(Ie.Padding),border:"none",pointerEvents:"none",backgroundRepeat:"no-repeat",backgroundSize:`${Zm}px`,maskRepeat:"no-repeat",maskSize:`${Zm}px`,backgroundColor:q.variable(Ie.IconColor)};function Xr(e,t){return q.variable(...e.flatMap(r=>[`${r}-rgb`,r]),t)}var g3=[` p.framer-text, div.framer-text, figure.framer-text, h1.framer-text, h2.framer-text, h3.framer-text, h4.framer-text, h5.framer-text, h6.framer-text, ol.framer-text, ul.framer-text { margin: 0; padding: 0; } `,` p.framer-text, div.framer-text, h1.framer-text, h2.framer-text, h3.framer-text, h4.framer-text, h5.framer-text, h6.framer-text, li.framer-text, ol.framer-text, ul.framer-text, span.framer-text:not([data-text-fill]) { font-family: var(--framer-blockquote-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--framer-blockquote-font-style, var(--framer-font-style, normal)); font-weight: var(--framer-blockquote-font-weight, var(--framer-font-weight, 400)); color: var(--framer-blockquote-text-color, var(--framer-text-color, #000)); font-size: calc(var(--framer-blockquote-font-size, var(--framer-font-size, 16px)) * var(--framer-font-size-scale, 1)); letter-spacing: var(--framer-blockquote-letter-spacing, var(--framer-letter-spacing, 0)); text-transform: var(--framer-blockquote-text-transform, var(--framer-text-transform, none)); text-decoration-line: var(--framer-blockquote-text-decoration, var(--framer-text-decoration, initial)); text-decoration-style: var(--framer-blockquote-text-decoration-style, var(--framer-text-decoration-style, initial)); text-decoration-color: var(--framer-blockquote-text-decoration-color, var(--framer-text-decoration-color, initial)); text-decoration-thickness: var(--framer-blockquote-text-decoration-thickness, var(--framer-text-decoration-thickness, initial)); text-decoration-skip-ink: var(--framer-blockquote-text-decoration-skip-ink, var(--framer-text-decoration-skip-ink, initial)); text-underline-offset: var(--framer-blockquote-text-decoration-offset, var(--framer-text-decoration-offset, initial)); line-height: var(--framer-blockquote-line-height, var(--framer-line-height, 1.2em)); text-align: var(--framer-blockquote-text-alignment, var(--framer-text-alignment, start)); -webkit-text-stroke-width: var(--framer-text-stroke-width, initial); -webkit-text-stroke-color: var(--framer-text-stroke-color, initial); -moz-font-feature-settings: var(--framer-font-open-type-features, initial); -webkit-font-feature-settings: var(--framer-font-open-type-features, initial); font-feature-settings: var(--framer-font-open-type-features, initial); font-variation-settings: var(--framer-font-variation-axes, normal); text-wrap: var(--framer-text-wrap-override, var(--framer-text-wrap)); } `,` @supports not (color: color(display-p3 1 1 1)) { p.framer-text, div.framer-text, h1.framer-text, h2.framer-text, h3.framer-text, h4.framer-text, h5.framer-text, h6.framer-text, li.framer-text, ol.framer-text, ul.framer-text, span.framer-text:not([data-text-fill]) { color: ${Xr(["--framer-blockquote-text-color","--framer-text-color"],"#000")}; -webkit-text-stroke-color: ${Xr(["--framer-text-stroke-color"],"initial")}; } } `,` .framer-fit-text .framer-text { white-space: nowrap; white-space-collapse: preserve; } `,` strong.framer-text { font-family: var(--framer-blockquote-font-family-bold, var(--framer-font-family-bold)); font-style: var(--framer-blockquote-font-style-bold, var(--framer-font-style-bold)); font-weight: var(--framer-blockquote-font-weight-bold, var(--framer-font-weight-bold, bolder)); font-variation-settings: var(--framer-blockquote-font-variation-axes-bold, var(--framer-font-variation-axes-bold)); } `,` em.framer-text { font-family: var(--framer-blockquote-font-family-italic, var(--framer-font-family-italic)); font-style: var(--framer-blockquote-font-style-italic, var(--framer-font-style-italic, italic)); font-weight: var(--framer-blockquote-font-weight-italic, var(--framer-font-weight-italic)); font-variation-settings: var(--framer-blockquote-font-variation-axes-italic, var(--framer-font-variation-axes-italic)); } `,` em.framer-text > strong.framer-text { font-family: var(--framer-blockquote-font-family-bold-italic, var(--framer-font-family-bold-italic)); font-style: var(--framer-blockquote-font-style-bold-italic, var(--framer-font-style-bold-italic, italic)); font-weight: var(--framer-blockquote-font-weight-bold-italic, var(--framer-font-weight-bold-italic, bolder)); font-variation-settings: var(--framer-blockquote-font-variation-axes-bold-italic, var(--framer-font-variation-axes-bold-italic)); } `,` p.framer-text:not(:first-child), div.framer-text:not(:first-child), h1.framer-text:not(:first-child), h2.framer-text:not(:first-child), h3.framer-text:not(:first-child), h4.framer-text:not(:first-child), h5.framer-text:not(:first-child), h6.framer-text:not(:first-child), ol.framer-text:not(:first-child), ul.framer-text:not(:first-child), blockquote.framer-text:not(:first-child), table.framer-text:not(:first-child), figure.framer-text:not(:first-child), .framer-image.framer-text:not(:first-child) { margin-top: var(--framer-blockquote-paragraph-spacing, var(--framer-paragraph-spacing, 0)); } `,` li.framer-text > ul.framer-text:nth-child(2), li.framer-text > ol.framer-text:nth-child(2) { margin-top: 0; } `,` .framer-text[data-text-fill] { display: inline-block; background-clip: text; -webkit-background-clip: text; /* make this a transparent color if you want to visualise the clipping */ -webkit-text-fill-color: transparent; padding: max(0em, calc(calc(1.3em - var(--framer-blockquote-line-height, var(--framer-line-height, 1.3em))) / 2)); margin: min(0em, calc(calc(1.3em - var(--framer-blockquote-line-height, var(--framer-line-height, 1.3em))) / -2)); } `,` code.framer-text, code.framer-text span.framer-text:not([data-text-fill]) { font-family: var(--framer-code-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--framer-blockquote-font-style, var(--framer-code-font-style, var(--framer-font-style, normal))); font-weight: var(--framer-blockquote-font-weight, var(--framer-code-font-weight, var(--framer-font-weight, 400))); color: var(--framer-blockquote-text-color, var(--framer-code-text-color, var(--framer-text-color, #000))); font-size: calc(var(--framer-blockquote-font-size, var(--framer-font-size, 16px)) * var(--framer-font-size-scale, 1)); letter-spacing: var(--framer-blockquote-letter-spacing, var(--framer-letter-spacing, 0)); line-height: var(--framer-blockquote-line-height, var(--framer-line-height, 1.2em)); } `,` @supports not (color: color(display-p3 1 1 1)) { code.framer-text, code.framer-text span.framer-text:not([data-text-fill]) { color: ${Xr(["--framer-blockquote-text-color","--framer-code-text-color","--framer-text-color"],"#000")}; } } `,` blockquote.framer-text { margin-block-start: initial; margin-block-end: initial; margin-inline-start: initial; margin-inline-end: initial; unicode-bidi: initial; } `,` a.framer-text, a.framer-text span.framer-text:not([data-text-fill]), span.framer-text[data-nested-link], span.framer-text[data-nested-link] span.framer-text:not([data-text-fill]) { font-family: var(--framer-blockquote-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif))); font-style: var(--framer-blockquote-font-style, var(--framer-link-font-style, var(--framer-font-style, normal))); font-weight: var(--framer-blockquote-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400))); color: var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-text-color, #000))); font-size: calc(var(--framer-blockquote-font-size, var(--framer-font-size, 16px)) * var(--framer-font-size-scale, 1)); text-transform: var(--framer-blockquote-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none))); /* Cursor inherit to overwrite the user agent stylesheet on rich text links. */ cursor: var(--framer-custom-cursors, pointer); } `,` a.framer-text, span.framer-text[data-nested-link] { text-decoration-line: var(--framer-blockquote-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, initial))); text-decoration-style: var(--framer-blockquote-text-decoration-style, var(--framer-link-text-decoration-style, var(--framer-text-decoration-style, initial))); text-decoration-color: var(--framer-blockquote-text-decoration-color, var(--framer-link-text-decoration-color, var(--framer-text-decoration-color, initial))); text-decoration-thickness: var(--framer-blockquote-text-decoration-thickness, var(--framer-link-text-decoration-thickness, var(--framer-text-decoration-thickness, initial))); text-decoration-skip-ink: var(--framer-blockquote-text-decoration-skip-ink, var(--framer-link-text-decoration-skip-ink, var(--framer-text-decoration-skip-ink, initial))); text-underline-offset: var(--framer-blockquote-text-decoration-offset, var(--framer-link-text-decoration-offset, var(--framer-text-decoration-offset, initial))); } `,` @supports not (color: color(display-p3 1 1 1)) { a.framer-text, a.framer-text span.framer-text:not([data-text-fill]), span.framer-text[data-nested-link], span.framer-text[data-nested-link] span.framer-text:not([data-text-fill]) { color: ${Xr(["--framer-blockquote-text-color","--framer-link-text-color","--framer-text-color"],"#000")}; } } `,` code.framer-text a.framer-text, code.framer-text a.framer-text span.framer-text:not([data-text-fill]), code.framer-text span.framer-text[data-nested-link], code.framer-text span.framer-text[data-nested-link] span.framer-text:not([data-text-fill]) { font-family: var(--framer-code-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--framer-blockquote-font-style, var(--framer-code-font-style, var(--framer-font-style, normal))); font-weight: var(--framer-blockquote-font-weight, var(--framer-code-font-weight, var(--framer-font-weight, 400))); color: var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-code-text-color, var(--framer-text-color, #000)))); font-size: calc(var(--framer-blockquote-font-size, var(--framer-font-size, 16px)) * var(--framer-font-size-scale, 1)); } `,` @supports not (color: color(display-p3 1 1 1)) { code.framer-text a.framer-text, code.framer-text a.framer-text span.framer-text:not([data-text-fill]), code.framer-text span.framer-text[data-nested-link], code.framer-text span.framer-text[data-nested-link] span.framer-text:not([data-text-fill]) { color: ${Xr(["--framer-blockquote-text-color","--framer-link-text-color","--framer-code-text-color","--framer-text-color"],"#000")}; } } `,` a.framer-text:hover, a.framer-text:hover span.framer-text:not([data-text-fill]), span.framer-text[data-nested-link]:hover, span.framer-text[data-nested-link]:hover span.framer-text:not([data-text-fill]) { font-family: var(--framer-link-hover-font-family, var(--framer-blockquote-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)))); font-style: var(--framer-link-hover-font-style, var(--framer-blockquote-font-style, var(--framer-link-font-style, var(--framer-font-style, normal)))); font-weight: var(--framer-link-hover-font-weight, var(--framer-blockquote-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400)))); color: var(--framer-link-hover-text-color, var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-text-color, #000)))); font-size: calc(var(--framer-link-hover-font-size, var(--framer-blockquote-font-size, var(--framer-font-size, 16px))) * var(--framer-font-size-scale, 1)); text-transform: var(--framer-link-hover-text-transform, var(--framer-blockquote-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none)))); } `,` a.framer-text:hover, span.framer-text[data-nested-link]:hover { text-decoration-line: var(--framer-link-hover-text-decoration, var(--framer-blockquote-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, initial)))); text-decoration-style: var(--framer-link-hover-text-decoration-style, var(--framer-blockquote-text-decoration-style, var(--framer-link-text-decoration-style, var(--framer-text-decoration-style, initial)))); text-decoration-color: var(--framer-link-hover-text-decoration-color, var(--framer-blockquote-text-decoration-color, var(--framer-link-text-decoration-color, var(--framer-text-decoration-color, initial)))); text-decoration-thickness: var(--framer-link-hover-text-decoration-thickness, var(--framer-blockquote-text-decoration-thickness, var(--framer-link-text-decoration-thickness, var(--framer-text-decoration-thickness, initial)))); text-decoration-skip-ink: var(--framer-link-hover-text-decoration-skip-ink, var(--framer-blockquote-text-decoration-skip-ink, var(--framer-link-text-decoration-skip-ink, var(--framer-text-decoration-skip-ink, initial)))); text-underline-offset: var(--framer-link-hover-text-decoration-offset, var(--framer-blockquote-text-decoration-offset, var(--framer-link-text-decoration-offset, var(--framer-text-decoration-offset, initial)))); } `,` @supports not (color: color(display-p3 1 1 1)) { a.framer-text:hover, a.framer-text:hover span.framer-text:not([data-text-fill]), span.framer-text[data-nested-link]:hover, span.framer-text[data-nested-link]:hover span.framer-text:not([data-text-fill]) { color: ${Xr(["--framer-link-hover-text-color","--framer-blockquote-text-color","--framer-link-text-color","--framer-text-color"],"#000")}; } } `,` code.framer-text a.framer-text:hover, code.framer-text a.framer-text:hover span.framer-text:not([data-text-fill]), code.framer-text span.framer-text[data-nested-link]:hover, code.framer-text span.framer-text[data-nested-link]:hover span.framer-text:not([data-text-fill]) { font-family: var(var(--framer-code-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif))); font-style: var(--framer-blockquote-font-style, var(--framer-code-font-style, var(--framer-font-style, normal))); font-weight: var(--framer-blockquote-font-weight, var(--framer-code-font-weight, var(--framer-font-weight, 400))); color: var(--framer-link-hover-text-color, var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-code-text-color, var(--framer-text-color, #000))))); font-size: calc(var(--framer-link-hover-font-size, var(--framer-blockquote-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px)))) * var(--framer-font-size-scale, 1)); } `,` @supports not (color: color(display-p3 1 1 1)) { code.framer-text a.framer-text:hover, code.framer-text a.framer-text:hover span.framer-text:not([data-text-fill]), code.framer-text span.framer-text[data-nested-link]:hover, code.framer-text span.framer-text[data-nested-link]:hover span.framer-text:not([data-text-fill]) { color: ${Xr(["--framer-link-hover-text-color","--framer-blockquote-text-color","--framer-link-text-color","--framer-text-color"],"#000")}; } } `,` a.framer-text[data-framer-page-link-current], a.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]), span.framer-text[data-framer-page-link-current], span.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]) { font-family: var(--framer-link-current-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif))); font-style: var(--framer-link-current-font-style, var(--framer-link-font-style, var(--framer-font-style, normal))); font-weight: var(--framer-link-current-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400))); color: var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-text-color, #000))); font-size: calc(var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px))) * var(--framer-font-size-scale, 1)); text-transform: var(--framer-link-current-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none))); } `,` a.framer-text[data-framer-page-link-current], span.framer-text[data-framer-page-link-current] { text-decoration-line: var(--framer-link-current-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, initial))); text-decoration-style: var(--framer-link-current-text-decoration-style, var(--framer-link-text-decoration-style, var(--framer-text-decoration-style, initial))); text-decoration-color: var(--framer-link-current-text-decoration-color, var(--framer-link-text-decoration-color, var(--framer-text-decoration-color, initial))); text-decoration-thickness: var(--framer-link-current-text-decoration-thickness, var(--framer-link-text-decoration-thickness, var(--framer-text-decoration-thickness, initial))); text-decoration-skip-ink: var(--framer-link-current-text-decoration-skip-ink, var(--framer-link-text-decoration-skip-ink, var(--framer-text-decoration-skip-ink, initial))); text-underline-offset: var(--framer-link-current-text-decoration-offset, var(--framer-link-text-decoration-offset, var(--framer-text-decoration-offset, initial))); } `,` @supports not (color: color(display-p3 1 1 1)) { a.framer-text[data-framer-page-link-current], a.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]), span.framer-text[data-framer-page-link-current], span.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]) { color: ${Xr(["--framer-link-current-text-color","--framer-link-text-color","--framer-text-color"],"#000")}; } } `,` code.framer-text a.framer-text[data-framer-page-link-current], code.framer-text a.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]), code.framer-text span.framer-text[data-framer-page-link-current], code.framer-text span.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]) { font-family: var(--framer-code-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--framer-code-font-style, var(--framer-font-style, normal)); font-weight: var(--framer-code-font-weight, var(--framer-font-weight, 400)); color: var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-code-text-color, var(--framer-text-color, #000)))); font-size: calc(var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px))) * var(--framer-font-size-scale, 1)); } `,` @supports not (color: color(display-p3 1 1 1)) { code.framer-text a.framer-text[data-framer-page-link-current], code.framer-text a.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]), code.framer-text span.framer-text[data-framer-page-link-current], code.framer-text span.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]) { color: ${Xr(["--framer-link-current-text-color","--framer-link-text-color","--framer-code-text-color","--framer-text-color"],"#000")}; } } `,` a.framer-text[data-framer-page-link-current]:hover, a.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]), span.framer-text[data-framer-page-link-current]:hover, span.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]) { font-family: var(--framer-link-hover-font-family, var(--framer-link-current-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)))); font-style: var(--framer-link-hover-font-style, var(--framer-link-current-font-style, var(--framer-link-font-style, var(--framer-font-style, normal)))); font-weight: var(--framer-link-hover-font-weight, var(--framer-link-current-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400)))); color: var(--framer-link-hover-text-color, var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-text-color, #000)))); font-size: calc(var(--framer-link-hover-font-size, var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px)))) * var(--framer-font-size-scale, 1)); text-transform: var(--framer-link-hover-text-transform, var(--framer-link-current-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none)))); } `,` a.framer-text[data-framer-page-link-current]:hover, span.framer-text[data-framer-page-link-current]:hover { text-decoration-line: var(--framer-link-hover-text-decoration, var(--framer-link-current-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, initial)))); text-decoration-style: var(--framer-link-hover-text-decoration-style, var(--framer-link-current-text-decoration-style, var(--framer-link-text-decoration-style, var(--framer-text-decoration-style, initial)))); text-decoration-color: var(--framer-link-hover-text-decoration-color, var(--framer-link-current-text-decoration-color, var(--framer-link-text-decoration-color, var(--framer-text-decoration-color, initial)))); text-decoration-thickness: var(--framer-link-hover-text-decoration-thickness, var(--framer-link-current-text-decoration-thickness, var(--framer-link-text-decoration-thickness, var(--framer-text-decoration-thickness, initial)))); text-decoration-skip-ink: var(--framer-link-hover-text-decoration-skip-ink, var(--framer-link-current-text-decoration-skip-ink, var(--framer-link-text-decoration-skip-ink, var(--framer-text-decoration-skip-ink, initial)))); text-underline-offset: var(--framer-link-hover-text-decoration-offset, var(--framer-link-current-text-decoration-offset, var(--framer-link-text-decoration-offset, var(--framer-text-decoration-offset, initial)))); } `,` @supports not (color: color(display-p3 1 1 1)) { a.framer-text[data-framer-page-link-current]:hover, a.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]), span.framer-text[data-framer-page-link-current]:hover, span.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]) { color: ${Xr(["--framer-link-hover-text-color","--framer-link-current-text-color","--framer-link-text-color","--framer-code-text-color","--framer-text-color"],"#000")}; } } `,` code.framer-text a.framer-text[data-framer-page-link-current]:hover, code.framer-text a.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]), code.framer-text span.framer-text[data-framer-page-link-current]:hover, code.framer-text span.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]) { font-family: var(--framer-code-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--framer-code-font-style, var(--framer-font-style, normal)); font-weight: var(--framer-code-font-weight, var(--framer-font-weight, 400)); color: var(--framer-link-hover-text-color, var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-code-text-color, var(--framer-text-color, #000))))); font-size: calc(var(--framer-link-hover-font-size, var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px)))) * var(--framer-font-size-scale, 1)); } `,` @supports not (color: color(display-p3 1 1 1)) { code.framer-text a.framer-text[data-framer-page-link-current]:hover, code.framer-text a.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]), code.framer-text span.framer-text[data-framer-page-link-current]:hover, code.framer-text span.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]) { color: ${Xr(["--framer-link-hover-text-color","--framer-link-current-text-color","--framer-link-text-color","--framer-code-text-color","--framer-text-color"],"#000")}; } } `,` .framer-image.framer-text { display: block; max-width: 100%; height: auto; } `,` .text-styles-preset-reset.framer-text { --framer-font-family: Inter, Inter Placeholder, sans-serif; --framer-font-style: normal; --framer-font-weight: 500; --framer-text-color: #000; --framer-font-size: 16px; --framer-letter-spacing: 0; --framer-text-transform: none; --framer-text-decoration: none; --framer-text-decoration-style: none; --framer-text-decoration-color: none; --framer-text-decoration-thickness: none; --framer-text-decoration-skip-ink: none; --framer-text-decoration-offset: none; --framer-line-height: 1.2em; --framer-text-alignment: start; --framer-font-open-type-features: normal; } `,` ol.framer-text { --list-style-type: decimal; } `,` ul.framer-text, ol.framer-text { padding-left: 3ch; position: relative; } `,` li.framer-text { counter-increment: list-item; list-style: none; } `,` ol.framer-text > li.framer-text::before { position: absolute; left: 0; content: counter(list-item, var(--list-style-type)) "."; font-variant-numeric: tabular-nums; } `,` ol.framer-text > li.framer-text:nth-last-child(n + 100), ol.framer-text > li.framer-text:nth-last-child(n + 100) ~ li { padding-left: 1ch; } `,` ol.framer-text > li.framer-text:nth-last-child(n + 1000), ol.framer-text > li.framer-text:nth-last-child(n + 1000) ~ li { padding-left: 2ch; } `,` ol.framer-text > li.framer-text:nth-last-child(n + 10000), ol.framer-text > li.framer-text:nth-last-child(n + 10000) ~ li { padding-left: 3ch; } `,` ol.framer-text > li.framer-text:nth-last-child(n + 100000), ol.framer-text > li.framer-text:nth-last-child(n + 100000) ~ li { padding-left: 4ch; } `,` ol.framer-text > li.framer-text:nth-last-child(n + 1000000), ol.framer-text > li.framer-text:nth-last-child(n + 1000000) ~ li { padding-left: 5ch; } `,` ul.framer-text > li.framer-text::before { position: absolute; left: 0; content: "\u2022"; } `,` .framer-table-wrapper { overflow-x: auto; } `,` table.framer-text, .framer-table-wrapper table.framer-text { border-collapse: separate; border-spacing: 0; table-layout: auto; word-break: normal; width: 100%; } `,` td.framer-text, th.framer-text { min-width: 16ch; vertical-align: top; } `,` .framer-text-module[style*="aspect-ratio"] > :first-child { width: 100%; } `,` @supports not (aspect-ratio: 1) { .framer-text-module[style*="aspect-ratio"] { position: relative; } } `,` @supports not (aspect-ratio: 1) { .framer-text-module[style*="aspect-ratio"]::before { content: ""; display: block; padding-bottom: calc(100% / calc(var(--aspect-ratio))); } } `,` @supports not (aspect-ratio: 1) { .framer-text-module[style*="aspect-ratio"] > :first-child { position: absolute; top: 0; left: 0; height: 100%; } } `],v3=new Set,Jm;function qT(e,t,r=v3){if(!(!e||r.has(e)||typeof document>"u")){if(r.add(e),!t){if(!Jm){let n=document.createElement("style");if(n.setAttribute("type","text/css"),n.setAttribute("data-framer-css","true"),!document.head){console.warn("not injecting CSS: the document is missing a element");return}if(document.head.appendChild(n),n.sheet)Jm=n.sheet;else{console.warn("not injecting CSS: injected