1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5591],{24465:function(e,i,n){"use strict";n.d(i,{Z:function(){return a}});var r,s,o=/^((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|disablePictureInPicture|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|inert|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)-.*))$/,a=(r=function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)},s={},function(e){return void 0===s[e]&&(s[e]=r(e)),s[e]})},55591:function(e,i,n){var r;self,r=function(e){return(()=>{"use strict";var i={297:i=>{i.exports=e}},r={};function s(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}};return i[e](o,o.exports,s),o.exports}s.n=e=>
1{var i=e&&e.__esModule?()=>e.default:()=>e;return s.d(i,{a:i}),i},s.d=(e,i)=>{for(var n in i)s.o(i,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},s.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{let e;s.r(o),s.d(o,{default:()=>rw});var i,r=s(297),a=s.n(r);let l=e=>e,u={some:0,all:1},h=e=>/^\-?\d*\.?\d+$/.test(e),c=e=>/^0[^.\s]+$/.test(e),d=e=>Array.isArray(e);function p(e,i){-1===e.indexOf(i)&&e.push(i)}function m(e,i){let n=e.indexOf(i);n>-1&&e.splice(n,1)}class f{constructor(){this.subscriptions=[]}add(e){return p(this.subscriptions,e),()=>m(this.subscriptions,e)}notify(e,i,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,i,n);else for(let s=0;s<r;s++){let r=this.subscriptions[s];r&&r(e,i,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class g{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let i=this.order.indexOf(e);-1!==i&&(this.order.splice(i,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}let y=["prepare","read","update","preRender","render","postRender"],{schedule:v,cancel:x,state:P,steps:b}=function(e,i){let n=!1,r=!0,s={delta:0,timestamp:0,isProcessing:!1},o=y.reduce((e,i)=>(e[i]=function(e){let i=new g,n=new g,r=0,s=!1,o=!1,a=new WeakSet,l={schedule:(e,o=!1,l=!1)=>{let u=l&&s,h=u?i:n;return o&&a.add(e),h.add(e)&&u&&s&&(r=i.order.length),e},cancel:e=>{n.remove(e),a.delete(e)},process:u=>{if(s)o=!0;else{if(s=!0,[i,n]=[n,i],n.clear(),r=i.order.length)for(let n=0;n<r;n++){let r=i.order[n];r(u),a.has(r)&&(l.schedule(r),e())}s=!1,o&&(o=!1,l.process(u))}}};return l}(()=>n=!0),e),{}),a=e=>o[e].process(s),l=()=>{let i=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(i-s.timestamp,40),1),s.timestamp=i,s.isProcessing=!0,y.forEac
1h(a),s.isProcessing=!1,n&&(r=!1,e(l))};return{schedule:y.reduce((i,a)=>{let u=o[a];return i[a]=(i,o=!1,a=!1)=>(n||(n=!0,r=!0,s.isProcessing||e(l)),u.schedule(i,o,a)),i},{}),cancel:e=>y.forEach(i=>o[i].cancel(e)),state:s,steps:o}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:l),T={current:void 0};class S{constructor(e,i={}){this.version="10.16.5",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,i=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=P;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,v.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>v.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=!isNaN(parseFloat(this.current)),this.owner=i.owner}onChange(e){return this.on("change",e)}on(e,i){this.events[e]||(this.events[e]=new f);let n=this.events[e].add(i);return"change"===e?()=>{n(),v.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,i){this.passiveEffect=e,this.stopPassiveEffect=i}set(e,i=!0){i&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,i)}setWithVelocity(e,i,n){this.set(i),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return T.current&&T.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e,i;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(i=this.timeDelta)?1e3/i*e:0):0}start(e){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=e(i),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function w(e,i){return new S(e,i)}let A=e=>i=>"string"==typeof i&&i.startsWith(e),E=A("--"),C=A("var(--"),V=e=>Math.round(1e5*e)/1e5,k=/(-)?([\d]*\.?[\d])+/g,M=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,D=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function R(e){return"string"==typeof e}let L=(e,i,n)=>Math.min(Math.max(n,e),i),j={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},F={...j,transform:e=>L(0,1,e)},B={...j,default:1},O=(e,i)=>n=>!!(R(n)&&D.test(n)&&n.startsWith(e)||i&&Object.prototype.hasOwnProperty.call(n,i)),I=(e,i,n)=>r=>{if(!R(r))return r;let[s,o,a,l]=r.match(k);return{[e]:parseFloat(s),[i]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}},U={...j,transform:e=>Math.round(L(0,255,e))},N={test:O("rgb","red"),parse:I("red","green","blue"),transform:({red:e,green:i,blue:n,alpha:r=1})=>"rgba("+U.transform(e)+", "+U.transform(i)+", "+U.transform(n)+", "+V(F.transform(r))+")"},$={test:O("#"),parse:function(e){let i="",n="",r="",s="";return e.length>5?(i=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(i=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),i+=i,n+=n,r+=r,s+=s),{red:parseInt(i,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}},transform:N.transform},W=e=>({test:i=>R(i)&&i.endsWith(e)&&1===i.split(" ").length,parse:parseFloat,transform:i=>`${i}${e}`}
1),H=W("deg"),z=W("%"),X=W("px"),Y=W("vh"),G=W("vw"),q={...z,parse:e=>z.parse(e)/100,transform:e=>z.transform(100*e)},Z={test:O("hsl","hue"),parse:I("hue","saturation","lightness"),transform:({hue:e,saturation:i,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+z.transform(V(i))+", "+z.transform(V(n))+", "+V(F.transform(r))+")"},K={test:e=>N.test(e)||$.test(e)||Z.test(e),parse:e=>N.test(e)?N.parse(e):Z.test(e)?Z.parse(e):$.parse(e),transform:e=>R(e)?e:e.hasOwnProperty("red")?N.transform(e):Z.transform(e)},_={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:l},J={regex:M,countKey:"Colors",token:"${c}",parse:K.parse},Q={regex:k,countKey:"Numbers",token:"${n}",parse:j.parse};function tt(e,{regex:i,countKey:n,token:r,parse:s}){let o=e.tokenised.match(i);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(i,r),e.values.push(...o.map(s)))}function te(e){let i=e.toString(),n={value:i,tokenised:i,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&tt(n,_),tt(n,J),tt(n,Q),n}function ti(e){return te(e).values}function tn(e){let{values:i,numColors:n,numVars:r,tokenised:s}=te(e),o=i.length;return e=>{let i=s;for(let s=0;s<o;s++)i=s<r?i.replace(_.token,e[s]):s<r+n?i.replace(J.token,K.transform(e[s])):i.replace(Q.token,V(e[s]));return i}}let tr=e=>"number"==typeof e?0:e,ts={test:function(e){var i,n;return isNaN(e)&&R(e)&&((null===(i=e.match(k))||void 0===i?void 0:i.length)||0)+((null===(n=e.match(M))||void 0===n?void 0:n.length)||0)>0},parse:ti,createTransformer:tn,getAnimatableNone:function(e){let i=ti(e);return tn(e)(i.map(tr))}},to=new Set(["brightness","contrast","saturate","opacity"]);function ta(e){let[i,n]=e.slice(0,-1).split("(");if("drop-shadow"===i)return e;let[r]=n.match(k)||[];if(!r)return e;let s=n.replace(r,""),o=to.has(i)?1:0;return r!==n&&(o*=100),i+"("+o+s+")"}let tl=/([a-z-]*)\(.*?\)/g,tu={...ts,getAnimatableNone:e=>{let i=e.match(tl);return i?i.map(ta).join(" "):e}},th={...j,transform:Math.round},tc={borderWidth:X,borderTopWidth:X,borderRightWidth:X,borderBottomWidth:X,borderLeftWidth:X,borderRadius:X,radius:X,borderTopLeftRadius:X,borderTopRightRadius:X,borderBottomRightRadius:X,borderBottomLeftRadius:X,width:X,maxWidth:X,height:X,maxHeight:X,size:X,top:X,right:X,bottom:X,left:X,padding:X,paddingTop:X,paddingRight:X,paddingBottom:X,paddingLeft:X,margin:X,marginTop:X,marginRight:X,marginBottom:X,marginLeft:X,rotate:H,rotateX:H,rotateY:H,rotateZ:H,scale:B,scaleX:B,scaleY:B,scaleZ:B,skew:H,skewX:H,skewY:H,distance:X,translateX:X,translateY:X,translateZ:X,x:X,y:X,z:X,perspective:X,transformPerspective:X,opacity:F,originX:q,originY:q,originZ:X,zIndex:th,fillOpacity:F,strokeOpacity:F,numOctaves:th},td={...tc,color:K,backgroundColor:K,outlineColor:K,fill:K,stroke:K,borderColor:K,borderTopColor:K,borderRightColor:K,borderBottomColor:K,borderLeftColor:K,filter:tu,WebkitFilter:tu},tp=e=>td[e];function tm(e,i){let n=tp(e);return n!==tu&&(n=ts),n.getAnimatableNone?n.getAnimatableNone(i):void 0}let tf=e=>i=>i.test(e),tg=[j,X,z,H,G,Y,{test:e=>"auto"===e,parse:e=>e}],ty=e=>tg.find(tf(e)),tv=[...tg,K,ts];function tx(e,i,n,r={},s={}){return"function"==typeof i&&(i=i(void 0!==n?n:e.custom,r,s)),"string"==typeof i&&(i=e.variants&&e.variants[i]),"function"==typeof i&&(i=i(void 0!==n?n:e.custom,r,s)),i}function tP(e,i,n){let r=e.getProps();return tx(r,i,void 0!==n?n:r.custom,function(e){let i={};return e.values.forEach((e,n)=>i[n]=e.get()),i}(e),function(e){let i={};return e.values.forEach((e,n)=>i[n]=e.getVelocity()),i}(e))}function tb(e,i){var n,r;let s=tP(e,i),{transitionEnd:o={},transition:a={},...l}=s?e.makeTargetAnimatable(s,!1):{};for(let i in l={...l,...o})r=d(n=l[i])?n[n.length-1]||0:n,e.hasValue(i)?e.getValue(i).set(r):e.addValue(i,w(r))}function tT(e,i){[...i].reverse().forEach(n=>{let r=e.getVariant(n);r&&tb(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{tT(e,i)})})}let tS=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tw=new Set(tS),tA=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),tE="data-"+tA("framerAppearId"),tC=e=>1e3*e,tV=e=>e/1e3,tk=e=>Array.isArray(e)&&"number"==typeof e[0],tM=([e,i,n,r])=>`cubic-bezier(${e}, ${i}, ${n}, ${r})`,tD={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tM([0,.65,.55,1]),circOut:tM([.55,0,1,.45]),backIn:tM([.31,.01,.66,-.59]),backOut:tM([.33,1.53,.69,.99])},tR=(e,i,n)=>(((1-3*n+3*i)*e+(3*n-6*i))*e+3*i)*e;function tL(e,i,n,r){return e===i&&n===r?l:s=>0===s||1===s?s:tR(function(e,i,n,r,s){let o,a,l=0;do(o=tR(a=i+(n-i)/2,r,s)-e)>
10?n=a:i=a;while(Math.abs(o)>1e-7&&++l<12);return a}(s,0,1,e,n),i,r)}let tj=tL(.42,0,1,1),tF=tL(0,0,.58,1),tB=tL(.42,0,.58,1),tO=e=>i=>i<=.5?e(2*i)/2:(2-e(2*(1-i)))/2,tI=e=>i=>1-e(1-i),tU=e=>1-Math.sin(Math.acos(e)),tN=tI(tU),t$=tO(tN),tW=tL(.33,1.53,.69,.99),tH=tI(tW),tz=tO(tH),tX={linear:l,easeIn:tj,easeInOut:tB,easeOut:tF,circIn:tU,circInOut:t$,circOut:tN,backIn:tH,backInOut:tz,backOut:tW,anticipate:e=>(e*=2)<1?.5*tH(e):.5*(2-Math.pow(2,-10*(e-1)))},tY=e=>{if(Array.isArray(e)){l(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[i,n,r,s]=e;return tL(i,n,r,s)}return"string"==typeof e?(l(void 0!==tX[e],`Invalid easing type '${e}'`),tX[e]):e},tG=(e,i,n)=>-n*e+n*i+e;function tq(e,i,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(i-e)*n:n<.5?i:n<2/3?e+(i-e)*(2/3-n)*6:e}let tZ=(e,i,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(i*i-r)+r))},tK=[$,N,Z];function t_(e){let i=tK.find(i=>i.test(e));l(!!i,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=i.parse(e);return i===Z&&(n=function({hue:e,saturation:i,lightness:n,alpha:r}){e/=360,n/=100;let s=0,o=0,a=0;if(i/=100){let r=n<.5?n*(1+i):n+i-n*i,l=2*n-r;s=tq(l,r,e+1/3),o=tq(l,r,e),a=tq(l,r,e-1/3)}else s=o=a=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let tJ=(e,i)=>{let n=t_(e),r=t_(i),s={...n};return e=>(s.red=tZ(n.red,r.red,e),s.green=tZ(n.green,r.green,e),s.blue=tZ(n.blue,r.blue,e),s.alpha=tG(n.alpha,r.alpha,e),N.transform(s))},tQ=(e,i)=>n=>i(e(n)),t0=(...e)=>e.reduce(tQ),t1=(e,i)=>n=>`${n>0?i:e}`;function t5(e,i){return"number"==typeof e?n=>tG(e,i,n):K.test(e)?tJ(e,i):e.startsWith("var(")?t1(e,i):t9(e,i)}let t2=(e,i)=>{let n=[...e],r=n.length,s=e.map((e,n)=>t5(e,i[n]));return e=>{for(let i=0;i<r;i++)n[i]=s[i](e);return n}},t3=(e,i)=>{let n={...e,...i},r={};for(let s in n)void 0!==e[s]&&void 0!==i[s]&&(r[s]=t5(e[s],i[s]));return e=>{for(let i in r)n[i]=r[i](e);return n}},t9=(e,i)=>{let n=ts.createTransformer(i),r=te(e),s=te(i);return r.numVars===s.numVars&&r.numColors===s.numColors&&r.numNumbers>=s.numNumbers?t0(t2(r.values,s.values),n):(l(!0,`Complex values '${e}' and '${i}' 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.`),t1(e,i))},t4=(e,i,n)=>{let r=i-e;return 0===r?1:(n-e)/r},t6=(e,i)=>n=>tG(e,i,n);function t7(e,i,{clamp:n=!0,ease:r,mixer:s}={}){let o=e.length;if(l(o===i.length,"Both input and output ranges must be the same length"),1===o)return()=>i[0];e[0]>e[o-1]&&(e=[...e].reverse(),i=[...i].reverse());let a=function(e,i,n){var r;let s=[],o=n||("number"==typeof(r=e[0])?t6:"string"==typeof r?K.test(r)?tJ:t9:Array.isArray(r)?t2:"object"==typeof r?t3:t6),a=e.length-1;for(let n=0;n<a;n++){let r=o(e[n],e[n+1]);i&&(r=t0(Array.isArray(i)?i[n]||l:i,r)),s.push(r)}return s}(i,r,s),u=a.length,h=i=>{let n=0;if(u>1)for(;n<e.length-2&&!(i<e[n+1]);n++);let r=t4(e[n],e[n+1],i);return a[n](r)};return n?i=>h(L(e[0],e[o-1],i)):h}function t8({duration:e=300,keyframes:i,times:n,ease:r="easeInOut"}){let s=Array.isArray(r)&&"number"!=typeof r[0]?r.map(tY):tY(r),o={done:!1,value:i[0]},a=t7((n&&n.length===i.length?n:function(e){let i=[0];return function(e,i){let n=e[e.length-1];for(let r=1;r<=i;r++){let s=t4(0,i,r);e.push(tG(n,1,s))}}(i,e.length-1),i}(i)).map(i=>i*e),i,{ease:Array.isArray(s)?s:i.map(()=>s||tB).splice(0,i.length-1)});return{calculatedDuration:e,next:i=>(o.value=a(i),o.done=i>=e,o)}}function et(e,i,n){var r,s;let o=Math.max(i-5,0);return r=n-e(o),(s=i-o)?1e3/s*r:0}function ee(e,i){return e*Math.sqrt(1-i*i)}let ei=["duration","bounce"],en=["stiffness","damping","mass"];function er(e,i){return i.some(i=>void 0!==e[i])}function es({keyframes:e,restDelta:i,restSpeed:n,...r}){let s;let o=e[0],a=e[e.length-1],u={done:!1,value:o},{stiffness:h,damping:c,mass:d,velocity:p,duration:m,isResolvedFromDuration:f}=function(e){let i={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!er(e,en)&&er(e,ei)){let n=function({duration:e=800,bounce:i=.25,velocity:n=0,mass:r=1}){let s,o;l(e<=tC(10),"Spring duration must be 10 seconds or less");let a=1-i;a=L(.05,1,a),e=L(.01,10,tV(e)),a<1?(s=i=>{let r=i*a,s=r*e;return .001-(r-n)/ee(i,a)*Math.exp(-s)},o=i=>{let r=i*a*e,o=Math.pow(a,2)*Math.pow(i,2)*e,l=ee(Math.pow(i,2),a);return(.001-s(i)>0?-1:1)*((r*n+n-o)*Math.exp(-r))/l}):(s=i=>Math.exp(-i*e)*((i-n)*e+1)-.001,o=i=>e*e*(n-i)*Math.exp(-i*e));let u=function(e,i,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/i(r);return r}(s,o,5/e);if(e=tC(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{let i=Math.pow(u,2)*r;
1return{stiffness:i,damping:2*a*Math.sqrt(r*i),duration:e}}}(e);(i={...i,...n,velocity:0,mass:1}).isResolvedFromDuration=!0}return i}(r),g=p?-tV(p):0,y=c/(2*Math.sqrt(h*d)),v=a-o,x=tV(Math.sqrt(h/d)),P=5>Math.abs(v);if(n||(n=P?.01:2),i||(i=P?.005:.5),y<1){let e=ee(x,y);s=i=>a-Math.exp(-y*x*i)*((g+y*x*v)/e*Math.sin(e*i)+v*Math.cos(e*i))}else if(1===y)s=e=>a-Math.exp(-x*e)*(v+(g+x*v)*e);else{let e=x*Math.sqrt(y*y-1);s=i=>{let n=Math.exp(-y*x*i),r=Math.min(e*i,300);return a-n*((g+y*x*v)*Math.sinh(r)+e*v*Math.cosh(r))/e}}return{calculatedDuration:f&&m||null,next:e=>{let r=s(e);if(f)u.done=e>=m;else{let o=g;0!==e&&(o=y<1?et(s,e,r):0);let l=Math.abs(o)<=n,h=Math.abs(a-r)<=i;u.done=l&&h}return u.value=u.done?a:r,u}}}function eo({keyframes:e,velocity:i=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:a,min:l,max:u,restDelta:h=.5,restSpeed:c}){let d,p;let m=e[0],f={done:!1,value:m},g=e=>void 0===l?u:void 0===u||Math.abs(l-e)<Math.abs(u-e)?l:u,y=n*i,v=m+y,x=void 0===a?v:a(v);x!==v&&(y=x-m);let P=e=>-y*Math.exp(-e/r),b=e=>x+P(e),T=e=>{let i=P(e),n=b(e);f.done=Math.abs(i)<=h,f.value=f.done?x:n},S=e=>{var i;i=f.value,(void 0!==l&&i<l||void 0!==u&&i>u)&&(d=e,p=es({keyframes:[f.value,g(f.value)],velocity:et(b,e,f.value),damping:s,stiffness:o,restDelta:h,restSpeed:c}))};return S(0),{calculatedDuration:null,next:e=>{let i=!1;return p||void 0!==d||(i=!0,T(e),S(e)),void 0!==d&&e>d?p.next(e-d):(i||T(e),f)}}}let ea=e=>{let i=({timestamp:i})=>e(i);return{start:()=>v.update(i,!0),stop:()=>x(i),now:()=>P.isProcessing?P.timestamp:performance.now()}};function el(e){let i=0,n=e.next(i);for(;!n.done&&i<2e4;)i+=50,n=e.next(i);return i>=2e4?1/0:i}let eu={decay:eo,inertia:eo,tween:t8,keyframes:t8,spring:es};function eh({autoplay:e=!0,delay:i=0,driver:n=ea,keyframes:r,type:s="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:l="loop",onPlay:u,onStop:h,onComplete:c,onUpdate:d,...p}){let m,f,g,y,v,x=1,P=!1,b=()=>{v=new Promise(e=>{y=e})};b();let T=eu[s]||t8;T!==t8&&"number"!=typeof r[0]&&(f=t7([0,100],r,{clamp:!1}),r=[0,100]);let S=T({...p,keyframes:r});"mirror"===l&&(g=T({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let w="idle",A=null,E=null,C=null;null===S.calculatedDuration&&o&&(S.calculatedDuration=el(S));let{calculatedDuration:V}=S,k=1/0,M=1/0;null!==V&&(M=(k=V+a)*(o+1)-a);let D=0,R=e=>{if(null===E)return;x>0&&(E=Math.min(E,e)),x<0&&(E=Math.min(e-M/x,E));let n=(D=null!==A?A:Math.round(e-E)*x)-i*(x>=0?1:-1),s=x>=0?n<0:n>M;D=Math.max(n,0),"finished"===w&&null===A&&(D=M);let u=D,h=S;if(o){let e=D/k,i=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&i--;let r=!!((i=Math.min(i,o+1))%2);r&&("reverse"===l?(n=1-n,a&&(n-=a/k)):"mirror"===l&&(h=g));let s=L(0,1,n);D>M&&(s="reverse"===l&&r?1:0),u=s*k}let c=s?{done:!1,value:r[0]}:h.next(u);f&&(c.value=f(c.value));let{done:p}=c;s||null===V||(p=x>=0?D>=M:D<=0);let m=null===A&&("finished"===w||"running"===w&&p);return d&&d(c.value),m&&B(),c},j=()=>{m&&m.stop(),m=void 0},F=()=>{w="idle",j(),y(),b(),E=C=null},B=()=>{w="finished",c&&c(),j(),y()},O=()=>{if(P)return;m||(m=n(R));let e=m.now();u&&u(),null!==A?E=e-A:E&&"finished"!==w||(E=e),"finished"===w&&b(),C=E,A=null,w="running",m.start()};e&&O();let I={then:(e,i)=>v.then(e,i),get time(){return tV(D)},set time(t){D=t=tC(t),null===A&&m&&0!==x?E=m.now()-t/x:A=t},get duration(){return tV(null===S.calculatedDuration?el(S):S.calculatedDuration)},get speed(){return x},set speed(t){t!==x&&m&&(x=t,I.time=tV(D))},get state(){return w},play:O,pause:()=>{w="paused",A=D},stop:()=>{P=!0,"idle"!==w&&(w="idle",h&&h(),F())},cancel:()=>{null!==C&&R(C),F()},complete:()=>{w="finished"},sample:e=>(E=0,R(e))};return I}let ec=()=>(void 0===e&&(e=Object.hasOwnProperty.call(Element.prototype,"animate")),e),ed=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ep={type:"spring",stiffness:500,damping:25,restSpeed:10},em={type:"keyframes",duration:.8},ef={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eg=(e,{keyframes:i})=>i.length>2?em:tw.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===i[1]?2*Math.sqrt(550):30,restSpeed:10}:ep:ef,ey=(e,i)=>!("zIndex"===e||"number"!=typeof i&&!Array.isArray(i)&&("string"!=typeof i||!ts.test(i)&&"0"!==i||i.startsWith("url(")));function ev(e,i){return e[i]||e.default||e}let ex=(e,i,n,r={})=>s=>{let o=ev(r,e)||{},a=o.delay||r.delay||0,{elapsed:u=0}=r;u-=tC(a);let h=function(e,i,n,r){let s,o;let a=ey(i,n);s=Array.isArray(n)?[...n]:[null,n];let l=void 0!==r.from?r.from:e.get(),u=[];for(let e=0;e<s.length;e++){var h;null===s[e]&&(s[e]=0===e?l:s[e-1]),("number"==typeof(h=s[e])?0===h:null!==h?"none"===h||"0"===h||c(h):void 0)&&u.push(e),"string"==typeof s[e]&&"none"!==s[e]&&"0"!==s[e]&&(o=s[e])}
1if(a&&u.length&&o)for(let e=0;e<u.length;e++)s[u[e]]=tm(i,o);return s}(i,e,n,o),d=h[0],p=h[h.length-1],m=ey(e,d),f=ey(e,p);l(m===f,`You are trying to animate ${e} from "${d}" to "${p}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${p} via the \`style\` property.`);let g={keyframes:h,velocity:i.getVelocity(),ease:"easeOut",...o,delay:-u,onUpdate:e=>{i.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s(),o.onComplete&&o.onComplete()}};if(function({when:e,delay:i,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:l,from:u,elapsed:h,...c}){return!!Object.keys(c).length}(o)||(g={...g,...eg(e,g)}),g.duration&&(g.duration=tC(g.duration)),g.repeatDelay&&(g.repeatDelay=tC(g.repeatDelay)),!m||!f||!1===o.type)return function({keyframes:e,delay:i,onUpdate:n,onComplete:r}){let s=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:l,pause:l,stop:l,then:e=>(e(),Promise.resolve()),cancel:l,complete:l});return i?eh({keyframes:[0,1],duration:0,delay:i,onComplete:s}):s()}(g);if(i.owner&&i.owner.current instanceof HTMLElement&&!i.owner.getProps().onUpdate){let n=function(e,i,{onUpdate:n,onComplete:r,...s}){if(!ec()||!ed.has(i)||s.repeatDelay||"mirror"===s.repeatType||0===s.damping||"inertia"===s.type)return!1;let o,a,u=!1,h=()=>{a=new Promise(e=>{o=e})};h();let{keyframes:c,duration:d=300,ease:p,times:m}=s;if("spring"===s.type||"backgroundColor"===i||!function e(i){return!!(!i||"string"==typeof i&&tD[i]||tk(i)||Array.isArray(i)&&i.every(e))}(s.ease)){let e=eh({...s,repeat:0,delay:0}),i={done:!1,value:c[0]},n=[],r=0;for(;!i.done&&r<2e4;)i=e.sample(r),n.push(i.value),r+=10;m=void 0,c=n,d=r-10,p="linear"}let f=function(e,i,n,{delay:r=0,duration:s,repeat:o=0,repeatType:a="loop",ease:l,times:u}={}){let h={[i]:n};u&&(h.offset=u);let c=function e(i){if(i)return tk(i)?tM(i):Array.isArray(i)?i.map(e):tD[i]}(l);return Array.isArray(c)&&(h.easing=c),e.animate(h,{delay:r,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,i,c,{...s,duration:d,ease:p,times:m});s.syncStart&&(f.startTime=P.isProcessing?P.timestamp:document.timeline?document.timeline.currentTime:performance.now());let g=()=>f.cancel(),y=()=>{v.update(g),o(),h()};return f.onfinish=()=>{e.set(function(e,{repeat:i,repeatType:n="loop"}){return e[i&&"loop"!==n&&i%2==1?0:e.length-1]}(c,s)),r&&r(),y()},{then:(e,i)=>a.then(e,i),attachTimeline:e=>(f.timeline=e,f.onfinish=null,l),get time(){return tV(f.currentTime||0)},set time(t){f.currentTime=tC(t)},get speed(){return f.playbackRate},set speed(t){f.playbackRate=t},get duration(){return tV(d)},play:()=>{u||(f.play(),x(g))},pause:()=>f.pause(),stop:()=>{if(u=!0,"idle"===f.playState)return;let{currentTime:i}=f;if(i){let n=eh({...s,autoplay:!1});e.setWithVelocity(n.sample(i-10).value,n.sample(i).value,10)}y()},complete:()=>f.finish(),cancel:y}}(i,e,g);if(n)return n}return eh(g)},eP=e=>!!(e&&e.getVelocity);function eb(e){return!!(eP(e)&&e.add)}function eT(e,i,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=e.makeTargetAnimatable(i),u=e.getValue("willChange");r&&(o=r);let h=[],c=s&&e.animationState&&e.animationState.getState()[s];for(let i in l){let r=e.getValue(i),s=l[i];if(!r||void 0===s||c&&function({protectedKeys:e,needsAnimating:i},n){let r=e.hasOwnProperty(n)&&!0!==i[n];return i[n]=!1,r}(c,i))continue;let a={delay:n,elapsed:0,...o};if(window.HandoffAppearAnimations&&!r.hasAnimated){let n=e.getProps()[tE];n&&(a.elapsed=window.HandoffAppearAnimations(n,i,r,v),a.syncStart=!0)}r.start(ex(i,r,s,e.shouldReduceMotion&&tw.has(i)?{type:!1}:a));let d=r.animation;eb(u)&&(u.add(i),d.then(()=>u.remove(i))),h.push(d)}return a&&Promise.all(h).then(()=>{a&&tb(e,a)}),h}function eS(e,i,n={}){let r=tP(e,i,n.custom),{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);let o=r?()=>Promise.all(eT(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:l}=s;return function(e,i,n=0,r=0,s=1,o){let a=[],l=(e.variantChildren.size-1)*r,u=1===s?(e=0)=>e*r:(e=0)=>
1l-e*r;return Array.from(e.variantChildren).sort(ew).forEach((e,r)=>{e.notify("AnimationStart",i),a.push(eS(e,i,{...o,delay:n+u(r)}).then(()=>e.notify("AnimationComplete",i)))}),Promise.all(a)}(e,i,o+r,a,l,n)}:()=>Promise.resolve(),{when:l}=s;if(l){let[e,i]="beforeChildren"===l?[o,a]:[a,o];return e().then(()=>i())}return Promise.all([o(),a(n.delay)])}function ew(e,i){return e.sortNodePosition(i)}function eA(e,i,n={}){let r;if(e.notify("AnimationStart",i),Array.isArray(i))r=Promise.all(i.map(i=>eS(e,i,n)));else if("string"==typeof i)r=eS(e,i,n);else{let s="function"==typeof i?tP(e,i,n.custom):i;r=Promise.all(eT(e,s,n))}return r.then(()=>e.notify("AnimationComplete",i))}function eE(){let e=!1,i=new Set,n={subscribe:e=>(i.add(e),()=>{i.delete(e)}),start(n,r){l(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let s=[];return i.forEach(e=>{s.push(eA(e,n,{transitionOverride:r}))}),Promise.all(s)},set:n=>(l(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),i.forEach(e=>{Array.isArray(n)?tT(e,n):"string"==typeof n?tT(e,[n]):tb(e,n)})),stop(){i.forEach(e=>{!function(e){e.values.forEach(e=>e.stop())}(e)})},mount:()=>(e=!0,()=>{e=!1,n.stop()})};return n}function eC(e){let i=(0,r.useRef)(null);return null===i.current&&(i.current=e()),i.current}let eV="undefined"!=typeof document,ek=eV?r.useLayoutEffect:r.useEffect,eM=(0,r.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),eD=(0,r.createContext)({}),eR=(0,r.createContext)(null),eL=(0,r.createContext)({strict:!1});function ej(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function eF(e){return"string"==typeof e||Array.isArray(e)}function eB(e){return"object"==typeof e&&"function"==typeof e.start}let eO=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eI=["initial",...eO];function eU(e){return eB(e.animate)||eI.some(i=>eF(e[i]))}function eN(e){return!!(eU(e)||e.variants)}function e$(e){return Array.isArray(e)?e.join(" "):e}let eW={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"]},eH={};for(let e in eW)eH[e]={isEnabled:i=>eW[e].some(e=>!!i[e])};let ez=(0,r.createContext)({}),eX=(0,r.createContext)({}),eY=Symbol.for("motionComponentSymbol"),eG=["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 eq(e){return"string"==typeof e&&!e.includes("-")&&!!(eG.indexOf(e)>-1||/[A-Z]/.test(e))}let eZ={};function eK(e,{layout:i,layoutId:n}){return tw.has(e)||e.startsWith("origin")||(i||void 0!==n)&&(!!eZ[e]||"opacity"===e)}let e_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eJ=tS.length,eQ=(e,i)=>i&&"number"==typeof e?i.transform(e):e;function e0(e,i,n,r){let{style:s,vars:o,transform:a,transformOrigin:l}=e,u=!1,h=!1,c=!0;for(let e in i){let n=i[e];if(E(e)){o[e]=n;continue}let r=tc[e],d=eQ(n,r);if(tw.has(e)){if(u=!0,a[e]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else e.startsWith("origin")?(h=!0,l[e]=d):s[e]=d}if(i.transform||(u||r?s.transform=function(e,{enableHardwareAcceleration:i=!0,allowTransformNone:n=!0},r,s){let o="";for(let i=0;i<eJ;i++){let n=tS[i];void 0!==e[n]&&(o+=`${e_[n]||n}(${e[n]}) `)}return i&&!e.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(e,r?"":o):n&&r&&(o="none"),o}(e.transform,n,c,r):s.transform&&(s.transform="none")),h){let{originX:e="50%",originY:i="50%",originZ:n=0}=l;s.transformOrigin=`${e} ${i} ${n}`}}function e1(e,i,n){for(let r in i)eP(i[r])||eK(r,n)||(e[r]=i[r])}let e5=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function e2(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e5.has(e)}let e3=e=>!e2(e);try{(i=n(24465).Z)&&(e3=e=>e.startsWith("on")?!e2(e):i(e))}catch(e){}function e9(e,i,n){return"string"==typeof e?e:X.transform(i+n*e)}let e4={offset:"stroke-dashoffset",array:"stroke-dasharray"},e6={offset:"strokeDashoffset",array:"strokeDasharray"};function e7(e,{attrX:i,attrY:n,attrScale:r,originX:s,originY:o,pathLength:a,pathSpacing:l=1,pathOffset:u=0,...h},c,d,p){var m,f;
1if(e0(e,h,c,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};let{attrs:g,style:y,dimensions:v}=e;g.transform&&(v&&(y.transform=g.transform),delete g.transform),v&&(void 0!==s||void 0!==o||y.transform)&&(y.transformOrigin=(m=void 0!==s?s:.5,f=void 0!==o?o:.5,`${e9(m,v.x,v.width)} ${e9(f,v.y,v.height)}`)),void 0!==i&&(g.x=i),void 0!==n&&(g.y=n),void 0!==r&&(g.scale=r),void 0!==a&&function(e,i,n=1,r=0,s=!0){e.pathLength=1;let o=s?e4:e6;e[o.offset]=X.transform(-r);let a=X.transform(i),l=X.transform(n);e[o.array]=`${a} ${l}`}(g,a,l,u,!1)}let e8=e=>"string"==typeof e&&"svg"===e.toLowerCase();function it(e,{style:i,vars:n},r,s){for(let o in Object.assign(e.style,i,s&&s.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let ie=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 ii(e,i,n,r){for(let n in it(e,i,void 0,r),i.attrs)e.setAttribute(ie.has(n)?n:tA(n),i.attrs[n])}function ir(e,i){let{style:n}=e,r={};for(let s in n)(eP(n[s])||i.style&&eP(i.style[s])||eK(s,e))&&(r[s]=n[s]);return r}function is(e,i){let n=ir(e,i);for(let r in e)(eP(e[r])||eP(i[r]))&&(n[-1!==tS.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}function io(e){let i=eP(e)?e.get():e;return i&&"object"==typeof i&&i.mix&&i.toValue?i.toValue():i}let ia=e=>(i,n)=>{let s=(0,r.useContext)(eD),o=(0,r.useContext)(eR),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:i,onMount:n},r,s,o){let a={latestValues:function(e,i,n,r){let s={},o=r(e,{});for(let e in o)s[e]=io(o[e]);let{initial:a,animate:l}=e,u=eU(e),h=eN(e);i&&h&&!u&&!1!==e.inherit&&(void 0===a&&(a=i.initial),void 0===l&&(l=i.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===a)?l:a;return d&&"boolean"!=typeof d&&!eB(d)&&(Array.isArray(d)?d:[d]).forEach(i=>{let n=tx(e,i);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let i=a[e];Array.isArray(i)&&(i=i[c?i.length-1:0]),null!==i&&(s[e]=i)}for(let e in r)s[e]=r[e]}),s}(r,s,o,e),renderState:i()};return n&&(a.mount=e=>n(r,e,a)),a})(e,i,s,o);return n?a():eC(a)},il={useVisualState:ia({scrapeMotionValuesFromProps:is,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onMount:(e,i,{renderState:n,latestValues:r})=>{v.read(()=>{try{n.dimensions="function"==typeof i.getBBox?i.getBBox():i.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}}),v.render(()=>{e7(n,r,{enableHardwareAcceleration:!1},e8(i.tagName),e.transformTemplate),ii(i,n)})}})},iu={useVisualState:ia({scrapeMotionValuesFromProps:ir,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function ih(e,i,n,r={passive:!0}){return e.addEventListener(i,n,r),()=>e.removeEventListener(i,n)}let ic=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function id(e,i="page"){return{point:{x:e[i+"X"],y:e[i+"Y"]}}}function ip(e,i,n,r){return ih(e,i,e=>ic(e)&&n(e,id(e)),r)}function im(e){let i=null;return()=>null===i&&(i=e,()=>{i=null})}let ig=im("dragHorizontal"),iy=im("dragVertical");function iv(e){let i=!1;if("y"===e)i=iy();else if("x"===e)i=ig();else{let e=ig(),n=iy();e&&n?i=()=>{e(),n()}:(e&&e(),n&&n())}return i}function ix(){let e=iv(!0);return!e||(e(),!1)}class iP{constructor(e){this.isMounted=!1,this.node=e}update(){}}function ib(e,i){let n="onHover"+(i?"Start":"End");return ip(e.current,"pointer"+(i?"enter":"leave"),(r,s)=>{if("touch"===r.type||ix())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",i),o[n]&&v.update(()=>o[n](r,s))},{passive:!e.getProps()[n]})}let iT=(e,i)=>!!i&&(e===i||iT(e,i.parentElement));function iS(e,i){if(!i)return;let n=new PointerEvent("pointer"+e);i(n,id(n))}let iw=new WeakMap,iA=new WeakMap,iE=e=>{let i=iw.get(e.target);i&&i(e)},iC=e=>{e.forEach(iE)},iV={some:0,all:1};function ik(e,i){if(!Array.isArray(i))return!1;let n=i.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(i[r]!==e[r])return!1;return!0}let iM=[...eO].reverse(),iD=eO.length;function iR(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let iL=0,ij=(e,i)=>Math.abs(e-i);class iF{constructor(e,i,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{var e,i;if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;let n=iI(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,s=(e=n.offset,i={x:0,y:0},Math.sqrt(ij(e.x,i.x)**2+ij(e.y,i.y)**2)>=3);if(!r&&!s)return;let{point:o}=n,{timestamp:a}=P;this.history.push({...o,timestamp:a});let{onStart:l,onMove:u}=this.handlers;r||(l&&l(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),u&&u(this.lastMoveEvent,n)},this.handlePointerMove=(e,i)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=iB(i,this.transformPagePoint),v.update(this.updatePoint,!0)},this.handlePointerUp=(e,i)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;let{onEnd:n,onSessionEnd:r}=this.handlers,s=iI("pointercancel"===e.type?this.lastMoveEventInfo:iB(i,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,s),r&&r(e,s)},!ic(e))return;this.handlers=i,this.transformPagePoint=n;let r=iB(id(e),this.transformPagePoint),{point:s}=r,{timestamp:o}=P;this.history=[{...s,timestamp:o}];let{onSessionStart:a}=i;a&&a(e,iI(r,this.history)),this.removeListeners=t0(ip(window,"pointermove",this.handlePointerMove),ip(window,"pointerup",this.handlePointerUp),ip(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),x(this.updatePoint)}}function iB(e,i){return i?{point:i(e.point)}:e}function iO(e,i){return{x:e.x-i.x,y:e.y-i.y}}function iI({point:e},i){return{point:e,delta:iO(e,iU(i)),offset:iO(e,i[0]),velocity:function(e,i){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,s=iU(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>tC(.1)));)n--;if(!r)return{x:0,y:0};let o=tV(s.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let a={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(i,0)}}function iU(e){return e[e.length-1]}function iN(e){return e.max-e.min}function i$(e,i=0,n=.01){return Math.abs(e-i)<=n}function iW(e,i,n,r=.5){e.origin=r,e.originPoint=tG(i.min,i.max,e.origin),e.scale=iN(n)/iN(i),(i$(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=tG(n.min,n.max,e.origin)-e.originPoint,(i$(e.translate)||isNaN(e.translate))&&(e.translate=0)}function iH(e,i,n,r){iW(e.x,i.x,n.x,r?r.originX:void 0),iW(e.y,i.y,n.y,r?r.originY:void 0)}function iz(e,i,n){e.min=n.min+i.min,e.max=e.min+iN(i)}function iX(e,i,n){e.min=i.min-n.min,e.max=e.min+iN(i)}function iY(e,i,n){iX(e.x,i.x,n.x),iX(e.y,i.y,n.y)}function iG(e,i,n){return{min:void 0!==i?e.min+i:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function iq(e,i){let n=i.min-e.min,r=i.max-e.max;return i.max-i.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function iZ(e,i,n){return{min:iK(e,i),max:iK(e,n)}}function iK(e,i){return"number"==typeof e?e:e[i]||0}function i_(e){return[e("x"),e("y")]}
1function iJ({top:e,left:i,right:n,bottom:r}){return{x:{min:i,max:n},y:{min:e,max:r}}}function iQ(e){return void 0===e||1===e}function i0({scale:e,scaleX:i,scaleY:n}){return!iQ(e)||!iQ(i)||!iQ(n)}function i1(e){return i0(e)||i5(e)||e.z||e.rotate||e.rotateX||e.rotateY}function i5(e){var i,n;return(i=e.x)&&"0%"!==i||(n=e.y)&&"0%"!==n}function i2(e,i,n,r,s){return void 0!==s&&(e=r+s*(e-r)),r+n*(e-r)+i}function i3(e,i=0,n=1,r,s){e.min=i2(e.min,i,n,r,s),e.max=i2(e.max,i,n,r,s)}function i9(e,{x:i,y:n}){i3(e.x,i.translate,i.scale,i.originPoint),i3(e.y,n.translate,n.scale,n.originPoint)}function i4(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function i6(e,i){e.min=e.min+i,e.max=e.max+i}function i7(e,i,[n,r,s]){let o=void 0!==i[s]?i[s]:.5,a=tG(e.min,e.max,o);i3(e,i[n],i[r],a,i.scale)}let i8=["x","scaleX","originX"],nt=["y","scaleY","originY"];function ne(e,i){i7(e.x,i,i8),i7(e.y,i,nt)}function ni(e,i){return iJ(function(e,i){if(!i)return e;let n=i({x:e.left,y:e.top}),r=i({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),i))}let nn=new WeakMap;class nr{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:i=!1}={}){let{presenceContext:n}=this.visualElement;n&&!1===n.isPresent||(this.panSession=new iF(e,{onSessionStart:e=>{this.stopAnimation(),i&&this.snapToCursor(id(e,"page").point)},onStart:(e,i)=>{let{drag:n,dragPropagation:r,onDragStart:s}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=iv(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),i_(e=>{let i=this.getAxisMotionValue(e).get()||0;if(z.test(i)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(i=iN(r)*(parseFloat(i)/100))}}this.originPoint[e]=i}),s&&v.update(()=>s(e,i),!1,!0);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,i)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=i;if(r&&null===this.currentDirection)return this.currentDirection=function(e,i=10){let n=null;return Math.abs(e.y)>i?n="y":Math.abs(e.x)>i&&(n="x"),n}(a),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",i.point,a),this.updateAxis("y",i.point,a),this.visualElement.render(),o&&o(e,i)},onSessionEnd:(e,i)=>this.stop(e,i)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,i){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=i;this.startAnimation(r);let{onDragEnd:s}=this.getProps();s&&v.update(()=>s(e,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:i}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(e,i,n){let{drag:r}=this.getProps();if(!n||!ns(e,r,this.currentDirection))return;let s=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:i,max:n},r){return void 0!==i&&e<i?e=r?tG(i,e,r.min):Math.max(e,i):void 0!==n&&e>n&&(e=r?tG(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:i}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&ej(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:i,left:n,bottom:r,right:s}){return{x:iG(e.x,n,s),y:iG(e.y,i,r)}}(n.layoutBox,e),this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:iZ(e,"left","right"),y:iZ(e,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&i_(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,i){let n={};return void 0!==i.min&&(n.min=i.min-e.min),void 0!==i.max&&(n.max=i.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:i,onMeasureDragConstraints:n}=this.getProps();if(!i||!ej(i))return!1;let r=i.current;l(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let o=function(e,i,n){let r=ni(e,n),{scroll:s}=i;return s&&(i6(r.x,s.offset.x),i6(r.y,s.offset.y)),r}(r,s.root,this.visualElement.getTransformPagePoint()),a={x:iq((e=s.layout.layoutBox).x,o.x),y:iq(e.y,o.y)};if(n){let e=n(function({x:e,y:i}){return{top:i.min,right:e.max,bottom:i.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=iJ(e))}return a}startAnimation(e){let{drag:i,dragMomentum:n,dragElastic:r,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{};return Promise.all(i_(a=>{if(!ns(a,i,this.currentDirection))return;let u=l&&l[a]||{};o&&(u={min:0,max:0});let h={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...u};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(e,i){let n=this.getAxisMotionValue(e);
1return n.start(ex(e,n,0,i))}stopAnimation(){i_(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let i="_drag"+e.toUpperCase(),n=this.visualElement.getProps();return n[i]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){i_(i=>{let{drag:n}=this.getProps();if(!ns(i,n,this.currentDirection))return;let{projection:r}=this.visualElement,s=this.getAxisMotionValue(i);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[i];s.set(e[i]-tG(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:i}=this.getProps(),{projection:n}=this.visualElement;if(!ej(i)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};i_(e=>{let i=this.getAxisMotionValue(e);if(i){let n=i.get();r[e]=function(e,i){let n=.5,r=iN(e),s=iN(i);return s>r?n=t4(i.min,i.max-r,e.min):r>s&&(n=t4(e.min,e.max-s,i.min)),L(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),i_(i=>{if(!ns(i,e,null))return;let n=this.getAxisMotionValue(i),{min:s,max:o}=this.constraints[i];n.set(tG(s,o,r[i]))})}addListeners(){if(!this.visualElement.current)return;nn.set(this.visualElement,this);let e=ip(this.visualElement.current,"pointerdown",e=>{let{drag:i,dragListener:n=!0}=this.getProps();i&&n&&this.start(e)}),i=()=>{let{dragConstraints:e}=this.getProps();ej(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",i);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),i();let s=ih(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:i})=>{this.isDragging&&i&&(i_(i=>{let n=this.getAxisMotionValue(i);n&&(this.originPoint[i]+=e[i].translate,n.set(n.get()+e[i].translate))}),this.visualElement.render())});return()=>{s(),e(),r(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:i,dragDirectionLock:n,dragPropagation:r,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function ns(e,i,n){return!(!0!==i&&i!==e||null!==n&&n!==e)}let no=e=>(i,n)=>{e&&v.update(()=>e(i,n))},na={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nl(e,i){return i.max===i.min?0:e/(i.max-i.min)*100}let nu={correct:(e,i)=>{if(!i.target)return e;if("string"==typeof e){if(!X.test(e))return e;e=parseFloat(e)}return`${nl(e,i.target.x)}% ${nl(e,i.target.y)}%`}};class nh extends r.Component{componentDidMount(){let{visualElement:e,layoutGroup:i,switchLayoutGroup:n,layoutId:r}=this.props,{projection:s}=e;Object.assign(eZ,nd),s&&(i.group&&i.group.add(s),n&&n.register&&r&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),na.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:i,visualElement:n,drag:r,isPresent:s}=this.props,o=n.projection;return o&&(o.isPresent=s,r||e.layoutDependency!==i||void 0===i?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||v.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:i,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nc(e){let[i,n]=function(){let e=(0,r.useContext)(eR);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,o=(0,r.useId)();return(0,r.useEffect)(()=>s(o),[]),!i&&n?[!1,()=>n&&n(o)]:[!0]}(),s=(0,r.useContext)(ez);return r.createElement(nh,{...e,layoutGroup:s,switchLayoutGroup:(0,r.useContext)(eX),isPresent:i,safeToRemove:n})}let nd={borderRadius:{...nu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nu,borderTopRightRadius:nu,borderBottomLeftRadius:nu,borderBottomRightRadius:nu,boxShadow:{correct:(e,{treeScale:i,projectionDelta:n})=>{let r=ts.parse(e);if(r.length>5)return e;let s=ts.createTransformer(e),o="number"!=typeof r[0]?1:0,a=n.x.scale*i.x,l=n.y.scale*i.y;r[0+o]/=a,r[1+o]/=l;let u=tG(a,l,.5);return"number"==typeof r[2+o]&&(r[2+o]/=u),"number"==typeof r[3+o]&&(r[3+o]/=u),s(r)}}},np=["TopLeft","TopRight","BottomLeft","BottomRight"],nm=np.length,nf=e=>"string"==typeof e?parseFloat(e):e,ng=e=>"number"==typeof e||X.test(e);function ny(e,i){return void 0!==e[i]?e[i]:e.borderRadius}let nv=nP(0,.5,tN),nx=nP(.5,.95,l);function nP(e,i,n){return r=>r<e?0:r>i?1:n(t4(e,i,r))}function nb(e,i){e.min=i.min,e.max=i.max}function nT(e,i){nb(e.x,i.x),nb(e.y,i.y)}function nS(e,i,n,r,s){return e=r+1/n*((e-=i)-r),void 0!==s&&(e=r+1/s*(e-r)),e}function nw(e,i,[n,r,s],o,a){!function(e,i=0,n=1,r=.5,s,o=e,a=e){if(z.test(i)&&(i=parseFloat(i),i=tG(a.min,a.max,i/100)-a.min),"number"!=typeof i)return;let l=tG(o.min,o.max,r);e===o&&(l-=i),e.min=nS(e.min,i,n,l,s),e.max=nS(e.max,i,n,l,s)}(e,i[n],i[r],i[s],i.scale,o,a)}let nA=["x","scaleX","originX"],nE=["y","scaleY","originY"];function nC(e,i,n,r){nw(e.x,i,nA,n?n.x:void 0,r?r.x:void 0),nw(e.y,i,nE,n?n.y:void 0,r?r.y:void 0)}function nV(e){return 0===e.translate&&1===e.scale}function nk(e){return nV(e.x)&&nV(e.y)}function nM(e,i){return Math.round(e.x.min)===Math.round(i.x.min)&&Math.round(e.x.max)===Math.round(i.x.max)&&Math.round(e.y.min)===Math.round(i.y.min)&&Math.round(e.y.max)===Math.round(i.y.max)}function nD(e){return iN(e.x)/iN(e.y)}class nR{constructor(){this.members=[]}add(e){p(this.members,e),e.scheduleRender()}remove(e){if(m(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let i;let n=this.members.findIndex(i=>e===i);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){i=n;break}}return!!i&&(this.promote(i),!0)}promote(e,i){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,i&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}
1exitAnimationComplete(){this.members.forEach(e=>{let{options:i,resumingFrom:n}=e;i.onExitComplete&&i.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function nL(e,i,n){let r="",s=e.x.translate/i.x,o=e.y.translate/i.y;if((s||o)&&(r=`translate3d(${s}px, ${o}px, 0) `),1===i.x&&1===i.y||(r+=`scale(${1/i.x}, ${1/i.y}) `),n){let{rotate:e,rotateX:i,rotateY:s}=n;e&&(r+=`rotate(${e}deg) `),i&&(r+=`rotateX(${i}deg) `),s&&(r+=`rotateY(${s}deg) `)}let a=e.x.scale*i.x,l=e.y.scale*i.y;return 1===a&&1===l||(r+=`scale(${a}, ${l})`),r||"none"}let nj=(e,i)=>e.depth-i.depth;class nF{constructor(){this.children=[],this.isDirty=!1}add(e){p(this.children,e),this.isDirty=!0}remove(e){m(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nj),this.isDirty=!1,this.children.forEach(e)}}let nB=["","X","Y","Z"],nO=0,nI={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function nU({attachResizeListener:e,defaultParent:i,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(e={},n=null==i?void 0:i()){this.id=nO++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{nI.totalNodes=nI.resolvedTargetDeltas=nI.recalculatedProjection=0,this.nodes.forEach(nW),this.nodes.forEach(nZ),this.nodes.forEach(nK),this.nodes.forEach(nH),window.MotionDebug&&window.MotionDebug.record(nI)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nF)}addEventListener(e,i){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new f),this.eventHandlers.get(e).add(i)}notifyListeners(e,...i){let n=this.eventHandlers.get(e);n&&n.notify(...i)}hasListeners(e){return this.eventHandlers.has(e)}mount(i,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=i instanceof SVGElement&&"svg"!==i.tagName,this.instance=i;let{layoutId:r,layout:s,visualElement:o}=this.options;if(o&&!o.current&&o.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(s||r)&&(this.isLayoutDirty=!0),e){let n;let r=()=>this.root.updateBlockedByResize=!1;e(i,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,i){let n=performance.now(),r=({timestamp:i})=>{let s=i-n;s>=250&&(x(r),e(s-250))};return v.read(r,!0),()=>x(r)}(r),na.hasAnimatedSinceResize&&(na.hasAnimatedSinceResize=!1,this.nodes.forEach(nq))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||s)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:i,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);let s=this.options.transition||o.getDefaultTransition()||n5,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=o.getProps(),u=!this.targetLayout||!nM(this.targetLayout,r)||n,h=!i&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||i&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,h);let i={...ev(s,"layout"),onPlay:a,onComplete:l};(o.shouldReduceMotion||this.options.layoutRoot)&&(i.delay=0,i.type=!1),this.startAnimation(i)}else i||nq(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,x(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.forEac
1h(n_),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let i=this.path[e];i.shouldResetTransform=!0,i.updateScroll("snapshot"),i.options.layoutRoot&&i.willUpdate(!1)}let{layoutId:i,layout:n}=this.options;if(void 0===i&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(nX);this.isUpdating||this.nodes.forEach(nY),this.isUpdating=!1,this.nodes.forEach(nG),this.nodes.forEach(nN),this.nodes.forEach(n$),this.clearAllSnapshots();let e=performance.now();P.delta=L(0,1e3/60,e-P.timestamp),P.timestamp=e,P.isProcessing=!0,b.update.process(P),b.preRender.process(P),b.render.process(P),P.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(nz),this.sharedNodes.forEach(nJ)}scheduleUpdateProjection(){v.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){v.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let i=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(i=!1),i&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!s)return;let e=this.isLayoutDirty||this.shouldResetTransform,i=this.projectionDelta&&!nk(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(i||i1(this.latestValues)||o)&&(s(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var i;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),n9((i=r).x),n9(i.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};let i=e.measureViewportBox(),{scroll:n}=this.root;return n&&(i6(i.x,n.offset.x),i6(i.y,n.offset.y)),i}removeElementScroll(e){let i={x:{min:0,max:0},y:{min:0,max:0}};nT(i,e);for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:s,options:o}=r;if(r!==this.root&&s&&o.layoutScroll){if(s.isRoot){nT(i,e);let{scroll:n}=this.root;n&&(i6(i.x,-n.offset.x),i6(i.y,-n.offset.y))}i6(i.x,s.offset.x),i6(i.y,s.offset.y)}}return i}applyTransform(e,i=!1){let n={x:{min:0,max:0},y:{min:0,max:0}};nT(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&ne(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),i1(r.latestValues)&&ne(n,r.latestValues)}return i1(this.latestValues)&&ne(n,this.latestValues),n}removeTransform(e){let i={x:{min:0,max:0},y:{min:0,max:0}};nT(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!i1(n.latestValues))continue;i0(n.latestValues)&&n.updateSnapshot();let r={x:{min:0,max:0},y:{min:0,max:0}};nT(r,n.measurePageBox()),nC(i,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return i1(this.latestValues)&&nC(i,this.latestValues),i}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==P.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var i,n,r,s;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(i=this.parent)||void 0===i?void 0:i.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:l,layoutId:u}=this.options;if(this.layout&&(l||u)){if(this.resolvedRelativeTargetAt=P.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},iY(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nT(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),n=this.target,r=this.relativeTarget,s=this.relativeParent.target,iz(n.x,r.x,s.x),iz(n.y,r.y,s.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nT(this.target,this.layout.layoutBox),i9(this.target,this.targetDelta)):nT(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},iY(this.relativeTargetOrigin,this.target,e.target),nT(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nI.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!i0(this.parent.latestValues)&&!i5(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let i=this.getLead(),n=!!this.resumingFrom||this!==i,r=!0;
1if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===P.timestamp&&(r=!1),r)return;let{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!o)return;nT(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,l=this.treeScale.y;(function(e,i,n,r=!1){let s,o;let a=n.length;if(a){i.x=i.y=1;for(let l=0;l<a;l++){o=(s=n[l]).projectionDelta;let a=s.instance;a&&a.style&&"contents"===a.style.display||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&ne(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(i.x*=o.x.scale,i.y*=o.y.scale,i9(e,o)),r&&i1(s.latestValues)&&ne(e,s.latestValues))}i.x=i4(i.x),i.y=i4(i.y)}})(this.layoutCorrected,this.treeScale,this.path,n),!i.layout||i.target||1===this.treeScale.x&&1===this.treeScale.y||(i.target=i.layout.layoutBox);let{target:u}=i;if(!u)return void(this.projectionTransform&&(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});let h=this.projectionTransform;iH(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.projectionTransform=nL(this.projectionDelta,this.treeScale),this.projectionTransform===h&&this.treeScale.x===a&&this.treeScale.y===l||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),nI.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,i=!1){let n;let r=this.snapshot,s=r?r.latestValues:{},o={...this.latestValues},a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let l={x:{min:0,max:0},y:{min:0,max:0}},u=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),c=!h||h.members.length<=1,d=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(n1));this.animationProgress=0,this.mixTargetDelta=i=>{var r,h,p,m;let f=i/1e3;nQ(a.x,e.x,f),nQ(a.y,e.y,f),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(iY(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,n0(p.x,m.x,l.x,f),n0(p.y,m.y,l.y,f),n&&(r=this.relativeTarget,h=n,r.x.min===h.x.min&&r.x.max===h.x.max&&r.y.min===h.y.min&&r.y.max===h.y.max)&&(this.isProjectionDirty=!1),n||(n={x:{min:0,max:0},y:{min:0,max:0}}),nT(n,this.relativeTarget)),u&&(this.animationValues=o,function(e,i,n,r,s,o){s?(e.opacity=tG(0,void 0!==n.opacity?n.opacity:1,nv(r)),e.opacityExit=tG(void 0!==i.opacity?i.opacity:1,0,nx(r))):o&&(e.opacity=tG(void 0!==i.opacity?i.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let s=0;s<nm;s++){let o=`border${np[s]}Radius`,a=ny(i,o),l=ny(n,o);void 0===a&&void 0===l||(a||(a=0),l||(l=0),0===a||0===l||ng(a)===ng(l)?(e[o]=Math.max(tG(nf(a),nf(l),r),0),(z.test(l)||z.test(a))&&(e[o]+="%")):e[o]=l)}(i.rotate||n.rotate)&&(e.rotate=tG(i.rotate||0,n.rotate||0,r))}(o,s,this.latestValues,f,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=f},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(x(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=v.update(()=>{na.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,i,n){let r=eP(0)?0:w(0);return r.start(ex("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:i=>{this.mixTargetDelta(i),e.onUpdate&&e.onUpdate(i)},onComplete:()=>{e.onComplete&&e.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 e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:i,target:n,layout:r,latestValues:s}=e;if(i&&n&&r){if(this!==e&&this.layout&&r&&n4(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};let i=iN(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+i;let r=iN(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}nT(i,n),ne(i,s),iH(this.projectionDeltaWithTransform,this.layoutCorrected,i,s)}}registerSharedNode(e,i){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nR),this.sharedNodes.get(e).add(i);let n=i.options.initialPromotionConfig;i.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(i):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:i}=this.options;return i&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:i}=this.options;return i?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:i,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let i=!1,{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(i=!0),!i)return;let r={};for(let i=0;i<nB.length;i++){let s="rotate"+nB[i];n[s]&&(r[s]=n[s],e.setStaticValue(s,0))}for(let i in e.render(),r)e.setStaticValue(i,r[i]);e.scheduleRender()}getProjectionStyles(e={}){var i,n;let r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";let s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=io(e.pointerEvents)||"",r.transform=s?s(this.latestValues,""):"none",r;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let i={};return this.options.layoutId&&(i.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,i.pointerEvents=io(e.pointerEvents)||""),this.hasProjected&&!i1(this.latestValues)&&(i.transform=s?s({},""):"none",this.hasProjected=!1),i}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=nL(this.projectionDeltaWithTransform,this.treeScale,a),s&&(r.transform=s(a,r.transform));let{x:l,y:u}=this.projectionDelta;for(let e in r.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(i=a.opacity)&&void 0!==i?i:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,eZ){if(void 0===a[e])continue;let{correct:i,applyTo:n}=eZ[e],s="none"===r.transform?a[e]:i(a[e],o);if(n){let e=n.length;for(let i=0;i<e;i++)r[n[i]]=s}else r[e]=s}return this.options.layoutId&&(r.pointerEvents=o===this?io(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach(e=>{var i;return null===(i=e.currentAnimation)||void 0===i?void 0:i.stop()}),this.root.nodes.forEach(nX),this.root.sharedNodes.clear()}}}function nN(e){e.updateLayout()}function n$(e){var i;let n=(null===(i=e.resumeFrom)||void 0===i?void 0:i.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:r}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;"size"===s?i_(e=>{let r=o?n.measuredBox[e]:n.layoutBox[e],s=iN(r);r.min=i[e].min,r.max=r.min+s}):n4(s,n.layoutBox,i)&&i_(r=>{let s=o?n.measuredBox[r]:n.layoutBox[r],a=iN(i[r]);s.max=s.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};iH(a,i,n.layoutBox);let l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?iH(l,e.applyTransform(r,!0),n.measuredBox):iH(l,i,n.layoutBox);let u=!nk(a),h=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:s,layout:o}=r;if(s&&o){let a={x:{min:0,max:0},y:{min:0,max:0}};iY(a,n.layoutBox,s.layoutBox);let l={x:{min:0,max:0},y:{min:0,max:0}};iY(l,i,o.layoutBox),nM(a,l)||(h=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:h})}else if(e.isLead()){let{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function nW(e){nI.totalNodes++,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 nH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nz(e){e.clearSnapshot()}function nX(e){e.clearMeasurements()}function nY(e){e.isLayoutDirty=!1}function nG(e){let{visualElement:i}=e.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),e.resetTransform()}function nq(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function nZ(e){e.resolveTargetDelta()}function nK(e){e.calcProjection()}function n_(e){e.resetRotation()}function nJ(e){e.removeLeadSnapshot()}function nQ(e,i,n){e.translate=tG(i.translate,0,n),e.scale=tG(i.scale,1,n),e.origin=i.origin,e.originPoint=i.originPoint}function n0(e,i,n,r){e.min=tG(i.min,n.min,r),e.max=tG(i.max,n.max,r)}function n1(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let n5={duration:.45,ease:[.4,0,.1,1]},n2=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),n3=n2("applewebkit/")&&!n2("chrome/")?Math.round:l;function n9(e){e.min=n3(e.min),e.max=n3(e.max)}function n4(e,i,n){return"position"===e||"preserve-aspect"===e&&!i$(nD(i),nD(n),.2)}let n6=nU({attachResizeListener:(e,i)=>ih(e,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),n7={current:void 0},n8=nU({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!n7.current){let e=new n6({});e.mount(window),e.setOptions({layoutScroll:!0}),n7.current=e}return n7.current},resetTransform:(e,i)=>{e.style.transform=void 0!==i?i:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),rt=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function re(e,i,n=1){l(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,s]=function(e){let i=rt.exec(e);if(!i)return[,];let[,n,r]=i;return[n,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let e=o.trim();return h(e)?parseFloat(e):e}return C(s)?re(s,i,n+1):s}let ri=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),rn=e=>ri.has(e),rr=e=>e===j||e===X,rs=(e,i)=>parseFloat(e.split(", ")[i]),ro=(e,i)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let s=r.match(/^matrix3d\((.+)\)$/);if(s)return rs(s[1],i);{let i=r.match(/^matrix\((.+)\)$/);return i?rs(i[1],e):0}},ra=new Set(["x","y","z"]),rl=tS.filter(e=>!ra.has(e)),ru={width:({x:e},{paddingLeft:i="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(i)-parseFloat(n),height:({y:e},{paddingTop:i="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(i)-parseFloat(n),top:(e,{top:i})=>parseFloat(i),left:(e,{left:i})=>parseFloat(i),bottom:({y:e},{top:i})=>parseFloat(i)+(e.max-e.min),right:({x:e},{left:i})=>parseFloat(i)+(e.max-e.min),x:ro(4,13),y:ro(5,14)};ru.translateX=ru.x,ru.translateY=ru.y;let rh={current:null},rc={current:!1},rd=new WeakMap,rp=Object.keys(eH),rm=rp.length,rf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rg=eI.length;class ry extends class{constructor({parent:e,props:i,presenceContext:n,reducedMotionConfig:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>v.render(this.render,!1,!0);let{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=i.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=i,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=eU(i),this.isVariantNode=eN(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(i,{});for(let e in h){let i=h[e];void 0!==a[e]&&eP(i)&&(i.set(a[e],!1),eb(u)&&u.add(e))}}scrapeMotionValuesFromProps(e,i){return{}}mount(e){this.current=e,rd.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((e,i)=>this.bindToMotionValue(i,e)),rc.current||function(){if(rc.current=!0,eV){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),i=()=>rh.current=e.matches;e.addListener(i),i()}else rh.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rh.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in rd.delete(this.current),this.projection&&this.projection.unmount(),x(this.notifyUpdate),x(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,i){let n=tw.has(e),r=i.on("change",i=>{this.latestValues[e]=i,this.props.onUpdate&&v.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=i.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),s()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...i},n,r,s){let o,a;for(let e=0;e<rm;e++){let n=rp[e],{isEnabled:r,Feature:s,ProjectionNode:l,MeasureLayout:u}=eH[n];l&&(o=l),r(i)&&(!this.features[n]&&s&&(this.features[n]=new s(this)),u&&(a=u))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);let{layoutId:e,layout:n,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=i;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:!!r||a&&ej(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}return a}updateFeatures(){for(let e in this.features){let i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,i){this.latestValues[e]=i}makeTargetAnimatable(e,i=!0){return this.makeTargetAnimatableFromInstance(e,this.props,i)}update(e,i){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let i=0;i<rf.length;i++){let n=rf[i];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,i,n){let{willChange:r}=i;for(let s in i){let o=i[s],a=n[s];if(eP(o))e.addValue(s,o),eb(r)&&r.add(s);else if(eP(a))e.addValue(s,w(o,{owner:e})),eb(r)&&r.remove(s);else if(a!==o){if(e.hasValue(s)){let i=e.getValue(s);i.hasAnimated||i.set(o)}else{let i=e.getStaticValue(s);e.addValue(s,w(void 0!==i?i:o,{owner:e}))}}}for(let r in n)void 0===i[r]&&e.removeValue(r);return i}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let i={};for(let e=0;e<rg;e++){let n=eI[e],r=this.props[n];(eF(r)||!1===r)&&(i[n]=r)}return i}addVariantChild(e){let i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(e),()=>i.variantChildren.delete(e)}addValue(e,i){i!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,i)),this.values.set(e,i),this.latestValues[e]=i.get()}removeValue(e){this.values.delete(e);let i=this.valueSubscriptions.get(e);i&&(i(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,i){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==i&&(n=w(i,{owner:this}),this.addValue(e,n)),n}readValue(e){var i;return void 0===this.latestValues[e]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,e))&&void 0!==i?i:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,i){this.baseTarget[e]=i}getBaseTarget(e){var i;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(i=tx(this.props,n))||void 0===i?void 0:i[e]:void 0;if(n&&void 0!==r)return r;let s=this.getBaseTargetFromProps(this.props,e);return void 0===s||eP(s)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:s}on(e,i){return this.events[e]||(this.events[e]=new f),this.events[e].add(i)}notify(e,...i){this.events[e]&&this.events[e].notify(...i)}}{sortInstanceNodePosition(e,i){return 2&e.compareDocumentPosition(i)?1:-1}getBaseTargetFromProps(e,i){return e.style?e.style[i]:void 0}removeValueFromRenderState(e,{vars:i,style:n}){delete i[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:i,...n},{transformValues:r},s){let o=function(e,i,n){let r={};for(let s in e){let e=function(e,i){if(i)return(i[e]||i.default||i).from}(s,i);if(void 0!==e)r[s]=e;else{let e=n.getValue(s);e&&(r[s]=e.get())}}return r}(n,e||{},this);if(r&&(i&&(i=r(i)),n&&(n=r(n)),o&&(o=r(o))),s){!function(e,i,n){var r,s,o;let a=Object.keys(i).filter(i=>!e.hasValue(i)),l=a.length;if(l)for(let u=0;u<l;u++){let l=a[u],d=i[l],p=null;Array.isArray(d)&&(p=d[0]),null===p&&(p=null!==(s=null!==(r=n[l])&&void 0!==r?r:e.readValue(l))&&void 0!==s?s:i[l]),null!=p&&("string"==typeof p&&(h(p)||c(p))?p=parseFloat(p):(o=p,!tv.find(tf(o))&&ts.test(d)&&(p=tm(l,d))),e.addValue(l,w(p,{owner:e})),void 0===n[l]&&(n[l]=p),null!==p&&e.setBaseTarget(l,p))}}(this,n,o);let e=((e,i,n,r)=>{var s,o;let a=function(e,{...i},n){let r=e.current;if(!(r instanceof Element))return{target:i,transitionEnd:n};for(let s in n&&(n={...n}
1),e.values.forEach(e=>{let i=e.get();if(!C(i))return;let n=re(i,r);n&&e.set(n)}),i){let e=i[s];if(!C(e))continue;let o=re(e,r);o&&(i[s]=o,n||(n={}),void 0===n[s]&&(n[s]=e))}return{target:i,transitionEnd:n}}(e,i,r);return s=i=a.target,o=r=a.transitionEnd,Object.keys(s).some(rn)?((e,i,n={},r={})=>{i={...i},r={...r};let s=Object.keys(i).filter(rn),o=[],a=!1,u=[];if(s.forEach(s=>{let h;let c=e.getValue(s);if(!e.hasValue(s))return;let p=n[s],m=ty(p),f=i[s];if(d(f)){let e=f.length,i=null===f[0]?1:0;m=ty(p=f[i]);for(let n=i;n<e&&null!==f[n];n++)h?l(ty(f[n])===h,"All keyframes must be of the same type"):l((h=ty(f[n]))===m||rr(m)&&rr(h),"Keyframes must be of the same dimension as the current value")}else h=ty(f);if(m!==h){if(rr(m)&&rr(h)){let e=c.get();"string"==typeof e&&c.set(parseFloat(e)),"string"==typeof f?i[s]=parseFloat(f):Array.isArray(f)&&h===X&&(i[s]=f.map(parseFloat))}else(null==m?void 0:m.transform)&&(null==h?void 0:h.transform)&&(0===p||0===f)?0===p?c.set(h.transform(p)):i[s]=m.transform(f):(a||(o=function(e){let i=[];return rl.forEach(n=>{let r=e.getValue(n);void 0!==r&&(i.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),i.length&&e.render(),i}(e),a=!0),u.push(s),r[s]=void 0!==r[s]?r[s]:i[s],c.jump(f))}}),u.length){let n=u.indexOf("height")>=0?window.pageYOffset:null,s=((e,i,n)=>{let r=i.measureViewportBox(),s=getComputedStyle(i.current),{display:o}=s,a={};"none"===o&&i.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=ru[e](r,s)}),i.render();let l=i.measureViewportBox();return n.forEach(n=>{let r=i.getValue(n);r&&r.jump(a[n]),e[n]=ru[n](l,s)}),e})(i,e,u);return o.length&&o.forEach(([i,n])=>{e.getValue(i).set(n)}),e.render(),eV&&null!==n&&window.scrollTo({top:n}),{target:s,transitionEnd:r}}return{target:i,transitionEnd:r}})(e,s,n,o):{target:s,transitionEnd:o}})(this,n,o,i);i=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:i,...n}}}class rv extends ry{readValueFromInstance(e,i){if(tw.has(i)){let e=tp(i);return e&&e.default||0}{let n=window.getComputedStyle(e),r=(E(i)?n.getPropertyValue(i):n[i])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:i}){return ni(e,i)}build(e,i,n,r){e0(e,i,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,i){return ir(e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;eP(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,i,n,r){it(e,i,n,r)}}class rx extends ry{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,i){return e[i]}readValueFromInstance(e,i){if(tw.has(i)){let e=tp(i);return e&&e.default||0}return i=ie.has(i)?i:tA(i),e.getAttribute(i)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,i){return is(e,i)}build(e,i,n,r){e7(e,i,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,i,n,r){ii(e,i,0,r)}mount(e){this.isSVGTag=e8(e.tagName),super.mount(e)}}let rP=(e,i)=>eq(e)?new rx(i,{enableHardwareAcceleration:!1}):new rv(i,{enableHardwareAcceleration:!0}),rb={animation:{Feature:class extends iP{constructor(e){super(e),e.animationState||(e.animationState=function(e){let i=i=>Promise.all(i.map(({animation:i,options:n})=>eA(e,i,n))),n={animate:iR(!0),whileInView:iR(),whileHover:iR(),whileTap:iR(),whileDrag:iR(),whileFocus:iR(),exit:iR()},r=!0,s=(i,n)=>{let r=tP(e,n);if(r){let{transition:e,transitionEnd:n,...s}=r;i={...i,...s,...n}}return i};function o(o,a){var l;let u=e.getProps(),h=e.getVariantContext(!0)||{},c=[],p=new Set,m={},f=1/0;for(let i=0;i<iD;i++){let g=iM[i],y=n[g],v=void 0!==u[g]?u[g]:h[g],x=eF(v),P=g===a?y.isActive:null;!1===P&&(f=i);let b=v===h[g]&&v!==u[g]&&x;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),y.protectedKeys={...m},!y.isActive&&null===P||!v&&!y.prevProp||eB(v)||"boolean"==typeof v)continue;let T=(l=y.prevProp,"string"==typeof v?v!==l:!!Array.isArray(v)&&!ik(v,l)),S=T||g===a&&y.isActive&&!b&&x||i>f&&x,w=Array.isArray(v)?v:[v],A=w.reduce(s,{});!1===P&&(A={});let{prevResolvedValues:E={}}=y,C={...E,...A},V=e=>{S=!0,p.delete(e),y.needsAnimating[e]=!0};for(let e in C){let i=A[e],n=E[e];m.hasOwnProperty(e)||(i!==n?d(i)&&d(n)?!ik(i,n)||T?V(e):y.protectedKeys[e]=!0:void 0!==i?V(e):p.add(e):void 0!==i&&p.has(e)?V(e):y.protectedKeys[e]=!0)}y.prevProp=v,y.prevResolvedValues=A,y.isActive&&(m={...m,...A}),r&&e.blockInitialAnimation&&(S=!1),S&&!b&&c.push(...w.map(e=>({animation:e,options:{type:g,...o}})))}if(p.size){let i={};p.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(i[n]=r)}),c.push({animation:i})}let g=!!c.length;return r&&!1===u.initial&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?i(c):Promise.resolve()}
1return{animateChanges:o,setActive:function(i,r,s){var a;if(n[i].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(i,r)}),n[i].isActive=r;let l=o(s,i);for(let e in n)n[e].protectedKeys={};return l},setAnimateFunction:function(n){i=n(e)},getState:()=>n}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),eB(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:i}=this.node.prevProps||{};e!==i&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends iP{constructor(){super(...arguments),this.id=iL++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:i,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let s=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});i&&!e&&s.then(()=>i(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends iP{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:i,margin:n,amount:r="some",once:s}=e,o={root:i?i.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:iV[r]};return function(e,i,n){let r=function({root:e,...i}){let n=e||document;iA.has(n)||iA.set(n,{});let r=iA.get(n),s=JSON.stringify(i);return r[s]||(r[s]=new IntersectionObserver(iC,{root:e,...i})),r[s]}(i);return iw.set(e,n),r.observe(e),()=>{iw.delete(e),r.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:i}=e;if(this.isInView===i||(this.isInView=i,s&&!i&&this.hasEnteredView))return;i&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",i);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=i?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:i}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:i={}}={}){return n=>e[n]!==i[n]}(e,i))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends iP{constructor(){super(...arguments),this.removeStartListeners=l,this.removeEndListeners=l,this.removeAccessibleListeners=l,this.startPointerPress=(e,i)=>{if(this.removeEndListeners(),this.isPressing)return;let n=this.node.getProps(),r=ip(window,"pointerup",(e,i)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r}=this.node.getProps();v.update(()=>{iT(this.node.current,e.target)?n&&n(e,i):r&&r(e,i)})},{passive:!(n.onTap||n.onPointerUp)}),s=ip(window,"pointercancel",(e,i)=>this.cancelPress(e,i),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=t0(r,s),this.startPress(e,i)},this.startAccessiblePress=()=>{let e=ih(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=ih(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&iS("up",(e,i)=>{let{onTap:n}=this.node.getProps();n&&v.update(()=>n(e,i))})}),iS("down",(e,i)=>{this.startPress(e,i)}))}),i=ih(this.node.current,"blur",()=>{this.isPressing&&iS("cancel",(e,i)=>this.cancelPress(e,i))});this.removeAccessibleListeners=t0(e,i)}}startPress(e,i){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&v.update(()=>n(e,i))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ix()}cancelPress(e,i){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&v.update(()=>n(e,i))}mount(){let e=this.node.getProps(),i=ip(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=ih(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=t0(i,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends iP{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(i){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=t0(ih(this.node.current,"focus",()=>this.onFocus()),ih(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iP{mount(){this.unmount=t0(ib(this.node,!0),ib(this.node,!1))}unmount(){}}},pan:{Feature:class extends iP{constructor(){super(...arguments),this.removePointerDownListener=l}onPointerDown(e){this.session=new iF(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:i,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:no(e),onStart:no(i),onMove:n,onEnd:(e,i)=>{delete this.session,r&&v.update(()=>r(e,i))}}}mount(){this.removePointerDownListener=ip(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iP{constructor(e){super(e),this.removeGroupControls=l,this.removeListeners=l,this.controls=new nr(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||l}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:n8,MeasureLayout:nc},layout:{ProjectionNode:n8,MeasureLayout:nc}},rT=function(e){function i(i,n={}){return function({preloadedFeatures:e,createVisualElement:i,useRender:n,useVisualState:s,Component:o}){e&&function(e){for(let i in e)eH[i]={...eH[i],...e[i]}}(e);let a=(0,r.forwardRef)(function(a,l){var u;let h;let c={...(0,r.useContext)(eM),...a,layoutId:function({layoutId:e}){let i=(0,r.useContext)(ez).id;return i&&void 0!==e?i+"-"+e:e}(a)},{isStatic:d}=c,p=function(e){let{initial:i,animate:n}=function(e,i){if(eU(e)){let{initial:i,animate:n}=e;return{initial:!1===i||eF(i)?i:void 0,animate:eF(n)?n:void 0}}return!1!==e.inherit?i:{}}(e,(0,r.useContext)(eD));return(0,r.useMemo)(()=>({initial:i,animate:n}),[e$(i),e$(n)])}(a),m=s(a,d);if(!d&&eV){p.visualElement=function(e,i,n,s){let{visualElement:o}=(0,r.useContext)(eD),a=(0,r.useContext)(eL),l=(0,r.useContext)(eR),u=(0,r.useContext)(eM).reducedMotion,h=(0,r.useRef)();s=s||a.renderer,!h.current&&s&&(h.current=s(e,{visualState:i,parent:o,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));let c=h.current;(0,r.useInsertionEffect)(()=>{c&&c.update(n,l)});let d=(0,r.useRef)(!!window.HandoffAppearAnimations);return ek(()=>{c&&(c.render(),d.current&&c.animationState&&c.animationState.animateChanges())}),(0,r.useEffect)(()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,d.current=!1)}),c}(o,m,c,i);let n=(0,r.useContext)(eX),s=(0,r.useContext)(eL).strict;p.visualElement&&(h=p.visualElement.loadFeatures(c,s,e,n))}return r.createElement(eD.Provider,{value:p},h&&p.visualElement?r.createElement(h,{visualElement:p.visualElement,...c}):null,n(o,a,(u=p.visualElement,(0,r.useCallback)(e=>{e&&m.mount&&m.mount(e),u&&(e?u.mount(e):u.unmount()),l&&("function"==typeof l?l(e):ej(l)&&(l.current=e))},[u])),m,d,p.visualElement))});return a[eY]=o,a}(e(i,n))}if("undefined"==typeof Proxy)return i;let n=new Map;return new Proxy(i,{get:(e,r)=>(n.has(r)||n.set(r,i(r)),n.get(r))})}((e,i)=>(function(e,{forwardMotionProps:i=!1}
1,n,s){return{...eq(e)?il:iu,preloadedFeatures:n,useRender:function(e=!1){return(i,n,s,{latestValues:o},a)=>{let l=(eq(i)?function(e,i,n,s){let o=(0,r.useMemo)(()=>{let n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return e7(n,i,{enableHardwareAcceleration:!1},e8(s),e.transformTemplate),{...n.attrs,style:{...n.style}}},[i]);if(e.style){let i={};e1(i,e.style,e),o.style={...i,...o.style}}return o}:function(e,i,n){let s={},o=function(e,i,n){let s={};return e1(s,e.style||{},e),Object.assign(s,function({transformTemplate:e},i,n){return(0,r.useMemo)(()=>{let r={style:{},transform:{},transformOrigin:{},vars:{}};return e0(r,i,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[i])}(e,i,n)),e.transformValues?e.transformValues(s):s}(e,i,n);return e.drag&&!1!==e.dragListener&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=o,s})(n,o,a,i),u={...function(e,i,n){let r={};for(let s in e)"values"===s&&"object"==typeof e.values||(e3(s)||!0===n&&e2(s)||!i&&!e2(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}(n,"string"==typeof i,e),...l,ref:s},{children:h}=n,c=(0,r.useMemo)(()=>eP(h)?h.get():h,[h]);return(0,r.createElement)(i,{...u,children:c})}}(i),createVisualElement:s,Component:e}})(e,i,rb,rP)),rS=[0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9],rw=a().memo(({className:e,animateToNumber:i,fontStyle:n,transitions:s,includeComma:o,locale:l})=>{let h=a().useRef(null),c=function(e,{root:i,margin:n,amount:s,once:o=!1}={}){let[a,l]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!e.current||o&&a)return;let r={root:i&&i.current||void 0,margin:n,amount:s};return function(e,i,{root:n,margin:r,amount:s="some"}={}){var o;let a=("string"==typeof(o=e)?o=document.querySelectorAll(o):o instanceof Element&&(o=[o]),Array.from(o||[])),l=new WeakMap,h=new IntersectionObserver(e=>{e.forEach(e=>{let n=l.get(e.target);if(!!n!==e.isIntersecting){if(e.isIntersecting){let n=i(e);"function"==typeof n?l.set(e.target,n):h.unobserve(e.target)}else n&&(n(e),l.delete(e.target))}})},{root:n,rootMargin:r,threshold:"number"==typeof s?s:u[s]});return a.forEach(e=>h.observe(e)),()=>h.disconnect()}(e.current,()=>(l(!0),o?void 0:()=>l(!1)),r)},[i,e,n,o]),a}(h,{once:!0}),d=function(){let e=eC(eE);return ek(e.mount,[]),e}(),p=a().useRef(0),m=o?Math.abs(i).toLocaleString(l||"en-US"):String(Math.abs(i)),f=Array.from(m,Number).map((e,i)=>isNaN(e)?m[i]:e),[g,y]=a().useState(0),[v,x]=a().useState(0),P=a().useRef(null);return a().useEffect(()=>{var e;let i=null===(e=P.current.getClientRects())||void 0===e?void 0:e[0];i&&(y(i.height),x(i.width))},[i,n]),a().useEffect(()=>{c&&d.start("visible")},[c,i]),a().createElement("span",{ref:h},0!==g&&a().createElement("div",{style:{display:"flex",flexDirection:"row",overflow:"hidden"},className:e},f.map((e,i)=>"string"==typeof e?a().createElement("div",{key:i,style:{...n,fontVariantNumeric:"tabular-nums"}},e):a().createElement("div",{key:i,style:{height:g,width:v}},rS.map(e=>a().createElement(rT.div,{style:{...n,fontVariantNumeric:"tabular-nums"},key:""+p.current++,initial:"hidden",variants:{hidden:{y:0},visible:{y:-(g*f[i]*1)-20*g}},animate:d,transition:null==s?void 0:s(i)},e))))),a().createElement("div",{ref:P,style:{position:"absolute",top:-9999,...n}},0))},(e,i)=>e.animateToNumber===i.animateToNumber&&e.fontStyle===i.fontStyle&&e.includeComma===i.includeComma)})(),o})()},e.exports=r(n(67294))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.