import{A as S,B as he,a as R,b as Tr,c as Te,d as Nr,e as Wn,f as Un,g as ge,h as Il,j as we,k as Rt,l as Zv,m as Hf,n as Fe,o as $,p as O,q as V,r as Gn,s as rt,t as We,u as U,w as M,x as ve,y as sr,z as nt}from"./chunk-ei2t6pks.mjs";import{a as on,b as Xv,c as yo,d as Yv,e as Kv,f as Qv,g as xt,h as C,i as de,j as zr,k as jf,l as Qt}from"./chunk-hzl4yimb.mjs";import{a as qv,b as He,c as F}from"./chunk-a3iiq6x3.mjs";var OF=on({"../../../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}}),LF=on({"../../../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(OF()),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}}),Wa=ge({}),Yl=typeof F<"u",Bi=Yl?We:V,Oo=ge(null);function Kl(e,t){e.indexOf(t)===-1&&e.push(t)}function Qa(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}function w0([...e],t,r){let n=t<0?e.length+t:t;if(n>=0&&nr>t?t:r{},cr=()=>{},ur={},Sd=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function kd(e){return typeof e=="object"&&e!==null}var Cd=e=>/^0[^.\s]+$/u.test(e);function Ql(e){let t;return()=>(t===void 0&&(t=e()),t)}var Wt=e=>e,VF=(e,t)=>r=>t(e(r)),Vo=(...e)=>e.reduce(VF),Yn=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n},Zl=class{constructor(){this.subscriptions=[]}add(e){return Kl(this.subscriptions,e),()=>Qa(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,jr=e=>e/1e3;function Jl(e,t){return t?e*(1e3/t):0}var S0=(e,t,r)=>{let n=t-e;return((r-e)%n+n)%n+e},k0=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,AF=1e-7,DF=12;function BF(e,t,r,n,i){let o,a,s=0;do a=t+(r-t)/2,o=k0(a,n,i)-e,o>0?r=a:t=a;while(Math.abs(o)>AF&&++sBF(o,0,1,e,r);return o=>o===0||o===1?o:k0(i(o),t,n)}var Td=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Rd=e=>t=>1-e(1-t),Ed=Ao(.33,1.53,.69,.99),ec=Rd(Ed),Fd=Td(ec),Pd=e=>(e*=2)<1?.5*ec(e):.5*(2-Math.pow(2,-10*(e-1))),tc=e=>1-Math.sin(Math.acos(e)),Id=Rd(tc),_d=Td(tc),C0=Ao(.42,0,1,1),T0=Ao(0,0,.58,1),Md=Ao(.42,0,.58,1);var Od=e=>Array.isArray(e)&&typeof e[0]!="number";function Ld(e,t){return Od(e)?e[S0(0,e.length,t)]:e}var Vd=e=>Array.isArray(e)&&typeof e[0]=="number",Jv={linear:Wt,easeIn:C0,easeInOut:Md,easeOut:T0,circIn:tc,circInOut:_d,circOut:Id,backIn:ec,backInOut:Fd,backOut:Ed,anticipate:Pd},zF=e=>typeof e=="string",$l=e=>{if(Vd(e)){cr(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return Ao(t,r,n,i)}else if(zF(e))return cr(Jv[e]!==void 0,`Invalid easing type '${e}'`),Jv[e];return e},$r={value:null,addProjectionMetrics:null},za=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function NF(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 v=h&&i?r:n;return d&&a.add(f),v.has(f)||v.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&&$r.value&&$r.value.frameloop[t].push(l),l=0,r.clear(),i=!1,o&&(o=!1,u.process(f))}};return u}var $F=40;function Ad(e,t){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,a=za.reduce((y,x)=>(y[x]=NF(o,t?x:void 0),y),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:f,preRender:d,render:h,postRender:p}=a,v=()=>{let y=ur.useManualTiming?i.timestamp:performance.now();r=!1,ur.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(y-i.timestamp,$F),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(v))},b=()=>{r=!0,n=!0,i.isProcessing||e(v)};return{schedule:za.reduce((y,x)=>{let k=a[x];return y[x]=(w,T=!1,E=!1)=>(r||b(),k.schedule(w,T,E)),y},{}),cancel:y=>{for(let x=0;x(Ll===void 0&&Ht.set(pt.isProcessing||ur.useManualTiming?pt.timestamp:performance.now()),Ll),set:e=>{Ll=e,queueMicrotask(jF)}},Xn={layout:0,mainThread:0,waapi:0},R0=e=>t=>typeof t=="string"&&t.startsWith(e),rc=R0("--"),HF=R0("var(--"),nc=e=>HF(e)?WF.test(e.split("/*")[0].trim()):!1,WF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,zi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Po={...zi,transform:e=>Wr(0,1,e)},Na={...zi,default:1},$a=e=>Math.round(e*1e5)/1e5,Dd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function UF(e){return e==null}var GF=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Bd=(e,t)=>r=>!!(typeof r=="string"&&GF.test(r)&&r.startsWith(e)||t&&!UF(r)&&Object.prototype.hasOwnProperty.call(r,t)),E0=(e,t,r)=>n=>{if(typeof n!="string")return n;let[i,o,a,s]=n.match(Dd);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},qF=e=>Wr(0,255,e),Vl={...zi,transform:e=>Math.round(qF(e))},qn={test:Bd("rgb","red"),parse:E0("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Vl.transform(e)+", "+Vl.transform(t)+", "+Vl.transform(r)+", "+$a(Po.transform(n))+")"};function XF(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 jl={test:Bd("#"),parse:XF,transform:qn.transform},Za=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xn=Za("deg"),Hr=Za("%"),Z=Za("px"),F0=Za("vh"),P0=Za("vw"),ed={...Hr,parse:e=>Hr.parse(e)/100,transform:e=>Hr.transform(e*100)},Mi={test:Bd("hsl","hue"),parse:E0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Hr.transform($a(t))+", "+Hr.transform($a(r))+", "+$a(Po.transform(n))+")"},Et={test:e=>qn.test(e)||jl.test(e)||Mi.test(e),parse:e=>qn.test(e)?qn.parse(e):Mi.test(e)?Mi.parse(e):jl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?qn.transform(e):Mi.transform(e)},YF=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function KF(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Dd))==null?void 0:t.length)||0)+(((r=e.match(YF))==null?void 0:r.length)||0)>0}var I0="number",_0="color",QF="var",ZF="var(",ey="${}",JF=/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 Io(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[],o=0,s=t.replace(JF,l=>(Et.test(l)?(n.color.push(o),i.push(_0),r.push(Et.parse(l))):l.startsWith(ZF)?(n.var.push(o),i.push(QF),r.push(l)):(n.number.push(o),i.push(I0),r.push(parseFloat(l))),++o,ey)).split(ey);return{values:r,split:s,indexes:n,types:i}}function M0(e){return Io(e).values}function O0(e){let{split:t,types:r}=Io(e),n=t.length;return i=>{let o="";for(let a=0;atypeof e=="number"?0:e;function tP(e){let t=M0(e);return O0(e)(t.map(eP))}var wn={test:KF,parse:M0,createTransformer:O0,getAnimatableNone:tP};function Wf(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 L0({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=Wf(l,s,e+1/3),o=Wf(l,s,e),a=Wf(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}function Ua(e,t){return r=>r>0?t:e}var _e=(e,t,r)=>e+(t-e)*r,Al=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},rP=[jl,qn,Mi],nP=e=>rP.find(t=>t.test(e));function ty(e){let t=nP(e);if(Lo(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===Mi&&(r=L0(r)),r}var td=(e,t)=>{let r=ty(e),n=ty(t);if(!r||!n)return Ua(e,t);let i={...r};return o=>(i.red=Al(r.red,n.red,o),i.green=Al(r.green,n.green,o),i.blue=Al(r.blue,n.blue,o),i.alpha=_e(r.alpha,n.alpha,o),qn.transform(i))},Hl=new Set(["none","hidden"]);function V0(e,t){return Hl.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function iP(e,t){return r=>_e(e,t,r)}function ic(e){return typeof e=="number"?iP:typeof e=="string"?nc(e)?Ua:Et.test(e)?td:D0:Array.isArray(e)?zd:typeof e=="object"?Et.test(e)?td:A0:Ua}function zd(e,t){let r=[...e],n=r.length,i=e.map((o,a)=>ic(o)(o,t[a]));return o=>{for(let a=0;a{for(let o in n)r[o]=n[o](i);return r}}function oP(e,t){let r=[],n={color:0,var:0,number:0};for(let i=0;i{let r=wn.createTransformer(t),n=Io(e),i=Io(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?Hl.has(e)&&!i.values.length||Hl.has(t)&&!n.values.length?V0(e,t):Vo(zd(oP(n,i),i.values),r):(Lo(!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.`),Ua(e,t))};function Nd(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?_e(e,t,r):ic(e)(e,t)}var $d=(e,t,r=10)=>{let n="",i=Math.max(Math.round(t/r),2);for(let o=0;o=Ga?1/0:t}function jd(e,t=100,r){let n=r({...e,keyframes:[0,t]}),i=Math.min(oc(n),Ga);return{type:"keyframes",ease:o=>n.next(i*o).value/t,duration:jr(i)}}var aP=5;function B0(e,t,r){let n=Math.max(t-aP,0);return Jl(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},Uf=.001;function sP({duration:e=Ge.duration,bounce:t=Ge.bounce,velocity:r=Ge.velocity,mass:n=Ge.mass}){let i,o;Lo(e<=lr(Ge.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Wr(Ge.minDamping,Ge.maxDamping,a),e=Wr(Ge.minDuration,Ge.maxDuration,jr(e)),a<1?(i=c=>{let u=c*a,f=u*e,d=u-r,h=rd(c,a),p=Math.exp(-f);return Uf-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),v=rd(Math.pow(c,2),a);return(-i(c)+Uf>0?-1:1)*((d-h)*p)/v}):(i=c=>{let u=Math.exp(-c*e),f=(c-r)*e+1;return-Uf+u*f},o=c=>{let u=Math.exp(-c*e),f=(r-c)*(e*e);return u*f});let s=5/e,l=cP(i,o,s);if(e=lr(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 lP=12;function cP(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function dP(e){let t={velocity:Ge.velocity,stiffness:Ge.stiffness,damping:Ge.damping,mass:Ge.mass,isResolvedFromDuration:!1,...e};if(!ry(e,fP)&&ry(e,uP))if(e.visualDuration){let r=e.visualDuration,n=2*Math.PI/(r*1.2),i=n*n,o=2*Wr(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Ge.mass,stiffness:i,damping:o}}else{let r=sP(e);t={...t,...r,mass:Ge.mass},t.isResolvedFromDuration=!0}return t}function Di(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}=dP({...r,velocity:-jr(r.velocity||0)}),p=d||0,v=c/(2*Math.sqrt(l*u)),b=a-o,m=jr(Math.sqrt(l/u)),g=Math.abs(b)<5;n||(n=g?Ge.restSpeed.granular:Ge.restSpeed.default),i||(i=g?Ge.restDelta.granular:Ge.restDelta.default);let y;if(v<1){let k=rd(m,v);y=w=>{let T=Math.exp(-v*m*w);return a-T*((p+v*m*b)/k*Math.sin(k*w)+b*Math.cos(k*w))}}else if(v===1)y=k=>a-Math.exp(-m*k)*(b+(p+m*b)*k);else{let k=m*Math.sqrt(v*v-1);y=w=>{let T=Math.exp(-v*m*w),E=Math.min(k*w,300);return a-T*((p+v*m*b)*Math.sinh(E)+k*b*Math.cosh(E))/k}}let x={calculatedDuration:h&&f||null,next:k=>{let w=y(k);if(h)s.done=k>=f;else{let T=k===0?p:0;v<1&&(T=k===0?lr(p):B0(y,k,w));let E=Math.abs(T)<=n,P=Math.abs(a-w)<=i;s.done=E&&P}return s.value=s.done?a:w,s},toString:()=>{let k=Math.min(oc(x),Ga),w=$d(T=>x.next(k*T).value,k,30);return k+"ms "+w},toTransition:()=>{}};return x}Di.applyToOptions=e=>{let t=jd(e,100,Di);return e.ease=t.ease,e.duration=lr(t.duration),e.type="keyframes",e};function Wl({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=E=>s!==void 0&&El,p=E=>s===void 0?l:l===void 0||Math.abs(s-E)-v*Math.exp(-E/n),y=E=>m+g(E),x=E=>{let P=g(E),I=y(E);d.done=Math.abs(P)<=c,d.value=d.done?m:I},k,w,T=E=>{h(d.value)&&(k=E,w=Di({keyframes:[d.value,p(d.value)],velocity:B0(y,E,d.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return T(0),{calculatedDuration:null,next:E=>{let P=!1;return!w&&k===void 0&&(P=!0,x(E),T(E)),k!==void 0&&E>=k?w.next(E-k):(!P&&x(E),d)}}}function hP(e,t,r){let n=[],i=r||ur.mix||Nd,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=hP(t,n,i),l=s.length,c=u=>{if(a&&u1)for(;fc(Wr(e[0],e[o-1],u)):c}function Hd(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=Yn(0,t,n);e.push(_e(r,1,i))}}function ac(e){let t=[0];return Hd(t,e.length-1),t}function z0(e,t){return e.map(r=>r*t)}function N0(e,t){return e.map(()=>t||Md).splice(0,e.length-1)}function Ro({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let i=Od(n)?n.map($l):$l(n),o={done:!1,value:t[0]},a=z0(r&&r.length===t.length?r:ac(t),e),s=Do(a,t,{ease:Array.isArray(i)?i:N0(t,i)});return{calculatedDuration:e,next:l=>(o.value=s(l),o.done=l>=e,o)}}var pP=e=>{let t=({timestamp:r})=>e(r);return{start:(r=!0)=>Q.update(t,r),stop:()=>Vt(t),now:()=>pt.isProcessing?pt.timestamp:Ht.now()}},mP=e=>e!==null;function Wd(e,{repeat:t,repeatType:r="loop"},n,i=1){let o=e.filter(mP),s=i<0||t&&r!=="loop"&&t%2===1?0:o.length-1;return!s||n===void 0?o[s]:n}var gP={decay:Wl,inertia:Wl,tween:Ro,keyframes:Ro,spring:Di};function $0(e){typeof e.type=="string"&&(e.type=gP[e.type])}var Ud=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)}},vP=e=>e/100,Bo=class extends Ud{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!==Ht.now()&&this.tick(Ht.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(t=this.options).onStop)==null||r.call(t))},Xn.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;$0(e);let{type:t=Ro,repeat:r=0,repeatDelay:n=0,repeatType:i,velocity:o=0}=e,{keyframes:a}=e,s=t||Ro;s!==Ro&&typeof a[0]!="number"&&(this.mixKeyframes=Vo(vP,Nd(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=oc(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:v}=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 g=this.currentTime,y=r;if(u){let T=Math.min(this.currentTime,n)/a,E=Math.floor(T),P=T%1;!P&&T>=1&&(P=1),P===1&&E--,E=Math.min(E,u+1),!!(E%2)&&(f==="reverse"?(P=1-P,d&&(P-=d/a)):f==="mirror"&&(y=o)),g=Wr(0,1,P)*a}let x=m?{done:!1,value:c[0]}:y.next(g);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!==Wl&&(x.value=Wd(c,this.options,v,this.speed)),p&&p(x.value),w&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return jr(this.calculatedDuration)}get time(){return jr(this.currentTime)}set time(e){var t;e=lr(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(Ht.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=jr(this.currentTime))}play(){var e,t;if(this.isStopped)return;let{driver:r=pP,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(Ht.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,Xn.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 j0(e){return new Bo(e)}function H0(e){for(let t=1;te*180/Math.PI,nd=e=>{let t=Oi(Math.atan2(e[1],e[0]));return id(t)},yP={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:nd,rotateZ:nd,skewX:e=>Oi(Math.atan(e[1])),skewY:e=>Oi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},id=e=>(e=e%360,e<0&&(e+=360),e),ny=nd,iy=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),oy=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),bP={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:iy,scaleY:oy,scale:e=>(iy(e)+oy(e))/2,rotateX:e=>id(Oi(Math.atan2(e[6],e[5]))),rotateY:e=>id(Oi(Math.atan2(-e[2],e[0]))),rotateZ:ny,rotate:ny,skewX:e=>Oi(Math.atan(e[4])),skewY:e=>Oi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ul(e){return e.includes("scale")?1:0}function Gl(e,t){if(!e||e==="none")return Ul(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),n,i;if(r)n=bP,i=r;else{let s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=yP,i=s}if(!i)return Ul(t);let o=n[t],a=i[1].split(",").map(xP);return typeof o=="function"?o(a):a[o]}var W0=(e,t)=>{let{transform:r="none"}=getComputedStyle(e);return Gl(r,t)};function xP(e){return parseFloat(e.trim())}var Ni=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Kn=new Set(Ni),ay=e=>e===zi||e===Z,wP=new Set(["x","y","z"]),SP=Ni.filter(e=>!wP.has(e));function kP(e){let t=[];return SP.forEach(r=>{let n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}var Li={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})=>Gl(t,"x"),y:(e,{transform:t})=>Gl(t,"y")};Li.translateX=Li.x;Li.translateY=Li.y;var Vi=new Set,od=!1,ad=!1,sd=!1;function U0(){if(ad){let e=Array.from(Vi).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{let i=kP(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)})}ad=!1,od=!1,Vi.forEach(e=>e.complete(sd)),Vi.clear()}function G0(){Vi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ad=!0)})}function q0(){sd=!0,G0(),U0(),sd=!1}var sc=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?(Vi.add(this),od||(od=!0,Q.read(G0),Q.resolveKeyframes(U0))):(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])}H0(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Vi.delete(this)}cancel(){this.state==="scheduled"&&(Vi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}},CP=e=>e.startsWith("--");function X0(e,t,r){CP(t)?e.style.setProperty(t,r):e.style[t]=r}var Gd=Ql(()=>F.ScrollTimeline!==void 0),Y0={};function TP(e,t){let r=Ql(e);return()=>Y0[t]??r()}var qd=TP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),xo=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,ld={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xo([0,.65,.55,1]),circOut:xo([.55,0,1,.45]),backIn:xo([.31,.01,.66,-.59]),backOut:xo([.33,1.53,.69,.99])};function Xd(e,t){if(e)return typeof e=="function"?qd()?$d(e,t):"ease-out":Vd(e)?xo(e):Array.isArray(e)?e.map(r=>Xd(r,t)||ld.easeOut):ld[e]}function K0(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=Xd(s,i);Array.isArray(f)&&(u.easing=f),$r.value&&Xn.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 $r.value&&h.finished.finally(()=>{Xn.waapi--}),h}function lc(e){return typeof e=="function"&&"applyToOptions"in e}function RP({type:e,...t}){return lc(e)&&qd()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var Q0=class extends Ud{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,cr(typeof e.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);let l=RP(e);this.animation=K0(t,r,n,l,i),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let c=Wd(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):X0(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 jr(Number(r))}get time(){return jr(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=lr(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&&Gd()?(this.animation.timeline=e,Wt):t(this)}},Z0={anticipate:Pd,backInOut:Fd,circInOut:_d};function EP(e){return e in Z0}function FP(e){typeof e.ease=="string"&&EP(e.ease)&&(e.ease=Z0[e.ease])}var sy=10,J0=class extends Q0{constructor(e){FP(e),$0(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 Bo({...o,autoplay:!1}),s=lr(this.finishedTime??this.time);t.setWithVelocity(a.sample(s-sy).value,a.sample(s).value,sy),a.stop()}};function Ja(e){return kd(e)&&"offsetHeight"in e}var PP=new Set(["opacity","clipPath","filter","transform"]),IP=Ql(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function eb(e){var t;let{motionValue:r,name:n,repeatDelay:i,repeatType:o,damping:a,type:s}=e;if(!Ja((t=r?.owner)==null?void 0:t.current))return!1;let{onUpdate:l,transformTemplate:c}=r.owner.getProps();return IP()&&n&&PP.has(n)&&(n!=="transform"||!c)&&!l&&!i&&o!=="mirror"&&a!==0&&s!=="inertia"}var ly=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wn.test(e)||e==="0")&&!e.startsWith("url("));function _P(e){let t=e[0];if(e.length===1)return!0;for(let r=0;r{var p,v;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=Ht.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||sc;this.keyframeResolver=new h(a,(p,v,b)=>this.onKeyframesResolved(p,v,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=Ht.now(),MP(e,i,o,a)||((ur.instantAnimations||!s)&&c?.(Wd(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>OP?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},d=!l&&eb(f)?new J0({...f,element:f.motionValue.owner.current}):new Bo(f);d.finished.then(()=>this.notifyFinished()).catch(Wt),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(),q0()),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()}},rb=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")}},nb=class extends rb{then(e,t){return this.finished.finally(e).then(()=>{})}};var LP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ib(e){let t=LP.exec(e);if(!t)return[,];let[,r,n,i]=t;return[`--${r??n}`,i]}var VP=4;function Yd(e,t,r=1){cr(r<=VP,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=ib(e);if(!n)return;let o=F.getComputedStyle(t).getPropertyValue(n);if(o){let a=o.trim();return Sd(a)?parseFloat(a):a}return nc(i)?Yd(i,t,r+1):i}function cc(e,t){return e?.[t]??e?.default??e}var Kd=new Set(["width","height","top","left","right","bottom",...Ni]),Qd=e=>t=>t.test(e),AP={test:e=>e==="auto",parse:e=>e},Zd=[zi,Z,Hr,xn,P0,F0,AP],cd=e=>Zd.find(Qd(e)),ob={rotate:xn,rotateX:xn,rotateY:xn,rotateZ:xn,scale:Na,scaleX:Na,scaleY:Na,scaleZ:Na,skew:xn,skewX:xn,skewY:xn,distance:Z,translateX:Z,translateY:Z,translateZ:Z,x:Z,y:Z,z:Z,perspective:Z,transformPerspective:Z,opacity:Po,originX:ed,originY:ed,originZ:Z},cy={...zi,transform:Math.round},uc={borderWidth:Z,borderTopWidth:Z,borderRightWidth:Z,borderBottomWidth:Z,borderLeftWidth:Z,borderRadius:Z,radius:Z,borderTopLeftRadius:Z,borderTopRightRadius:Z,borderBottomRightRadius:Z,borderBottomLeftRadius:Z,width:Z,maxWidth:Z,height:Z,maxHeight:Z,top:Z,right:Z,bottom:Z,left:Z,padding:Z,paddingTop:Z,paddingRight:Z,paddingBottom:Z,paddingLeft:Z,margin:Z,marginTop:Z,marginRight:Z,marginBottom:Z,marginLeft:Z,backgroundPositionX:Z,backgroundPositionY:Z,...ob,zIndex:cy,fillOpacity:Po,strokeOpacity:Po,numOctaves:cy},DP=new Set(["brightness","contrast","saturate","opacity"]);function BP(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(Dd)||[];if(!n)return e;let i=r.replace(n,""),o=DP.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}var zP=/\b([a-z-]*)\(.*?\)/gu,ud={...wn,getAnimatableNone:e=>{let t=e.match(zP);return t?t.map(BP).join(" "):e}},ab={...uc,color:Et,backgroundColor:Et,outlineColor:Et,fill:Et,stroke:Et,borderColor:Et,borderTopColor:Et,borderRightColor:Et,borderBottomColor:Et,borderLeftColor:Et,filter:ud,WebkitFilter:ud},Jd=e=>ab[e];function eh(e,t){let r=Jd(e);return r!==ud&&(r=wn),r.getAnimatableNone?r.getAnimatableNone(t):void 0}function NP(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Cd(e):!0}var $P=new Set(["auto","none","0"]);function jP(e,t,r){let n=0,i;for(;n{t.getValue(s).set(l)}),this.resolveNoneKeyframes()}};var lb=new Set(["opacity","clipPath","filter","transform"]);function es(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 th=(e,t)=>t&&typeof e=="number"?t.transform(e):e;var uy=30,HP=e=>!isNaN(parseFloat(e)),Eo={current:void 0},zo=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,n=!0)=>{var i,o;let a=Ht.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=Ht.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=HP(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 Zl);let r=this.events[e].add(t);return e==="change"?()=>{r(),Q.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 Eo.current&&Eo.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Ht.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>uy)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,uy);return Jl(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 zo(e,t)}var SH=Z.transform;var{schedule:fc,cancel:WP}=Ad(queueMicrotask,!1),Fr={x:!1,y:!1};function rh(){return Fr.x||Fr.y}function cb(e){return e==="x"||e==="y"?Fr[e]?null:(Fr[e]=!0,()=>{Fr[e]=!1}):Fr.x||Fr.y?null:(Fr.x=Fr.y=!0,()=>{Fr.x=Fr.y=!1})}function ub(e,t){let r=es(e),n=new AbortController,i={passive:!0,...t,signal:n.signal};return[r,i,()=>n.abort()]}function fy(e){return!(e.pointerType==="touch"||rh())}function fb(e,t,r={}){let[n,i,o]=ub(e,r),a=s=>{if(!fy(s))return;let{target:l}=s,c=t(l,s);if(typeof c!="function"||!l)return;let u=f=>{fy(f)&&(c(f),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return n.forEach(s=>{s.addEventListener("pointerenter",a,i)}),o}var nh=(e,t)=>t?e===t?!0:nh(e,t.parentElement):!1,dc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,UP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function GP(e){return UP.has(e.tagName)||e.tabIndex!==-1}var Dl=new WeakSet;function dy(e){return t=>{t.key==="Enter"&&e(t)}}function Gf(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var qP=(e,t)=>{let r=e.currentTarget;if(!r)return;let n=dy(()=>{if(Dl.has(r))return;Gf(r,"down");let i=dy(()=>{Gf(r,"up")}),o=()=>Gf(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 hy(e){return dc(e)&&!rh()}function db(e,t,r={}){let[n,i,o]=ub(e,r),a=s=>{let l=s.currentTarget;if(!hy(s))return;Dl.add(l);let c=t(l,s),u=(h,p)=>{F.removeEventListener("pointerup",f),F.removeEventListener("pointercancel",d),Dl.has(l)&&Dl.delete(l),hy(h)&&typeof c=="function"&&c(h,{success:p})},f=h=>{u(h,l===F||l===document||r.useGlobalTarget||nh(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),Ja(s)&&(s.addEventListener("focus",c=>qP(c,i)),!GP(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),o}function ts(e){return kd(e)&&"ownerSVGElement"in e}var Bl=new WeakMap,bo,hb=(e,t,r)=>(n,i)=>i&&i[0]?i[0][e+"Size"]:ts(n)&&"getBBox"in n?n.getBBox()[t]:n[r],XP=hb("inline","width","offsetWidth"),YP=hb("block","height","offsetHeight");function KP({target:e,borderBoxSize:t}){var r;(r=Bl.get(e))==null||r.forEach(n=>{n(e,{get width(){return XP(e,t)},get height(){return YP(e,t)}})})}function QP(e){e.forEach(KP)}function ZP(){typeof ResizeObserver>"u"||(bo=new ResizeObserver(QP))}function JP(e,t){bo||ZP();let r=es(e);return r.forEach(n=>{let i=Bl.get(n);i||(i=new Set,Bl.set(n,i)),i.add(t),bo?.observe(n)}),()=>{r.forEach(n=>{let i=Bl.get(n);i?.delete(t),i?.size||bo?.unobserve(n)})}}var zl=new Set,wo;function eI(){wo=()=>{let e={get width(){return F.innerWidth},get height(){return F.innerHeight}};zl.forEach(t=>t(e))},F.addEventListener("resize",wo)}function tI(e){return zl.add(e),wo||eI(),()=>{zl.delete(e),!zl.size&&typeof wo=="function"&&(F.removeEventListener("resize",wo),wo=void 0)}}function pb(e,t){return typeof e=="function"?tI(e):JP(e,t)}function ih(e,t){let r,n=()=>{let{currentTime:i}=t,a=(i===null?0:i.value)/100;r!==a&&e(a),r=a};return Q.preUpdate(n,!0),()=>Vt(n)}function oh(e){return ts(e)&&e.tagName==="svg"}function rs(...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=Do(i,o,a);return t?s(n):s}var ze=e=>!!(e&&e.getVelocity);function mb(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 Bo({keyframes:[my(e.get()),my(o)],velocity:e.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...r,onUpdate:a})};e.attach((f,d)=>(o=f,a=h=>d(py(h,s)),Q.postRender(c),e.get()),l);let u;return ze(t)&&(u=t.on("change",f=>e.set(py(f,s))),e.on("destroy",u)),u}function py(e,t){return t?e+t:e}function my(e){return typeof e=="number"?e:parseFloat(e)}var rI=[...Zd,Et,wn],gb=e=>rI.find(Qd(e));var nI=za.reduce((e,t)=>(e[t]=r=>Vt(r),e),{}),an=ge({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function hc(e=!0){let t=O(Oo);if(t===null)return[!0,null];let{isPresent:r,onExitComplete:n,register:i}=t,o=Gn();V(()=>{if(e)return i(o)},[e]);let a=$(()=>e&&n&&n(o),[o,n,e]);return!r&&n?[!1,a]:[!0]}function sn(e){let t=M(null);return t.current===null&&(t.current=e()),t.current}var iI=class extends Te{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let r=t.offsetParent,n=Ja(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 oI({children:e,isPresent:t,anchorX:r}){let n=Gn(),i=M(null),o=M({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=O(an);return rt(()=>{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(iI,{isPresent:t,childRef:i,sizeRef:o,children:Un(e,{ref:i})})}var aI=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:a,anchorX:s})=>{let l=sn(sI),c=Gn(),u=!0,f=U(()=>(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}),U(()=>{l.forEach((d,h)=>l.set(h,!1))},[r]),V(()=>{!r&&!l.size&&n&&n()},[r]),a==="popLayout"&&(e=S(oI,{isPresent:r,anchorX:s,children:e})),S(Oo.Provider,{value:f,children:e})};function sI(){return new Map}var _l=e=>e.key||"";function gy(e){let t=[];return Tr.forEach(e,r=>{Rt(r)&&t.push(r)}),t}var ah=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:s="left"})=>{let[l,c]=hc(a),u=U(()=>gy(e),[e]),f=a&&!l?[]:u.map(_l),d=M(!0),h=M(u),p=sn(()=>new Map),[v,b]=ve(u),[m,g]=ve(u);Bi(()=>{d.current=!1,h.current=u;for(let k=0;k{let w=_l(k),T=a&&!l?!1:u===m||f.includes(w),E=()=>{if(p.has(w))p.set(w,!0);else return;let P=!0;p.forEach(I=>{I||(P=!1)}),P&&(x?.(),g(h.current),a&&c?.(),n&&n())};return S(aI,{isPresent:T,initial:!d.current||r?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:T?void 0:E,anchorX:s,children:k},w)})})},vb=ge(null);function lI(){let e=M(!1);return Bi(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function sh(){let e=lI(),[t,r]=ve(0),n=$(()=>{e.current&&r(t+1)},[t]);return[$(()=>Q.postRender(n),[n]),t]}var cI=e=>!e.isLayoutDirty&&e.willUpdate(!1);function vy(){let e=new Set,t=new WeakMap,r=()=>e.forEach(cI);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 yb=e=>e===!0,uI=e=>yb(e===!0)||e==="id",bb=({children:e,id:t,inherit:r=!0})=>{let n=O(Wa),i=O(vb),[o,a]=sh(),s=M(null),l=n.id||i;s.current===null&&(uI(r)&&l&&(t=t?l+"-"+t:l),s.current={id:t,group:yb(r)&&n.group||vy()});let c=U(()=>({...s.current,forceRender:o}),[a]);return S(Wa.Provider,{value:c,children:e})},xb=ge({strict:!1}),yy={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"]},_o={};for(let e in yy)_o[e]={isEnabled:t=>yy[e].some(r=>!!t[r])};function fI(e){for(let t in e)_o[t]={..._o[t],...e[t]}}var dI=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 Mo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||dI.has(e)}var wb=e=>!Mo(e);function Sb(e){e&&(wb=t=>t.startsWith("on")?!Mo(t):e(t))}try{Sb(LF().default)}catch{}function kb(e,t,r){let n={};for(let i in e)i==="values"&&typeof e.values=="object"||(wb(i)||r===!0&&Mo(i)||!t&&!Mo(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function Cb({children:e,isValidProp:t,...r}){t&&Sb(t),r={...O(an),...r},r.isStatic=sn(()=>r.isStatic);let n=U(()=>r,[JSON.stringify(r.transition),r.transformPagePoint,r.reducedMotion]);return S(an.Provider,{value:n,children:e})}var ns=ge({}),lh=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),hI="framerAppearId",pc="data-"+lh(hI),mc=ge({});function gc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function qa(e){return typeof e=="string"||Array.isArray(e)}var ch=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],uh=["initial",...ch];function vc(e){return gc(e.animate)||uh.some(t=>qa(e[t]))}function Tb(e){return!!(vc(e)||e.variants)}function pI(e,t){if(vc(e)){let{initial:r,animate:n}=e;return{initial:r===!1||qa(r)?r:void 0,animate:qa(n)?n:void 0}}return e.inherit!==!1?t:{}}function mI(e){let{initial:t,animate:r}=pI(e,O(ns));return U(()=>({initial:t,animate:r}),[by(t),by(r)])}function by(e){return Array.isArray(e)?e.join(" "):e}var fh=Symbol.for("motionComponentSymbol");function So(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function gI(e,t,r){return $(n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):So(r)&&(r.current=n))},[t])}function vI(e,t,r,n,i){var o,a;let{visualElement:s}=O(ns),l=O(xb),c=O(Oo),u=O(an).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(mc);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&yI(f.current,r,i,h);let p=M(!1);rt(()=>{d&&p.current&&d.update(r,c)});let v=r[pc],b=M(!!v&&!((o=F.MotionHandoffIsComplete)!=null&&o.call(F,v))&&((a=F.MotionHasOptimisedAnimation)==null?void 0:a.call(F,v)));return Bi(()=>{d&&(p.current=!0,F.MotionIsMounted=!0,d.updateFeatures(),fc.render(d.render),b.current&&d.animationState&&d.animationState.animateChanges())}),V(()=>{d&&(!b.current&&d.animationState&&d.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var m;(m=F.MotionHandoffMarkAsComplete)==null||m.call(F,v)}),b.current=!1))}),d}function yI(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:Rb(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&So(s),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:c})}function Rb(e){if(e)return e.options.allowProjection!==!1?e.projection:Rb(e.parent)}function Eb({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&fI(e);function o(s,l){let c,u={...O(an),...s,layoutId:bI(s)},{isStatic:f}=u,d=mI(s),h=n(s,f);if(!f&&Yl){xI(u,e);let p=wI(u);c=p.MeasureLayout,d.visualElement=vI(i,h,u,t,p.ProjectionNode)}return he(ns.Provider,{value:d,children:[c&&d.visualElement?S(c,{visualElement:d.visualElement,...u}):null,r(i,s,gI(h,d.visualElement,l),h,f,d.visualElement)]})}o.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;let a=we(o);return a[fh]=i,a}function bI({layoutId:e}){let t=O(Wa).id;return t&&e!==void 0?t+"-"+e:e}function xI(e,t){let r=O(xb).strict}function wI(e){let{drag:t,layout:r}=_o;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}var Xa={};function dh(e){for(let t in e)Xa[t]=e[t],rc(t)&&(Xa[t].isCSSVariable=!0)}var SI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},kI=Ni.length;function Fb(e,t,r){let n="",i=!0;for(let o=0;o{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function hh(e,t,r,n){if(typeof t=="function"){let[i,o]=xy(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]=xy(n);t=t(r!==void 0?r:e.custom,i,o)}return t}function CI({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,i){return{latestValues:TI(r,n,i,e),renderState:t()}}var yc=e=>(t,r)=>{let n=O(ns),i=O(Oo),o=()=>CI(e,t,n,i);return r?o():sn(o)};function TI(e,t,r,n){let i={},o=n(e,{});for(let d in o)i[d]=Lt(o[d]);let{initial:a,animate:s}=e,l=vc(e),c=Tb(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"&&!gc(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 Pb(e,{layout:t,layoutId:r}){return Kn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Xa[e]||e==="opacity")}function ph(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(Kn.has(l)){a=!0;continue}else if(rc(l)){i[l]=c;continue}else{let u=th(c,uc[l]);l.startsWith("origin")?(s=!0,o[l]=u):n[l]=u}}if(t.transform||(a||r?n.transform=Fb(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 mh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ib(e,t,r){for(let n in t)!ze(t[n])&&!Pb(n,r)&&(e[n]=t[n])}function EI({transformTemplate:e},t){return U(()=>{let r=mh();return ph(r,t,e),Object.assign({},r.vars,r.style)},[t])}function FI(e,t){let r=e.style||{},n={};return Ib(n,r,e),Object.assign(n,EI(e,t)),n}function PI(e,t){let r={},n=FI(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 II={offset:"stroke-dashoffset",array:"stroke-dasharray"},_I={offset:"strokeDashoffset",array:"strokeDasharray"};function MI(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?II:_I;e[o.offset]=Z.transform(-n);let a=Z.transform(t),s=Z.transform(r);e[o.array]=`${a} ${s}`}function _b(e,{attrX:t,attrY:r,attrScale:n,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...s},l,c,u){if(ph(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&&MI(f,i,o,a,!1)}var Mb=()=>({...mh(),attrs:{}}),Ob=e=>typeof e=="string"&&e.toLowerCase()==="svg";function OI(e,t,r,n){let i=U(()=>{let o=Mb();return _b(o,t,Ob(n),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){let o={};Ib(o,e.style,e),i.style={...o,...i.style}}return i}var LI=["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 gh(e){return typeof e!="string"||e.includes("-")?!1:!!(LI.indexOf(e)>-1||/[A-Z]/u.test(e))}function VI(e=!1){return(r,n,i,{latestValues:o},a)=>{let l=(gh(r)?OI:PI)(n,o,a,r),c=kb(n,typeof r=="string",e),u=r!==Nr?{...c,...l,ref:i}:{},{children:f}=n,d=U(()=>ze(f)?f.get():f,[f]);return Il(r,{...u,children:d})}}function vh(e,t,r){var n;let{style:i}=e,o={};for(let a in i)(ze(i[a])||t.style&&ze(t.style[a])||Pb(a,e)||((n=r?.getValue(a))==null?void 0:n.liveStyle)!==void 0)&&(o[a]=i[a]);return o}var AI={useVisualState:yc({scrapeMotionValuesFromProps:vh,createRenderState:mh})};function Lb(e,t,r){let n=vh(e,t,r);for(let i in e)if(ze(e[i])||ze(t[i])){let o=Ni.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[o]=e[i]}return n}var DI={useVisualState:yc({scrapeMotionValuesFromProps:Lb,createRenderState:Mb})};function BI(e,t){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){let a={...gh(n)?DI:AI,preloadedFeatures:e,useRender:VI(i),createVisualElement:t,Component:n};return Eb(a)}}function Ya(e,t,r){let n=e.getProps();return hh(n,t,r!==void 0?r:n.custom,e)}var fd=e=>Array.isArray(e);function zI(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,qe(r))}function NI(e){return fd(e)?e[e.length-1]||0:e}function yh(e,t){let r=Ya(e,t),{transitionEnd:n={},transition:i={},...o}=r||{};o={...o,...n};for(let a in o){let s=NI(o[a]);zI(e,a,s)}}function $I(e){return!!(ze(e)&&e.add)}function dd(e,t){let r=e.getValue("willChange");if($I(r))return r.add(t);if(!r&&ur.WillChange){let n=new ur.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function Vb(e){return e.props[pc]}var jI=e=>e!==null;function HI(e,{repeat:t,repeatType:r="loop"},n){let i=e.filter(jI),o=t&&r!=="loop"&&t%2===1?0:i.length-1;return!o||n===void 0?i[o]:n}var WI={type:"spring",stiffness:500,damping:25,restSpeed:10},UI=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),GI={type:"keyframes",duration:.8},qI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},XI=(e,{keyframes:t})=>t.length>2?GI:Kn.has(e)?e.startsWith("scale")?UI(t[1]):WI:qI;function YI({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 bh=(e,t,r,n={},i,o)=>a=>{let s=cc(n,e)||{},l=s.delay||n.delay||0,{elapsed:c=0}=n;c=c-lr(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};YI(s)||Object.assign(u,XI(e,u)),u.duration&&(u.duration=lr(u.duration)),u.repeatDelay&&(u.repeatDelay=lr(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)),(ur.instantAnimations||ur.skipAnimations)&&(f=!0,u.duration=0,u.delay=0),u.allowFlatten=!s.type&&!s.ease,f&&!o&&t.get()!==void 0){let d=HI(u.keyframes,s);if(d!==void 0){Q.update(()=>{u.onUpdate(d),u.onComplete()});return}}return s.isSync?new Bo(u):new tb(u)};function KI({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function xh(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&&KI(c,u))continue;let h={delay:r,...cc(o||{},u)},p=f.get();if(p!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===p&&!h.velocity)continue;let v=!1;if(F.MotionHandoffAnimation){let m=Vb(e);if(m){let g=F.MotionHandoffAnimation(m,u,Q);g!==null&&(h.startTime=g,v=!0)}}dd(e,u),f.start(bh(u,f,d,e.shouldReduceMotion&&Kd.has(u)?{type:!1}:h,e,v));let b=f.animation;b&&l.push(b)}return a&&Promise.all(l).then(()=>{Q.update(()=>{a&&yh(e,a)})}),l}function hd(e,t,r={}){var n;let i=Ya(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(xh(e,i,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{let{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=o;return QI(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 QI(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(ZI).forEach((c,u)=>{c.notify("AnimationStart",t),a.push(hd(c,t,{...o,delay:r+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(a)}function ZI(e,t){return e.sortNodePosition(t)}function wh(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let i=t.map(o=>hd(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=hd(e,t,r);else{let i=typeof t=="function"?Ya(e,t,r.custom):t;n=Promise.all(xh(e,i,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}function Ab(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})=>wh(e,r,n)))}function n2(e){let t=r2(e),r=wy(),n=!0,i=l=>(c,u)=>{var f;let d=Ya(e,u,l==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(d){let{transition:h,transitionEnd:p,...v}=d;c={...c,...v,...p}}return c};function o(l){t=l(e)}function a(l){let{props:c}=e,u=Db(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={}}=g,_={...z,...D},G=N=>{E=!0,d.has(N)&&(P=!0,d.delete(N)),g.needsAnimating[N]=!0;let j=e.getValue(N);j&&(j.liveStyle=!1)};for(let N in _){let j=D[N],ee=z[N];if(h.hasOwnProperty(N))continue;let me=!1;fd(j)&&fd(ee)?me=!Ab(j,ee):me=j!==ee,me?j!=null?G(N):d.add(N):j!==void 0&&d.has(N)?G(N):g.protectedKeys[N]=!0}g.prevProp=y,g.prevResolvedValues=D,g.isActive&&(h={...h,...D}),n&&e.blockInitialAnimation&&(E=!1),E&&(!(w&&T)||P)&&f.push(...I.map(N=>({animation:N,options:{type:m}})))}if(d.size){let b={};if(typeof c.initial!="boolean"){let m=Ya(e,Array.isArray(c.initial)?c.initial[0]:c.initial);m&&m.transition&&(b.transition=m.transition)}d.forEach(m=>{let g=e.getBaseTarget(m),y=e.getValue(m);y&&(y.liveStyle=!0),b[m]=g??null}),f.push({animation:b})}let v=!!f.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(v=!1),n=!1,v?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=wy(),n=!0}}}function i2(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ab(t,e):!1}function Pi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wy(){return{animate:Pi(!0),whileInView:Pi(),whileHover:Pi(),whileTap:Pi(),whileDrag:Pi(),whileFocus:Pi(),exit:Pi()}}var Qn=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},o2=class extends Qn{constructor(e){super(e),e.animationState||(e.animationState=n2(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();gc(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)}},a2=0,s2=class extends Qn{constructor(){super(...arguments),this.id=a2++}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(){}},bc={animation:{Feature:o2},exit:{Feature:s2}};function is(e){return{point:{x:e.pageX,y:e.pageY}}}var Bb=e=>t=>dc(t)&&e(t,is(t));function Ka(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function Fo(e,t,r,n){return Ka(e,t,Bb(r),n)}var zb=1e-4,l2=1-zb,c2=1+zb,Nb=.01,u2=0-Nb,f2=0+Nb;function Ot(e){return e.max-e.min}function d2(e,t,r){return Math.abs(e-t)<=r}function Sy(e,t,r,n=.5){e.origin=n,e.originPoint=_e(t.min,t.max,e.origin),e.scale=Ot(r)/Ot(t),e.translate=_e(r.min,r.max,e.origin)-e.originPoint,(e.scale>=l2&&e.scale<=c2||isNaN(e.scale))&&(e.scale=1),(e.translate>=u2&&e.translate<=f2||isNaN(e.translate))&&(e.translate=0)}function ja(e,t,r,n){Sy(e.x,t.x,r.x,n?n.originX:void 0),Sy(e.y,t.y,r.y,n?n.originY:void 0)}function ky(e,t,r){e.min=r.min+t.min,e.max=e.min+Ot(t)}function h2(e,t,r){ky(e.x,t.x,r.x),ky(e.y,t.y,r.y)}function Cy(e,t,r){e.min=t.min-r.min,e.max=e.min+Ot(t)}function Ha(e,t,r){Cy(e.x,t.x,r.x),Cy(e.y,t.y,r.y)}var Ty=()=>({translate:0,scale:1,origin:0,originPoint:0}),ko=()=>({x:Ty(),y:Ty()}),Ry=()=>({min:0,max:0}),Ue=()=>({x:Ry(),y:Ry()}),pd=(e,t)=>Math.abs(e-t);function $b(e,t){let r=pd(e.x,t.x),n=pd(e.y,t.y);return Math.sqrt(r**2+n**2)}var p2=(e,t)=>e.depth-t.depth,jb=class{constructor(){this.children=[],this.isDirty=!1}add(e){Kl(this.children,e),this.isDirty=!0}remove(e){Qa(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(p2),this.isDirty=!1,this.children.forEach(e)}};function Hb(e,t){let r=Ht.now(),n=({timestamp:i})=>{let o=i-r;o>=t&&(Vt(n),e(o-t))};return Q.setup(n,!0),()=>Vt(n)}var Sn=new WeakMap,ql={current:null},Sh={current:!1};function Wb(){if(Sh.current=!0,!!Yl)if(F.matchMedia){let e=F.matchMedia("(prefers-reduced-motion)"),t=()=>ql.current=e.matches;e.addListener(t),t()}else ql.current=!1}function m2(e,t,r){for(let n in t){let i=t[n],o=r[n];if(ze(i))e.addValue(n,i);else if(ze(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 Ey=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],kh=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=sc,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=Ht.now();this.renderScheduledAtthis.bindToMotionValue(r,t)),Sh.current||Wb(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ql.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Vt(this.notifyUpdate),Vt(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=Kn.has(e);r&&this.onBindTransform&&this.onBindTransform();let n=t.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&Q.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 _o){let t=_o[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"&&(Sd(r)||Cd(r))?r=parseFloat(r):!gb(r)&&wn.test(t)&&(r=eh(e,t)),this.setBaseTarget(e,ze(r)?r.get():r)),ze(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=hh(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&&!ze(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 Zl),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}};function Ub({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function g2({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function v2(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 Er(e){return[e("x"),e("y")]}function qf(e){return e===void 0||e===1}function md({scale:e,scaleX:t,scaleY:r}){return!qf(e)||!qf(t)||!qf(r)}function Ii(e){return md(e)||Gb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Gb(e){return Fy(e.x)||Fy(e.y)}function Fy(e){return e&&e!=="0%"}function Xl(e,t,r){let n=e-r,i=t*n;return r+i}function Py(e,t,r,n,i){return i!==void 0&&(e=Xl(e,i,n)),Xl(e,r,n)+t}function gd(e,t=0,r=1,n,i){e.min=Py(e.min,t,r,n,i),e.max=Py(e.max,t,r,n,i)}function qb(e,{x:t,y:r}){gd(e.x,t.translate,t.scale,t.originPoint),gd(e.y,r.translate,r.scale,r.originPoint)}var Iy=.999999999999,_y=1.0000000000001;function y2(e,t,r,n=!1){let i=r.length;if(!i)return;t.x=t.y=1;let o,a;for(let s=0;sIy&&(t.x=1),t.y<_y&&t.y>Iy&&(t.y=1)}function Co(e,t){e.min=e.min+t,e.max=e.max+t}function My(e,t,r,n,i=.5){let o=_e(e.min,e.max,i);gd(e,t,r,o,n)}function To(e,t){My(e.x,t.x,t.scaleX,t.scale,t.originX),My(e.y,t.y,t.scaleY,t.scale,t.originY)}function Xb(e,t){return Ub(v2(e.getBoundingClientRect(),t))}function b2(e,t,r){let n=Xb(e,r),{scroll:i}=t;return i&&(Co(n.x,i.offset.x),Co(n.y,i.offset.y)),n}var Yb=({current:e})=>e?e.ownerDocument.defaultView:null,Kb=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=Yf(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=$b(u.offset,{x:0,y:0})>=3;if(!f&&!d)return;let{point:h}=u,{timestamp:p}=pt;this.history.push({...h,timestamp:p});let{onStart:v,onMove:b}=this.handlers;f||(v&&v(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,u)},this.handlePointerMove=(u,f)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=Xf(f,this.transformPagePoint),Q.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 v=Yf(u.type==="pointercancel"?this.lastMoveEventInfo:Xf(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,v),h&&h(u,v)},!dc(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||F;let o=is(e),a=Xf(o,this.transformPagePoint),{point:s}=a,{timestamp:l}=pt;this.history=[{...s,timestamp:l}];let{onSessionStart:c}=t;c&&c(e,Yf(a,this.history)),this.removeListeners=Vo(Fo(this.contextWindow,"pointermove",this.handlePointerMove),Fo(this.contextWindow,"pointerup",this.handlePointerUp),Fo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Vt(this.updatePoint)}};function Xf(e,t){return t?{point:t(e.point)}:e}function Oy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yf({point:e},t){return{point:e,delta:Oy(e,Qb(t)),offset:Oy(e,x2(t)),velocity:w2(t,.1)}}function x2(e){return e[0]}function Qb(e){return e[e.length-1]}function w2(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>lr(t)));)r--;if(!n)return{x:0,y:0};let o=jr(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 S2(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?_e(r,e,n.max):Math.min(e,r)),e}function Ly(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 k2(e,{top:t,left:r,bottom:n,right:i}){return{x:Ly(e.x,r,i),y:Ly(e.y,t,n)}}function Vy(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=Yn(t.min,t.max-n,e.min):n>i&&(r=Yn(e.min,e.max-i,t.min)),Wr(0,1,r)}function R2(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 vd=.35;function E2(e=vd){return e===!1?e=0:e===!0&&(e=vd),{x:Ay(e,"left","right"),y:Ay(e,"top","bottom")}}function Ay(e,t,r){return{min:Dy(e,t),max:Dy(e,r)}}function Dy(e,t){return typeof e=="number"?e:e[t]||0}var F2=new WeakMap,P2=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(is(c).point)},i=(c,u)=>{let{drag:f,dragPropagation:d,onDragStart:h}=this.getProps();if(f&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=cb(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),Er(v=>{let b=this.getAxisMotionValue(v).get()||0;if(Hr.test(b)){let{projection:m}=this.visualElement;if(m&&m.layout){let g=m.layout.layoutBox[v];g&&(b=Ot(g)*(parseFloat(b)/100))}}this.originPoint[v]=b}),h&&Q.postRender(()=>h(c,u)),dd(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:v}=u;if(d&&this.currentDirection===null){this.currentDirection=I2(v),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",u.point,v),this.updateAxis("y",u.point,v),this.visualElement.render(),p&&p(c,u)},a=(c,u)=>this.stop(c,u),s=()=>Er(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 Kb(e,{onSessionStart:n,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Yb(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&&Q.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||!Ml(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=S2(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&&So(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=k2(n.layoutBox,t):this.constraints=!1,this.elastic=E2(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Er(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=R2(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!So(e))return!1;let r=e.current;cr(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=b2(r,n.root,this.visualElement.getTransformPagePoint()),o=C2(n.layout.layoutBox,i);if(t){let a=t(g2(o));this.hasMutatedConstraints=!!a,a&&(o=Ub(a))}return o}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=Er(c=>{if(!Ml(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 dd(this.visualElement,e),r.start(bh(e,r,0,t,this.visualElement,!1))}stopAnimation(){Er(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Er(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){Er(t=>{let{drag:r}=this.getProps();if(!Ml(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]-_e(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!So(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};Er(o=>{let a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){let s=a.get();n[o]=T2({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(),Er(o=>{if(!Ml(o,e,null))return;let a=this.getAxisMotionValue(o),{min:s,max:l}=this.constraints[o];a.set(_e(s,l,n[o]))})}addListeners(){if(!this.visualElement.current)return;F2.set(this.visualElement,this);let e=this.visualElement.current,t=Fo(e,"pointerdown",s=>{let{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(s)}),r=()=>{let{dragConstraints:s}=this.getProps();So(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()),Q.read(r);let o=Ka(F,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:s,hasLayoutChanged:l})=>{this.isDragging&&l&&(Er(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=vd,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}};function Ml(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function I2(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var _2=class extends Qn{constructor(e){super(e),this.removeGroupControls=Wt,this.removeListeners=Wt,this.controls=new P2(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wt}unmount(){this.removeGroupControls(),this.removeListeners()}},By=e=>(t,r)=>{e&&Q.postRender(()=>e(t,r))},M2=class extends Qn{constructor(){super(...arguments),this.removePointerDownListener=Wt}onPointerDown(e){this.session=new Kb(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Yb(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:By(e),onStart:By(t),onMove:r,onEnd:(i,o)=>{delete this.session,n&&Q.postRender(()=>n(i,o))}}}mount(){this.removePointerDownListener=Fo(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Nl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Da={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Z.test(e))e=parseFloat(e);else return e;let r=zy(e,t.target.x),n=zy(e,t.target.y);return`${r}% ${n}%`}},O2={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,i=wn.parse(e);if(i.length>5)return n;let o=wn.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=_e(s,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=c),typeof i[3+a]=="number"&&(i[3+a]/=c),o(i)}},L2=class extends Te{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;dh(V2),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()})),Nl.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()||Q.postRender(()=>{let a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),fc.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 Zb(e){let[t,r]=hc(),n=O(Wa);return S(L2,{...e,layoutGroup:n,switchLayoutGroup:O(mc),isPresent:t,safeToRemove:r})}var V2={borderRadius:{...Da,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Da,borderTopRightRadius:Da,borderBottomLeftRadius:Da,borderBottomRightRadius:Da,boxShadow:O2};function Jb(e,t,r){let n=ze(e)?e:qe(e);return n.start(bh("",n,t,r)),n.animation}var ex=["TopLeft","TopRight","BottomLeft","BottomRight"],A2=ex.length,Ny=e=>typeof e=="string"?parseFloat(e):e,$y=e=>typeof e=="number"||Z.test(e);function D2(e,t,r,n,i,o){i?(e.opacity=_e(0,r.opacity??1,B2(n)),e.opacityExit=_e(t.opacity??1,0,z2(n))):o&&(e.opacity=_e(t.opacity??1,r.opacity??1,n));for(let a=0;ant?1:r(Yn(e,t,n))}function Hy(e,t){e.min=t.min,e.max=t.max}function Rr(e,t){Hy(e.x,t.x),Hy(e.y,t.y)}function Wy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Uy(e,t,r,n,i){return e-=t,e=Xl(e,1/r,n),i!==void 0&&(e=Xl(e,1/i,n)),e}function N2(e,t=0,r=1,n=.5,i,o=e,a=e){if(Hr.test(t)&&(t=parseFloat(t),t=_e(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=_e(o.min,o.max,n);e===o&&(s-=t),e.min=Uy(e.min,t,r,s,i),e.max=Uy(e.max,t,r,s,i)}function Gy(e,t,[r,n,i],o,a){N2(e,t[r],t[n],t[i],t.scale,o,a)}var $2=["x","scaleX","originX"],j2=["y","scaleY","originY"];function qy(e,t,r,n){Gy(e.x,t,$2,r?r.x:void 0,n?n.x:void 0),Gy(e.y,t,j2,r?r.y:void 0,n?n.y:void 0)}function Xy(e){return e.translate===0&&e.scale===1}function rx(e){return Xy(e.x)&&Xy(e.y)}function Yy(e,t){return e.min===t.min&&e.max===t.max}function H2(e,t){return Yy(e.x,t.x)&&Yy(e.y,t.y)}function Ky(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nx(e,t){return Ky(e.x,t.x)&&Ky(e.y,t.y)}function Qy(e){return Ot(e.x)/Ot(e.y)}function Zy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var W2=class{constructor(){this.members=[]}add(e){Kl(this.members,e),e.scheduleRender()}remove(e){if(Qa(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 U2(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 _i={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Kf=["","X","Y","Z"],G2={visibility:"hidden"},q2=1e3,X2=0;function Qf(e,t,r,n){let{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function ix(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let r=Vb(t);if(F.MotionHasOptimisedAnimation(r,"transform")){let{layout:i,layoutId:o}=e.options;F.MotionCancelOptimisedAnimation(r,"transform",Q,!(i||o))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&ix(n)}function ox({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(a={},s=t?.()){this.id=X2++,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,$r.value&&(_i.nodes=_i.calculatedTargetDeltas=_i.calculatedProjections=0),this.nodes.forEach(Q2),this.nodes.forEach(r_),this.nodes.forEach(n_),this.nodes.forEach(Z2),$r.addProjectionMetrics&&$r.addProjectionMetrics(_i)},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=Hb(f,250),Nl.hasAnimatedSinceResize&&(Nl.hasAnimatedSinceResize=!1,this.nodes.forEach(e0))})}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()||l_,{onLayoutAnimationStart:v,onLayoutAnimationComplete:b}=c.getProps(),m=!this.targetLayout||!nx(this.targetLayout,h),g=!f&&d;if(this.options.layoutRoot||this.resumeFrom||g||f&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let y={...cc(p,"layout"),onPlay:v,onComplete:b};(c.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(u,g)}else f||e0(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(),Vt(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(i_),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&&ix(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&&!Ot(this.snapshot.measuredBox.x)&&!Ot(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;t0(f.x,a.x,k),t0(f.y,a.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ha(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),a_(this.relativeTarget,this.relativeTargetOrigin,d,k),y&&H2(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=Ue()),Rr(y,this.relativeTarget)),v&&(this.animationValues=u,D2(u,c,this.latestValues,k,g,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&&(Vt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Q.update(()=>{Nl.hasAnimatedSinceResize=!0,Xn.layout++,this.motionValue||(this.motionValue=qe(0)),this.currentAnimation=Jb(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},onStop:()=>{Xn.layout--},onComplete:()=>{Xn.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(q2),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&&ax(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ue();let f=Ot(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;let d=Ot(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+d}Rr(s,l),To(s,u),ja(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new W2),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&&Qf("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(Jy),this.root.sharedNodes.clear()}}}function Y2(e){e.updateLayout()}function K2(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"?Er(f=>{let d=a?r.measuredBox[f]:r.layoutBox[f],h=Ot(d);d.min=n[f].min,d.max=d.min+h}):ax(o,r.layoutBox,n)&&Er(f=>{let d=a?r.measuredBox[f]:r.layoutBox[f],h=Ot(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=ko();ja(s,n,r.layoutBox);let l=ko();a?ja(l,e.applyTransform(i,!0),r.measuredBox):ja(l,n,r.layoutBox);let c=!rx(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();Ha(p,r.layoutBox,d.layoutBox);let v=Ue();Ha(v,n,h.layoutBox),nx(p,v)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=v,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 Q2(e){$r.value&&_i.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 Z2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function J2(e){e.clearSnapshot()}function Jy(e){e.clearMeasurements()}function e_(e){e.isLayoutDirty=!1}function t_(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function e0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function r_(e){e.resolveTargetDelta()}function n_(e){e.calcProjection()}function i_(e){e.resetSkewAndRotation()}function o_(e){e.removeLeadSnapshot()}function t0(e,t,r){e.translate=_e(t.translate,0,r),e.scale=_e(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function r0(e,t,r,n){e.min=_e(t.min,r.min,n),e.max=_e(t.max,r.max,n)}function a_(e,t,r,n){r0(e.x,t.x,r.x,n),r0(e.y,t.y,r.y,n)}function s_(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var l_={duration:.45,ease:[.4,0,.1,1]},n0=e=>typeof He<"u"&&He.userAgent&&He.userAgent.toLowerCase().includes(e),i0=n0("applewebkit/")&&!n0("chrome/")?Math.round:Wt;function o0(e){e.min=i0(e.min),e.max=i0(e.max)}function c_(e){o0(e.x),o0(e.y)}function ax(e,t,r){return e==="position"||e==="preserve-aspect"&&!d2(Qy(t),Qy(r),.2)}function u_(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}var f_=ox({attachResizeListener:(e,t)=>Ka(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ai={current:void 0},sx=ox({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ai.current){let e=new f_({});e.mount(F),e.setOptions({layoutScroll:!0}),Ai.current=e}return Ai.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>F.getComputedStyle(e).position==="fixed"}),lx={pan:{Feature:M2},drag:{Feature:_2,ProjectionNode:sx,MeasureLayout:Zb}};function a0(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&&Q.postRender(()=>o(t,is(t)))}var d_=class extends Qn{mount(){let{current:e}=this.node;e&&(this.unmount=fb(e,(t,r)=>(a0(this.node,r,"Start"),n=>a0(this.node,n,"End"))))}unmount(){}},h_=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=Vo(Ka(this.node.current,"focus",()=>this.onFocus()),Ka(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function s0(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&&Q.postRender(()=>o(t,is(t)))}var p_=class extends Qn{mount(){let{current:e}=this.node;e&&(this.unmount=db(e,(t,r)=>(s0(this.node,r,"Start"),(n,{success:i})=>s0(this.node,n,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}},yd=new WeakMap,Zf=new WeakMap,m_=e=>{let t=yd.get(e.target);t&&t(e)},g_=e=>{e.forEach(m_)};function v_({root:e,...t}){let r=e||document;Zf.has(r)||Zf.set(r,{});let n=Zf.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(g_,{root:e,...t})),n[i]}function y_(e,t,r){let n=v_(t);return yd.set(e,r),n.observe(e),()=>{yd.delete(e),n.unobserve(e)}}var b_={some:0,all:1},x_=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:b_[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 y_(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(w_(e,t))&&this.startObserver()}unmount(){}};function w_({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var cx={inView:{Feature:x_},tap:{Feature:p_},focus:{Feature:h_},hover:{Feature:d_}},ux={layout:{ProjectionNode:sx,MeasureLayout:Zb}},fx=class extends kh{constructor(){super(...arguments),this.KeyframeResolver=sb}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;ze(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}};function dx(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 S_(e){return F.getComputedStyle(e)}var hx=class extends fx{constructor(){super(...arguments),this.type="html",this.renderInstance=dx}readValueFromInstance(e,t){var r;if(Kn.has(t))return(r=this.projection)!=null&&r.isProjecting?Ul(t):W0(e,t);{let n=S_(e),i=(rc(t)?n.getPropertyValue(t):n[t])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Xb(e,t)}build(e,t,r){ph(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return vh(e,t,r)}},px=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 k_(e,t,r,n){dx(e,t,void 0,n);for(let i in t.attrs)e.setAttribute(px.has(i)?i:lh(i),t.attrs[i])}var mx=class extends fx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ue}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Kn.has(t)){let r=Jd(t);return r&&r.default||0}return t=px.has(t)?t:lh(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return Lb(e,t,r)}build(e,t,r){_b(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,n){k_(e,t,r,n)}mount(e){this.isSVGTag=Ob(e.tagName),super.mount(e)}},Ch=(e,t)=>gh(e)?new mx(t):new hx(t,{allowProjection:e!==Nr}),C_=BI({...bc,...cx,...lx,...ux},Ch),wt=RI(C_);var gx={renderer:Ch,...bc,...cx},T_={...gx,...lx,...ux},R_={renderer:Ch,...bc};var E_=50,l0=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),F_=()=>({time:0,x:l0(),y:l0()}),P_={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function c0(e,t,r,n){let i=r[t],{length:o,position:a}=P_[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=Yn(0,i.scrollLength,i.current);let c=n-l;i.velocity=c>E_?0:Jl(i.current-s,c)}function I_(e,t,r){c0(e,"x",t,r),c0(e,"y",t,r),t.time=r}function __(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if(Ja(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 bd={start:0,center:.5,end:1};function u0(e,t,r=0){let n=0;if(e in bd&&(e=bd[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 M_=[0,0];function O_(e,t,r,n){let i=Array.isArray(e)?e:M_,o=0,a=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,bd[e]?e:"0"]),o=u0(i[0],r,n),a=u0(i[1],t),o-a}var L_={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},V_={x:0,y:0};function A_(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function D_(e,t,r){let{offset:n=L_.All}=r,{target:i=e,axis:o="y"}=r,a=o==="y"?"height":"width",s=i!==e?__(i,e):V_,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:A_(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{B_(e,n.target,r),I_(e,r,i),(n.offset||n.target)&&D_(e,r,n)},notify:()=>t(r)}}var Ba=new WeakMap,f0=new WeakMap,Jf=new WeakMap,d0=e=>e===document.scrollingElement?F:e;function Th(e,{container:t=document.scrollingElement,...r}={}){if(!t)return Wt;let n=Jf.get(t);n||(n=new Set,Jf.set(t,n));let i=F_(),o=z_(t,e,i,r);if(n.add(o),!Ba.has(t)){let s=()=>{for(let f of n)f.measure(pt.timestamp);Q.preUpdate(l)},l=()=>{for(let f of n)f.notify()},c=()=>Q.read(s);Ba.set(t,c);let u=d0(t);F.addEventListener("resize",c,{passive:!0}),t!==document.documentElement&&f0.set(t,pb(t,c)),u.addEventListener("scroll",c,{passive:!0}),c()}let a=Ba.get(t);return Q.read(a,!1,!0),()=>{var s;Vt(a);let l=Jf.get(t);if(!l||(l.delete(o),l.size))return;let c=Ba.get(t);Ba.delete(t),c&&(d0(t).removeEventListener("scroll",c),(s=f0.get(t))==null||s(),F.removeEventListener("resize",c))}}var h0=new Map;function N_(e){let t={value:0},r=Th(n=>{t.value=n[e.axis].progress*100},e);return{currentTime:t,cancel:r}}function vx({source:e,container:t,...r}){let{axis:n}=r;e&&(t=e);let i=h0.get(t)??new Map;h0.set(t,i);let o=r.target??"self",a=i.get(o)??{},s=n+(r.offset??[]).join(",");return a[s]||(a[s]=!r.target&&Gd()?new ScrollTimeline({source:t,axis:n}):N_({container:t,...r})),a[s]}function $_(e,t){let r=vx(t);return e.attachTimeline({timeline:t.target?void 0:r,observe:n=>(n.pause(),ih(i=>{n.time=n.duration*i},r))})}function j_(e){return e.length===2}function H_(e,t){return j_(e)?Th(r=>{e(r[t.axis].progress,r)},t):ih(e,vx(t))}function No(e,{axis:t="y",container:r=document.scrollingElement,...n}={}){if(!r)return Wt;let i={axis:t,container:r,...n};return typeof e=="function"?H_(e,i):$_(e,i)}function p0(e,t){Lo(!!(!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 W_=()=>({scrollX:qe(0),scrollY:qe(0),scrollXProgress:qe(0),scrollYProgress:qe(0)});function yx({container:e,target:t,layoutEffect:r=!0,...n}={}){let i=sn(W_);return(r?Bi:V)(()=>(p0("target",t),p0("container",e),No((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 kn(e){let t=sn(()=>qe(e)),{isStatic:r}=O(an);if(r){let[,n]=ve(e);V(()=>t.on("change",n),[])}return t}function bx(e,t){let r=kn(t()),n=()=>r.set(t());return n(),Bi(()=>{let i=()=>Q.preRender(n,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),Vt(n)}}),r}function U_(e){Eo.current=[],e();let t=bx(Eo.current,e);return Eo.current=void 0,t}function At(e,t,r,n){if(typeof e=="function")return U_(e);let i=typeof t=="function"?t:rs(t,r,n);return Array.isArray(e)?m0(e,i):m0([e],([o])=>i(o))}function m0(e,t){let r=sn(()=>[]);return bx(e,()=>{r.length=0;let n=e.length;for(let i=0;ize(e)?e.get():e;if(r)return At(n);let i=kn(n());return rt(()=>mb(i,e,t),[i,JSON.stringify(t)]),i}function G_(e){let t=M(0),{isStatic:r}=O(an);V(()=>{if(r)return;let n=({timestamp:i,delta:o})=>{t.current||(t.current=i),e(i-t.current,o)};return Q.update(n,!0),()=>Vt(n)},[e])}var xx=class extends zo{constructor(){super(...arguments),this.isEnabled=!1}add(e){(Kn.has(e)||lb.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?"transform":"auto")}};function wx(){!Sh.current&&Wb();let[e]=ve(ql.current);return e}function $i(){let e=wx(),{reducedMotion:t}=O(an);return t==="never"?!1:t==="always"?!0:e}function q_(e){e.values.forEach(t=>t.stop())}function xd(e,t){[...t].reverse().forEach(n=>{let i=e.getVariant(n);i&&yh(e,i),e.variantChildren&&e.variantChildren.forEach(o=>{xd(o,t)})})}function X_(e,t){if(Array.isArray(t))return xd(e,t);if(typeof t=="string")return xd(e,[t]);yh(e,t)}function Sx(){let e=!1,t=new Set,r={subscribe(n){return t.add(n),()=>void t.delete(n)},start(n,i){cr(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(wh(a,n,{transitionOverride:i}))}),Promise.all(o)},set(n){return cr(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(i=>{X_(i,n)})},stop(){t.forEach(n=>{q_(n)})},mount(){return e=!0,()=>{e=!1,r.stop()}}};return r}function Eh(e){return typeof e=="object"&&!Array.isArray(e)}function kx(e,t,r,n){return typeof e=="string"&&Eh(t)?es(e,r,n):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Y_(e,t,r){return e*(t+1)}function g0(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 K_(e,t,r){for(let n=0;nt&&i.at{let P=nM(x),{delay:I=0,times:D=ac(P),type:z="keyframes",repeat:_,repeatType:G,repeatDelay:Y=0,...K}=k,{ease:N=t.ease||"easeOut",duration:j}=k,ee=typeof I=="function"?I(T,E):I,me=P.length,Ee=lc(z)?z:i?.[z];if(me<=2&&Ee){let Ie=100;if(me===2&&aM(P)){let ie=P[1]-P[0];Ie=Math.abs(ie)}let $e={...K};j!==void 0&&($e.duration=lr(j));let dt=jd($e,Ie,Ee);N=dt.ease,j=dt.duration}j??(j=o);let J=f+ee;D.length===1&&D[0]===0&&(D[1]=1);let ae=D.length-P.length;if(ae>0&&Hd(D,ae),P.length===1&&P.unshift(null),_){cr(_{for(let v in h){let b=h[v];b.sort(J_);let m=[],g=[],y=[];for(let k=0;ktypeof e=="number",aM=e=>e.every(oM);function sM(e,t){return e in t}var lM=class extends kh{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(sM(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 cM(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},r=ts(e)&&!oh(e)?new mx(t):new hx(t);r.mount(e),Sn.set(e,r)}function uM(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},r=new lM(t);r.mount(e),Sn.set(e,r)}function fM(e,t){return ze(e)||typeof e=="number"||typeof e=="string"&&!Eh(t)}function Cx(e,t,r,n){let i=[];if(fM(e,t))i.push(Jb(e,Eh(t)&&t.default||t,r&&(r.default||r)));else{let o=kx(e,t,n),a=o.length;cr(!!a,"No valid elements provided.");for(let s=0;s{n.push(...Cx(s,o,a))}),n}function hM(e){return Array.isArray(e)&&e.some(Array.isArray)}function Tx(e){function t(r,n,i){let o=[];hM(r)?o=dM(r,n,e):o=Cx(r,n,i,e);let a=new nb(o);return e&&e.animations.push(a),a}return t}var ln=Tx();function Rx(){let e=sn(Sx);return Bi(e.mount,[]),e}var Ex=Rx;function xc(e){return e!==null&&typeof e=="object"&&fh in e}function Fh(e){if(xc(e))return e[fh]}function Ph(){return pM}function pM(e){Ai.current&&(Ai.current.isUpdating=!1,Ai.current.blockUpdate(),e&&e())}function Fx(){return $(()=>{let t=Ai.current;t&&t.resetTree()},[])}var mM={some:0,all:1};function wc(e,t,{root:r,margin:n,amount:i="some"}={}){let o=es(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:mM[i]});return o.forEach(c=>l.observe(c)),()=>l.disconnect()}function gM(e,{root:t,margin:r,amount:n,once:i=!1,initial:o=!1}={}){let[a,s]=ve(o);return V(()=>{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 wc(e.current,l,c)},[t,e,r,i,n]),a}function Px(){let[e,t]=sh(),r=Ph(),n=M(-1);return V(()=>{Q.postRender(()=>Q.postRender(()=>{t===n.current&&(ur.instantAnimations=!1)}))},[t]),i=>{r(()=>{ur.instantAnimations=!0,e(),i(),n.current=t+1})}}var b0=()=>({});var bW=yc({scrapeMotionValuesFromProps:b0,createRenderState:b0});var Ix={};Xv(Ix,{Group:()=>bM,Item:()=>kM});var _x=ge(null);function vM(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=_e(l.min,l.max,.5);return o===1&&s.layout.max+r>c||o===-1&&s.layout.min+rwt[t]),l=[],c=M(!1);cr(!!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(wM)},updateOrder:(f,d,h)=>{if(c.current)return;let p=vM(l,f,d,h);l!==p&&(c.current=!0,n(p.map(xM).filter(v=>i.indexOf(v)!==-1)))}};return V(()=>{c.current=!1}),S(s,{...o,ref:a,ignoreStrict:!0,children:S(_x.Provider,{value:u,children:e})})}var bM=we(yM);function xM(e){return e.value}function wM(e,t){return e.layout.min-t.layout.min}function x0(e,t=0){return ze(e)?e:kn(t)}function SM({children:e,style:t={},value:r,as:n="li",onDrag:i,layout:o=!0,...a},s){let l=sn(()=>wt[n]),c=O(_x),u={x:x0(t.x),y:x0(t.y)},f=At([u.x,u.y],([v,b])=>v||b?1:"unset");cr(!!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:(v,b)=>{let{velocity:m}=b;m[d]&&p(r,u[d].get(),m[d]),i&&i(v,b)},onLayoutMeasure:v=>h(r,v),ref:s,ignoreStrict:!0,children:e})}var kM=we(SM);function CM(e,t){if(e==="first")return 0;{let r=t-1;return e==="last"?r:r/2}}function Ih(e=.1,{startDelay:t=0,from:r=0,ease:n}={}){return(i,o)=>{let a=typeof r=="number"?r:CM(r,o),s=Math.abs(a-i),l=e*s;if(n){let c=o*e;l=$l(n)(l/c)*c}return t+l}}var oV={};qv(oV,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>qL,createPortal:()=>XL,createRoot:()=>YL,default:()=>XS,findDOMNode:()=>KL,flushSync:()=>QL,hydrate:()=>ZL,hydrateRoot:()=>JL,render:()=>eV,unmountComponentAtNode:()=>tV,unstable_batchedUpdates:()=>rV,unstable_renderSubtreeIntoContainer:()=>nV,version:()=>iV});var Ec={};qv(Ec,{default:()=>te,unstable_IdlePriority:()=>EM,unstable_ImmediatePriority:()=>FM,unstable_LowPriority:()=>PM,unstable_NormalPriority:()=>IM,unstable_Profiling:()=>_M,unstable_UserBlockingPriority:()=>MM,unstable_cancelCallback:()=>OM,unstable_continueExecution:()=>LM,unstable_forceFrameRate:()=>VM,unstable_getCurrentPriorityLevel:()=>AM,unstable_getFirstCallbackNode:()=>DM,unstable_next:()=>BM,unstable_now:()=>RM,unstable_pauseExecution:()=>zM,unstable_requestPaint:()=>NM,unstable_runWithPriority:()=>$M,unstable_scheduleCallback:()=>jM,unstable_shouldYield:()=>HM,unstable_wrapCallback:()=>WM});var te={};function Lh(e,t){var r=e.length;e.push(t);e:for(;0>>1,i=e[n];if(!(0>>1;nSc(s,r))lSc(c,s)?(e[n]=c,e[l]=r,n=l):(e[n]=s,e[a]=r,n=a);else{if(!(lSc(c,r)))break e;e[n]=c,e[l]=r,n=l}}}return t}function Sc(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Mx=performance,te.unstable_now=function(){return Mx.now()}):(_h=Date,Ox=_h.now(),te.unstable_now=function(){return _h.now()-Ox});var Mx,_h,Ox,cn=[],Zn=[],TM=1,Pr=null,Dt=3,Tc=!1,ji=!1,as=!1,Ax=typeof setTimeout=="function"?setTimeout:null,Dx=typeof clearTimeout=="function"?clearTimeout:null,Lx=typeof setImmediate<"u"?setImmediate:null;typeof He<"u"&&He.scheduling!==void 0&&He.scheduling.isInputPending!==void 0&&He.scheduling.isInputPending.bind(He.scheduling);function Vh(e){for(var t=Ur(Zn);t!==null;){if(t.callback===null)Cc(Zn);else{if(!(t.startTime<=e))break;Cc(Zn),t.sortIndex=t.expirationTime,Lh(cn,t)}t=Ur(Zn)}}function Ah(e){if(as=!1,Vh(e),!ji)if(Ur(cn)!==null)ji=!0,Bh(Dh);else{var t=Ur(Zn);t!==null&&zh(Ah,t.startTime-e)}}function Dh(e,t){ji=!1,as&&(as=!1,Dx(ss),ss=-1),Tc=!0;var r=Dt;try{for(Vh(t),Pr=Ur(cn);Pr!==null&&(!(Pr.expirationTime>t)||e&&!Nx());){var n=Pr.callback;if(typeof n=="function"){Pr.callback=null,Dt=Pr.priorityLevel;var i=n(Pr.expirationTime<=t);t=te.unstable_now(),typeof i=="function"?Pr.callback=i:Pr===Ur(cn)&&Cc(cn),Vh(t)}else Cc(cn);Pr=Ur(cn)}if(Pr!==null)var o=!0;else{var a=Ur(Zn);a!==null&&zh(Ah,a.startTime-t),o=!1}return o}finally{Pr=null,Dt=r,Tc=!1}}var Rc=!1,kc=null,ss=-1,Bx=5,zx=-1;function Nx(){return!(te.unstable_now()-zxe||125n?(e.sortIndex=r,Lh(Zn,e),Ur(cn)===null&&e===Ur(Zn)&&(as?(Dx(ss),ss=-1):as=!0,zh(Ah,r-n))):(e.sortIndex=i,Lh(cn,e),ji||Tc||(ji=!0,Bh(Dh))),e};te.unstable_shouldYield=Nx;te.unstable_wrapCallback=function(e){var t=Dt;return function(){var r=Dt;Dt=t;try{return e.apply(this,arguments)}finally{Dt=r}}};var RM=te.unstable_now,EM=te.unstable_IdlePriority,FM=te.unstable_ImmediatePriority,PM=te.unstable_LowPriority,IM=te.unstable_NormalPriority,_M=te.unstable_Profiling,MM=te.unstable_UserBlockingPriority,OM=te.unstable_cancelCallback,LM=te.unstable_continueExecution,VM=te.unstable_forceFrameRate,AM=te.unstable_getCurrentPriorityLevel,DM=te.unstable_getFirstCallbackNode,BM=te.unstable_next,zM=te.unstable_pauseExecution,NM=te.unstable_requestPaint,$M=te.unstable_runWithPriority,jM=te.unstable_scheduleCallback,HM=te.unstable_shouldYield,WM=te.unstable_wrapCallback;var UM="default"in sr?R:sr,GM="default"in Ec?te:Ec,mr={},qw=UM,pr=GM;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"),lp=Object.prototype.hasOwnProperty,qM=/^[: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]*$/,$x={},jx={};function XM(e){return lp.call(jx,e)?!0:lp.call($x,e)?!1:qM.test(e)?jx[e]=!0:($x[e]=!0,!1)}function YM(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 KM(e,t,r,n){if(t===null||typeof t>"u"||YM(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 qt(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 It={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){It[e]=new qt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];It[t]=new qt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){It[e]=new qt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){It[e]=new qt(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){It[e]=new qt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){It[e]=new qt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){It[e]=new qt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){It[e]=new qt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){It[e]=new qt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Jp=/[\-:]([a-z])/g;function em(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(Jp,em);It[t]=new qt(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(Jp,em);It[t]=new qt(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(Jp,em);It[t]=new qt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){It[e]=new qt(e,1,!1,e.toLowerCase(),null,!1,!1)});It.xlinkHref=new qt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){It[e]=new qt(e,1,!1,e.toLowerCase(),null,!0,!0)});function tm(e,t,r,n){var i=It.hasOwnProperty(t)?It[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{$h=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?gs(e):""}function QM(e){switch(e.tag){case 5:return gs(e.type);case 16:return gs("Lazy");case 13:return gs("Suspense");case 19:return gs("SuspenseList");case 0:case 2:case 15:return e=jh(e.type,!1),e;case 11:return e=jh(e.type.render,!1),e;case 1:return e=jh(e.type,!0),e;default:return""}}function dp(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 Wo:return"Fragment";case Ho:return"Portal";case cp:return"Profiler";case rm:return"StrictMode";case up:return"Suspense";case fp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Kw:return(e.displayName||"Context")+".Consumer";case Yw:return(e._context.displayName||"Context")+".Provider";case nm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case im:return t=e.displayName||null,t!==null?t:dp(e.type)||"Memo";case ei:t=e._payload,e=e._init;try{return dp(e(t))}catch{}}return null}function ZM(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 dp(t);case 8:return t===rm?"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 pi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function JM(e){var t=Zw(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 Pc(e){e._valueTracker||(e._valueTracker=JM(e))}function Jw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Zw(e)?e.checked?"true":"false":e.value),e=n,e!==r&&(t.setValue(e),!0)}function nu(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 hp(e,t){var r=t.checked;return Ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Wx(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=pi(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 e1(e,t){t=t.checked,t!=null&&tm(e,"checked",t,!1)}function pp(e,t){e1(e,t);var r=pi(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")?mp(e,t.type,r):t.hasOwnProperty("defaultValue")&&mp(e,t.type,pi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ux(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 mp(e,t,r){t==="number"&&nu(e.ownerDocument)===e||(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var vs=Array.isArray;function ta(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ic.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Is(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var xs={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},eO=["Webkit","ms","Moz","O"];Object.keys(xs).forEach(function(e){eO.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xs[t]=xs[e]})});function i1(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||xs.hasOwnProperty(e)&&xs[e]?(""+t).trim():t+"px"}function o1(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=i1(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var tO=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 yp(e,t){if(t){if(tO[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 bp(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 xp=null;function om(e){return e=e.target||e.srcElement||F,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wp=null,ra=null,na=null;function Xx(e){if(e=Xs(e)){if(typeof wp!="function")throw Error(L(280));var t=e.stateNode;t&&(t=_u(t),wp(e.stateNode,e.type,t))}}function a1(e){ra?na?na.push(e):na=[e]:ra=e}function s1(){if(ra){var e=ra,t=na;if(na=ra=null,Xx(e),t)for(e=0;e>>=0,e===0?32:31-(dO(e)/hO|0)|0}var _c=64,Mc=4194304;function ys(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 su(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=ys(s):(o&=a,o!==0&&(n=ys(o)))}else a=r&~i,a!==0?n=ys(a):o!==0&&(n=ys(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 Gs(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kr(t),e[t]=r}function vO(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=Ss),nw=" ",iw=!1;function E1(e,t){switch(e){case"keyup":return UO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function F1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Uo=!1;function qO(e,t){switch(e){case"compositionend":return F1(t);case"keypress":return t.which!==32?null:(iw=!0,nw);case"textInput":return e=t.data,e===nw&&iw?null:e;default:return null}}function XO(e,t){if(Uo)return e==="compositionend"||!hm&&E1(e,t)?(e=T1(),Xc=um=ii=null,Uo=!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=sw(r)}}function M1(e,t){return!(!e||!t)&&(e===t||(!e||e.nodeType!==3)&&(t&&t.nodeType===3?M1(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function O1(){for(var e=F,t=nu();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(!r)break;e=t.contentWindow,t=nu(e.document)}return t}function pm(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 nL(e){var t=O1(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&M1(r.ownerDocument.documentElement,r)){if(n!==null&&pm(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=lw(r,o);var a=lw(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,Go=null,Ep=null,Cs=null,Fp=!1;function cw(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Fp||Go==null||Go!==nu(n)||(n=Go,"selectionStart"in n&&pm(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}),Cs&&As(Cs,n)||(Cs=n,n=uu(Ep,"onSelect"),0Yo||(e.current=Lp[Yo],Lp[Yo]=null,Yo--)}function Me(e,t){Yo++,Lp[Yo]=e.current,e.current=t}var mi={},$t=vi(mi),er=vi(!1),Ki=mi;function la(e,t){var r=e.type.contextTypes;if(!r)return mi;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 tr(e){return e=e.childContextTypes,e!=null}function du(){Ve(er),Ve($t)}function yw(e,t,r){if($t.current!==mi)throw Error(L(168));Me($t,t),Me(er,r)}function j1(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,ZM(e)||"Unknown",i));return Ke({},r,n)}function hu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mi,Ki=$t.current,Me($t,e),Me(er,er.current),!0}function bw(e,t,r){var n=e.stateNode;if(!n)throw Error(L(169));r?(e=j1(e,t,Ki),n.__reactInternalMemoizedMergedChildContext=e,Ve(er),Ve($t),Me($t,e)):Ve(er),Me(er,r)}var Tn=null,Mu=!1,Jh=!1;function H1(e){Tn===null?Tn=[e]:Tn.push(e)}function hL(e){Mu=!0,H1(e)}function yi(){if(!Jh&&Tn!==null){Jh=!0;var e=0,t=Re;try{var r=Tn;for(Re=1;e>=a,i-=a,Rn=1<<32-Kr(t)+i|r<E?(P=T,T=null):P=T.sibling;var I=d(m,T,y[E],x);if(I===null){T===null&&(T=P);break}e&&T&&I.alternate===null&&t(m,T),g=o(I,g,E),w===null?k=I:w.sibling=I,w=I,T=P}if(E===y.length)return r(m,T),Ne&&Hi(m,E),k;if(T===null){for(;EE?(P=T,T=null):P=T.sibling;var D=d(m,T,I.value,x);if(D===null){T===null&&(T=P);break}e&&T&&D.alternate===null&&t(m,T),g=o(D,g,E),w===null?k=D:w.sibling=D,w=D,T=P}if(I.done)return r(m,T),Ne&&Hi(m,E),k;if(T===null){for(;!I.done;E++,I=y.next())I=f(m,I.value,x),I!==null&&(g=o(I,g,E),w===null?k=I:w.sibling=I,w=I);return Ne&&Hi(m,E),k}for(T=n(m,T);!I.done;E++,I=y.next())I=h(T,m,E,I.value,x),I!==null&&(e&&I.alternate!==null&&T.delete(I.key===null?E:I.key),g=o(I,g,E),w===null?k=I:w.sibling=I,w=I);return e&&T.forEach(function(z){return t(m,z)}),Ne&&Hi(m,E),k}function b(m,g,y,x){if(typeof y=="object"&&y!==null&&y.type===Wo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Fc:e:{for(var k=y.key,w=g;w!==null;){if(w.key===k){if(k=y.type,k===Wo){if(w.tag===7){r(m,w.sibling),g=i(w,y.props.children),g.return=m,m=g;break e}}else if(w.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ei&&Rw(k)===w.type){r(m,w.sibling),g=i(w,y.props),g.ref=ds(m,w,y),g.return=m,m=g;break e}r(m,w);break}t(m,w),w=w.sibling}y.type===Wo?(g=Yi(y.props.children,m.mode,x,y.key),g.return=m,m=g):(x=ru(y.type,y.key,y.props,null,m.mode,x),x.ref=ds(m,g,y),x.return=m,m=x)}return a(m);case Ho:e:{for(w=y.key;g!==null;){if(g.key===w){if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){r(m,g.sibling),g=i(g,y.children||[]),g.return=m,m=g;break e}r(m,g);break}t(m,g),g=g.sibling}g=sp(y,m.mode,x),g.return=m,m=g}return a(m);case ei:return w=y._init,b(m,g,w(y._payload),x)}if(vs(y))return p(m,g,y,x);if(ls(y))return v(m,g,y,x);Hc(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(r(m,g.sibling),g=i(g,y),g.return=m,m=g):(r(m,g),g=ap(y,m.mode,x),g.return=m,m=g),a(m)):r(m,g)}return b}var ua=Q1(!0),Z1=Q1(!1),Ys={},pn=vi(Ys),Ns=vi(Ys),$s=vi(Ys);function qi(e){if(e===Ys)throw Error(L(174));return e}function km(e,t){switch(Me($s,t),Me(Ns,e),Me(pn,Ys),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vp(t,e)}Ve(pn),Me(pn,t)}function fa(){Ve(pn),Ve(Ns),Ve($s)}function J1(e){qi($s.current);var t=qi(pn.current),r=vp(t,e.type);t!==r&&(Me(Ns,e),Me(pn,r))}function Cm(e){Ns.current===e&&(Ve(pn),Ve(Ns))}var Xe=vi(0);function bu(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 ep=[];function Tm(){for(var e=0;er?r:4,e(!0);var n=tp.transition;tp.transition={};try{e(!1),t()}finally{Re=r,tp.transition=n}}function mS(){return Vr().memoizedState}function vL(e,t,r){var n=di(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},gS(e))vS(t,r);else if(r=q1(e,t,r,n),r!==null){var i=Gt();Qr(r,e,n,i),yS(r,t,n)}}function yL(e,t,r){var n=di(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(gS(e))vS(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,Zr(s,a)){var l=t.interleaved;l===null?(i.next=i,wm(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}r=q1(e,t,i,n),r!==null&&(i=Gt(),Qr(r,e,n,i),yS(r,t,n))}}function gS(e){var t=e.alternate;return e===Ye||t!==null&&t===Ye}function vS(e,t){Ts=xu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function yS(e,t,r){if((4194240&r)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,sm(e,r)}}var wu={readContext:Lr,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useInsertionEffect:Bt,useLayoutEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useMutableSource:Bt,useSyncExternalStore:Bt,useId:Bt,unstable_isNewReconciler:!1},bL={readContext:Lr,useCallback:function(e,t){return fn().memoizedState=[e,t===void 0?null:t],e},useContext:Lr,useEffect:Fw,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Zc(4194308,4,uS.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Zc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zc(4,2,e,t)},useMemo:function(e,t){var r=fn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=fn();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=vL.bind(null,Ye,e),[n.memoizedState,e]},useRef:function(e){var t=fn();return e={current:e},t.memoizedState=e},useState:Ew,useDebugValue:Im,useDeferredValue:function(e){return fn().memoizedState=e},useTransition:function(){var e=Ew(!1),t=e[0];return e=gL.bind(null,e[1]),fn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ye,i=fn();if(Ne){if(r===void 0)throw Error(L(407));r=r()}else{if(r=t(),kt===null)throw Error(L(349));(30&Zi)!==0||rS(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,Fw(iS.bind(null,n,o,e),[e]),n.flags|=2048,Ws(9,nS.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=fn(),t=kt.identifierPrefix;if(Ne){var r=En,n=Rn;r=(n&~(1<<32-Kr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=js++,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[dn]=t,e[zs]=n,ES(e,t,!1,!1),t.stateNode=e;e:{switch(a=bp(r,n),r){case"dialog":Le("cancel",e),Le("close",e),i=n;break;case"iframe":case"object":case"embed":Le("load",e),i=n;break;case"video":case"audio":for(i=0;iha&&(t.flags|=128,n=!0,hs(o,!1),t.lanes=4194304)}else{if(!n)if(e=bu(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),hs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Ne)return zt(t),null}else 2*it()-o.renderingStartTime>ha&&r!==1073741824&&(t.flags|=128,n=!0,hs(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=it(),t.sibling=null,r=Xe.current,Me(Xe,n?1&r|2:1&r),t):(zt(t),null);case 22:case 23:return Am(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(1&t.mode)!==0?(1073741824&fr)!==0&&(zt(t),6&t.subtreeFlags&&(t.flags|=8192)):zt(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function EL(e,t){switch(gm(t),t.tag){case 1:return tr(t.type)&&du(),e=t.flags,65536&e?(t.flags=-65537&e|128,t):null;case 3:return fa(),Ve(er),Ve($t),Tm(),e=t.flags,(65536&e)!==0&&(128&e)===0?(t.flags=-65537&e|128,t):null;case 5:return Cm(t),null;case 13:if(Ve(Xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));ca()}return e=t.flags,65536&e?(t.flags=-65537&e|128,t):null;case 19:return Ve(Xe),null;case 4:return fa(),null;case 10:return xm(t.type._context),null;case 22:case 23:return Am(),null;case 24:return null;default:return null}}var Uc=!1,Nt=!1,FL=typeof WeakSet=="function"?WeakSet:Set,H=null;function Jo(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 IS(e,t,r){try{r()}catch(n){Je(e,t,n)}}var Dw=!1;function PL(e,t){if(Pp=lu,e=O1(),pm(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(Ip={focusedElem:e,selectionRange:r},lu=!1,H=t;H!==null;)if(t=H,e=t.child,(1028&t.subtreeFlags)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;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 v=p.memoizedProps,b=p.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:qr(t.type,v),b);m.__reactInternalSnapshotBeforeUpdate=g}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,H=e;break}H=t.return}return p=Dw,Dw=!1,p}function Rs(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&&IS(t,r,o)}i=i.next}while(i!==n)}}function Vu(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 Gp(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 _S(e){var t=e.alternate;t!==null&&(e.alternate=null,_S(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dn],delete t[zs],delete t[Op],delete t[fL],delete t[dL])),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 MS(e){return e.tag===5||e.tag===3||e.tag===4}function Bw(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||MS(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 qp(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=fu));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}function Xp(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(Xp(e,t,r),e=e.sibling;e!==null;)Xp(e,t,r),e=e.sibling}var Ft=null,Xr=!1;function Jn(e,t,r){for(r=r.child;r!==null;)OS(e,t,r),r=r.sibling}function OS(e,t,r){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(Eu,r)}catch{}switch(r.tag){case 5:Nt||Jo(r,t);case 6:var n=Ft,i=Xr;Ft=null,Jn(e,t,r),Ft=n,Xr=i,Ft!==null&&(Xr?(e=Ft,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ft.removeChild(r.stateNode));break;case 18:Ft!==null&&(Xr?(e=Ft,r=r.stateNode,e.nodeType===8?Zh(e.parentNode,r):e.nodeType===1&&Zh(e,r),Ls(e)):Zh(Ft,r.stateNode));break;case 4:n=Ft,i=Xr,Ft=r.stateNode.containerInfo,Xr=!0,Jn(e,t,r),Ft=n,Xr=i;break;case 0:case 11:case 14:case 15:if(!Nt&&(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)&&IS(r,t,a),i=i.next}while(i!==n)}Jn(e,t,r);break;case 1:if(!Nt&&(Jo(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)}Jn(e,t,r);break;case 21:Jn(e,t,r);break;case 22:1&r.mode?(Nt=(n=Nt)||r.memoizedState!==null,Jn(e,t,r),Nt=n):Jn(e,t,r);break;default:Jn(e,t,r)}}function zw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new FL),t.forEach(function(n){var i=BL.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Gr(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=a),n&=~o}if(n=i,n=it()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*_L(n/1960))-n,10e?16:e,oi===null)var n=!1;else{if(e=oi,oi=null,Cu=0,(6&ye)!==0)throw Error(L(331));var i=ye;for(ye|=4,H=e.current;H!==null;){var o=H,a=o.child;if((16&H.flags)!==0){var s=o.deletions;if(s!==null){for(var l=0;lit()-Lm?Xi(e,0):Om|=r),rr(e,t)}function $S(e,t){t===0&&((1&e.mode)===0?t=1:(t=Mc,Mc<<=1,(130023424&Mc)===0&&(Mc=4194304)));var r=Gt();e=_n(e,t),e!==null&&(Gs(e,t,r),rr(e,r))}function DL(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),$S(e,r)}function BL(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),$S(e,r)}var jS;jS=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||er.current)Jt=!0;else{if((e.lanes&r)===0&&(128&t.flags)===0)return Jt=!1,TL(e,t,r);Jt=(131072&e.flags)!==0}else Jt=!1,Ne&&(1048576&t.flags)!==0&&W1(t,mu,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Jc(e,t),e=t.pendingProps;var i=la(t,$t.current);oa(t,r),i=Em(null,t,n,e,i,r);var o=Fm();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,tr(n)?(o=!0,hu(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Sm(t),i.updater=Ou,t.stateNode=i,i._reactInternals=t,zp(t,n,e,r),t=jp(null,t,n,!0,o,r)):(t.tag=0,Ne&&o&&mm(t),Ut(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Jc(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=NL(n),e=qr(n,e),i){case 0:t=$p(null,t,n,e,r);break e;case 1:t=Lw(null,t,n,e,r);break e;case 11:t=Mw(null,t,n,e,r);break e;case 14:t=Ow(null,t,n,qr(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:qr(n,i),$p(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:qr(n,i),Lw(e,t,n,i,r);case 3:e:{if(CS(t),e===null)throw Error(L(387));n=t.pendingProps,o=t.memoizedState,i=o.element,X1(e,t),yu(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=da(Error(L(423)),t),t=Vw(e,t,n,r,i);break e}if(n!==i){i=da(Error(L(424)),t),t=Vw(e,t,n,r,i);break e}for(dr=ci(t.stateNode.containerInfo.firstChild),hr=t,Ne=!0,Yr=null,r=Z1(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ca(),n===i){t=Mn(e,t,r);break e}Ut(e,t,n,r)}t=t.child}return t;case 5:return J1(t),e===null&&Ap(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,_p(n,i)?a=null:o!==null&&_p(n,o)&&(t.flags|=32),kS(e,t),Ut(e,t,a,r),t.child;case 6:return e===null&&Ap(t),null;case 13:return TS(e,t,r);case 4:return km(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ua(t,null,n,r):Ut(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:qr(n,i),Mw(e,t,n,i,r);case 7:return Ut(e,t,t.pendingProps,r),t.child;case 8:return Ut(e,t,t.pendingProps.children,r),t.child;case 12:return Ut(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,Me(gu,n._currentValue),n._currentValue=a,o!==null)if(Zr(o.value,a)){if(o.children===i.children&&!er.current){t=Mn(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=Fn(-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),Dp(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),Dp(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}Ut(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,oa(t,r),i=Lr(i),n=n(i),t.flags|=1,Ut(e,t,n,r),t.child;case 14:return n=t.type,i=qr(n,t.pendingProps),i=qr(n.type,i),Ow(e,t,n,i,r);case 15:return wS(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:qr(n,i),Jc(e,t),t.tag=1,tr(n)?(e=!0,hu(t)):e=!1,oa(t,r),K1(t,n,i),zp(t,n,i,r),jp(null,t,n,!0,e,r);case 19:return RS(e,t,r);case 22:return SS(e,t,r)}throw Error(L(156,t.tag))};function HS(e,t){return p1(e,t)}function zL(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 Mr(e,t,r,n){return new zL(e,t,r,n)}function Bm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function NL(e){if(typeof e=="function")return Bm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===nm)return 11;if(e===im)return 14}return 2}function hi(e,t){var r=e.alternate;return r===null?(r=Mr(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 ru(e,t,r,n,i,o){var a=2;if(n=e,typeof e=="function")Bm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Wo:return Yi(r.children,i,o,t);case rm:a=8,i|=8;break;case cp:return e=Mr(12,r,t,2|i),e.elementType=cp,e.lanes=o,e;case up:return e=Mr(13,r,t,i),e.elementType=up,e.lanes=o,e;case fp:return e=Mr(19,r,t,i),e.elementType=fp,e.lanes=o,e;case Qw:return Du(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yw:a=10;break e;case Kw:a=9;break e;case nm:a=11;break e;case im:a=14;break e;case ei:a=16,n=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=Mr(a,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function Yi(e,t,r,n){return e=Mr(7,e,n,t),e.lanes=r,e}function Du(e,t,r,n){return e=Mr(22,e,n,t),e.elementType=Qw,e.lanes=r,e.stateNode={isHidden:!1},e}function ap(e,t,r){return e=Mr(6,e,null,t),e.lanes=r,e}function sp(e,t,r){return t=Mr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $L(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=Wh(0),this.expirationTimes=Wh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wh(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zm(e,t,r,n,i,o,a,s,l){return e=new $L(e,t,r,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Mr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sm(o),e}function jL(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}}),sV=on({"../../../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),v=n?n+u:u;return c._events[v]?c._events[v].fn?c._events[v]=[c._events[v],p]:c._events[v].push(p):(c._events[v]=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,v=new Array(p);hparseInt(b[1],10)):u=!1),u}function p(b){return d===null&&(d=!!b.document.fonts),d}function v(b,m){var g=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[g,y,f?b.stretch:"","100px",m].join(" ")}l.prototype.load=function(b,m){var g=this,y=b||"BESbswy",x=0,k=m||3e3,w=new Date().getTime();return new Promise(function(T,E){if(p(g.context)&&!h(g.context)){var P=new Promise(function(D,z){function _(){new Date().getTime()-w>=k?z(Error(""+k+"ms timeout exceeded")):g.context.document.fonts.load(v(g,'"'+g.family+'"'),y).then(function(G){1<=G.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),T(g)},E)}else n(function(){function D(){var ae;(ae=K!=-1&&N!=-1||K!=-1&&j!=-1||N!=-1&&j!=-1)&&((ae=K!=N&&K!=j&&N!=j)||(c===null&&(ae=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(F.navigator.userAgent),c=!!ae&&(536>parseInt(ae[1],10)||parseInt(ae[1],10)===536&&11>=parseInt(ae[2],10))),ae=c&&(K==ee&&N==ee&&j==ee||K==me&&N==me&&j==me||K==Ee&&N==Ee&&j==Ee)),ae=!ae),ae&&(J.parentNode!==null&&J.parentNode.removeChild(J),clearTimeout(x),T(g))}function z(){if(new Date().getTime()-w>=k)J.parentNode!==null&&J.parentNode.removeChild(J),E(Error(""+k+"ms timeout exceeded"));else{var ae=g.context.document.hidden;(ae===!0||ae===void 0)&&(K=_.g.offsetWidth,N=G.g.offsetWidth,j=Y.g.offsetWidth,D()),x=setTimeout(z,50)}}var _=new i(y),G=new i(y),Y=new i(y),K=-1,N=-1,j=-1,ee=-1,me=-1,Ee=-1,J=document.createElement("div");J.dir="ltr",o(_,v(g,"sans-serif")),o(G,v(g,"serif")),o(Y,v(g,"monospace")),J.appendChild(_.g),J.appendChild(G.g),J.appendChild(Y.g),g.context.document.body.appendChild(J),ee=_.g.offsetWidth,me=G.g.offsetWidth,Ee=Y.g.offsetWidth,z(),s(_,function(ae){K=ae,D()}),o(_,v(g,'"'+g.family+'",sans-serif')),s(G,function(ae){N=ae,D()}),o(G,v(g,'"'+g.family+'",serif')),s(Y,function(ae){j=ae,D()}),o(Y,v(g,'"'+g.family+'",monospace'))})})},typeof t=="object"?t.exports=l:(F.FontFaceObserver=l,F.FontFaceObserver.prototype.load=l.prototype.load)})()}}),fV="preload";function nv(e){return typeof e=="object"&&e!==null&&!Rt(e)&&fV in e}function c9(e){let t=Zv(e),r,n,i=!1,o=we(function(s,l){return V(()=>{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 ho=Object.keys;function gf(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var dV="equals";function YS(e){return e===null||!(dV in e)?!1:typeof e.equals=="function"}function iv(e,t){return e===t?!0:e!==e&&t!==t}function hV(e,t){let r=e.length;if(r!==t.length)return!1;for(let n=r;n--!==0;)if(!iv(e[n],t[n]))return!1;return!0}function pV(e,t){let r=e.length;if(r!==t.length)return!1;for(let n=r;n--!==0;)if(!Ff(e[n],t[n],!0))return!1;return!0}function mV(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e.entries())if(!iv(n,t.get(r)))return!1;return!0}function gV(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e.entries())if(!Ff(n,t.get(r),!0))return!1;return!0}function vV(e,t){if(e.size!==t.size)return!1;for(let r of e.keys())if(!t.has(r))return!1;return!0}function yV(e,t){let r=ho(e);if(r.length!==ho(t).length)return!1;for(let n of r){if(!gf(t,n))return!1;if(!(n==="_owner"&&gf(e,"$$typeof")&&e.$$typeof)&&!iv(e[n],t[n]))return!1}return!0}function bV(e,t){let r=ho(e);if(r.length!==ho(t).length)return!1;for(let n of r){if(!gf(t,n))return!1;if(!(n==="_owner"&&gf(e,"$$typeof")&&e.$$typeof)&&!Ff(e[n],t[n],!0))return!1}return!0}function Ff(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?pV(e,t):hV(e,t);if(o!==a)return!1;let s=e instanceof Map,l=t instanceof Map;if(s&&l)return r?gV(e,t):mV(e,t);if(s!==l)return!1;let c=e instanceof Set,u=t instanceof Set;if(c&&u)return vV(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:YS(e)&&YS(t)?e.equals(t):r?bV(e,t):yV(e,t)}function xl(e,t,r=!0){try{return Ff(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 eT(e){return R.useCallback(t=>e[t],[e])}var ov=R.createContext({});function xV({api:e,children:t}){return S(ov.Provider,{value:e,children:t})}function jn(){return R.useContext(ov)}function wV({routes:e,children:t}){let r=eT(e),n=U(()=>({getRoute:r}),[r]);return S(ov.Provider,{value:n,children:t})}var SV=R.createContext({});function Hn(){var e;let t=jn(),r=O(SV),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 U(()=>{if(!(!n||!o))return{...o,id:n,pathVariables:i}},[n,i,o])}function av(){let e=Hn();if(e)return`${e.id}-${JSON.stringify(e.pathVariables)}`}function sv(e){let t=Hn(),r=R.useRef(t);xl(r.current,t)||!t||(r.current=t,e(t))}function kV(e){var t;let r=jn();if(e)return(t=r.getRoute)==null?void 0:t.call(r,e)}function Pf(e,t){if(t&&e)return e.elements&&t in e.elements?e.elements[t]:t}var CV=[];function tT(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?Pf(n,e):e,[e,n])}function y9(){var e;return(e=Hn())==null?void 0:e.pathVariables}function ir(e){return typeof e=="function"}function lv(e){return typeof e=="boolean"}function oe(e){return typeof e=="string"}function Oe(e){return Number.isFinite(e)}function fl(e){return Array.isArray(e)}function ce(e){return e!==null&&typeof e=="object"&&!fl(e)}function ct(e){return typeof e>"u"}function tn(e){return e===null}function TV(e){return e==null}function rT(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function nT(e){return ce(e)&&ir(e.return)}var dl=()=>{},Pa=typeof F<"u",hl=Pa&&/bot|-google|google-|yandex|ia_archiver|crawl|spider/iu.test(He.userAgent),iT=Pa&&typeof F.requestIdleCallback=="function",cv=iT?F.requestIdleCallback:setTimeout;function ol(e){return`url('data:image/svg+xml,${e.replaceAll("#","%23").replaceAll("'","%27")}')`}var RV={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:[]},Se=Pa?F:RV,KS=Se.scheduler&&"yield"in Se.scheduler,EV=Se.scheduler&&"postTask"in Se.scheduler,vf=new Set;function Hm(){for(let e of vf)e();vf.clear()}function FV(e){return new Promise(t=>{if(vf.add(t),document.hidden){Hm();return}document.addEventListener("visibilitychange",Hm),document.addEventListener("pagehide",Hm),Q.read(()=>{let r=()=>{var n;vf.delete(t),!((n=e?.signal)!=null&&n.aborted)&&t()};uv(e).then(r)})})}function PV(e){return new Promise(t=>{setTimeout(t,100),Q.read(()=>{uv(e).then(t)},!1,!0)})}function uv(e){let t=e?.priority;return KS||EV?t==="background"?new Promise(n=>{setTimeout(n,1)}):KS?Se.scheduler.yield(e).catch(dl):Se.scheduler.postTask(()=>{},e).catch(dl):t==="user-blocking"?Promise.resolve():new Promise(n=>{setTimeout(n,t==="background"?1:0)})}function wr(e){let{continueAfter:t,ensureContinueBeforeUnload:r,...n}=e??{};return r?FV(n):t==="paint"?PV(n):uv(n)}var fv=!hl;function IV(e,t=!0){let{getRoute:r}=jn();V(()=>{if(!(!r||!t||!fv))for(let n of e)oT(r(n))},[e,r,t])}async function oT(e){if(!fv||!e)return;let t=e.page;if(!(!t||!nv(t))){await wr();try{await t.preload()}catch{}}}var _V=2;function zn(e,t,r="lazy"){var n;switch((n=Se.__framer_events)==null||n.push([e,t,r]),e){case"published_site_click":{let{trackingId:i,href:o}=t;i&&document.dispatchEvent(new CustomEvent("framer:click",{detail:{trackingId:i,href:o}}));break}case"published_site_form_submit":{let{trackingId:i}=t;i&&document.dispatchEvent(new CustomEvent("framer:formsubmit",{detail:{trackingId:i}}));break}case"published_site_pageview":{let{framerLocale:i}=t;document.dispatchEvent(new CustomEvent("framer:pageview",{detail:{framerLocale:i}}));break}}}function Cg(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=MV(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 Wm=46,xa=47,Ti=(e,t)=>e.charCodeAt(t),ZS=(e,t)=>e.lastIndexOf(t),Sa=(e,t,r)=>e.slice(t,r);function MV(e,t){if(e===t||(e="/"+ek(e),t="/"+ek(t),e===t))return"";let r=1,n=e.length,i=n-r,o=1,a=t.length-o,s=is){if(Ti(t,o+c)===xa)return Sa(t,o+c+1);if(c===0)return Sa(t,o+c)}else i>s&&(Ti(e,r+c)===xa?l=c:c===0&&(l=0));let u="";for(c=r+l+1;c<=n;++c)(c===n||Ti(e,c)===xa)&&(u+=u.length===0?"..":"/..");return`${u}${Sa(t,o+l)}`}var OV=!1,ju="/",JS=e=>e===xa;function ek(e){let t="",r=0,n=-1,i=0,o=0;for(let a=0;a<=e.length;++a){if(a2){let s=ZS(t,ju);s===-1?(t="",r=0):(t=Sa(t,0,s),r=t.length-1-ZS(t,ju)),n=a,i=0;continue}else if(t.length!==0){t="",r=0,n=a,i=0;continue}}OV&&(t+=t.length>0?`${ju}..`:"..",r=2)}else t.length>0?t+=`${ju}${Sa(e,n+1,a)}`:t=Sa(e,n+1,a),r=a-n-1;n=a,i=0}else o===Wm&&i!==-1?++i:i=-1}return t}var LV=new Set(["/404.html","/404","/404/"]),VV=":([a-z]\\w*)",po=new RegExp(VV,"gi");function aT(e,t){return e.replace(po,(r,n)=>{let i=t[n];return typeof i!="string"||i.length===0?r:encodeURIComponent(i)})}function dv(e){let t=typeof F<"u"?F.location.search:"";return t?AV(t,e):e}function AV(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 DV(e,t,r,n,i,o,a){var s;let l=e,c=!1,u={...o},f=Array.from(l.matchAll(po)),d=await Promise.all(f.map(async b=>{var m;let g=b?.[0],y=b?.[1];if(!g||!y)throw new Error("Failed to replace path variables: unexpected regex match group");let x=o[y];if(!x||!oe(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 T=await k.getSlugByRecordId(w,r);if(!T){c=!0;let E=await k.getSlugByRecordId(w,n);return E&&(u[y]=E),E??x}return u[y]=T,T})),h=0,p="",v=!1;for(let b=0;b`--view-transition-${e}`;function Tg(e){return[parseFloat(e),e.endsWith("px")?"px":"%"]}function cT(e){let{innerWidth:t,innerHeight:r}=F,[n,i]=Tg(e.x),[o,a]=Tg(e.y);return{x:i==="px"?n:t*(n/100),y:a==="px"?o:r*(o/100)}}var WV={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),`${Bn("conic-offset")}: ${n}%;`},makeStyles:(e,t)=>{let r=`var(${Bn("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 ${Bn("conic-offset")} { syntax: ''; initial-value: 0%; inherits: false; } `},UV={makeKeyframe:(e,t)=>{let{x:r,y:n}=cT(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);`}},GV={makeKeyframe:(e,t)=>{let{x:r,y:n}=cT(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);"}},qV={makeKeyframe:(e,t,r)=>{let[,n]=Tg(e.width),i=`0${n}`;return(t==="start"&&r==="exit"||t==="end"&&r==="enter")&&(i=e.width),`${Bn("blinds-width")}: ${i};`},makeStyles:(e,t)=>{let r=`var(${Bn("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 ${Bn("blinds-width")} { syntax: ''; initial-value: 0px; inherits: false; } `},XV={makeKeyframe:(e,t,r)=>{let n=t==="start"&&r==="exit"||t==="end"&&r==="enter"?1:0;return`${Bn("wipe-offset")}: ${n};`},makeStyles:(e,t)=>{let r=`var(${Bn("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 ${Bn("wipe-offset")} { syntax: ''; initial-value: 0; inherits: false; } `},YV={circle:UV,conic:WV,inset:GV,blinds:qV,wipe:XV},KV={opacity:1,x:"0px",y:"0px",scale:1,rotate:0,rotateX:0,rotateY:0,mask:void 0};function tk(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 QV(e){return e?YV[e]:void 0}function rk(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(ZV(t)){let{easing:c,duration:u}=HV(Di({keyframes:[0,1],...JV(t),restDelta:.001,restSpeed:1e-4}));o.duration=u+"ms",o.easing=c}let a=QV((n=r?.mask)==null?void 0:n.type),s=tk(r,"start",e,a),l=tk({...KV,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 ZV(e){return e.type==="spring"}function JV(e){return e.durationBasedSpring?{duration:e.duration*1e3,bounce:e.bounce}:{stiffness:e.stiffness,damping:e.damping,mass:e.mass}}var uT="view-transition-styles",eA={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 tA({exit:e=eA,enter:t}){let r=document.createElement("style");r.id=uT;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+=rk("exit",e),n+=rk("enter",t),r.textContent=n,document.head.appendChild(r)}function rA(){cv(()=>{Q.render(()=>{performance.mark("framer-vt-remove");let e=document.getElementById(uT);e&&document.head.removeChild(e)})})}var nk=()=>{};function nA(){return!!document.startViewTransition}function iA(e){return new Promise(t=>{Q.render(()=>{performance.mark("framer-vt-style"),tA(e),t()})})}async function oA(e,t,r){if(!nA()){e();return}if(await iA(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(nk),Promise.all([n.ready,n.finished]).then(()=>{performance.mark("framer-vt-finished"),rA()}).catch(nk),n}function fT(){let e=NV(),t=M(void 0);return V(()=>{t.current&&(t.current(),t.current=void 0)}),$((r,n,i,o)=>{let a=$V(r,n,e);if(a){let s=new Promise(l=>{t.current=l});return oA(async()=>{i(),await s},a,o)}i()},[e])}function dT(e,t){cv(()=>{let r=document.querySelector("link[rel='canonical']");if(!r)return;let n=new URL(e,t);n.search="",r.setAttribute("href",n.toString())})}var bi,hT=()=>{bi||(bi=document.createElement("div"),bi.setAttribute("aria-live","assertive"),bi.setAttribute("aria-atomic","true"),bi.style.position="absolute",bi.style.transform="scale(0)",document.body.append(bi)),setTimeout(()=>{bi.textContent=document.title},60)};function aA(e,t,r,n=We){n(()=>{let i=async a=>(await wr({...r,continueAfter:"paint"}),a()),o=i(e);return()=>{(async()=>{let a=await o;a&&i(a)})()}},t)}function pT(e){let t=M(void 0);return aA(()=>{t.current&&(t.current(),t.current=void 0)},void 0,{priority:"user-blocking"}),$(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 ik(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=wl(t,{currentRoutePath:r,currentPathVariables:n,hash:i,pathVariables:o,preserveQueryParams:s,siteCanonicalURL:l});try{return await mT({routeId:e,hash:i,pathVariables:o,localeId:a},f,c)}catch{}}function sA(e){return ce(e)&&oe(e["routeId"])}function lA(e,t,r=!1){performance.mark("framer-history-replace"),(r?F.history.__proto__.replaceState:F.history.replaceState).call(F.history,e,"",t)}var Hu=!0,ok=(()=>{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 mT(e,t,r=!1){if(performance.mark("framer-history-push"),dT(t,F.location.href),!r){F.history.pushState(e,"",t);return}let n=!1,i;Hu&&(i=()=>{if(n=!0,ok)return;let o="Popstate called after intercept(). Please report this to the Framer team.";console.error(o),zn("published_site_load_recoverable_error",{message:o})},F.addEventListener("popstate",i,{once:!0})),ok&&Hu?F.history.__proto__.pushState.call(F.history,e,"",t):F.history.pushState(e,"",t),Hu&&queueMicrotask(()=>{n||(Hu=!1,F.removeEventListener("popstate",i))})}function cA({disabled:e,routeId:t,initialPathVariables:r,initialLocaleId:n}){We(()=>{e||(performance.mark("framer-history-set-initial-state"),lA({routeId:t,pathVariables:r,localeId:n},void 0,!0))},[])}var Rg=(()=>{var e;return Pa&&typeof((e=F.navigation)==null?void 0:e.back)=="function"})();function uA(e,t){let r=fT(),n=pT("framer-route-change"),i=M(void 0),o=$(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:v,pathVariables:b,localeId:m}=s;if(!oe(p))return;let g=n({popstate:!0}),y=tT();g.promise.finally(y);let x=()=>{t(p,oe(m)?m:void 0,oe(v)?v:void 0,F.location.pathname+F.location.search+F.location.hash,ce(b)?b:void 0,!0,g,!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 g.promise;try{await w?.finished}catch(T){console.warn("Popstate transition failed",T)}hT(),dT(F.location.href)},[e,n,t,r]),a=$(s=>{s.navigationType!=="traverse"||!s.canIntercept||s.intercept({async handler(){await new Promise((l,c)=>{i.current={resolve:l,reject:c}}),i.current=void 0},scroll:"after-transition"})},[]);V(()=>(F.addEventListener("popstate",o),Rg&&F.navigation.addEventListener("navigate",a),()=>{F.removeEventListener("popstate",o),Rg&&F.navigation.removeEventListener("navigate",a)}),[o,a])}function fA(e,t,r){let n=Pf(t,e);if(!n)return;let i=Object.assign({},t?.elements,r);return n.replace(po,(o,a)=>i[a]??o)}function wl(e,{currentRoutePath:t,currentPathVariables:r,hash:n,pathVariables:i,hashVariables:o,relative:a=!0,preserveQueryParams:s,onlyHash:l=!1,siteCanonicalURL:c}){let u=fA(n,e,o);if(l)return u??"";let f=t??"/";r&&(f=f.replace(po,(v,b)=>String(r[b]||v)));let h=e?.path??"/";i&&(h=h.replace(po,(v,b)=>String(i[b]||v)));let p=f===h&&u;if(a)if(LV.has(f)&&typeof F<"u"){let v=sT(c);h=Cg(F.location.pathname,v+h)}else h=Cg(f,h);return(s||p)&&(h=dv(h)),u&&(h=`${h}#${u}`),h}async function dA(e,t,r){if(!e.path||!t)return!1;let i=`${r.slug?`/${r.slug}`:""}${aT(e.path,t)}`;return(await fetch(i,{method:"HEAD",redirect:"manual"})).type==="opaqueredirect"?(F.location.href=F.location.origin+i,!0):!1}async function hA(e){let t=await BV(e);if(t){try{localStorage.setItem("preferredLocale",e.nextLocale.code)}catch{}try{if(!oe(t.path))throw new Error("Expected result.path to be a string");if(t.isMissingInLocale&&await dA(e.route,t.pathVariables,e.nextLocale))return}catch{}return t}}function pA(){let e=M(Promise.resolve()),t=M(),r=$(n=>{if(n.navigationType==="traverse"||!n.canIntercept)return;let i=t.current;i?.signal.addEventListener("abort",()=>{i.abort("user aborted")}),n.intercept({handler:()=>e.current})},[]);return $((n,i,o)=>{if(!Rg){i();return}e.current=n,t.current=o,F.navigation.addEventListener("navigate",r),i(!0),n.finally(()=>{F.navigation.removeEventListener("navigate",r)})},[r])}var mA=/[^\p{Letter}\p{Number}()]+/gu,gA=/^-+|-+$/gu;function vA(e){return e.toLowerCase().replace(mA,"-").replace(gA,"")}var Eg=R.createContext(null);var yA=async()=>{},bA={activeLocale:null,locales:[],setLocale:yA},gT=R.createContext(bA);function Sl(){return R.useContext(gT)}function M9(){var e;return((e=Sl().activeLocale)==null?void 0:e.code)??"en-US"}var al=["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"],vT=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"))},yT=!1;function L9(){if(!al)return;yT=!0,performance.mark("framer-react-event-handling-start");let e={capture:!0},t=document.body;al.forEach(r=>t.addEventListener(r,vT,e))}function xA(){return V(()=>{if(!yT||!al)return;let e={capture:!0},t=document.body;al.forEach(r=>t.removeEventListener(r,vT,e)),al=void 0,performance.mark("framer-react-event-handling-end")},[]),null}function _t(e){let t=!1;return function(...r){if(!t)return t=!0,e.apply(this,r)}}function Ln(e,t,r){try{performance.measure(e,t,r)}catch(n){console.warn(`Could not measure ${e}`,n)}}var bT,xT,wT,ST,kT,CT,TT,RT,ET,FT,PT,IT,_T,MT,OT,LT,VT,ut;VT=[_t],LT=[_t],OT=[_t],MT=[_t],_T=[_t],IT=[_t],PT=[_t],FT=[_t],ET=[_t],RT=[_t],TT=[_t],CT=[_t],kT=[_t],ST=[_t],wT=[_t],xT=[_t],bT=[_t];var bt=class{constructor(){Qv(ut,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"),Ln("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"),Ln("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"),Ln("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"),Ln("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"),Ln("framer-hydration-raf","framer-hydration-browser-render-start","framer-hydration-browser-raf-end")}markLayoutStylePaintEnd(){performance.mark("framer-hydration-first-paint"),Ln("framer-hydration-time-to-first-paint","framer-hydration-start","framer-hydration-first-paint"),Ln("framer-hydration-browser-render","framer-hydration-browser-raf-end","framer-hydration-first-paint")}measureMutationEffects(){Ln("framer-hydration-commit","framer-hydration-layout-effects-end","framer-hydration-effects-start")}measureUnattributedHydrationOverhead(){var e,t;Ln("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")}};ut=Yv(null);xt(ut,1,"markRenderStart",VT,bt);xt(ut,1,"markRenderEnd",LT,bt);xt(ut,1,"markUseInsertionEffectsStart",OT,bt);xt(ut,1,"markUseInsertionEffectRouterStart",MT,bt);xt(ut,1,"markUseInsertionEffectsEnd",_T,bt);xt(ut,1,"markUseLayoutEffectsStart",IT,bt);xt(ut,1,"markRouterUseLayoutEffectStart",PT,bt);xt(ut,1,"markUseLayoutEffectsEnd",FT,bt);xt(ut,1,"markUseEffectsStart",ET,bt);xt(ut,1,"markUseEffectsRouterStart",RT,bt);xt(ut,1,"markUseEffectsAreSynchronous",TT,bt);xt(ut,1,"markUseEffectsEnd",CT,bt);xt(ut,1,"markRafStart",kT,bt);xt(ut,1,"markRafEnd",ST,bt);xt(ut,1,"markLayoutStylePaintEnd",wT,bt);xt(ut,1,"measureMutationEffects",xT,bt);xt(ut,1,"measureUnattributedHydrationOverhead",bT,bt);Kv(ut,bt);var pe;function A9(){pe=new bt,pe.render.markStart()}function wA(){rt(()=>{pe?.useInsertionEffects.markRouterStart()},[]),We(()=>{pe?.useLayoutEffects.markRouterStart()},[]),V(()=>{pe?.useEffects.markRouterStart()},[])}var AT=!1;function SA(){rt(()=>{pe?.render.markEnd(),pe?.useInsertionEffects.markStart()},[]),We(()=>{if(pe?.useLayoutEffects.markStart(),document.visibilityState!=="visible"){AT=!0;return}Q.read(()=>{pe?.browserRendering.requestAnimationFrame.markStart(),pe?.unattributedHydrationOverhead.measure()})},[]),V(()=>{pe?.useEffects.markStart(),pe?.browserRendering.hasStarted||(pe?.mutationEffects.measure(),pe?.useEffects.markAreSynchronous())},[])}function kA(){rt(()=>{pe?.useInsertionEffects.markEnd()},[]),We(()=>{pe?.useLayoutEffects.markEnd(),!(AT||document.visibilityState!=="visible")&&Q.read(()=>{pe?.browserRendering.requestAnimationFrame.markEnd(),wr().then(()=>{pe?.browserRendering.layoutStylePaint.markEnd()})})},[]),V(()=>{pe?.useEffects.markEnd()},[])}function CA(){return SA(),null}function TA(){return kA(),null}var ak={Start:CA,End:TA};function Fg(e,t){let r={style:t,"data-framer-root":""};return R.isValidElement(e)?R.cloneElement(e,r):S(e,{...r})}var RA=class extends Error{},EA=class extends Te{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 RA))throw this.state.error;let{notFoundPage:e,defaultPageStyle:t}=this.props;if(!e)throw this.state.error;return Fg(e,t)}},Wu,Gm,sk;function FA(e){if(sk!==e){Wu={};for(let[t,{path:r}]of Object.entries(e))r&&(Wu[r]={path:r,depth:PA(r),routeId:t});Gm=Object.values(Wu),Gm.sort(({depth:t},{depth:r})=>r-t),sk=e}return[Wu,Gm]}function DT(e,t,r=!0,n=[]){let[i,o]=FA(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=lk(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=lk(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 PA(e){let t=e.replace(/^\/|\/$/gu,"");return t===""?0:t.split("/").length}function lk(e,t){let r=[],i=IA(t).replace(po,(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 MA(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 OA(e,t){for(let[r,n]of t)MA(e,r,n)}function LA(e){var t;for(let r in e)(t=e[r])!=null&&t.abTestingParentId&&delete e[r]}function VA(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 N9(e,t){var r;if(typeof F>"u")return t;let n=t;if(t){VA(e,t);let i=(r=e[t])==null?void 0:r.abTestingParentId;i&&(n=i)}return OA(e,_A()),LA(e),n}var AA="main",DA="framerGeneratedPage",BA="framer-search-index",$9=`meta[name="${BA}"]`,zA="",NA="",$A="",jA="";function A(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 ke(e,t){throw t||new Error(e?`Unexpected value: ${e}`:"Application entered invalid state")}async function Uu(e,t,r="beforeend"){let n,i;switch(r){case"beforebegin":A(t.parentNode,"Can't use 'beforebegin' with a referenceNode at the top level"),n=t.parentNode,i=t;break;case"afterend":A(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:ke(r)}let o=document.createRange();o.selectNodeContents(n);let a=o.createContextualFragment(e);await BT(a,n,i)}async function BT(e,t,r){for(let n=e.firstChild;n;n=n.nextSibling){if(n instanceof HTMLScriptElement){let o=HA(n,t,r);o!==void 0&&await o;continue}let i=n.cloneNode(!1);t.insertBefore(i,r),n.firstChild&&await BT(n,i,null)}}function HA(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 WA(i,t,r)}function WA(e,t,r){return new Promise(n=>{e.onload=e.onerror=n,t.insertBefore(e,r)})}function j9(e){let{isInitialNavigation:t}=jn();V(()=>{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]),rt(()=>{var r;document.title=e.title||"",e.viewport&&((r=document.querySelector('meta[name="viewport"]'))==null||r.setAttribute("content",e.viewport))},[e.title,e.viewport]),V(()=>{if(!t)return;let r=document.getElementById(AA);r&&r.dataset[DA]!==void 0||UA(e.customHTMLHeadStart,e.customHTMLHeadEnd,e.customHTMLBodyStart,e.customHTMLBodyEnd)},[])}async function UA(e,t,r,n){let i,o,a,s;if(e||t){let{start:l,end:c}=ck(document.head.childNodes,e?zA:void 0,t?NA:void 0);i=l,o=c}if(r||n){let{start:l,end:c}=ck(document.body.childNodes,r?$A:void 0,n?jA:void 0);a=l,s=c}e&&i&&await Uu(e,i,"beforebegin"),t&&o&&await Uu(t,o,"beforebegin"),r&&a&&await Uu(r,a,"beforebegin"),n&&s&&await Uu(n,s,"beforebegin")}function ck(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 uk=new Set;function lo(e,...t){uk.has(e)||(uk.add(e),console.warn(e,...t))}function GA(e,t,r){let n=r?`, use ${r} instead`:"",i=`Deprecation warning: ${e} will be removed in version ${t}${n}.`;lo(i)}var zT=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}},vt=(()=>{function e(t){return GA("Animatable()","2.0.0","the new animation API (https://www.framer.com/api/animation/)"),rn(t)?t:new XA(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:rn(t)?t.get():t,e.objectToValues=t=>{if(!t)return t;let r={};for(let n in t){let i=t[n];rn(i)?r[n]=i.get():r[n]=i}return r},e})(),fk="onUpdate",dk="finishTransaction";function rn(e){return e!==null&&typeof e=="object"&&fk in e&&e[fk]instanceof Function&&dk in e&&e[dk]instanceof Function}function qA(e,t){return{interpolate(r,n){let i=r.get(),o=n.get(),a=vt(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 XA=class{constructor(e){this.value=e,C(this,"observers",new zT)}static interpolationFor(e,t){if(rn(e))return qA(e,t)}get(){return this.value}set(e,t){let r=this.value;rn(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 Gu(e,t){let n=10**Math.round(Math.abs(t));return Math.round(e*n)/n}function hk(e,t){return t===0?Math.round(e):(t-=t|0,t<0&&(t=1-t),Math.round(e-t)+t)}function YA(e){return Math.round(e*2)/2}function xr(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:hk(i.x,o.x),y:hk(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})(xr||(xr={}));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 xi(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 eD(e,t,r){let n,i,o;if(e=Kt(e,360),t=Kt(t*100,100),r=Kt(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=qm(s,a,e+1/3),i=qm(s,a,e),o=qm(s,a,e-1/3)}return{r:n*255,g:i*255,b:o*255}}function mk(e,t,r){e=Kt(e,255),t=Kt(t,255),r=Kt(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 hv(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=mn.rgb.exec(r))?{r:parseInt(i[1]??""),g:parseInt(i[2]??""),b:parseInt(i[3]??""),a:1,format:"rgb"}:(i=mn.rgba.exec(r))?{r:parseInt(i[1]??""),g:parseInt(i[2]??""),b:parseInt(i[3]??""),a:parseFloat(i[4]??""),format:"rgb"}:(i=mn.hsl.exec(r))?{h:parseInt(i[1]??""),s:wi(i[2]??""),l:wi(i[3]??""),a:1,format:"hsl"}:(i=mn.hsla.exec(r))?{h:parseInt(i[1]??""),s:wi(i[2]??""),l:wi(i[3]??""),a:parseFloat(i[4]??""),format:"hsl"}:(i=mn.hsv.exec(r))?{h:parseInt(i[1]??""),s:wi(i[2]??""),v:wi(i[3]??""),a:1,format:"hsv"}:(i=mn.hsva.exec(r))?{h:parseInt(i[1]??""),s:wi(i[2]??""),v:wi(i[3]??""),a:parseFloat(i[4]??""),format:"hsv"}:(i=mn.hex8.exec(r))?{r:br(i[1]??""),g:br(i[2]??""),b:br(i[3]??""),a:gk(i[4]??""),format:n?"name":"hex"}:(i=mn.hex6.exec(r))?{r:br(i[1]??""),g:br(i[2]??""),b:br(i[3]??""),a:1,format:n?"name":"hex"}:(i=mn.hex4.exec(r))?{r:br(`${i[1]}${i[1]}`),g:br(`${i[2]}${i[2]}`),b:br(`${i[3]}${i[3]}`),a:gk(i[4]+""+i[4]),format:n?"name":"hex"}:(i=mn.hex3.exec(r))?{r:br(`${i[1]}${i[1]}`),g:br(`${i[2]}${i[2]}`),b:br(`${i[3]}${i[3]}`),a:1,format:n?"name":"hex"}:!1}function br(e){return parseInt(e,16)}function gk(e){return br(e)/255}var iD=/^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 oD(e){let t=iD.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 Ym(e=0){let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*((t+.055)/1.055)**2.4}function NT({r:e,g:t,b:r,a:n}){return{r:Ym(e),g:Ym(t),b:Ym(r),a:n}}function Km(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 $T({r:e,g:t,b:r,a:n}){return{r:Km(e),g:Km(t),b:Km(r),a:n}}var aD=e=>{let{r:t,g:r,b:n,a:i}=NT(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}},sD=({x:e=0,y:t=0,z:r=0,a:n=1})=>$T({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}),lD=e=>{let{r:t,g:r,b:n,a:i}=NT(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}},cD=({x:e=0,y:t=0,z:r=0,a:n=1})=>$T({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 uD({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=bk.get(o);return u||(u=t(o),u===void 0?{...e("black"),isValid:!1}:(bk.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=pD(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"?hv(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)=>pk(o.r,o.g,o.b,a),e.toHexString=(o,a=!1)=>`#${e.toHex(o,a)}`,e.isP3String=o=>typeof o!="string"?!1:hD.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=>({...QA(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=mk(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=mk(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=pk(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:xi(s,[0,1],[o.r,a.r],l),g:xi(s,[0,1],[o.g,a.g],l),b:xi(s,[0,1],[o.b,a.b],l),a:xi(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,v=p-h;v>180?v=p-360-h:v<-180&&(v=p+360-h);let b={h:xi(s,[0,1],[h,h+v],l),s:xi(s,[0,1],[f.s,d.s],l),l:xi(s,[0,1],[f.l,d.l],l),a:xi(s,[0,1],[o.a,a.a],l)};r.isHSL(c)?u=e(b):u=e(ZA(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)=>If(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=Do([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 pD(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=mD(e):typeof e=="object"&&(e.hasOwnProperty("r")&&e.hasOwnProperty("g")&&e.hasOwnProperty("b")?i=_g(e):i=jT(e)),i}function mD(e){let t=hv(e);if(t)return t.format==="hsl"?jT(t):t.format==="hsv"?gD(t):_g(t)}function gD(e){let t=tD(e.h,e.s,e.v);return{...If(t.r,t.g,t.b),...t,format:"rgb",a:e.a!==void 0?HT(e.a):1}}function _g(e){let t=JA(e.r,e.g,e.b);return{...If(t.r,t.g,t.b),...t,format:"rgb",a:e.a!==void 0?HT(e.a):1}}function jT(e){let t,r,n,i={r:0,g:0,b:0},o={h:0,s:0,l:0};return t=ka(e.h)?e.h:0,t=(t+360)%360,r=ka(e.s)?e.s:1,typeof e.s=="string"&&(r=Ig(e.s)),n=ka(e.l)?e.l:.5,typeof e.l=="string"&&(n=Ig(e.l)),i=eD(t,r,n),o={h:t,s:r,l:n},{...i,...o,a:e.a===void 0?1:e.a,format:"hsl"}}function HT(e){return e=parseFloat(e),e<0&&(e=0),(Number.isNaN(e)||e>1)&&(e=1),e}var xk=e=>e instanceof zo;var vD=sV().EventEmitter,yD=class{constructor(){C(this,"_emitter",new vD)}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)}},bD=e=>{setTimeout(e,1/60)},xD=Se.requestAnimationFrame||bD,wk=e=>xD(e),Qs=1/60,wD=class extends yD{constructor(e=!1){super(),C(this,"_started",!1),C(this,"_frame",0),C(this,"_frameTasks",[]),C(this,"tick",()=>{this._started&&(wk(this.tick),this.emit("update",this._frame,Qs),this.emit("render",this._frame,Qs),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 qu=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"}});dh({borderTopWidth:qu("y"),borderLeftWidth:qu("x"),borderRightWidth:qu("x"),borderBottomWidth:qu("y")});var Ca=R.createContext({getLayoutId:e=>null,persistLayoutIdCache:()=>{},top:!1,enabled:!0});function SD({children:e}){if(O(Ca).top)return S(nt,{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=$(({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 T=u[w];A(!!T,"duplicatedId must be defined");let E=r.current[f][T],P=r.current.byLastId[T];if(P&&!p){let z=r.current.byLayoutId[P],_=!z||z===c;P&&!i.has(P)&&(!c||_)&&(p=[P,T])}let I=E?r.current.byLayoutId[E]:void 0,D=!I||I===c;if(E&&!i.has(E)&&(!c||D))return n.current[f][l]=E,n.current.byLastId[T]=E,i.add(E),E}let v=r.current.byLastId[l];if(v&&!i.has(v))return i.add(v),n.current.byId[l]=v,v;if(p){let[w,T]=p;return n.current[f][l]=w,n.current.byLastId[T]=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],g=c||m||l,y=(r.current.count[f][g]??-1)+1,{layoutId:x,value:k}=kD(g,y,i);if(r.current.count[f][g]=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 T=0;T{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(Ca.Provider,{value:s,children:e})}function kD(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 CD({enabled:e=!0,...t}){let r=O(Ca),n=U(()=>({...r,enabled:e}),[e]);return S(Ca.Provider,{...t,value:n})}function yt(e){let t=M(null);return t.current===null&&(t.current=e()),t.current}var TD={background:void 0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",lineHeight:"1.4em",textOverflow:"ellipsis",overflow:"hidden",minHeight:0,width:"100%",height:"100%"},RD={...TD,border:"1px solid rgba(149, 149, 149, 0.15)",borderRadius:6,fontSize:"12px",backgroundColor:"rgba(149, 149, 149, 0.1)",color:"#a5a5a5"},UT={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:"100%",flexShrink:0,padding:"0 10px"},ED={...UT,fontWeight:500},FD={...UT,whiteSpace:"pre",maxHeight:"calc(50% - calc(20px * var(--framerInternalCanvas-canvasPlaceholderContentScaleFactor, 1)))",WebkitMaskImage:"linear-gradient(to bottom, black 80%, transparent 100%)"};function Y9(e){let{error:t,file:r}=e,n=r?`Error in ${PD(r)}`:"Error",i=t instanceof Error?t.message:""+t;return he("div",{style:RD,children:[S("div",{className:"text",style:ED,children:n}),i&&S("div",{className:"text",style:FD,children:i})]})}function PD(e){return e.startsWith("./")?e.replace("./",""):e}function ne(e){return Number.isFinite(e)}function ID(e){return!e||!Object.keys(e).length&&e.constructor===Object}function rf(e){return typeof e!="string"&&typeof e!="number"}function nf(e){return e!==null&&typeof e<"u"&&typeof e!="boolean"&&!ID(e)}function _D(e){return e*(Math.PI/180)}var Ar=(()=>{function e(t,r){return{a:t,b:r}}return e.offset=(t,r)=>{let n=xr.angleFromX(t.a,t.b),i=_D(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 v=d/h,b=p/h;return n&&(v<0||v>1||b<0||b>1)?null:{x:i+v*(a-i),y:o+v*(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=xr(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=>xr.distance(t.a,t.b),e})(),re={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)=>re.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=Gu(e.x,t),n=Gu(e.y,t),i=Gu(e.width,t),o=Gu(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:re.maxX(e),minY:e.y,midY:e.y+e.height/2,maxY:re.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=xr.distance(t,r),l=xr.distance(t,i);return{x:o,y:a,width:s,height:l}},merge:(...e)=>{let t={x:Math.min(...e.map(re.minX)),y:Math.min(...e.map(re.minY))},r={x:Math.max(...e.map(re.maxX)),y:Math.max(...e.map(re.maxY))};return re.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:re.minX(e),y:re.minY(e)},{x:re.minX(e),y:re.maxY(e)},{x:re.maxX(e),y:re.minY(e)},{x:re.maxX(e),y:re.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.xre.maxX(e)||t.yre.maxY(e)||Number.isNaN(e.x)||Number.isNaN(e.y)),containsRect:(e,t)=>{for(let r of re.points(t))if(!re.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>=re.maxX(e)||re.maxX(t)<=e.x||t.y>=re.maxY(e)||re.maxY(t)<=e.y),overlapHorizontally:(e,t)=>{let r=re.maxX(e),n=re.maxX(t);return r>t.x&&n>e.x},overlapVertically:(e,t)=>{let r=re.maxY(e),n=re.maxY(t);return r>t.y&&n>e.y},doesNotIntersect:(e,t)=>t.find(r=>re.intersects(r,e))===void 0,isEqual:(e,t)=>re.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.xre.maxX(e)&&(r=t.x-re.maxX(e)),t.yre.maxY(e)&&(n=t.y-re.maxY(e)),xr.distance({x:r,y:n},{x:0,y:0})},delta:(e,t)=>{let r={x:re.minX(e),y:re.minY(e)},n={x:re.minX(t),y:re.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=re.minX(e),n=re.minY(e),i=re.maxX(e),o=re.maxY(e);for(let a of t)if(a.xi||a.yo)return!0;return!1},edges:e=>{let[t,r,n,i]=re.cornerPoints(e);return[Ar(t,r),Ar(r,n),Ar(n,i),Ar(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:ke(n)}break;case"left":i.x=t.x-e.width;break;case"right":i.x=t.x+t.width;break;default:ke(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:ke(n)}break;case"top":i.y=t.y-e.height;break;case"bottom":i.y=t.y+t.height;break;default:ke(r)}return i}};function wa(e){return ct(e)?!1:e===2||e===5}var GT={quickfix:e=>((wa(e.widthType)||wa(e.heightType))&&(e.aspectRatio=null),ne(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||wa(e.widthType)||ne(e.maxWidth))&&(e.right=!1),e.widthType=0),e.top&&e.bottom&&((e.fixedSize||wa(e.heightType)||ne(e.maxHeight))&&(e.bottom=!1),e.heightType=0),e)};function yf(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 qT={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=GT.quickfix({left:ne(t)||rn(t),right:ne(r)||rn(r),top:ne(n)||rn(n),bottom:ne(i)||rn(i),widthType:yf(o),heightType:yf(a),aspectRatio:c||null,fixedSize:u===!0}),d=null,h=null,p=0,v=0;if(f.widthType!==0&&typeof o=="string"){let g=parseFloat(o);o.endsWith("fr")?(p=3,d=g):o==="auto"?p=2:(p=1,d=g/100)}else o!==void 0&&typeof o!="string"&&(d=vt.getNumber(o));if(f.heightType!==0&&typeof a=="string"){let g=parseFloat(a);a.endsWith("fr")?(v=3,h=g):a==="auto"?v=2:(v=1,h=parseFloat(a)/100)}else a!==void 0&&typeof a!="string"&&(h=vt.getNumber(a));let b=.5,m=.5;return s&&(b=parseFloat(s)/100),l&&(m=parseFloat(l)/100),{left:f.left?vt.getNumber(t):null,right:f.right?vt.getNumber(r):null,top:f.top?vt.getNumber(n):null,bottom:f.bottom?vt.getNumber(i):null,widthType:p,heightType:v,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?vt.getNumber(t?.sizing.width):null,s=t?.sizing?vt.getNumber(t?.sizing.height):null,l=Sk(e.left,e.right);if(a&&ne(l))i=a-l;else if(r&&wa(e.widthType))i=r.width;else if(ne(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:case 5:break;default:ke(e.widthType)}let c=Sk(e.top,e.bottom);if(s&&ne(c))o=s-c;else if(r&&wa(e.heightType))o=r.height;else if(ne(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:case 5:break;default:ke(e.heightType)}return DD(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}=qT.toSize(e,t,r,i),c=t?.positioning??null,u=c?vt.getNumber(c.width):null,f=c?vt.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?re.pixelAligned(d):d}},MD=200,OD=200;function bf(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 LD(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 LD(e){switch(e){case"minWidth":case"minHeight":return Number.NEGATIVE_INFINITY;case"maxWidth":case"maxHeight":return Number.POSITIVE_INFINITY;default:ke(e,"unknown constraint key")}}function VD(e,t,r,n){return t.minHeight&&(e=Math.max(bf("minHeight",t.minHeight,r,n),e)),t.maxHeight&&(e=Math.min(bf("maxHeight",t.maxHeight,r,n),e)),e}function AD(e,t,r,n){return t.minWidth&&(e=Math.max(bf("minWidth",t.minWidth,r,n),e)),t.maxWidth&&(e=Math.min(bf("maxWidth",t.maxWidth,r,n),e)),e}function DD(e,t,r,n,i){let o=AD(ne(e)?e:MD,r,n,i),a=VD(ne(t)?t:OD,r,n,i);return ne(r.aspectRatio)&&r.aspectRatio>0&&(ne(r.left)&&ne(r.right)?a=o/r.aspectRatio:ne(r.top)&&ne(r.bottom)?o=a*r.aspectRatio:r.widthType!==0?a=o/r.aspectRatio:o=a*r.aspectRatio),{width:o,height:a}}function Sk(e,t){return!ne(e)||!ne(t)?null:e+t}function BD(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 kl(e){return!e._constraints||BD(e)?!1:e._constraints.enabled}function zD(e){let{size:t}=e,{width:r,height:n}=e;return ne(t)&&(r===void 0&&(r=t),n===void 0&&(n=t)),ne(r)&&ne(n)?{width:r,height:n}:null}function ND(e){let t=zD(e);if(t===null)return null;let{left:r,top:n}=e;return ne(r)&&ne(n)?{x:r,y:n,...t}:null}function pl(e,t,r=!0){if(e.positionFixed||e.positionAbsolute)return null;let n=t===1||t===2;if(!kl(e)||n)return ND(e);let i=$D(e),o=jD(t),a=o?{sizing:o,positioning:o,viewport:null}:null;return qT.toRect(i,a,null,r,null)}function $D(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=GT.quickfix({left:ne(t),right:ne(r),top:ne(n),bottom:ne(i),widthType:yf(l),heightType:yf(c),aspectRatio:u||null,fixedSize:f===!0}),h=null,p=null,v=0,b=0;if(d.widthType!==0&&typeof l=="string"){let y=parseFloat(l);l.endsWith("fr")?(v=3,h=y):l==="auto"?v=2:(v=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,g=.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"&&(g=parseFloat(n)/100)),{left:d.left?t:null,right:d.right?r:null,top:d.top?n:null,bottom:d.bottom?i:null,widthType:v,heightType:b,width:h,height:p,aspectRatio:d.aspectRatio||null,centerAnchorX:m,centerAnchorY:g,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth}}var XT=R.createContext({parentSize:0});function jD(e){return e===0||e===1||e===2?null:e}function Cl(){return R.useContext(XT).parentSize}function YT(e){return typeof e=="object"}var HD=e=>{let t=Cl(),{parentSize:r,children:n}=e,i=R.useMemo(()=>({parentSize:r}),[WD(r),UD(r)]);return t===1?n?S(nt,{children:n}):null:S(XT.Provider,{value:i,children:n})};function WD(e){return YT(e)?e.width:e}function UD(e){return YT(e)?e.height:e}function GD(e,t){return S(HD,{parentSize:t,children:e})}function qD(e){let t=Cl();return pl(e,t,!0)}function KT({width:e,height:t}){return e==="auto"||e==="min-content"||t==="auto"||t==="min-content"}var XD=(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))(XD||{}),Qm;function YD(){if(Qm!==void 0)return Qm;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),Qm=t,t}var mo="flexbox-gap-not-supported",kk=!1;function e7(){kk||(kk=!0,!YD()&&document.body.classList.add(mo))}var KD=` [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); } `,QD=` [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); } `,ZD=` [data-framer-component-type="DeprecatedRichText"] span[data-text-fill] { display: inline-block; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; } `,JD=` [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)); } `,e3=` [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))); } `,t3=` [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))); } `,r3=` [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)))); } `,n3=` [data-framer-component-type="DeprecatedRichText"] strong { font-weight: bolder; } `,i3=` [data-framer-component-type="DeprecatedRichText"] em { font-style: italic; } `,o3=` [data-framer-component-type="DeprecatedRichText"] .framer-image { display: block; max-width: 100%; height: auto; } `,a3=` [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; } `,s3=` [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; } `,l3=` [data-framer-component-type="DeprecatedRichText"] ul, [data-framer-component-type="DeprecatedRichText"] ol { display: table; width: 100%; padding-left: 0; margin: 0; } `,c3=` [data-framer-component-type="DeprecatedRichText"] li { display: table-row; counter-increment: list-item; list-style: none; } `,u3=` [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; } `,f3=` [data-framer-component-type="DeprecatedRichText"] ul > li::before { display: table-cell; width: 2.25ch; box-sizing: border-box; padding-right: 0.75ch; content: "\u2022"; } `,d3=['[data-framer-component-type="DeprecatedRichText"] { cursor: inherit; }',s3,a3,KD,QD,ZD,JD,e3,t3,r3,n3,i3,o3,l3,c3,u3,f3],QT=(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))(QT||{}),Pe=QT,Xt="framer-form-input",_f="framer-form-input-wrapper",ZT="framer-form-input-empty",Ck="framer-form-input-forced-focus";function h3(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()}: ${h3(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 p3=[q(`.${Xt}`,{padding:q.variable(Pe.Padding),background:"transparent",fontFamily:q.variable(Pe.FontFamily),fontWeight:q.variable(Pe.FontWeight),fontSize:q.variable(Pe.FontSize),fontStyle:q.variable(Pe.FontStyle),color:q.variable(Pe.FontColor),fontFeatureSettings:q.variable(Pe.FontOpenType),border:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",width:"100%",height:q.variable(Pe.WrapperHeight,"100%"),letterSpacing:q.variable(Pe.FontLetterSpacing),textAlign:q.variable(Pe.FontTextAlignment),lineHeight:q.variable(Pe.FontLineHeight)}),q(`.${Xt}:focus-visible`,{outline:"none"})],m3=[q(`.${_f}`,{overflow:"hidden"})],g3=`var(${Pe.BorderTopWidth}) var(${Pe.BorderRightWidth}) var(${Pe.BorderBottomWidth}) var(${Pe.BorderLeftWidth})`,v3=[`.${_f}:after { content: ""; pointer-events: none; box-sizing: border-box; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-top-left-radius: var(${Pe.BorderRadiusTopLeft}); border-top-right-radius: var(${Pe.BorderRadiusTopRight}); border-bottom-right-radius: var(${Pe.BorderRadiusBottomRight}); border-bottom-left-radius: var(${Pe.BorderRadiusBottomLeft}); border-color: var(${Pe.BorderColor}); border-top-width: var(${Pe.BorderTopWidth}); border-right-width: var(${Pe.BorderRightWidth}); border-bottom-width: var(${Pe.BorderBottomWidth}); border-left-width: var(${Pe.BorderLeftWidth}); border-style: var(${Pe.BorderStyle}); transition: var(${Pe.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; }`],y3="customError",b3="valid";function x3(e){return e!==y3&&e!==b3}function Tk(e){for(let t in e)if(x3(t)&&e?.[t]===!0)return!0;return!1}function w3(e,t,r,n,i){let o=R.useRef(null),a=R.useCallback(c=>{t&&o.current!==!1&&(o.current=!1,c.currentTarget.setCustomValidity(" "),c.currentTarget.reportValidity(),t(c))},[t]),s=R.useCallback(c=>{if(r?.(c),!t&&!e)return;let u=c.target.validity;o.current===!1&&!Tk(u)&&(c.currentTarget.setCustomValidity(""),c.target.reportValidity(),o.current=!0,e?.())},[t,e,r]),l=R.useCallback(c=>{if(!t){n?.(c);return}if(o.current===!1)return;let u=c.currentTarget.validity;if(Tk(u)){a(c);return}n?.(c)},[a,n,t]);return R.useMemo(()=>({onInvalid:a,onChange:s,onBlur:l,onFocus:i}),[a,s,l,i])}var Zm=10,Jm=16,S3={content:"",display:"block",position:"absolute",right:0,top:0,bottom:0,width:`${Jm}px`,boxSizing:"content-box",padding:q.variable(Pe.Padding),border:"none",pointerEvents:"none",backgroundRepeat:"no-repeat",backgroundSize:`${Jm}px`,maskRepeat:"no-repeat",maskSize:`${Jm}px`,backgroundColor:q.variable(Pe.IconColor)};function Ct(e,t){return q.variable(...e.flatMap(r=>[`${r}-rgb`,r]),t)}var k3=[` 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, mark.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)); } `,` mark.framer-text, 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 { background-color: var(--framer-blockquote-text-background-color, var(--framer-text-background-color, initial)); border-radius: var(--framer-blockquote-text-background-radius, var(--framer-text-background-radius, initial)); padding: var(--framer-blockquote-text-background-padding, var(--framer-text-background-padding, initial)); } `,` @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: ${Ct(["--framer-blockquote-text-color","--framer-text-color"],"#000")}; -webkit-text-stroke-color: ${Ct(["--framer-text-stroke-color"],"initial")}; } mark.framer-text { background-color: ${Ct(["--framer-blockquote-text-background-color","--framer-text-background-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: ${Ct(["--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); /* Don't inherit background styles from any parent text style. */ background-color: var(--framer-link-text-background-color, initial); border-radius: var(--framer-link-text-background-radius, initial); padding: var(--framer-link-text-background-padding, initial); } `,` 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: ${Ct(["--framer-blockquote-text-color","--framer-link-text-color","--framer-text-color"],"#000")}; background-color: ${Ct(["--framer-link-text-background-color"],"initial")}; } } `,` 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: ${Ct(["--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)))); background-color: var(--framer-link-hover-text-background-color, var(--framer-link-text-background-color, var(--framer-text-background-color, initial))); border-radius: var(--framer-link-hover-text-background-radius, var(--framer-link-text-background-radius, var(--framer-text-background-radius, initial))); padding: var(--framer-link-hover-text-background-padding, var(--framer-link-text-background-padding, var(--framer-text-background-padding, initial))); } `,` 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: ${Ct(["--framer-link-hover-text-color","--framer-blockquote-text-color","--framer-link-text-color","--framer-text-color"],"#000")}; background-color: ${Ct(["--framer-link-hover-text-background-color","--framer-link-text-background-color","--framer-text-background-color"],"initial")}; } } `,` 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(--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: ${Ct(["--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))); background-color: var(--framer-link-current-text-background-color, var(--framer-link-text-background-color, initial)); border-radius: var(--framer-link-current-text-background-radius, var(--framer-link-text-background-radius, initial)); padding: var(--framer-link-current-text-background-padding, var(--framer-link-text-background-padding, initial)); } `,` 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: ${Ct(["--framer-link-current-text-color","--framer-link-text-color","--framer-text-color"],"#000")}; background-color: ${Ct(["--framer-link-current-text-background-color","--framer-link-text-background-color","--framer-text-background-color"],"initial")}; } } `,` 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: ${Ct(["--framer-link-current-text-color","--framer-link-text-color","--framer-code-text-color","--framer-text-color"],"#000")}; background-color: ${Ct(["--framer-link-current-text-background-color","--framer-link-text-background-color","--framer-text-background-color"],"initial")}; } } `,` 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)))); background-color: var(--framer-link-hover-text-background-color, var(--framer-link-current-text-background-color, var(--framer-link-text-background-color, initial))); border-radius: var(--framer-link-hover-text-background-radius, var(--framer-link-current-text-background-radius, var(--framer-link-text-background-radius, initial))); padding: var(--framer-link-hover-text-background-padding, var(--framer-link-current-text-background-padding, var(--framer-link-text-background-padding, initial))); } `,` 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: ${Ct(["--framer-link-hover-text-color","--framer-link-current-text-color","--framer-link-text-color","--framer-code-text-color","--framer-text-color"],"#000")}; background-color: ${Ct(["--framer-link-hover-text-background-color","--framer-link-current-text-background-color","--framer-link-text-background-color"],"initial")}; } } `,` 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)); background-color: var(--framer-link-hover-text-background-color, var(--framer-link-current-text-background-color, var(--framer-link-text-background-color, var(--framer-text-background-color, initial)))); border-radius: var(--framer-link-hover-text-background-radius, var(--framer-link-current-text-background-radius, var(--framer-link-text-background-radius, var(--framer-text-background-radius, initial)))); padding: var(--framer-link-hover-text-background-padding, var(--framer-link-current-text-background-padding, var(--framer-link-text-background-padding, var(--framer-text-background-padding, initial)))); } `,` @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: ${Ct(["--framer-link-hover-text-color","--framer-link-current-text-color","--framer-link-text-color","--framer-code-text-color","--framer-text-color"],"#000")}; background-color: ${Ct(["--framer-link-hover-text-background-color","--framer-link-current-text-background-color","--framer-link-text-background-color"],"initial")}; } } `,` .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; --framer-text-background-color: initial; --framer-text-background-radius: initial; --framer-text-background-padding: initial; } `,` 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%; } } `],C3=new Set,eg;function JT(e,t,r=C3){if(!(!e||r.has(e)||typeof document>"u")){if(r.add(e),!t){if(!eg){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)eg=n.sheet;else{console.warn("not injecting CSS: injected